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
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 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-qwt[=DIR] specify qwt library directory
1687 --with-readline[=DIR] specify readline library directory
1688 --with-python[=DIR] Include Python support. DIR is the Python base
1689 install directory, default is to search through a
1690 number of common places for the Python files.
1691 --with-tcp-wrappers[=DIR]
1692 enable tcpwrappers support
1693 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1694 --with-working-dir=PATH specify path of Bacula working directory
1695 --with-archivedir=PATH specify path of SD archive directory
1696 --with-basename=RESNAME specify base resource name for daemons
1697 --with-hostname=RESNAME specify host name for daemons
1698 --with-scriptdir=PATH specify path of Bacula scripts directory
1699 --with-bsrdir=PATH specify path of Bacula bsrs directory
1700 --with-logdir=PATH specify path of Bacula logs directory
1701 --with-plugindir=PATH specify path of Bacula plugins directory
1702 --with-dump-email=EMAIL dump email address
1703 --with-job-email=EMAIL job output email address
1704 --with-smtp-host=HOST SMTP mail host address
1705 --with-pid-dir=PATH specify location of Bacula pid files
1706 --with-subsys-dir=PATH specify location of Bacula subsys file
1707 --with-baseport=PORT specify base port address for daemons
1708 --with-dir-password=PASSWORD
1709 specify Director's password
1710 --with-fd-password=PASSWORD
1711 specify Client's password
1712 --with-sd-password=PASSWORD
1713 specify Storage daemon's password
1714 --with-mon-dir-password=PASSWORD
1715 specify Director's password used by the monitor
1716 --with-mon-fd-password=PASSWORD
1717 specify Client's password used by the monitor
1718 --with-mon-sd-password=PASSWORD
1719 specify Storage daemon's password used by the
1721 --with-db-name=DBNAME specify database name [default=bacula]
1722 --with-db-user=UNAME specify database user [default=bacula]
1723 --with-db-password=PWD specify database password [default=*none*]
1724 --with-db-port=DBPORT specify a database port [default=null]
1725 --with-dir-user=USER specify user for Director daemon
1726 --with-dir-group=GROUP specify group for Director daemon
1727 --with-sd-user=USER specify user for Storage daemon
1728 --with-sd-group=GROUP specify group for Storage daemon
1729 --with-fd-user=USER specify user for File daemon
1730 --with-fd-group=GROUP specify group for File daemon
1731 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1732 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733 base install directory, [default=/usr/local/pgsql]
1734 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1735 directory, default is to search through a number of
1736 common places for the MySQL files.
1737 --with-embedded-mysql[=DIR]
1738 Include MySQL support. DIR is the MySQL base install
1739 directory, default is to search through a number of
1740 common places for the MySQL files.
1741 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1742 install directory, default is to search through a
1743 number of common places for the SQLite3 files.
1744 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1745 install directory, default is to search through a
1746 number of common places for the SQLite files.
1747 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1748 directory, default is to search through a number of
1749 common places for the DBI files.
1750 --with-dbi-driver[=DRIVER]
1751 Suport for DBI driver. DRIVER is the one DBI driver
1752 like Mysql, Postgresql, others. Default is to not
1753 configure any driver.
1754 --with-x use the X Window System
1756 Some influential environment variables:
1757 CC C compiler command
1758 CFLAGS C compiler flags
1759 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1760 nonstandard directory <lib dir>
1761 LIBS libraries to pass to the linker, e.g. -l<library>
1762 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1763 you have headers in a nonstandard directory <include dir>
1764 CXX C++ compiler command
1765 CXXFLAGS C++ compiler flags
1767 WXCONFIG wx-config command. On some systems, you must set it to
1768 wx-config-2.6 to use wxWidgets 2.6.
1769 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1770 CXXCPP C++ preprocessor
1771 XMKMF Path to xmkmf, Makefile generator for X Window System
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1780 if test "$ac_init_help" = "recursive"; then
1781 # If there are subdirs, report their specific --help.
1782 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1783 test -d "$ac_dir" || continue
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1790 # A ".." for each directory in $ac_dir_suffix.
1791 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1792 case $ac_top_builddir_sub in
1793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1803 .) # We are building in place.
1805 ac_top_srcdir=$ac_top_builddir_sub
1806 ac_abs_top_srcdir=$ac_pwd ;;
1807 [\\/]* | ?:[\\/]* ) # Absolute name.
1808 ac_srcdir=$srcdir$ac_dir_suffix;
1809 ac_top_srcdir=$srcdir
1810 ac_abs_top_srcdir=$srcdir ;;
1812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813 ac_top_srcdir=$ac_top_build_prefix$srcdir
1814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1818 cd "$ac_dir" || { ac_status=$?; continue; }
1819 # Check for guested configure.
1820 if test -f "$ac_srcdir/configure.gnu"; then
1822 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823 elif test -f "$ac_srcdir/configure"; then
1825 $SHELL "$ac_srcdir/configure" --help=recursive
1827 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1829 cd "$ac_pwd" || { ac_status=$?; break; }
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1837 generated by GNU Autoconf 2.61
1839 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1840 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1841 This configure script is free software; the Free Software Foundation
1842 gives unlimited permission to copy, distribute and modify it.
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1850 It was created by $as_me, which was
1851 generated by GNU Autoconf 2.61. Invocation command line was
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 echo "PATH: $as_dir"
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1911 ac_must_keep_next=false
1917 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919 | -silent | --silent | --silen | --sile | --sil)
1922 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1927 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1928 if test $ac_must_keep_next = true; then
1929 ac_must_keep_next=false # Got value, back to normal.
1932 *=* | --config-cache | -C | -disable-* | --disable-* \
1933 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935 | -with-* | --with-* | -without-* | --without-* | --x)
1936 case "$ac_configure_args0 " in
1937 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1940 -* ) ac_must_keep_next=true ;;
1943 ac_configure_args="$ac_configure_args '$ac_arg'"
1948 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1949 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log. We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957 # Save into config.log some information that might help in debugging.
1962 ## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##
1967 # The following way of writing the cache mishandles newlines in values,
1969 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1970 eval ac_val=\$$ac_var
1974 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1975 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1978 _ | IFS | as_nl) ;; #(
1979 *) $as_unset $ac_var ;;
1984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985 *${as_nl}ac_space=\ *)
1987 "s/'\''/'\''\\\\'\'''\''/g;
1988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1999 ## ----------------- ##
2000 ## Output variables. ##
2001 ## ----------------- ##
2004 for ac_var in $ac_subst_vars
2006 eval ac_val=\$$ac_var
2008 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 echo "$ac_var='\''$ac_val'\''"
2014 if test -n "$ac_subst_files"; then
2016 ## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##
2021 for ac_var in $ac_subst_files
2023 eval ac_val=\$$ac_var
2025 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 echo "$ac_var='\''$ac_val'\''"
2032 if test -s confdefs.h; then
2042 test "$ac_signal" != 0 &&
2043 echo "$as_me: caught signal $ac_signal"
2044 echo "$as_me: exit $exit_status"
2046 rm -f core *.core core.conftest.* &&
2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 for ac_signal in 1 2 13 15; do
2051 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2058 # Predefined preprocessor variables.
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_NAME "$PACKAGE_NAME"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_STRING "$PACKAGE_STRING"
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2085 # Let the site file select an alternate cache file if it wants to.
2086 # Prefer explicitly selected file to automatically selected ones.
2087 if test -n "$CONFIG_SITE"; then
2088 set x "$CONFIG_SITE"
2089 elif test "x$prefix" != xNONE; then
2090 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2092 set x "$ac_default_prefix/share/config.site" \
2093 "$ac_default_prefix/etc/config.site"
2098 if test -r "$ac_site_file"; then
2099 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2100 echo "$as_me: loading site script $ac_site_file" >&6;}
2101 sed 's/^/| /' "$ac_site_file" >&5
2106 if test -r "$cache_file"; then
2107 # Some versions of bash will fail to source /dev/null (special
2108 # files actually), so we avoid doing that.
2109 if test -f "$cache_file"; then
2110 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2111 echo "$as_me: loading cache $cache_file" >&6;}
2113 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114 *) . "./$cache_file";;
2118 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2119 echo "$as_me: creating cache $cache_file" >&6;}
2123 # Check that the precious variables saved in the cache have kept the same
2125 ac_cache_corrupted=false
2126 for ac_var in $ac_precious_vars; do
2127 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128 eval ac_new_set=\$ac_env_${ac_var}_set
2129 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130 eval ac_new_val=\$ac_env_${ac_var}_value
2131 case $ac_old_set,$ac_new_set in
2133 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135 ac_cache_corrupted=: ;;
2137 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2138 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139 ac_cache_corrupted=: ;;
2142 if test "x$ac_old_val" != "x$ac_new_val"; then
2143 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2144 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2146 echo "$as_me: former value: $ac_old_val" >&2;}
2147 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2148 echo "$as_me: current value: $ac_new_val" >&2;}
2149 ac_cache_corrupted=:
2152 # Pass precious variables to config.status.
2153 if test "$ac_new_set" = set; then
2155 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156 *) ac_arg=$ac_var=$ac_new_val ;;
2158 case " $ac_configure_args " in
2159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2160 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2164 if $ac_cache_corrupted; then
2165 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2166 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2168 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2169 { (exit 1); exit 1; }; }
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2202 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2203 if test -f "$ac_dir/install-sh"; then
2205 ac_install_sh="$ac_aux_dir/install-sh -c"
2207 elif test -f "$ac_dir/install.sh"; then
2209 ac_install_sh="$ac_aux_dir/install.sh -c"
2211 elif test -f "$ac_dir/shtool"; then
2213 ac_install_sh="$ac_aux_dir/shtool install -c"
2217 if test -z "$ac_aux_dir"; then
2218 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2219 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2220 { (exit 1); exit 1; }; }
2223 # These three variables are undocumented and unsupported,
2224 # and are intended to be withdrawn in a future Autoconf release.
2225 # They can cause serious problems if a builder's source tree is in a directory
2226 # whose full name contains unusual characters.
2227 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2228 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2229 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2232 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2235 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2236 WIN32MAINDIR=${BUILD_DIR}
2237 WIN32TOPDIR=${TOP_DIR}
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 TRUEPRG=$ac_cv_path_TRUEPRG
2278 if test -n "$TRUEPRG"; then
2279 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2280 echo "${ECHO_T}$TRUEPRG" >&6; }
2282 { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2287 test -n "$TRUEPRG" && break
2289 test -n "$TRUEPRG" || TRUEPRG=":"
2291 for ac_prog in false
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 FALSEPRG=$ac_cv_path_FALSEPRG
2324 if test -n "$FALSEPRG"; then
2325 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2326 echo "${ECHO_T}$FALSEPRG" >&6; }
2328 { echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6; }
2333 test -n "$FALSEPRG" && break
2335 test -n "$FALSEPRG" || FALSEPRG=":"
2340 if test "x$BACULA" != x; then
2341 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2343 BACULA=${BACULA:-Bacula}
2344 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2345 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2346 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2347 echo "configuring for ${BACULA} $VERSION ($DATE)"
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_CC+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -n "$CC"; then
2364 ac_cv_prog_CC="$CC" # Let the user override the test.
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 if test -n "$CC"; then
2385 { echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6; }
2388 { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2394 if test -z "$ac_cv_prog_CC"; then
2396 # Extract the first word of "gcc", so it can be a program name with args.
2397 set dummy gcc; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$ac_ct_CC"; then
2404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413 ac_cv_prog_ac_ct_CC="gcc"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6; }
2428 { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2432 if test "x$ac_ct_CC" = x; then
2435 case $cross_compiling:$ac_tool_warned in
2437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet. If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&5
2440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet. If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2443 ac_tool_warned=yes ;;
2451 if test -z "$CC"; then
2452 if test -n "$ac_tool_prefix"; then
2453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_CC="${ac_tool_prefix}cc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 if test -n "$CC"; then
2482 { echo "$as_me:$LINENO: result: $CC" >&5
2483 echo "${ECHO_T}$CC" >&6; }
2485 { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2492 if test -z "$CC"; then
2493 # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_CC+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2512 ac_prog_rejected=yes
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test $ac_prog_rejected = yes; then
2524 # We found a bogon in the path, so make sure we never use it.
2525 set dummy $ac_cv_prog_CC
2527 if test $# != 0; then
2528 # We chose a different compiler from the bogus one.
2529 # However, it has the same basename, so the bogon will be chosen
2530 # first if we set CC to just the basename; use the full file name.
2532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2538 if test -n "$CC"; then
2539 { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2542 { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2548 if test -z "$CC"; then
2549 if test -n "$ac_tool_prefix"; then
2550 for ac_prog in cl.exe
2552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_CC+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 if test -n "$CC"; then
2581 { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2589 test -n "$CC" && break
2592 if test -z "$CC"; then
2594 for ac_prog in cl.exe
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$ac_ct_CC"; then
2604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_ac_ct_CC="$ac_prog"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2626 echo "${ECHO_T}$ac_ct_CC" >&6; }
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2633 test -n "$ac_ct_CC" && break
2636 if test "x$ac_ct_CC" = x; then
2639 case $cross_compiling:$ac_tool_warned in
2641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet. If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&5
2644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet. If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2647 ac_tool_warned=yes ;;
2656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: no acceptable C compiler found in \$PATH
2659 See \`config.log' for more details." >&2;}
2660 { (exit 1); exit 1; }; }
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO: checking for C compiler version" >&5
2664 ac_compiler=`set X $ac_compile; echo $2`
2665 { (ac_try="$ac_compiler --version >&5"
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_compiler --version >&5") 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }
2675 { (ac_try="$ac_compiler -v >&5"
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compiler -v >&5") 2>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2685 { (ac_try="$ac_compiler -V >&5"
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compiler -V >&5") 2>&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2711 ac_clean_files_save=$ac_clean_files
2712 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2713 # Try to create an executable without -o first, disregard a.out.
2714 # It will help us diagnose broken compilers, and finding out an intuition
2716 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2717 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2718 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2720 # List of possible output files, starting from the most likely.
2721 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2722 # only as a last resort. b.out is created by i960 compilers.
2723 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2725 # The IRIX 6 linker writes into existing files which may not be
2726 # executable, retaining their permissions. Remove them first so a
2727 # subsequent execution test works.
2729 for ac_file in $ac_files
2732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2733 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738 if { (ac_try="$ac_link_default"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_link_default") 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; then
2748 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2749 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2750 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2751 # so that the user can short-circuit this test for compilers unknown to
2753 for ac_file in $ac_files ''
2755 test -f "$ac_file" || continue
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2760 # We found the default executable, but exeext='' is most
2764 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2766 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2768 # We set ac_cv_exeext here because the later test for it is not
2769 # safe: cross compilers may not add the suffix if given an `-o'
2770 # argument, so we may need to know it at that point already.
2771 # Even if this section looks crufty: it has the advantage of
2778 test "$ac_cv_exeext" = no && ac_cv_exeext=
2784 { echo "$as_me:$LINENO: result: $ac_file" >&5
2785 echo "${ECHO_T}$ac_file" >&6; }
2786 if test -z "$ac_file"; then
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794 { (exit 77); exit 77; }; }
2797 ac_exeext=$ac_cv_exeext
2799 # Check that the compiler produces executables we can run. If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806 if { ac_try='./$ac_file'
2807 { (case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_try") 2>&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2818 if test "$cross_compiling" = maybe; then
2821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_link") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
2855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2859 for ac_file in conftest.exe conftest conftest.*; do
2860 test -f "$ac_file" || continue
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873 { (exit 1); exit 1; }; }
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compile") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
2914 for ac_file in conftest.o conftest.obj conftest.*; do
2915 test -f "$ac_file" || continue;
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930 { (exit 1); exit 1; }; }
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } && {
2976 test -z "$ac_c_werror_flag" ||
2977 test ! -s conftest.err
2978 } && test -s conftest.$ac_objext; then
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2991 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2993 GCC=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CFLAGS=${CFLAGS+set}
2995 ac_save_CFLAGS=$CFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2997 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cc_g+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 ac_save_c_werror_flag=$ac_c_werror_flag
3002 ac_c_werror_flag=yes
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } && {
3034 test -z "$ac_c_werror_flag" ||
3035 test ! -s conftest.err
3036 } && test -s conftest.$ac_objext; then
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 ac_c_werror_flag=$ac_save_c_werror_flag
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3132 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3133 if test "$ac_test_CFLAGS" = set; then
3134 CFLAGS=$ac_save_CFLAGS
3135 elif test $ac_cv_prog_cc_g = yes; then
3136 if test "$GCC" = yes; then
3142 if test "$GCC" = yes; then
3148 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3149 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_c89+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 ac_cv_prog_cc_c89=no
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3163 #include <sys/types.h>
3164 #include <sys/stat.h>
3165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3166 struct buf { int x; };
3167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168 static char *e (p, i)
3174 static char *f (char * (*g) (char **, int), char **p, ...)
3179 s = g (p, va_arg (v,int));
3184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3185 function prototypes and stuff, but not '\xHH' hex character constants.
3186 These don't provoke an error unfortunately, instead are silently treated
3187 as 'x'. The following induces an error, until -std is added to get
3188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3189 array size at least. It's necessary to write '\x00'==0 to get something
3190 that's true only with -std. */
3191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194 inside strings and character constants. */
3196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3198 int test (int i, double x);
3199 struct s1 {int (*f) (int a);};
3200 struct s2 {int (*f) (double a);};
3201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3215 CC="$ac_save_CC $ac_arg"
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compile") 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } && {
3230 test -z "$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 } && test -s conftest.$ac_objext; then
3233 ac_cv_prog_cc_c89=$ac_arg
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3241 rm -f core conftest.err conftest.$ac_objext
3242 test "x$ac_cv_prog_cc_c89" != "xno" && break
3244 rm -f conftest.$ac_ext
3249 case "x$ac_cv_prog_cc_c89" in
3251 { echo "$as_me:$LINENO: result: none needed" >&5
3252 echo "${ECHO_T}none needed" >&6; } ;;
3254 { echo "$as_me:$LINENO: result: unsupported" >&5
3255 echo "${ECHO_T}unsupported" >&6; } ;;
3257 CC="$CC $ac_cv_prog_cc_c89"
3258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 ac_cpp='$CXXCPP $CPPFLAGS'
3271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3274 if test -z "$CXX"; then
3275 if test -n "$CCC"; then
3278 if test -n "$ac_tool_prefix"; then
3279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_CXX+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 if test -n "$CXX"; then
3289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 if test -n "$CXX"; then
3310 { echo "$as_me:$LINENO: result: $CXX" >&5
3311 echo "${ECHO_T}$CXX" >&6; }
3313 { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3318 test -n "$CXX" && break
3321 if test -z "$CXX"; then
3323 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 if test -n "$ac_ct_CXX"; then
3333 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_prog_ac_ct_CXX="$ac_prog"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3353 if test -n "$ac_ct_CXX"; then
3354 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3355 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3357 { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3362 test -n "$ac_ct_CXX" && break
3365 if test "x$ac_ct_CXX" = x; then
3368 case $cross_compiling:$ac_tool_warned in
3370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet. If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&5
3373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet. If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3376 ac_tool_warned=yes ;;
3384 # Provide some information about the compiler.
3385 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3386 ac_compiler=`set X $ac_compile; echo $2`
3387 { (ac_try="$ac_compiler --version >&5"
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compiler --version >&5") 2>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }
3397 { (ac_try="$ac_compiler -v >&5"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compiler -v >&5") 2>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }
3407 { (ac_try="$ac_compiler -V >&5"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_compiler -V >&5") 2>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }
3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3419 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3420 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_cxx_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3470 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3472 GXX=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CXXFLAGS=${CXXFLAGS+set}
3474 ac_save_CXXFLAGS=$CXXFLAGS
3475 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3477 if test "${ac_cv_prog_cxx_g+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3481 ac_cxx_werror_flag=yes
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_compile") 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } && {
3513 test -z "$ac_cxx_werror_flag" ||
3514 test ! -s conftest.err
3515 } && test -s conftest.$ac_objext; then
3516 ac_cv_prog_cxx_g=yes
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compile") 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } && {
3551 test -z "$ac_cxx_werror_flag" ||
3552 test ! -s conftest.err
3553 } && test -s conftest.$ac_objext; then
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_cxx_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_cv_prog_cxx_g=yes
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3611 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3612 if test "$ac_test_CXXFLAGS" = set; then
3613 CXXFLAGS=$ac_save_CXXFLAGS
3614 elif test $ac_cv_prog_cxx_g = yes; then
3615 if test "$GXX" = yes; then
3621 if test "$GXX" = yes; then
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 if test "x$CC" != xcc; then
3634 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3635 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3637 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3638 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3640 set dummy $CC; ac_cc=`echo $2 |
3641 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3642 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3660 # Make sure it works both with $CC and with simple cc.
3661 # We do the test twice because some compilers refuse to overwrite an
3662 # existing .o file with -o, though they will create one.
3663 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3665 if { (case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_try") 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_try") 2>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); };
3684 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3685 if test "x$CC" != xcc; then
3686 # Test first that cc exists at all.
3687 if { ac_try='cc -c conftest.$ac_ext >&5'
3688 { (case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_try") 2>&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3699 if { (case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_try") 2>&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_try") 2>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); };
3721 # cc exists but doesn't like -o.
3722 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3727 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3729 rm -f core conftest*
3732 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3733 { echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6; }
3736 { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
3739 cat >>confdefs.h <<\_ACEOF
3740 #define NO_MINUS_C_MINUS_O 1
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3752 # On Suns, sometimes $CPP names a directory.
3753 if test -n "$CPP" && test -d "$CPP"; then
3756 if test -z "$CPP"; then
3757 if test "${ac_cv_prog_CPP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 # Double quotes because CPP needs to be expanded
3761 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3764 for ac_c_preproc_warn_flag in '' yes
3766 # Use a header file that comes with gcc, so configuring glibc
3767 # with a fresh cross-compiler works.
3768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769 # <limits.h> exists even on freestanding compilers.
3770 # On the NeXT, cc -E runs the code through the compiler's parser,
3771 # not just through cpp. "Syntax error" is here to catch this case.
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3779 # include <limits.h>
3781 # include <assert.h>
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3793 grep -v '^ *+' conftest.er1 >conftest.err
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } >/dev/null && {
3798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 # Broken: fails on valid input.
3810 rm -f conftest.err conftest.$ac_ext
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev/null && {
3835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3838 # Broken: success on invalid input.
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Passes both tests.
3849 rm -f conftest.err conftest.$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3866 { echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6; }
3869 for ac_c_preproc_warn_flag in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3884 # include <limits.h>
3886 # include <assert.h>
3890 if { (ac_try="$ac_cpp conftest.$ac_ext"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } >/dev/null && {
3903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 # Broken: fails on valid input.
3915 rm -f conftest.err conftest.$ac_ext
3917 # OK, works on sane cases. Now check whether nonexistent headers
3918 # can be detected and how.
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 #include <ac_nonexistent.h>
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null && {
3940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3943 # Broken: success on invalid input.
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 # Passes both tests.
3954 rm -f conftest.err conftest.$ac_ext
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3962 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&2;}
3966 { (exit 1); exit 1; }; }
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3977 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 # Extract the first word of "grep ggrep" to use in msg output
3982 if test -z "$GREP"; then
3983 set dummy grep ggrep; ac_prog_name=$2
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 ac_path_GREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3993 test -z "$as_dir" && as_dir=.
3994 for ac_prog in grep ggrep; do
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3997 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3998 # Check for GNU ac_path_GREP and select it if it is found.
3999 # Check for GNU $ac_path_GREP
4000 case `"$ac_path_GREP" --version 2>&1` in
4002 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4005 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4008 cat "conftest.in" "conftest.in" >"conftest.tmp"
4009 mv "conftest.tmp" "conftest.in"
4010 cp "conftest.in" "conftest.nl"
4011 echo 'GREP' >> "conftest.nl"
4012 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014 ac_count=`expr $ac_count + 1`
4015 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4016 # Best one so far, save it but keep looking for a better one
4017 ac_cv_path_GREP="$ac_path_GREP"
4018 ac_path_GREP_max=$ac_count
4020 # 10*(2^10) chars as input seems more than enough
4021 test $ac_count -gt 10 && break
4023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027 $ac_path_GREP_found && break 3
4037 GREP="$ac_cv_path_GREP"
4038 if test -z "$GREP"; then
4039 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041 { (exit 1); exit 1; }; }
4045 ac_cv_path_GREP=$GREP
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4052 GREP="$ac_cv_path_GREP"
4055 { echo "$as_me:$LINENO: checking for egrep" >&5
4056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061 then ac_cv_path_EGREP="$GREP -E"
4063 # Extract the first word of "egrep" to use in msg output
4064 if test -z "$EGREP"; then
4065 set dummy egrep; ac_prog_name=$2
4066 if test "${ac_cv_path_EGREP+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_path_EGREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4075 test -z "$as_dir" && as_dir=.
4076 for ac_prog in egrep; do
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4080 # Check for GNU ac_path_EGREP and select it if it is found.
4081 # Check for GNU $ac_path_EGREP
4082 case `"$ac_path_EGREP" --version 2>&1` in
4084 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4087 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4090 cat "conftest.in" "conftest.in" >"conftest.tmp"
4091 mv "conftest.tmp" "conftest.in"
4092 cp "conftest.in" "conftest.nl"
4093 echo 'EGREP' >> "conftest.nl"
4094 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096 ac_count=`expr $ac_count + 1`
4097 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098 # Best one so far, save it but keep looking for a better one
4099 ac_cv_path_EGREP="$ac_path_EGREP"
4100 ac_path_EGREP_max=$ac_count
4102 # 10*(2^10) chars as input seems more than enough
4103 test $ac_count -gt 10 && break
4105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 $ac_path_EGREP_found && break 3
4119 EGREP="$ac_cv_path_EGREP"
4120 if test -z "$EGREP"; then
4121 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123 { (exit 1); exit 1; }; }
4127 ac_cv_path_EGREP=$EGREP
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4135 EGREP="$ac_cv_path_EGREP"
4138 if test $ac_cv_c_compiler_gnu = yes; then
4139 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4140 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 ac_pattern="Autoconf.*'x'"
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156 ac_cv_prog_gcc_traditional=yes
4158 ac_cv_prog_gcc_traditional=no
4163 if test $ac_cv_prog_gcc_traditional = no; then
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4175 ac_cv_prog_gcc_traditional=yes
4181 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4182 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4183 if test $ac_cv_prog_gcc_traditional = yes; then
4184 CC="$CC -traditional"
4188 BASECC=`basename $CC`
4190 if test "x$BASECC" = xgcc; then
4191 cat >>confdefs.h <<\_ACEOF
4197 # Extract the first word of "$CXX", so it can be a program name with args.
4198 set dummy $CXX; ac_word=$2
4199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4201 if test "${ac_cv_path_CXX+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4229 if test -n "$CXX"; then
4230 { echo "$as_me:$LINENO: result: $CXX" >&5
4231 echo "${ECHO_T}$CXX" >&6; }
4233 { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4238 if test ! -e $CXX; then
4239 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4240 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4241 { (exit 1); exit 1; }; }
4244 # Find a good install program. We prefer a C program (faster),
4245 # so one script is as good as another. But avoid the broken or
4246 # incompatible versions:
4247 # SysV /etc/install, /usr/sbin/install
4248 # SunOS /usr/etc/install
4249 # IRIX /sbin/install
4251 # AmigaOS /C/install, which installs bootblocks on floppy discs
4252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4255 # OS/2's system install, which has a completely different semantic
4256 # ./install, which can be erroneously created by make from ./install.sh.
4257 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4258 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4259 if test -z "$INSTALL"; then
4260 if test "${ac_cv_path_install+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 test -z "$as_dir" && as_dir=.
4268 # Account for people who put trailing slashes in PATH elements.
4270 ./ | .// | /cC/* | \
4271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4272 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4275 # OSF1 and SCO ODT 3.0 have their own names for install.
4276 # Don't use installbsd from OSF since it installs stuff as root
4278 for ac_prog in ginstall scoinst install; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4281 if test $ac_prog = install &&
4282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283 # AIX install. It has an incompatible calling convention.
4285 elif test $ac_prog = install &&
4286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287 # program-specific install script used by HP pwplus--don't use.
4290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4303 if test "${ac_cv_path_install+set}" = set; then
4304 INSTALL=$ac_cv_path_install
4306 # As a last resort, use the slow shell script. Don't cache a
4307 # value for INSTALL within a source directory, because that will
4308 # break other packages using the cache if that directory is
4309 # removed, or if the value is a relative name.
4310 INSTALL=$ac_install_sh
4313 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4314 echo "${ECHO_T}$INSTALL" >&6; }
4316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4317 # It thinks the first close brace ends the variable substitution.
4318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4324 # Extract the first word of "mv", so it can be a program name with args.
4325 set dummy mv; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_path_MV+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4356 if test -n "$MV"; then
4357 { echo "$as_me:$LINENO: result: $MV" >&5
4358 echo "${ECHO_T}$MV" >&6; }
4360 { echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6; }
4365 # Extract the first word of "rm", so it can be a program name with args.
4366 set dummy rm; ac_word=$2
4367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4369 if test "${ac_cv_path_REMOVE+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4396 REMOVE=$ac_cv_path_REMOVE
4397 if test -n "$REMOVE"; then
4398 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4399 echo "${ECHO_T}$REMOVE" >&6; }
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4406 # Extract the first word of "cp", so it can be a program name with args.
4407 set dummy cp; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_path_CP+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4438 if test -n "$CP"; then
4439 { echo "$as_me:$LINENO: result: $CP" >&5
4440 echo "${ECHO_T}$CP" >&6; }
4442 { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4447 # Extract the first word of "sed", so it can be a program name with args.
4448 set dummy sed; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_SED+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4479 if test -n "$SED"; then
4480 { echo "$as_me:$LINENO: result: $SED" >&5
4481 echo "${ECHO_T}$SED" >&6; }
4483 { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4488 # Extract the first word of "echo", so it can be a program name with args.
4489 set dummy echo; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_ECHO+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4519 ECHO=$ac_cv_path_ECHO
4520 if test -n "$ECHO"; then
4521 { echo "$as_me:$LINENO: result: $ECHO" >&5
4522 echo "${ECHO_T}$ECHO" >&6; }
4524 { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4529 # Extract the first word of "cmp", so it can be a program name with args.
4530 set dummy cmp; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_path_CMP+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4561 if test -n "$CMP"; then
4562 { echo "$as_me:$LINENO: result: $CMP" >&5
4563 echo "${ECHO_T}$CMP" >&6; }
4565 { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4570 # Extract the first word of "tbl", so it can be a program name with args.
4571 set dummy tbl; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_path_TBL+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4602 if test -n "$TBL"; then
4603 { echo "$as_me:$LINENO: result: $TBL" >&5
4604 echo "${ECHO_T}$TBL" >&6; }
4606 { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4611 # Extract the first word of "ar", so it can be a program name with args.
4612 set dummy ar; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_path_AR+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4643 if test -n "$AR"; then
4644 { echo "$as_me:$LINENO: result: $AR" >&5
4645 echo "${ECHO_T}$AR" >&6; }
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4652 # Extract the first word of "openssl", so it can be a program name with args.
4653 set dummy openssl; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_path_OPENSSL+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4683 OPENSSL=$ac_cv_path_OPENSSL
4684 if test -n "$OPENSSL"; then
4685 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4686 echo "${ECHO_T}$OPENSSL" >&6; }
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4693 # Extract the first word of "mtx", so it can be a program name with args.
4694 set dummy mtx; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_path_MTX+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4725 if test -n "$MTX"; then
4726 { echo "$as_me:$LINENO: result: $MTX" >&5
4727 echo "${ECHO_T}$MTX" >&6; }
4729 { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4734 # Extract the first word of "dd", so it can be a program name with args.
4735 set dummy dd; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_path_DD+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4766 if test -n "$DD"; then
4767 { echo "$as_me:$LINENO: result: $DD" >&5
4768 echo "${ECHO_T}$DD" >&6; }
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4775 # Extract the first word of "mkisofs", so it can be a program name with args.
4776 set dummy mkisofs; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_path_MKISOFS+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4806 MKISOFS=$ac_cv_path_MKISOFS
4807 if test -n "$MKISOFS"; then
4808 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4809 echo "${ECHO_T}$MKISOFS" >&6; }
4811 { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4816 # Extract the first word of "python", so it can be a program name with args.
4817 set dummy python; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_PYTHON+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4847 PYTHON=$ac_cv_path_PYTHON
4848 if test -n "$PYTHON"; then
4849 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4850 echo "${ECHO_T}$PYTHON" >&6; }
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4857 # Extract the first word of "growisofs", so it can be a program name with args.
4858 set dummy growisofs; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4888 GROWISOFS=$ac_cv_path_GROWISOFS
4889 if test -n "$GROWISOFS"; then
4890 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4891 echo "${ECHO_T}$GROWISOFS" >&6; }
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4898 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4899 set dummy dvd+rw-mediainfo; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 case $DVDRWMEDIAINFO in
4907 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4929 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4930 if test -n "$DVDRWMEDIAINFO"; then
4931 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4932 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4934 { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4939 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4940 set dummy dvd+rw-format; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 case $DVDRWFORMAT in
4948 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4970 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4971 if test -n "$DVDRWFORMAT"; then
4972 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4973 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4975 { echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; }
4980 # Extract the first word of "pkg-config", so it can be a program name with args.
4981 set dummy pkg-config; ac_word=$2
4982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5011 PKGCONFIG=$ac_cv_path_PKGCONFIG
5012 if test -n "$PKGCONFIG"; then
5013 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5014 echo "${ECHO_T}$PKGCONFIG" >&6; }
5016 { echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6; }
5021 # Extract the first word of "qmake", so it can be a program name with args.
5022 set dummy qmake; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_path_QMAKE+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5052 QMAKE=$ac_cv_path_QMAKE
5053 if test -n "$QMAKE"; then
5054 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5055 echo "${ECHO_T}$QMAKE" >&6; }
5057 { echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6; }
5062 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5063 set dummy qmake-qt4; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5093 QMAKEQT4=$ac_cv_path_QMAKEQT4
5094 if test -n "$QMAKEQT4"; then
5095 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5096 echo "${ECHO_T}$QMAKEQT4" >&6; }
5098 { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5103 # Extract the first word of "gmake", so it can be a program name with args.
5104 set dummy gmake; 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_GMAKE+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 ac_cv_path_GMAKE="$GMAKE" # 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_GMAKE="$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_GMAKE" && ac_cv_path_GMAKE="none"
5134 GMAKE=$ac_cv_path_GMAKE
5135 if test -n "$GMAKE"; then
5136 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5137 echo "${ECHO_T}$GMAKE" >&6; }
5139 { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5145 if test "x$WXCONFIG" = x; then
5148 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5149 set dummy ${WXCONFIG}; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5179 WXCONFIG=$ac_cv_path_WXCONFIG
5180 if test -n "$WXCONFIG"; then
5181 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5182 echo "${ECHO_T}$WXCONFIG" >&6; }
5184 { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5190 # Extract the first word of "cdrecord", so it can be a program name with args.
5191 set dummy cdrecord; ac_word=$2
5192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_CDRECORD+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5221 CDRECORD=$ac_cv_path_CDRECORD
5222 if test -n "$CDRECORD"; then
5223 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5224 echo "${ECHO_T}$CDRECORD" >&6; }
5226 { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5231 # Extract the first word of "pidof", so it can be a program name with args.
5232 set dummy pidof; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_path_PIDOF+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5262 PIDOF=$ac_cv_path_PIDOF
5263 if test -n "$PIDOF"; then
5264 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5265 echo "${ECHO_T}$PIDOF" >&6; }
5267 { echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6; }
5272 for ac_prog in gawk mawk nawk awk
5274 # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 set dummy $ac_prog; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_AWK+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 if test -n "$AWK"; then
5282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_prog_AWK="$ac_prog"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 if test -n "$AWK"; then
5303 { echo "$as_me:$LINENO: result: $AWK" >&5
5304 echo "${ECHO_T}$AWK" >&6; }
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5311 test -n "$AWK" && break
5314 # Some AWK programs fail, so test it and warn the user
5315 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5316 { if ((prog == $2) || (("(" prog ")") == $2) ||
5317 (("" prog "") == $2) ||
5318 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5320 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5321 The regex engine of $AWK is too broken to be used you
5322 might want to install GNU AWK.
5323 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5324 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5325 The regex engine of $AWK is too broken to be used you
5326 might want to install GNU AWK.
5327 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5328 { (exit 1); exit 1; }; }
5331 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5332 set dummy $THE_AWK; ac_word=$2
5333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5335 if test "${ac_cv_path_AWK+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5363 if test -n "$AWK"; then
5364 { echo "$as_me:$LINENO: result: $AWK" >&5
5365 echo "${ECHO_T}$AWK" >&6; }
5367 { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5374 test -n "$ARFLAG" || ARFLAGS="cr"
5385 # Check whether --enable-libtool was given.
5386 if test "${enable_libtool+set}" = set; then
5387 enableval=$enable_libtool;
5388 if test x$enableval = xno; then
5397 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5398 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5403 macro_version='2.2.6'
5404 macro_revision='1.3012'
5418 ltmain="$ac_aux_dir/ltmain.sh"
5420 # Make sure we can run config.sub.
5421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5422 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5423 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5424 { (exit 1); exit 1; }; }
5426 { echo "$as_me:$LINENO: checking build system type" >&5
5427 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5428 if test "${ac_cv_build+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 ac_build_alias=$build_alias
5432 test "x$ac_build_alias" = x &&
5433 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5434 test "x$ac_build_alias" = x &&
5435 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5437 { (exit 1); exit 1; }; }
5438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5439 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5440 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5441 { (exit 1); exit 1; }; }
5444 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5445 echo "${ECHO_T}$ac_cv_build" >&6; }
5446 case $ac_cv_build in
5448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5449 echo "$as_me: error: invalid value of canonical build" >&2;}
5450 { (exit 1); exit 1; }; };;
5453 ac_save_IFS=$IFS; IFS='-'
5459 # Remember, the first character of IFS is used to create $*,
5460 # except with old shells:
5463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5466 { echo "$as_me:$LINENO: checking host system type" >&5
5467 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5468 if test "${ac_cv_host+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 if test "x$host_alias" = x; then
5472 ac_cv_host=$ac_cv_build
5474 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5475 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5477 { (exit 1); exit 1; }; }
5481 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5482 echo "${ECHO_T}$ac_cv_host" >&6; }
5485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5486 echo "$as_me: error: invalid value of canonical host" >&2;}
5487 { (exit 1); exit 1; }; };;
5490 ac_save_IFS=$IFS; IFS='-'
5496 # Remember, the first character of IFS is used to create $*,
5497 # except with old shells:
5500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5503 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5504 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5505 if test "${ac_cv_path_SED+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5509 for ac_i in 1 2 3 4 5 6 7; do
5510 ac_script="$ac_script$as_nl$ac_script"
5512 echo "$ac_script" | sed 99q >conftest.sed
5513 $as_unset ac_script || ac_script=
5514 # Extract the first word of "sed gsed" to use in msg output
5515 if test -z "$SED"; then
5516 set dummy sed gsed; ac_prog_name=$2
5517 if test "${ac_cv_path_SED+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 ac_path_SED_found=false
5521 # Loop through the user's path and test for each of PROGNAME-LIST
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir=.
5527 for ac_prog in sed gsed; do
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5530 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5531 # Check for GNU ac_path_SED and select it if it is found.
5532 # Check for GNU $ac_path_SED
5533 case `"$ac_path_SED" --version 2>&1` in
5535 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5538 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5541 cat "conftest.in" "conftest.in" >"conftest.tmp"
5542 mv "conftest.tmp" "conftest.in"
5543 cp "conftest.in" "conftest.nl"
5544 echo '' >> "conftest.nl"
5545 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5547 ac_count=`expr $ac_count + 1`
5548 if test $ac_count -gt ${ac_path_SED_max-0}; then
5549 # Best one so far, save it but keep looking for a better one
5550 ac_cv_path_SED="$ac_path_SED"
5551 ac_path_SED_max=$ac_count
5553 # 10*(2^10) chars as input seems more than enough
5554 test $ac_count -gt 10 && break
5556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5560 $ac_path_SED_found && break 3
5570 SED="$ac_cv_path_SED"
5571 if test -z "$SED"; then
5572 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5573 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5574 { (exit 1); exit 1; }; }
5582 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5583 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5584 SED="$ac_cv_path_SED"
5587 test -z "$SED" && SED=sed
5588 Xsed="$SED -e 1s/^X//"
5600 { echo "$as_me:$LINENO: checking for fgrep" >&5
5601 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5602 if test "${ac_cv_path_FGREP+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5606 then ac_cv_path_FGREP="$GREP -F"
5608 # Extract the first word of "fgrep" to use in msg output
5609 if test -z "$FGREP"; then
5610 set dummy fgrep; ac_prog_name=$2
5611 if test "${ac_cv_path_FGREP+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 ac_path_FGREP_found=false
5615 # Loop through the user's path and test for each of PROGNAME-LIST
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5620 test -z "$as_dir" && as_dir=.
5621 for ac_prog in fgrep; do
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5624 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5625 # Check for GNU ac_path_FGREP and select it if it is found.
5626 # Check for GNU $ac_path_FGREP
5627 case `"$ac_path_FGREP" --version 2>&1` in
5629 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5632 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5635 cat "conftest.in" "conftest.in" >"conftest.tmp"
5636 mv "conftest.tmp" "conftest.in"
5637 cp "conftest.in" "conftest.nl"
5638 echo 'FGREP' >> "conftest.nl"
5639 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5641 ac_count=`expr $ac_count + 1`
5642 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5643 # Best one so far, save it but keep looking for a better one
5644 ac_cv_path_FGREP="$ac_path_FGREP"
5645 ac_path_FGREP_max=$ac_count
5647 # 10*(2^10) chars as input seems more than enough
5648 test $ac_count -gt 10 && break
5650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5654 $ac_path_FGREP_found && break 3
5664 FGREP="$ac_cv_path_FGREP"
5665 if test -z "$FGREP"; then
5666 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5667 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5668 { (exit 1); exit 1; }; }
5672 ac_cv_path_FGREP=$FGREP
5678 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5679 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5680 FGREP="$ac_cv_path_FGREP"
5683 test -z "$GREP" && GREP=grep
5703 # Check whether --with-gnu-ld was given.
5704 if test "${with_gnu_ld+set}" = set; then
5705 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5711 if test "$GCC" = yes; then
5712 # Check if gcc -print-prog-name=ld gives a path.
5713 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5714 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5717 # gcc leaves a trailing carriage return which upsets mingw
5718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5723 # Accept absolute paths.
5725 re_direlt='/[^/][^/]*/\.\./'
5726 # Canonicalize the pathname of ld
5727 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5728 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5729 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5731 test -z "$LD" && LD="$ac_prog"
5734 # If it fails, then pretend we aren't using GCC.
5738 # If it is relative, then search for the first ld in PATH.
5742 elif test "$with_gnu_ld" = yes; then
5743 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5744 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5746 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5747 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5749 if test "${lt_cv_path_LD+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 if test -z "$LD"; then
5753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5754 for ac_dir in $PATH; do
5756 test -z "$ac_dir" && ac_dir=.
5757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5758 lt_cv_path_LD="$ac_dir/$ac_prog"
5759 # Check to see if the program is GNU ld. I'd rather use --version,
5760 # but apparently some variants of GNU ld only accept -v.
5761 # Break only if it was the GNU/non-GNU ld that we prefer.
5762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5763 *GNU* | *'with BFD'*)
5764 test "$with_gnu_ld" != no && break
5767 test "$with_gnu_ld" != yes && break
5774 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5779 if test -n "$LD"; then
5780 { echo "$as_me:$LINENO: result: $LD" >&5
5781 echo "${ECHO_T}$LD" >&6; }
5783 { echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6; }
5786 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5787 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5788 { (exit 1); exit 1; }; }
5789 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5790 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5791 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5795 case `$LD -v 2>&1 </dev/null` in
5796 *GNU* | *'with BFD'*)
5797 lt_cv_prog_gnu_ld=yes
5800 lt_cv_prog_gnu_ld=no
5804 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5805 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5806 with_gnu_ld=$lt_cv_prog_gnu_ld
5816 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5817 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5818 if test "${lt_cv_path_NM+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 if test -n "$NM"; then
5822 # Let the user override the test.
5825 lt_nm_to_check="${ac_tool_prefix}nm"
5826 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5827 lt_nm_to_check="$lt_nm_to_check nm"
5829 for lt_tmp_nm in $lt_nm_to_check; do
5830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5831 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5833 test -z "$ac_dir" && ac_dir=.
5834 tmp_nm="$ac_dir/$lt_tmp_nm"
5835 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5836 # Check to see if the nm accepts a BSD-compat flag.
5837 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5838 # nm: unknown option "B" ignored
5839 # Tru64's nm complains that /dev/null is an invalid object file
5840 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5841 */dev/null* | *'Invalid file or object type'*)
5842 lt_cv_path_NM="$tmp_nm -B"
5846 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5848 lt_cv_path_NM="$tmp_nm -p"
5852 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5853 continue # so that we can try to find one that supports BSD flags
5862 : ${lt_cv_path_NM=no}
5865 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5866 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5867 if test "$lt_cv_path_NM" != "no"; then
5870 # Didn't find any BSD compatible name lister, look for dumpbin.
5871 if test -n "$ac_tool_prefix"; then
5872 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5875 set dummy $ac_tool_prefix$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_DUMPBIN+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 if test -n "$DUMPBIN"; then
5882 ac_cv_prog_DUMPBIN="$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_DUMPBIN="$ac_tool_prefix$ac_prog"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 DUMPBIN=$ac_cv_prog_DUMPBIN
5902 if test -n "$DUMPBIN"; then
5903 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5904 echo "${ECHO_T}$DUMPBIN" >&6; }
5906 { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5911 test -n "$DUMPBIN" && break
5914 if test -z "$DUMPBIN"; then
5915 ac_ct_DUMPBIN=$DUMPBIN
5916 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5918 # Extract the first word of "$ac_prog", so it can be a program name with args.
5919 set dummy $ac_prog; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 if test -n "$ac_ct_DUMPBIN"; then
5926 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5946 if test -n "$ac_ct_DUMPBIN"; then
5947 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5948 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5950 { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5955 test -n "$ac_ct_DUMPBIN" && break
5958 if test "x$ac_ct_DUMPBIN" = x; then
5961 case $cross_compiling:$ac_tool_warned in
5963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5964 whose name does not start with the host triplet. If you think this
5965 configuration is useful to you, please write to autoconf@gnu.org." >&5
5966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5967 whose name does not start with the host triplet. If you think this
5968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5969 ac_tool_warned=yes ;;
5971 DUMPBIN=$ac_ct_DUMPBIN
5976 if test "$DUMPBIN" != ":"; then
5980 test -z "$NM" && NM=nm
5987 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5988 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5989 if test "${lt_cv_nm_interface+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 lt_cv_nm_interface="BSD nm"
5993 echo "int some_variable = 0;" > conftest.$ac_ext
5994 (eval echo "\"\$as_me:5994: $ac_compile\"" >&5)
5995 (eval "$ac_compile" 2>conftest.err)
5996 cat conftest.err >&5
5997 (eval echo "\"\$as_me:5997: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5998 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5999 cat conftest.err >&5
6000 (eval echo "\"\$as_me:6000: output\"" >&5)
6001 cat conftest.out >&5
6002 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6003 lt_cv_nm_interface="MS dumpbin"
6007 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6008 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6010 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6011 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6013 if test "$LN_S" = "ln -s"; then
6014 { echo "$as_me:$LINENO: result: yes" >&5
6015 echo "${ECHO_T}yes" >&6; }
6017 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6018 echo "${ECHO_T}no, using $LN_S" >&6; }
6021 # find the maximum length of command line arguments
6022 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6023 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6024 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 # On DJGPP, this test can blow up pretty badly due to problems in libc
6033 # (any single argument exceeding 2000 bytes causes a buffer overrun
6034 # during glob expansion). Even if it were fixed, the result of this
6035 # check would be larger than it should be.
6036 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6040 # Under GNU Hurd, this test is not required because there is
6041 # no limit to the length of command line arguments.
6042 # Libtool will interpret -1 as no limit whatsoever
6043 lt_cv_sys_max_cmd_len=-1;
6046 cygwin* | mingw* | cegcc*)
6047 # On Win9x/ME, this test blows up -- it succeeds, but takes
6048 # about 5 minutes as the teststring grows exponentially.
6049 # Worse, since 9x/ME are not pre-emptively multitasking,
6050 # you end up with a "frozen" computer, even though with patience
6051 # the test eventually succeeds (with a max line length of 256k).
6052 # Instead, let's just punt: use the minimum linelength reported by
6053 # all of the supported platforms: 8192 (on NT/2K/XP).
6054 lt_cv_sys_max_cmd_len=8192;
6058 # On AmigaOS with pdksh, this test takes hours, literally.
6059 # So we just punt and use a minimum line length of 8192.
6060 lt_cv_sys_max_cmd_len=8192;
6063 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6064 # This has been around since 386BSD, at least. Likely further.
6065 if test -x /sbin/sysctl; then
6066 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6067 elif test -x /usr/sbin/sysctl; then
6068 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6070 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6072 # And add a safety zone
6073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6078 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6079 lt_cv_sys_max_cmd_len=196608
6083 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6084 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6085 # nice to cause kernel panics so lets avoid the loop below.
6086 # First set a reasonable default.
6087 lt_cv_sys_max_cmd_len=16384
6089 if test -x /sbin/sysconfig; then
6090 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6091 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6096 lt_cv_sys_max_cmd_len=102400
6098 sysv5* | sco5v6* | sysv4.2uw2*)
6099 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6100 if test -n "$kargmax"; then
6101 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6103 lt_cv_sys_max_cmd_len=32768
6107 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6108 if test -n "$lt_cv_sys_max_cmd_len"; then
6109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6112 # Make teststring a little bigger before we do anything with it.
6113 # a 1K string should be a reasonable start.
6114 for i in 1 2 3 4 5 6 7 8 ; do
6115 teststring=$teststring$teststring
6117 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6118 # If test is not a shell built-in, we'll probably end up computing a
6119 # maximum length that is only half of the actual maximum length, but
6121 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6122 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6123 test $i != 17 # 1/2 MB should be enough
6126 teststring=$teststring$teststring
6128 # Only check the string length outside the loop.
6129 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6131 # Add a significant safety factor because C++ compilers can tack on
6132 # massive amounts of additional arguments before passing them to the
6133 # linker. It appears as though 1/2 is a usable value.
6134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6141 if test -n $lt_cv_sys_max_cmd_len ; then
6142 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6143 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6145 { echo "$as_me:$LINENO: result: none" >&5
6146 echo "${ECHO_T}none" >&6; }
6148 max_cmd_len=$lt_cv_sys_max_cmd_len
6159 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6160 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6161 # Try some XSI features
6164 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6166 && eval 'test $(( 1 + 1 )) -eq 2 \
6167 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6169 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6170 echo "${ECHO_T}$xsi_shell" >&6; }
6173 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6174 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6176 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6178 && lt_shell_append=yes
6179 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6180 echo "${ECHO_T}$lt_shell_append" >&6; }
6183 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6193 # test EBCDIC or ASCII
6194 case `echo X|tr X '\101'` in
6195 A) # ASCII based system
6196 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6197 lt_SP2NL='tr \040 \012'
6198 lt_NL2SP='tr \015\012 \040\040'
6200 *) # EBCDIC based system
6201 lt_SP2NL='tr \100 \n'
6202 lt_NL2SP='tr \r\n \100\100'
6214 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6215 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6216 if test "${lt_cv_ld_reload_flag+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 lt_cv_ld_reload_flag='-r'
6221 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6222 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6223 reload_flag=$lt_cv_ld_reload_flag
6224 case $reload_flag in
6226 *) reload_flag=" $reload_flag" ;;
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6231 if test "$GCC" = yes; then
6232 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 if test -n "$OBJDUMP"; then
6256 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 OBJDUMP=$ac_cv_prog_OBJDUMP
6276 if test -n "$OBJDUMP"; then
6277 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6278 echo "${ECHO_T}$OBJDUMP" >&6; }
6280 { echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6; }
6286 if test -z "$ac_cv_prog_OBJDUMP"; then
6287 ac_ct_OBJDUMP=$OBJDUMP
6288 # Extract the first word of "objdump", so it can be a program name with args.
6289 set dummy objdump; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 if test -n "$ac_ct_OBJDUMP"; then
6296 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6316 if test -n "$ac_ct_OBJDUMP"; then
6317 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6318 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6320 { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6324 if test "x$ac_ct_OBJDUMP" = x; then
6327 case $cross_compiling:$ac_tool_warned in
6329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6330 whose name does not start with the host triplet. If you think this
6331 configuration is useful to you, please write to autoconf@gnu.org." >&5
6332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6333 whose name does not start with the host triplet. If you think this
6334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6335 ac_tool_warned=yes ;;
6337 OBJDUMP=$ac_ct_OBJDUMP
6340 OBJDUMP="$ac_cv_prog_OBJDUMP"
6343 test -z "$OBJDUMP" && OBJDUMP=objdump
6353 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6354 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6355 if test "${lt_cv_deplibs_check_method+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 lt_cv_file_magic_cmd='$MAGIC_CMD'
6359 lt_cv_file_magic_test_file=
6360 lt_cv_deplibs_check_method='unknown'
6361 # Need to set the preceding variable on all platforms that support
6362 # interlibrary dependencies.
6363 # 'none' -- dependencies not supported.
6364 # `unknown' -- same as none, but documents that we really don't know.
6365 # 'pass_all' -- all dependencies passed with no checks.
6366 # 'test_compile' -- check by making test program.
6367 # 'file_magic [[regex]]' -- check by looking for files in library path
6368 # which responds to the $file_magic_cmd with a given extended regex.
6369 # If you have `file' or equivalent on your system and you're not sure
6370 # whether `pass_all' will *always* work, you probably want this one.
6374 lt_cv_deplibs_check_method=pass_all
6378 lt_cv_deplibs_check_method=pass_all
6382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6383 lt_cv_file_magic_cmd='/usr/bin/file -L'
6384 lt_cv_file_magic_test_file=/shlib/libc.so
6388 # func_win32_libid is a shell function defined in ltmain.sh
6389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6390 lt_cv_file_magic_cmd='func_win32_libid'
6394 # Base MSYS/MinGW do not provide the 'file' command needed by
6395 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6396 # unless we find 'file', for example because we are cross-compiling.
6397 if ( file / ) >/dev/null 2>&1; then
6398 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6399 lt_cv_file_magic_cmd='func_win32_libid'
6401 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6402 lt_cv_file_magic_cmd='$OBJDUMP -f'
6407 # use the weaker test based on 'objdump'. See mingw*.
6408 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6409 lt_cv_file_magic_cmd='$OBJDUMP -f'
6412 darwin* | rhapsody*)
6413 lt_cv_deplibs_check_method=pass_all
6416 freebsd* | dragonfly*)
6417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6420 # Not sure whether the presence of OpenBSD here was a mistake.
6421 # Let's accept both of them until this is cleared up.
6422 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6423 lt_cv_file_magic_cmd=/usr/bin/file
6424 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6428 lt_cv_deplibs_check_method=pass_all
6433 lt_cv_deplibs_check_method=pass_all
6436 hpux10.20* | hpux11*)
6437 lt_cv_file_magic_cmd=/usr/bin/file
6440 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6441 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6444 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]'
6445 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6448 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6449 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6455 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6459 irix5* | irix6* | nonstopux*)
6461 *-32|*"-32 ") libmagic=32-bit;;
6462 *-n32|*"-n32 ") libmagic=N32;;
6463 *-64|*"-64 ") libmagic=64-bit;;
6464 *) libmagic=never-match;;
6466 lt_cv_deplibs_check_method=pass_all
6469 # This must be Linux ELF.
6470 linux* | k*bsd*-gnu)
6471 lt_cv_deplibs_check_method=pass_all
6475 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6484 lt_cv_file_magic_cmd=/usr/bin/file
6485 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6489 lt_cv_deplibs_check_method=pass_all
6493 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6500 osf3* | osf4* | osf5*)
6501 lt_cv_deplibs_check_method=pass_all
6505 lt_cv_deplibs_check_method=pass_all
6509 lt_cv_deplibs_check_method=pass_all
6512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6513 lt_cv_deplibs_check_method=pass_all
6517 case $host_vendor in
6519 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]'
6520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6523 lt_cv_deplibs_check_method=pass_all
6526 lt_cv_file_magic_cmd='/bin/file'
6527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6530 lt_cv_file_magic_cmd='/bin/file'
6531 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6532 lt_cv_file_magic_test_file=/lib/libc.so
6535 lt_cv_deplibs_check_method=pass_all
6538 lt_cv_deplibs_check_method=pass_all
6544 lt_cv_deplibs_check_method=pass_all
6549 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6550 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6551 file_magic_cmd=$lt_cv_file_magic_cmd
6552 deplibs_check_method=$lt_cv_deplibs_check_method
6553 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6566 if test -n "$ac_tool_prefix"; then
6567 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}ar; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_prog_AR+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 if test -n "$AR"; then
6575 ac_cv_prog_AR="$AR" # Let the user override the test.
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_prog_AR="${ac_tool_prefix}ar"
6585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 if test -n "$AR"; then
6596 { echo "$as_me:$LINENO: result: $AR" >&5
6597 echo "${ECHO_T}$AR" >&6; }
6599 { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6605 if test -z "$ac_cv_prog_AR"; then
6607 # Extract the first word of "ar", so it can be a program name with args.
6608 set dummy ar; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 if test -n "$ac_ct_AR"; then
6615 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_ac_ct_AR="ar"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6635 if test -n "$ac_ct_AR"; then
6636 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6637 echo "${ECHO_T}$ac_ct_AR" >&6; }
6639 { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6643 if test "x$ac_ct_AR" = x; then
6646 case $cross_compiling:$ac_tool_warned in
6648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6649 whose name does not start with the host triplet. If you think this
6650 configuration is useful to you, please write to autoconf@gnu.org." >&5
6651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet. If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6654 ac_tool_warned=yes ;;
6662 test -z "$AR" && AR=ar
6663 test -z "$AR_FLAGS" && AR_FLAGS=cru
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}strip; ac_word=$2
6678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680 if test "${ac_cv_prog_STRIP+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 if test -n "$STRIP"; then
6684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 STRIP=$ac_cv_prog_STRIP
6704 if test -n "$STRIP"; then
6705 { echo "$as_me:$LINENO: result: $STRIP" >&5
6706 echo "${ECHO_T}$STRIP" >&6; }
6708 { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6714 if test -z "$ac_cv_prog_STRIP"; then
6716 # Extract the first word of "strip", so it can be a program name with args.
6717 set dummy strip; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 if test -n "$ac_ct_STRIP"; then
6724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_prog_ac_ct_STRIP="strip"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6744 if test -n "$ac_ct_STRIP"; then
6745 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6746 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6748 { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6752 if test "x$ac_ct_STRIP" = x; then
6755 case $cross_compiling:$ac_tool_warned in
6757 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet. If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&5
6760 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6761 whose name does not start with the host triplet. If you think this
6762 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6763 ac_tool_warned=yes ;;
6768 STRIP="$ac_cv_prog_STRIP"
6771 test -z "$STRIP" && STRIP=:
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_prog_RANLIB+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 if test -n "$RANLIB"; then
6787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 RANLIB=$ac_cv_prog_RANLIB
6807 if test -n "$RANLIB"; then
6808 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6809 echo "${ECHO_T}$RANLIB" >&6; }
6811 { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6817 if test -z "$ac_cv_prog_RANLIB"; then
6818 ac_ct_RANLIB=$RANLIB
6819 # Extract the first word of "ranlib", so it can be a program name with args.
6820 set dummy ranlib; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 if test -n "$ac_ct_RANLIB"; then
6827 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_ac_ct_RANLIB="ranlib"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6847 if test -n "$ac_ct_RANLIB"; then
6848 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6849 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6851 { echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6; }
6855 if test "x$ac_ct_RANLIB" = x; then
6858 case $cross_compiling:$ac_tool_warned in
6860 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6861 whose name does not start with the host triplet. If you think this
6862 configuration is useful to you, please write to autoconf@gnu.org." >&5
6863 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6864 whose name does not start with the host triplet. If you think this
6865 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6866 ac_tool_warned=yes ;;
6868 RANLIB=$ac_ct_RANLIB
6871 RANLIB="$ac_cv_prog_RANLIB"
6874 test -z "$RANLIB" && RANLIB=:
6881 # Determine commands to create old-style static archives.
6882 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6883 old_postinstall_cmds='chmod 644 $oldlib'
6884 old_postuninstall_cmds=
6886 if test -n "$RANLIB"; then
6889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6895 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6931 # If no C compiler was specified, use CC.
6934 # If no C compiler flags were specified, use CFLAGS.
6935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937 # Allow CC to be a program name with arguments.
6941 # Check for command to grab the raw symbol name followed by C symbol from nm.
6942 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6943 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6944 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 # These are sane defaults that work on at least a few old systems.
6949 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6951 # Character class describing NM global symbol codes.
6952 symcode='[BCDEGRST]'
6954 # Regexp to match symbols that can be accessed directly from C.
6955 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6957 # Define system-specific variables.
6962 cygwin* | mingw* | pw32* | cegcc*)
6963 symcode='[ABCDGISTW]'
6966 if test "$host_cpu" = ia64; then
6967 symcode='[ABCDEGRST]'
6971 symcode='[BCDEGRST]'
6974 symcode='[BCDEGQRST]'
6985 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6993 # If we're using GNU nm, then use its standard symbol codes.
6994 case `$NM -V 2>&1` in
6995 *GNU* | *'with BFD'*)
6996 symcode='[ABCDGIRSTW]' ;;
6999 # Transform an extracted symbol line into a proper C declaration.
7000 # Some systems (esp. on ia64) link data and code symbols differently,
7001 # so use this general approach.
7002 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7004 # Transform an extracted symbol line into symbol name and symbol address
7005 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7006 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'"
7008 # Handle CRLF in mingw tool chain
7012 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7016 # Try without a prefix underscore, then with it.
7017 for ac_symprfx in "" "_"; do
7019 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7020 symxfrm="\\1 $ac_symprfx\\2 \\2"
7022 # Write the raw and C identifiers.
7023 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7024 # Fake it for dumpbin and say T for any non-static function
7025 # and D for any global variable.
7026 # Also find C++ and __fastcall symbols from MSVC++,
7027 # which start with @ or ?.
7028 lt_cv_sys_global_symbol_pipe="$AWK '"\
7029 " {last_section=section; section=\$ 3};"\
7030 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7031 " \$ 0!~/External *\|/{next};"\
7032 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7033 " {if(hide[section]) next};"\
7034 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7035 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7036 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7037 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7038 " ' prfx=^$ac_symprfx"
7040 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7043 # Check to see that the pipe works correctly.
7047 cat > conftest.$ac_ext <<_LT_EOF
7052 void nm_test_func(void);
7053 void nm_test_func(void){}
7057 int main(){nm_test_var='a';nm_test_func();return(0);}
7060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061 (eval $ac_compile) 2>&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; then
7065 # Now try to grab the symbols.
7067 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7068 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && test -s "$nlist"; then
7072 # Try sorting and uniquifying the output.
7073 if sort "$nlist" | uniq > "$nlist"T; then
7074 mv -f "$nlist"T "$nlist"
7079 # Make sure that we snagged all the symbols we need.
7080 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7081 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7082 cat <<_LT_EOF > conftest.$ac_ext
7088 # Now generate the symbol file.
7089 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091 cat <<_LT_EOF >> conftest.$ac_ext
7093 /* The mapping between symbol names and symbols. */
7098 lt__PROGRAM__LTX_preloaded_symbols[] =
7100 { "@PROGRAM@", (void *) 0 },
7102 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7103 cat <<\_LT_EOF >> conftest.$ac_ext
7107 /* This works around a problem in FreeBSD linker */
7108 #ifdef FREEBSD_WORKAROUND
7109 static const void *lt_preloaded_setup() {
7110 return lt__PROGRAM__LTX_preloaded_symbols;
7118 # Now try linking the two files.
7119 mv conftest.$ac_objext conftstm.$ac_objext
7120 lt_save_LIBS="$LIBS"
7121 lt_save_CFLAGS="$CFLAGS"
7122 LIBS="conftstm.$ac_objext"
7123 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7125 (eval $ac_link) 2>&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7131 LIBS="$lt_save_LIBS"
7132 CFLAGS="$lt_save_CFLAGS"
7134 echo "cannot find nm_test_func in $nlist" >&5
7137 echo "cannot find nm_test_var in $nlist" >&5
7140 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7143 echo "$progname: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7146 rm -rf conftest* conftst*
7148 # Do not use the global_symbol_pipe unless it works.
7149 if test "$pipe_works" = yes; then
7152 lt_cv_sys_global_symbol_pipe=
7158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7159 lt_cv_sys_global_symbol_to_cdecl=
7161 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7162 { echo "$as_me:$LINENO: result: failed" >&5
7163 echo "${ECHO_T}failed" >&6; }
7165 { echo "$as_me:$LINENO: result: ok" >&5
7166 echo "${ECHO_T}ok" >&6; }
7190 # Check whether --enable-libtool-lock was given.
7191 if test "${enable_libtool_lock+set}" = set; then
7192 enableval=$enable_libtool_lock;
7195 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7197 # Some flags need to be propagated to the compiler or linker for good
7201 # Find out which ABI we are using.
7202 echo 'int i;' > conftest.$ac_ext
7203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7204 (eval $ac_compile) 2>&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; then
7208 case `/usr/bin/file conftest.$ac_objext` in
7220 # Find out which ABI we are using.
7221 echo '#line 7221 "configure"' > conftest.$ac_ext
7222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223 (eval $ac_compile) 2>&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; then
7227 if test "$lt_cv_prog_gnu_ld" = yes; then
7228 case `/usr/bin/file conftest.$ac_objext` in
7230 LD="${LD-ld} -melf32bsmip"
7233 LD="${LD-ld} -melf32bmipn32"
7236 LD="${LD-ld} -melf64bmip"
7240 case `/usr/bin/file conftest.$ac_objext` in
7256 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7257 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7258 # Find out which ABI we are using.
7259 echo 'int i;' > conftest.$ac_ext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; then
7265 case `/usr/bin/file conftest.o` in
7268 x86_64-*kfreebsd*-gnu)
7269 LD="${LD-ld} -m elf_i386_fbsd"
7272 LD="${LD-ld} -m elf_i386"
7274 ppc64-*linux*|powerpc64-*linux*)
7275 LD="${LD-ld} -m elf32ppclinux"
7278 LD="${LD-ld} -m elf_s390"
7281 LD="${LD-ld} -m elf32_sparc"
7287 x86_64-*kfreebsd*-gnu)
7288 LD="${LD-ld} -m elf_x86_64_fbsd"
7291 LD="${LD-ld} -m elf_x86_64"
7293 ppc*-*linux*|powerpc*-*linux*)
7294 LD="${LD-ld} -m elf64ppc"
7296 s390*-*linux*|s390*-*tpf*)
7297 LD="${LD-ld} -m elf64_s390"
7300 LD="${LD-ld} -m elf64_sparc"
7310 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7311 SAVE_CFLAGS="$CFLAGS"
7312 CFLAGS="$CFLAGS -belf"
7313 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7314 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7315 if test "${lt_cv_cc_needs_belf+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 ac_cpp='$CPP $CPPFLAGS'
7320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324 cat >conftest.$ac_ext <<_ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (ac_try="$ac_link"
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest$ac_exeext &&
7356 $as_test_x conftest$ac_exeext; then
7357 lt_cv_cc_needs_belf=yes
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 lt_cv_cc_needs_belf=no
7365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366 conftest$ac_exeext conftest.$ac_ext
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7374 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7375 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7376 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7377 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7378 CFLAGS="$SAVE_CFLAGS"
7382 # Find out which ABI we are using.
7383 echo 'int i;' > conftest.$ac_ext
7384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7385 (eval $ac_compile) 2>&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; then
7389 case `/usr/bin/file conftest.o` in
7391 case $lt_cv_prog_gnu_ld in
7392 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7394 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7406 need_locks="$enable_libtool_lock"
7410 rhapsody* | darwin*)
7411 if test -n "$ac_tool_prefix"; then
7412 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 if test -n "$DSYMUTIL"; then
7420 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7440 if test -n "$DSYMUTIL"; then
7441 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7442 echo "${ECHO_T}$DSYMUTIL" >&6; }
7444 { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7450 if test -z "$ac_cv_prog_DSYMUTIL"; then
7451 ac_ct_DSYMUTIL=$DSYMUTIL
7452 # Extract the first word of "dsymutil", so it can be a program name with args.
7453 set dummy dsymutil; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 if test -n "$ac_ct_DSYMUTIL"; then
7460 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7480 if test -n "$ac_ct_DSYMUTIL"; then
7481 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7482 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7484 { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7488 if test "x$ac_ct_DSYMUTIL" = x; then
7491 case $cross_compiling:$ac_tool_warned in
7493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7494 whose name does not start with the host triplet. If you think this
7495 configuration is useful to you, please write to autoconf@gnu.org." >&5
7496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7497 whose name does not start with the host triplet. If you think this
7498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7499 ac_tool_warned=yes ;;
7501 DSYMUTIL=$ac_ct_DSYMUTIL
7504 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7507 if test -n "$ac_tool_prefix"; then
7508 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 if test -n "$NMEDIT"; then
7516 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 NMEDIT=$ac_cv_prog_NMEDIT
7536 if test -n "$NMEDIT"; then
7537 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7538 echo "${ECHO_T}$NMEDIT" >&6; }
7540 { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7546 if test -z "$ac_cv_prog_NMEDIT"; then
7547 ac_ct_NMEDIT=$NMEDIT
7548 # Extract the first word of "nmedit", so it can be a program name with args.
7549 set dummy nmedit; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 if test -n "$ac_ct_NMEDIT"; then
7556 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7576 if test -n "$ac_ct_NMEDIT"; then
7577 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7578 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7584 if test "x$ac_ct_NMEDIT" = x; then
7587 case $cross_compiling:$ac_tool_warned in
7589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7590 whose name does not start with the host triplet. If you think this
7591 configuration is useful to you, please write to autoconf@gnu.org." >&5
7592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7593 whose name does not start with the host triplet. If you think this
7594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7595 ac_tool_warned=yes ;;
7597 NMEDIT=$ac_ct_NMEDIT
7600 NMEDIT="$ac_cv_prog_NMEDIT"
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7608 if test "${ac_cv_prog_LIPO+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 if test -n "$LIPO"; then
7612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 LIPO=$ac_cv_prog_LIPO
7632 if test -n "$LIPO"; then
7633 { echo "$as_me:$LINENO: result: $LIPO" >&5
7634 echo "${ECHO_T}$LIPO" >&6; }
7636 { echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6; }
7642 if test -z "$ac_cv_prog_LIPO"; then
7644 # Extract the first word of "lipo", so it can be a program name with args.
7645 set dummy lipo; ac_word=$2
7646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 if test -n "$ac_ct_LIPO"; then
7652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_prog_ac_ct_LIPO="lipo"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7672 if test -n "$ac_ct_LIPO"; then
7673 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7674 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7676 { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7680 if test "x$ac_ct_LIPO" = x; then
7683 case $cross_compiling:$ac_tool_warned in
7685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7686 whose name does not start with the host triplet. If you think this
7687 configuration is useful to you, please write to autoconf@gnu.org." >&5
7688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7689 whose name does not start with the host triplet. If you think this
7690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7691 ac_tool_warned=yes ;;
7696 LIPO="$ac_cv_prog_LIPO"
7699 if test -n "$ac_tool_prefix"; then
7700 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7701 set dummy ${ac_tool_prefix}otool; ac_word=$2
7702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704 if test "${ac_cv_prog_OTOOL+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 if test -n "$OTOOL"; then
7708 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 OTOOL=$ac_cv_prog_OTOOL
7728 if test -n "$OTOOL"; then
7729 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7730 echo "${ECHO_T}$OTOOL" >&6; }
7732 { echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6; }
7738 if test -z "$ac_cv_prog_OTOOL"; then
7740 # Extract the first word of "otool", so it can be a program name with args.
7741 set dummy otool; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 if test -n "$ac_ct_OTOOL"; then
7748 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_prog_ac_ct_OTOOL="otool"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7768 if test -n "$ac_ct_OTOOL"; then
7769 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7770 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7772 { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7776 if test "x$ac_ct_OTOOL" = x; then
7779 case $cross_compiling:$ac_tool_warned in
7781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7782 whose name does not start with the host triplet. If you think this
7783 configuration is useful to you, please write to autoconf@gnu.org." >&5
7784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7785 whose name does not start with the host triplet. If you think this
7786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7787 ac_tool_warned=yes ;;
7792 OTOOL="$ac_cv_prog_OTOOL"
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 if test -n "$OTOOL64"; then
7804 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 OTOOL64=$ac_cv_prog_OTOOL64
7824 if test -n "$OTOOL64"; then
7825 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7826 echo "${ECHO_T}$OTOOL64" >&6; }
7828 { echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6; }
7834 if test -z "$ac_cv_prog_OTOOL64"; then
7835 ac_ct_OTOOL64=$OTOOL64
7836 # Extract the first word of "otool64", so it can be a program name with args.
7837 set dummy otool64; ac_word=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 if test -n "$ac_ct_OTOOL64"; then
7844 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_ac_ct_OTOOL64="otool64"
7854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7864 if test -n "$ac_ct_OTOOL64"; then
7865 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7866 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7868 { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7872 if test "x$ac_ct_OTOOL64" = x; then
7875 case $cross_compiling:$ac_tool_warned in
7877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7878 whose name does not start with the host triplet. If you think this
7879 configuration is useful to you, please write to autoconf@gnu.org." >&5
7880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7881 whose name does not start with the host triplet. If you think this
7882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7883 ac_tool_warned=yes ;;
7885 OTOOL64=$ac_ct_OTOOL64
7888 OTOOL64="$ac_cv_prog_OTOOL64"
7917 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7918 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7919 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 lt_cv_apple_cc_single_mod=no
7923 if test -z "${LT_MULTI_MODULE}"; then
7924 # By default we will add the -single_module flag. You can override
7925 # by either setting the environment variable LT_MULTI_MODULE
7926 # non-empty at configure time, or by adding -multi_module to the
7928 rm -rf libconftest.dylib*
7929 echo "int foo(void){return 1;}" > conftest.c
7930 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7931 -dynamiclib -Wl,-single_module conftest.c" >&5
7932 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7933 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7935 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7936 lt_cv_apple_cc_single_mod=yes
7938 cat conftest.err >&5
7940 rm -rf libconftest.dylib*
7944 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7945 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7946 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7947 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7948 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 lt_cv_ld_exported_symbols_list=no
7952 save_LDFLAGS=$LDFLAGS
7953 echo "_main" > conftest.sym
7954 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7955 cat >conftest.$ac_ext <<_ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (ac_try="$ac_link"
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_link") 2>conftest.er1
7979 grep -v '^ *+' conftest.er1 >conftest.err
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest$ac_exeext &&
7987 $as_test_x conftest$ac_exeext; then
7988 lt_cv_ld_exported_symbols_list=yes
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 lt_cv_ld_exported_symbols_list=no
7996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7997 conftest$ac_exeext conftest.$ac_ext
7998 LDFLAGS="$save_LDFLAGS"
8001 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8002 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8004 rhapsody* | darwin1.[012])
8005 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8007 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8008 darwin*) # darwin 5.x on
8009 # if running on 10.5 or later, the deployment target defaults
8010 # to the OS version, if on x86, and 10.4, the deployment
8011 # target defaults to 10.4. Don't you love it?
8012 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8013 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8014 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8016 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8018 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8022 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8023 _lt_dar_single_mod='$single_module'
8025 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8026 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8028 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8030 if test "$DSYMUTIL" != ":"; then
8031 _lt_dsymutil='~$DSYMUTIL $lib || :'
8038 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8039 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8040 if test "${ac_cv_header_stdc+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 cat >conftest.$ac_ext <<_ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8071 grep -v '^ *+' conftest.er1 >conftest.err
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8079 ac_cv_header_stdc=yes
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 ac_cv_header_stdc=no
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 if test $ac_cv_header_stdc = yes; then
8090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8091 cat >conftest.$ac_ext <<_ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8101 $EGREP "memchr" >/dev/null 2>&1; then
8104 ac_cv_header_stdc=no
8110 if test $ac_cv_header_stdc = yes; then
8111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8112 cat >conftest.$ac_ext <<_ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8122 $EGREP "free" >/dev/null 2>&1; then
8125 ac_cv_header_stdc=no
8131 if test $ac_cv_header_stdc = yes; then
8132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8133 if test "$cross_compiling" = yes; then
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8144 #if ((' ' & 0x0FF) == 0x020)
8145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8148 # define ISLOWER(c) \
8149 (('a' <= (c) && (c) <= 'i') \
8150 || ('j' <= (c) && (c) <= 'r') \
8151 || ('s' <= (c) && (c) <= 'z'))
8152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8160 for (i = 0; i < 256; i++)
8161 if (XOR (islower (i), ISLOWER (i))
8162 || toupper (i) != TOUPPER (i))
8167 rm -f conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_link") 2>&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8178 { (case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_try") 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8189 echo "$as_me: program exited with status $ac_status" >&5
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_cv_header_stdc=no
8196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8202 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8203 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8204 if test $ac_cv_header_stdc = yes; then
8206 cat >>confdefs.h <<\_ACEOF
8207 #define STDC_HEADERS 1
8212 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8223 inttypes.h stdint.h unistd.h
8225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8239 #include <$ac_header>
8241 rm -f conftest.$ac_objext
8242 if { (ac_try="$ac_compile"
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_compile") 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } && {
8255 test -z "$ac_c_werror_flag" ||
8256 test ! -s conftest.err
8257 } && test -s conftest.$ac_objext; then
8258 eval "$as_ac_Header=yes"
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8263 eval "$as_ac_Header=no"
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 ac_res=`eval echo '${'$as_ac_Header'}'`
8269 { echo "$as_me:$LINENO: result: $ac_res" >&5
8270 echo "${ECHO_T}$ac_res" >&6; }
8271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8272 cat >>confdefs.h <<_ACEOF
8273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8282 for ac_header in dlfcn.h
8284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 cat >conftest.$ac_ext <<_ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8298 #include <$ac_header>
8300 rm -f conftest.$ac_objext
8301 if { (ac_try="$ac_compile"
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_compile") 2>conftest.er1
8309 grep -v '^ *+' conftest.er1 >conftest.err
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && {
8314 test -z "$ac_c_werror_flag" ||
8315 test ! -s conftest.err
8316 } && test -s conftest.$ac_objext; then
8317 eval "$as_ac_Header=yes"
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8322 eval "$as_ac_Header=no"
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 ac_res=`eval echo '${'$as_ac_Header'}'`
8328 { echo "$as_me:$LINENO: result: $ac_res" >&5
8329 echo "${ECHO_T}$ac_res" >&6; }
8330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8331 cat >>confdefs.h <<_ACEOF
8332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8342 ac_cpp='$CXXCPP $CPPFLAGS'
8343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8346 if test -z "$CXX"; then
8347 if test -n "$CCC"; then
8350 if test -n "$ac_tool_prefix"; 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_tool_prefix$ac_prog", so it can be a program name with args.
8354 set dummy $ac_tool_prefix$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_CXX+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 if test -n "$CXX"; then
8361 ac_cv_prog_CXX="$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_CXX="$ac_tool_prefix$ac_prog"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 if test -n "$CXX"; then
8382 { echo "$as_me:$LINENO: result: $CXX" >&5
8383 echo "${ECHO_T}$CXX" >&6; }
8385 { echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6; }
8390 test -n "$CXX" && break
8393 if test -z "$CXX"; then
8395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8397 # Extract the first word of "$ac_prog", so it can be a program name with args.
8398 set dummy $ac_prog; ac_word=$2
8399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 if test -n "$ac_ct_CXX"; then
8405 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_prog_ac_ct_CXX="$ac_prog"
8415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8425 if test -n "$ac_ct_CXX"; then
8426 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8427 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8429 { echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6; }
8434 test -n "$ac_ct_CXX" && break
8437 if test "x$ac_ct_CXX" = x; then
8440 case $cross_compiling:$ac_tool_warned in
8442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8443 whose name does not start with the host triplet. If you think this
8444 configuration is useful to you, please write to autoconf@gnu.org." >&5
8445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8446 whose name does not start with the host triplet. If you think this
8447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8448 ac_tool_warned=yes ;;
8456 # Provide some information about the compiler.
8457 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8458 ac_compiler=`set X $ac_compile; echo $2`
8459 { (ac_try="$ac_compiler --version >&5"
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compiler --version >&5") 2>&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }
8469 { (ac_try="$ac_compiler -v >&5"
8471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_compiler -v >&5") 2>&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }
8479 { (ac_try="$ac_compiler -V >&5"
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_compiler -V >&5") 2>&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }
8490 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8491 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8492 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_compile") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1 >conftest.err
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_cxx_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest.$ac_objext; then
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8542 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8543 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8544 GXX=`test $ac_compiler_gnu = yes && echo yes`
8545 ac_test_CXXFLAGS=${CXXFLAGS+set}
8546 ac_save_CXXFLAGS=$CXXFLAGS
8547 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8548 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8549 if test "${ac_cv_prog_cxx_g+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8553 ac_cxx_werror_flag=yes
8556 cat >conftest.$ac_ext <<_ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8580 grep -v '^ *+' conftest.er1 >conftest.err
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_cxx_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest.$ac_objext; then
8588 ac_cv_prog_cxx_g=yes
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8594 cat >conftest.$ac_ext <<_ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_cxx_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8633 cat >conftest.$ac_ext <<_ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8648 rm -f conftest.$ac_objext
8649 if { (ac_try="$ac_compile"
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655 (eval "$ac_compile") 2>conftest.er1
8657 grep -v '^ *+' conftest.er1 >conftest.err
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } && {
8662 test -z "$ac_cxx_werror_flag" ||
8663 test ! -s conftest.err
8664 } && test -s conftest.$ac_objext; then
8665 ac_cv_prog_cxx_g=yes
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8682 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8683 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8684 if test "$ac_test_CXXFLAGS" = set; then
8685 CXXFLAGS=$ac_save_CXXFLAGS
8686 elif test $ac_cv_prog_cxx_g = yes; then
8687 if test "$GXX" = yes; then
8693 if test "$GXX" = yes; then
8700 ac_cpp='$CPP $CPPFLAGS'
8701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8705 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8706 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8707 (test "X$CXX" != "Xg++"))) ; then
8709 ac_cpp='$CXXCPP $CPPFLAGS'
8710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8713 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8714 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8715 if test -z "$CXXCPP"; then
8716 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 # Double quotes because CXXCPP needs to be expanded
8720 for CXXCPP in "$CXX -E" "/lib/cpp"
8723 for ac_cxx_preproc_warn_flag in '' yes
8725 # Use a header file that comes with gcc, so configuring glibc
8726 # with a fresh cross-compiler works.
8727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8728 # <limits.h> exists even on freestanding compilers.
8729 # On the NeXT, cc -E runs the code through the compiler's parser,
8730 # not just through cpp. "Syntax error" is here to catch this case.
8731 cat >conftest.$ac_ext <<_ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8738 # include <limits.h>
8740 # include <assert.h>
8744 if { (ac_try="$ac_cpp conftest.$ac_ext"
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8752 grep -v '^ *+' conftest.er1 >conftest.err
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } >/dev/null && {
8757 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8758 test ! -s conftest.err
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 # Broken: fails on valid input.
8769 rm -f conftest.err conftest.$ac_ext
8771 # OK, works on sane cases. Now check whether nonexistent headers
8772 # can be detected and how.
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 #include <ac_nonexistent.h>
8781 if { (ac_try="$ac_cpp conftest.$ac_ext"
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8789 grep -v '^ *+' conftest.er1 >conftest.err
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } >/dev/null && {
8794 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8795 test ! -s conftest.err
8797 # Broken: success on invalid input.
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8803 # Passes both tests.
8808 rm -f conftest.err conftest.$ac_ext
8811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8812 rm -f conftest.err conftest.$ac_ext
8813 if $ac_preproc_ok; then
8818 ac_cv_prog_CXXCPP=$CXXCPP
8821 CXXCPP=$ac_cv_prog_CXXCPP
8823 ac_cv_prog_CXXCPP=$CXXCPP
8825 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8826 echo "${ECHO_T}$CXXCPP" >&6; }
8828 for ac_cxx_preproc_warn_flag in '' yes
8830 # Use a header file that comes with gcc, so configuring glibc
8831 # with a fresh cross-compiler works.
8832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833 # <limits.h> exists even on freestanding compilers.
8834 # On the NeXT, cc -E runs the code through the compiler's parser,
8835 # not just through cpp. "Syntax error" is here to catch this case.
8836 cat >conftest.$ac_ext <<_ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8843 # include <limits.h>
8845 # include <assert.h>
8849 if { (ac_try="$ac_cpp conftest.$ac_ext"
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8857 grep -v '^ *+' conftest.er1 >conftest.err
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } >/dev/null && {
8862 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8863 test ! -s conftest.err
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 # Broken: fails on valid input.
8874 rm -f conftest.err conftest.$ac_ext
8876 # OK, works on sane cases. Now check whether nonexistent headers
8877 # can be detected and how.
8878 cat >conftest.$ac_ext <<_ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8884 #include <ac_nonexistent.h>
8886 if { (ac_try="$ac_cpp conftest.$ac_ext"
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8894 grep -v '^ *+' conftest.er1 >conftest.err
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } >/dev/null && {
8899 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8900 test ! -s conftest.err
8902 # Broken: success on invalid input.
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 # Passes both tests.
8913 rm -f conftest.err conftest.$ac_ext
8916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8917 rm -f conftest.err conftest.$ac_ext
8918 if $ac_preproc_ok; then
8921 _lt_caught_CXX_error=yes
8925 ac_cpp='$CPP $CPPFLAGS'
8926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8931 _lt_caught_CXX_error=yes
8939 # Check whether --enable-shared was given.
8940 if test "${enable_shared+set}" = set; then
8941 enableval=$enable_shared; p=${PACKAGE-default}
8943 yes) enable_shared=yes ;;
8944 no) enable_shared=no ;;
8947 # Look at the argument we got. We use all the common list separators.
8948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8949 for pkg in $enableval; do
8951 if test "X$pkg" = "X$p"; then
8968 # Check whether --enable-static was given.
8969 if test "${enable_static+set}" = set; then
8970 enableval=$enable_static; p=${PACKAGE-default}
8972 yes) enable_static=yes ;;
8973 no) enable_static=no ;;
8976 # Look at the argument we got. We use all the common list separators.
8977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8978 for pkg in $enableval; do
8980 if test "X$pkg" = "X$p"; then
9009 # Check whether --with-pic was given.
9010 if test "${with_pic+set}" = set; then
9011 withval=$with_pic; pic_mode="$withval"
9017 test -z "$pic_mode" && pic_mode=default
9025 # Check whether --enable-fast-install was given.
9026 if test "${enable_fast_install+set}" = set; then
9027 enableval=$enable_fast_install; p=${PACKAGE-default}
9029 yes) enable_fast_install=yes ;;
9030 no) enable_fast_install=no ;;
9032 enable_fast_install=no
9033 # Look at the argument we got. We use all the common list separators.
9034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9035 for pkg in $enableval; do
9037 if test "X$pkg" = "X$p"; then
9038 enable_fast_install=yes
9045 enable_fast_install=yes
9058 # This can be used to rebuild libtool when needed
9059 LIBTOOL_DEPS="$ltmain"
9061 # Always use our own libtool.
9062 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9088 test -z "$LN_S" && LN_S="ln -s"
9103 if test -n "${ZSH_VERSION+set}" ; then
9104 setopt NO_GLOB_SUBST
9107 { echo "$as_me:$LINENO: checking for objdir" >&5
9108 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9109 if test "${lt_cv_objdir+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 rm -f .libs 2>/dev/null
9113 mkdir .libs 2>/dev/null
9114 if test -d .libs; then
9117 # MS-DOS does not allow filenames that begin with a dot.
9120 rmdir .libs 2>/dev/null
9122 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9123 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9124 objdir=$lt_cv_objdir
9130 cat >>confdefs.h <<_ACEOF
9131 #define LT_OBJDIR "$lt_cv_objdir/"
9152 # AIX sometimes has problems with the GCC collect2 program. For some
9153 # reason, if we set the COLLECT_NAMES environment variable, the problems
9154 # vanish in a puff of smoke.
9155 if test "X${COLLECT_NAMES+set}" != Xset; then
9157 export COLLECT_NAMES
9162 # Sed substitution that helps us do robust quoting. It backslashifies
9163 # metacharacters that are still active within double-quoted strings.
9164 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9166 # Same as above, but do not quote variable references.
9167 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9169 # Sed substitution to delay expansion of an escaped shell variable in a
9170 # double_quote_subst'ed string.
9171 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9173 # Sed substitution to delay expansion of an escaped single quote.
9174 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9176 # Sed substitution to avoid accidental globbing in evaled expressions
9177 no_glob_subst='s/\*/\\\*/g'
9181 can_build_shared=yes
9183 # All known linkers require a `.a' archive for static linking (except MSVC,
9184 # which needs '.lib').
9187 with_gnu_ld="$lt_cv_prog_gnu_ld"
9190 old_CFLAGS="$CFLAGS"
9192 # Set sane defaults for various variables
9193 test -z "$CC" && CC=cc
9194 test -z "$LTCC" && LTCC=$CC
9195 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9196 test -z "$LD" && LD=ld
9197 test -z "$ac_objext" && ac_objext=o
9199 for cc_temp in $compiler""; do
9201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9207 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9210 # Only perform the check for file, if the check method requires it
9211 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9212 case $deplibs_check_method in
9214 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9215 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9216 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9217 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9225 lt_save_MAGIC_CMD="$MAGIC_CMD"
9226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9228 for ac_dir in $ac_dummy; do
9230 test -z "$ac_dir" && ac_dir=.
9231 if test -f $ac_dir/${ac_tool_prefix}file; then
9232 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9233 if test -n "$file_magic_test_file"; then
9234 case $deplibs_check_method in
9236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9239 $EGREP "$file_magic_regex" > /dev/null; then
9244 *** Warning: the command libtool uses to detect shared libraries,
9245 *** $file_magic_cmd, produces output that libtool cannot recognize.
9246 *** The result is that libtool may fail to recognize shared libraries
9247 *** as such. This will affect the creation of libtool libraries that
9248 *** depend on shared libraries, but programs linked with such libtool
9249 *** libraries will work regardless of this problem. Nevertheless, you
9250 *** may want to report the problem to your system manager and/or to
9251 *** bug-libtool@gnu.org
9261 MAGIC_CMD="$lt_save_MAGIC_CMD"
9266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9267 if test -n "$MAGIC_CMD"; then
9268 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9269 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9271 { echo "$as_me:$LINENO: result: no" >&5
9272 echo "${ECHO_T}no" >&6; }
9279 if test -z "$lt_cv_path_MAGIC_CMD"; then
9280 if test -n "$ac_tool_prefix"; then
9281 { echo "$as_me:$LINENO: checking for file" >&5
9282 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9283 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9291 lt_save_MAGIC_CMD="$MAGIC_CMD"
9292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9294 for ac_dir in $ac_dummy; do
9296 test -z "$ac_dir" && ac_dir=.
9297 if test -f $ac_dir/file; then
9298 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9299 if test -n "$file_magic_test_file"; then
9300 case $deplibs_check_method in
9302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9305 $EGREP "$file_magic_regex" > /dev/null; then
9310 *** Warning: the command libtool uses to detect shared libraries,
9311 *** $file_magic_cmd, produces output that libtool cannot recognize.
9312 *** The result is that libtool may fail to recognize shared libraries
9313 *** as such. This will affect the creation of libtool libraries that
9314 *** depend on shared libraries, but programs linked with such libtool
9315 *** libraries will work regardless of this problem. Nevertheless, you
9316 *** may want to report the problem to your system manager and/or to
9317 *** bug-libtool@gnu.org
9327 MAGIC_CMD="$lt_save_MAGIC_CMD"
9332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9333 if test -n "$MAGIC_CMD"; then
9334 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9335 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9337 { echo "$as_me:$LINENO: result: no" >&5
9338 echo "${ECHO_T}no" >&6; }
9351 # Use C for the default configuration in the libtool script
9355 ac_cpp='$CPP $CPPFLAGS'
9356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9361 # Source file extension for C test sources.
9364 # Object file extension for compiled C test sources.
9368 # Code to be used in simple compile tests
9369 lt_simple_compile_test_code="int some_variable = 0;"
9371 # Code to be used in simple link tests
9372 lt_simple_link_test_code='int main(){return(0);}'
9380 # If no C compiler was specified, use CC.
9383 # If no C compiler flags were specified, use CFLAGS.
9384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9386 # Allow CC to be a program name with arguments.
9389 # Save the default compiler, since it gets overwritten when the other
9390 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9391 compiler_DEFAULT=$CC
9393 # save warnings/boilerplate of simple test code
9394 ac_outfile=conftest.$ac_objext
9395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9397 _lt_compiler_boilerplate=`cat conftest.err`
9400 ac_outfile=conftest.$ac_objext
9401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9403 _lt_linker_boilerplate=`cat conftest.err`
9408 ## There is no encapsulation within the following macros, do not change
9409 ## the running order or otherwise move them around unless you know exactly
9410 ## what you are doing...
9411 if test -n "$compiler"; then
9413 lt_prog_compiler_no_builtin_flag=
9415 if test "$GCC" = yes; then
9416 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9418 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9419 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9420 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 lt_cv_prog_compiler_rtti_exceptions=no
9424 ac_outfile=conftest.$ac_objext
9425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9426 lt_compiler_flag="-fno-rtti -fno-exceptions"
9427 # Insert the option either (1) after the last *FLAGS variable, or
9428 # (2) before a word containing "conftest.", or (3) at the end.
9429 # Note that $ac_compile itself does not contain backslashes and begins
9430 # with a dollar sign (not a hyphen), so the echo should work correctly.
9431 # The option is referenced via a variable to avoid confusing sed.
9432 lt_compile=`echo "$ac_compile" | $SED \
9433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9435 -e 's:$: $lt_compiler_flag:'`
9436 (eval echo "\"\$as_me:9436: $lt_compile\"" >&5)
9437 (eval "$lt_compile" 2>conftest.err)
9439 cat conftest.err >&5
9440 echo "$as_me:9440: \$? = $ac_status" >&5
9441 if (exit $ac_status) && test -s "$ac_outfile"; then
9442 # The compiler can only warn and ignore the option if not recognized
9443 # So say no if there are warnings other than the usual output.
9444 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9447 lt_cv_prog_compiler_rtti_exceptions=yes
9453 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9454 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9457 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9469 lt_prog_compiler_wl=
9470 lt_prog_compiler_pic=
9471 lt_prog_compiler_static=
9473 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9474 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9476 if test "$GCC" = yes; then
9477 lt_prog_compiler_wl='-Wl,'
9478 lt_prog_compiler_static='-static'
9482 # All AIX code is PIC.
9483 if test "$host_cpu" = ia64; then
9484 # AIX 5 now supports IA64 processor
9485 lt_prog_compiler_static='-Bstatic'
9492 # see comment about AmigaOS4 .so support
9493 lt_prog_compiler_pic='-fPIC'
9496 # FIXME: we need at least 68020 code to build shared libraries, but
9497 # adding the `-m68020' flag to GCC prevents building anything better,
9499 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9505 # PIC is the default for these OSes.
9508 mingw* | cygwin* | pw32* | os2* | cegcc*)
9509 # This hack is so that the source file can tell whether it is being
9510 # built for inclusion in a dll (and should export symbols for example).
9511 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9512 # (--disable-auto-import) libraries
9513 lt_prog_compiler_pic='-DDLL_EXPORT'
9516 darwin* | rhapsody*)
9517 # PIC is the default on this platform
9518 # Common symbols not allowed in MH_DYLIB files
9519 lt_prog_compiler_pic='-fno-common'
9523 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9524 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9525 # sets the default TLS model and affects inlining.
9531 lt_prog_compiler_pic='-fPIC'
9537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9538 # Instead, we relocate shared libraries at runtime.
9542 # Just because we use GCC doesn't mean we suddenly get shared libraries
9543 # on systems that don't support them.
9544 lt_prog_compiler_can_build_shared=no
9549 # QNX uses GNU C++, but need to define -shared option too, otherwise
9551 lt_prog_compiler_pic='-fPIC -shared'
9555 if test -d /usr/nec; then
9556 lt_prog_compiler_pic=-Kconform_pic
9561 lt_prog_compiler_pic='-fPIC'
9565 # PORTME Check for flag to pass linker flags through the system compiler.
9568 lt_prog_compiler_wl='-Wl,'
9569 if test "$host_cpu" = ia64; then
9570 # AIX 5 now supports IA64 processor
9571 lt_prog_compiler_static='-Bstatic'
9573 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9577 mingw* | cygwin* | pw32* | os2* | cegcc*)
9578 # This hack is so that the source file can tell whether it is being
9579 # built for inclusion in a dll (and should export symbols for example).
9580 lt_prog_compiler_pic='-DDLL_EXPORT'
9583 hpux9* | hpux10* | hpux11*)
9584 lt_prog_compiler_wl='-Wl,'
9585 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9592 lt_prog_compiler_pic='+Z'
9595 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9596 lt_prog_compiler_static='${wl}-a ${wl}archive'
9599 irix5* | irix6* | nonstopux*)
9600 lt_prog_compiler_wl='-Wl,'
9601 # PIC (with -KPIC) is the default.
9602 lt_prog_compiler_static='-non_shared'
9605 linux* | k*bsd*-gnu)
9606 case $cc_basename in
9607 # old Intel for x86_64 which still supported -KPIC.
9609 lt_prog_compiler_wl='-Wl,'
9610 lt_prog_compiler_pic='-KPIC'
9611 lt_prog_compiler_static='-static'
9613 # icc used to be incompatible with GCC.
9614 # ICC 10 doesn't accept -KPIC any more.
9616 lt_prog_compiler_wl='-Wl,'
9617 lt_prog_compiler_pic='-fPIC'
9618 lt_prog_compiler_static='-static'
9620 # Lahey Fortran 8.1.
9622 lt_prog_compiler_wl='-Wl,'
9623 lt_prog_compiler_pic='--shared'
9624 lt_prog_compiler_static='--static'
9626 pgcc* | pgf77* | pgf90* | pgf95*)
9627 # Portland Group compilers (*not* the Pentium gcc compiler,
9628 # which looks to be a dead project)
9629 lt_prog_compiler_wl='-Wl,'
9630 lt_prog_compiler_pic='-fpic'
9631 lt_prog_compiler_static='-Bstatic'
9634 lt_prog_compiler_wl='-Wl,'
9635 # All Alpha code is PIC.
9636 lt_prog_compiler_static='-non_shared'
9639 # IBM XL C 8.0/Fortran 10.1 on PPC
9640 lt_prog_compiler_wl='-Wl,'
9641 lt_prog_compiler_pic='-qpic'
9642 lt_prog_compiler_static='-qstaticlink'
9645 case `$CC -V 2>&1 | sed 5q` in
9648 lt_prog_compiler_pic='-KPIC'
9649 lt_prog_compiler_static='-Bstatic'
9650 lt_prog_compiler_wl='-Wl,'
9653 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9654 lt_prog_compiler_pic='-KPIC'
9655 lt_prog_compiler_static='-Bstatic'
9656 lt_prog_compiler_wl=''
9664 lt_prog_compiler_pic='-KPIC'
9665 lt_prog_compiler_static='-Bstatic'
9669 # QNX uses GNU C++, but need to define -shared option too, otherwise
9671 lt_prog_compiler_pic='-fPIC -shared'
9674 osf3* | osf4* | osf5*)
9675 lt_prog_compiler_wl='-Wl,'
9676 # All OSF/1 code is PIC.
9677 lt_prog_compiler_static='-non_shared'
9681 lt_prog_compiler_static='-non_shared'
9685 lt_prog_compiler_pic='-KPIC'
9686 lt_prog_compiler_static='-Bstatic'
9687 case $cc_basename in
9689 lt_prog_compiler_wl='-Qoption ld ';;
9691 lt_prog_compiler_wl='-Wl,';;
9696 lt_prog_compiler_wl='-Qoption ld '
9697 lt_prog_compiler_pic='-PIC'
9698 lt_prog_compiler_static='-Bstatic'
9701 sysv4 | sysv4.2uw2* | sysv4.3*)
9702 lt_prog_compiler_wl='-Wl,'
9703 lt_prog_compiler_pic='-KPIC'
9704 lt_prog_compiler_static='-Bstatic'
9708 if test -d /usr/nec ;then
9709 lt_prog_compiler_pic='-Kconform_pic'
9710 lt_prog_compiler_static='-Bstatic'
9714 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9715 lt_prog_compiler_wl='-Wl,'
9716 lt_prog_compiler_pic='-KPIC'
9717 lt_prog_compiler_static='-Bstatic'
9721 lt_prog_compiler_wl='-Wl,'
9722 lt_prog_compiler_can_build_shared=no
9726 lt_prog_compiler_pic='-pic'
9727 lt_prog_compiler_static='-Bstatic'
9731 lt_prog_compiler_can_build_shared=no
9737 # For platforms which do not support PIC, -DPIC is meaningless:
9739 lt_prog_compiler_pic=
9742 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9745 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9746 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9754 # Check to make sure the PIC flag actually works.
9756 if test -n "$lt_prog_compiler_pic"; then
9757 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9758 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9759 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 lt_cv_prog_compiler_pic_works=no
9763 ac_outfile=conftest.$ac_objext
9764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9765 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9766 # Insert the option either (1) after the last *FLAGS variable, or
9767 # (2) before a word containing "conftest.", or (3) at the end.
9768 # Note that $ac_compile itself does not contain backslashes and begins
9769 # with a dollar sign (not a hyphen), so the echo should work correctly.
9770 # The option is referenced via a variable to avoid confusing sed.
9771 lt_compile=`echo "$ac_compile" | $SED \
9772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9774 -e 's:$: $lt_compiler_flag:'`
9775 (eval echo "\"\$as_me:9775: $lt_compile\"" >&5)
9776 (eval "$lt_compile" 2>conftest.err)
9778 cat conftest.err >&5
9779 echo "$as_me:9779: \$? = $ac_status" >&5
9780 if (exit $ac_status) && test -s "$ac_outfile"; then
9781 # The compiler can only warn and ignore the option if not recognized
9782 # So say no if there are warnings other than the usual output.
9783 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9785 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9786 lt_cv_prog_compiler_pic_works=yes
9792 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9793 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9795 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9796 case $lt_prog_compiler_pic in
9798 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9801 lt_prog_compiler_pic=
9802 lt_prog_compiler_can_build_shared=no
9813 # Check to make sure the static flag actually works.
9815 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9816 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9817 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9818 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 lt_cv_prog_compiler_static_works=no
9822 save_LDFLAGS="$LDFLAGS"
9823 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9824 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9825 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9826 # The linker can only warn and ignore the option if not recognized
9827 # So say no if there are warnings
9828 if test -s conftest.err; then
9829 # Append any errors to the config.log.
9830 cat conftest.err 1>&5
9831 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9832 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9833 if diff conftest.exp conftest.er2 >/dev/null; then
9834 lt_cv_prog_compiler_static_works=yes
9837 lt_cv_prog_compiler_static_works=yes
9841 LDFLAGS="$save_LDFLAGS"
9844 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9845 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9847 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9850 lt_prog_compiler_static=
9859 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9860 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9861 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 lt_cv_prog_compiler_c_o=no
9865 $RM -r conftest 2>/dev/null
9869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9871 lt_compiler_flag="-o out/conftest2.$ac_objext"
9872 # Insert the option either (1) after the last *FLAGS variable, or
9873 # (2) before a word containing "conftest.", or (3) at the end.
9874 # Note that $ac_compile itself does not contain backslashes and begins
9875 # with a dollar sign (not a hyphen), so the echo should work correctly.
9876 lt_compile=`echo "$ac_compile" | $SED \
9877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9879 -e 's:$: $lt_compiler_flag:'`
9880 (eval echo "\"\$as_me:9880: $lt_compile\"" >&5)
9881 (eval "$lt_compile" 2>out/conftest.err)
9883 cat out/conftest.err >&5
9884 echo "$as_me:9884: \$? = $ac_status" >&5
9885 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9887 # The compiler can only warn and ignore the option if not recognized
9888 # So say no if there are warnings
9889 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9890 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9891 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9892 lt_cv_prog_compiler_c_o=yes
9897 # SGI C++ compiler will create directory out/ii_files/ for
9898 # template instantiation
9899 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9900 $RM out/* && rmdir out
9906 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9907 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9914 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9915 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9916 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 lt_cv_prog_compiler_c_o=no
9920 $RM -r conftest 2>/dev/null
9924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9926 lt_compiler_flag="-o out/conftest2.$ac_objext"
9927 # Insert the option either (1) after the last *FLAGS variable, or
9928 # (2) before a word containing "conftest.", or (3) at the end.
9929 # Note that $ac_compile itself does not contain backslashes and begins
9930 # with a dollar sign (not a hyphen), so the echo should work correctly.
9931 lt_compile=`echo "$ac_compile" | $SED \
9932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9934 -e 's:$: $lt_compiler_flag:'`
9935 (eval echo "\"\$as_me:9935: $lt_compile\"" >&5)
9936 (eval "$lt_compile" 2>out/conftest.err)
9938 cat out/conftest.err >&5
9939 echo "$as_me:9939: \$? = $ac_status" >&5
9940 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9942 # The compiler can only warn and ignore the option if not recognized
9943 # So say no if there are warnings
9944 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9946 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9947 lt_cv_prog_compiler_c_o=yes
9952 # SGI C++ compiler will create directory out/ii_files/ for
9953 # template instantiation
9954 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9955 $RM out/* && rmdir out
9961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9962 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9967 hard_links="nottested"
9968 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9969 # do not overwrite the value of need_locks provided by the user
9970 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9971 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9976 ln conftest.a conftest.b 2>&5 || hard_links=no
9977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9978 { echo "$as_me:$LINENO: result: $hard_links" >&5
9979 echo "${ECHO_T}$hard_links" >&6; }
9980 if test "$hard_links" = no; then
9981 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9982 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9994 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9995 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9998 allow_undefined_flag=
9999 always_export_symbols=no
10001 archive_expsym_cmds=
10002 compiler_needs_object=no
10003 enable_shared_with_static_runtimes=no
10004 export_dynamic_flag_spec=
10005 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10006 hardcode_automatic=no
10008 hardcode_direct_absolute=no
10009 hardcode_libdir_flag_spec=
10010 hardcode_libdir_flag_spec_ld=
10011 hardcode_libdir_separator=
10012 hardcode_minus_L=no
10013 hardcode_shlibpath_var=unsupported
10015 link_all_deplibs=unknown
10017 module_expsym_cmds=
10018 old_archive_from_new_cmds=
10019 old_archive_from_expsyms_cmds=
10020 thread_safe_flag_spec=
10021 whole_archive_flag_spec=
10022 # include_expsyms should be a list of space-separated symbols to be *always*
10023 # included in the symbol list
10025 # exclude_expsyms can be an extended regexp of symbols to exclude
10026 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10027 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10028 # as well as any symbol that contains `d'.
10029 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10030 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10031 # platforms (ab)use it in PIC code, but their linkers get confused if
10032 # the symbol is explicitly referenced. Since portable code cannot
10033 # rely on this symbol name, it's probably fine to never include it in
10034 # preloaded symbol tables.
10035 # Exclude shared library initialization/finalization symbols.
10036 extract_expsyms_cmds=
10039 cygwin* | mingw* | pw32* | cegcc*)
10040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10041 # When not using gcc, we currently assume that we are using
10042 # Microsoft Visual C++.
10043 if test "$GCC" != yes; then
10048 # we just hope/assume this is gcc and not c89 (= MSVC++)
10057 if test "$with_gnu_ld" = yes; then
10058 # If archive_cmds runs LD, not CC, wlarc should be empty
10061 # Set some defaults for GNU ld with shared library support. These
10062 # are reset later if shared libraries are not supported. Putting them
10063 # here allows them to be overridden if necessary.
10064 runpath_var=LD_RUN_PATH
10065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066 export_dynamic_flag_spec='${wl}--export-dynamic'
10067 # ancient GNU ld didn't support --whole-archive et. al.
10068 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10069 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10071 whole_archive_flag_spec=
10073 supports_anon_versioning=no
10074 case `$LD -v 2>&1` in
10075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10078 *\ 2.11.*) ;; # other 2.11 versions
10079 *) supports_anon_versioning=yes ;;
10082 # See if GNU ld supports shared libraries.
10085 # On AIX/PPC, the GNU linker is very broken
10086 if test "$host_cpu" != ia64; then
10090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10091 *** to be unable to reliably create shared libraries on AIX.
10092 *** Therefore, libtool is disabling shared libraries support. If you
10093 *** really care for shared libraries, you may want to modify your PATH
10094 *** so that a non-GNU linker is found, and then restart.
10103 # see comment about AmigaOS4 .so support
10104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105 archive_expsym_cmds=''
10108 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)'
10109 hardcode_libdir_flag_spec='-L$libdir'
10110 hardcode_minus_L=yes
10116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10117 allow_undefined_flag=unsupported
10118 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10119 # support --undefined. This deserves some investigation. FIXME
10120 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10126 cygwin* | mingw* | pw32* | cegcc*)
10127 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10128 # as there is no search path for DLLs.
10129 hardcode_libdir_flag_spec='-L$libdir'
10130 allow_undefined_flag=unsupported
10131 always_export_symbols=no
10132 enable_shared_with_static_runtimes=yes
10133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10135 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10137 # If the export-symbols file already is a .def file (1st line
10138 # is EXPORTS), use it as is; otherwise, prepend...
10139 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10140 cp $export_symbols $output_objdir/$soname.def;
10142 echo EXPORTS > $output_objdir/$soname.def;
10143 cat $export_symbols >> $output_objdir/$soname.def;
10145 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10153 hardcode_shlibpath_var=no
10154 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10155 export_dynamic_flag_spec='${wl}-E'
10156 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10157 # Instead, shared libraries are loaded at an image base (0x10000000 by
10158 # default) and relocated if they conflict, which is a slow very memory
10159 # consuming and fragmenting process. To avoid this, we pick a random,
10160 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10161 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10162 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10163 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'
10166 gnu* | linux* | tpf* | k*bsd*-gnu)
10168 if test "$host_os" = linux-dietlibc; then
10169 case $cc_basename in
10170 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10173 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10174 && test "$tmp_diet" = no
10177 tmp_sharedflag='-shared'
10178 case $cc_basename,$host_cpu in
10179 pgcc*) # Portland Group C compiler
10180 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'
10181 tmp_addflag=' $pic_flag'
10183 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10184 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'
10185 tmp_addflag=' $pic_flag -Mnomain' ;;
10186 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10187 tmp_addflag=' -i_dynamic' ;;
10188 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10189 tmp_addflag=' -i_dynamic -nofor_main' ;;
10190 ifc* | ifort*) # Intel Fortran compiler
10191 tmp_addflag=' -nofor_main' ;;
10192 lf95*) # Lahey Fortran 8.1
10193 whole_archive_flag_spec=
10194 tmp_sharedflag='--shared' ;;
10195 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10196 tmp_sharedflag='-qmkshrobj'
10199 case `$CC -V 2>&1 | sed 5q` in
10200 *Sun\ C*) # Sun C 5.9
10201 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'
10202 compiler_needs_object=yes
10203 tmp_sharedflag='-G' ;;
10204 *Sun\ F*) # Sun Fortran 8.3
10205 tmp_sharedflag='-G' ;;
10207 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10209 if test "x$supports_anon_versioning" = xyes; then
10210 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10212 echo "local: *; };" >> $output_objdir/$libname.ver~
10213 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10216 case $cc_basename in
10218 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10219 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10220 hardcode_libdir_flag_spec=
10221 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10222 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10223 if test "x$supports_anon_versioning" = xyes; then
10224 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10226 echo "local: *; };" >> $output_objdir/$libname.ver~
10227 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10237 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10238 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10247 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10252 *** create shared libraries on Solaris systems. Therefore, libtool
10253 *** is disabling shared libraries support. We urge you to upgrade GNU
10254 *** binutils to release 2.9.1 or newer. Another option is to modify
10255 *** your PATH or compiler configuration so that the native linker is
10256 *** used, and then restart.
10259 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10268 case `$LD -v 2>&1` in
10269 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10274 *** reliably create shared libraries on SCO systems. Therefore, libtool
10275 *** is disabling shared libraries support. We urge you to upgrade GNU
10276 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10277 *** your PATH or compiler configuration so that the native linker is
10278 *** used, and then restart.
10283 # For security reasons, it is highly recommended that you always
10284 # use absolute paths for naming shared libraries, and exclude the
10285 # DT_RUNPATH tag from executables and libraries. But doing so
10286 # requires that you compile everything twice, which is a pain.
10287 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10299 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10301 hardcode_direct=yes
10302 hardcode_shlibpath_var=no
10306 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10315 if test "$ld_shlibs" = no; then
10317 hardcode_libdir_flag_spec=
10318 export_dynamic_flag_spec=
10319 whole_archive_flag_spec=
10322 # PORTME fill in a description of your system's linker (not GNU ld)
10325 allow_undefined_flag=unsupported
10326 always_export_symbols=yes
10327 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'
10328 # Note: this linker hardcodes the directories in LIBPATH if there
10329 # are no directories specified by -L.
10330 hardcode_minus_L=yes
10331 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10332 # Neither direct hardcoding nor static linking is supported with a
10334 hardcode_direct=unsupported
10339 if test "$host_cpu" = ia64; then
10340 # On IA64, the linker does run time linking by default, so we don't
10341 # have to do anything special.
10342 aix_use_runtimelinking=no
10343 exp_sym_flag='-Bexport'
10346 # If we're using GNU nm, then we don't want the "-C" option.
10347 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10348 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10349 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'
10351 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'
10353 aix_use_runtimelinking=no
10355 # Test if we are trying to use run time linking or normal
10356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10357 # need to do runtime linking.
10358 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10359 for ld_flag in $LDFLAGS; do
10360 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10361 aix_use_runtimelinking=yes
10368 exp_sym_flag='-bexport'
10369 no_entry_flag='-bnoentry'
10372 # When large executables or shared objects are built, AIX ld can
10373 # have problems creating the table of contents. If linking a library
10374 # or program results in "error TOC overflow" add -mminimal-toc to
10375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10379 hardcode_direct=yes
10380 hardcode_direct_absolute=yes
10381 hardcode_libdir_separator=':'
10382 link_all_deplibs=yes
10383 file_list_spec='${wl}-f,'
10385 if test "$GCC" = yes; then
10386 case $host_os in aix4.[012]|aix4.[012].*)
10387 # We only want to do this on AIX 4.2 and lower, the check
10388 # below for broken collect2 doesn't work under 4.3+
10389 collect2name=`${CC} -print-prog-name=collect2`
10390 if test -f "$collect2name" &&
10391 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10393 # We have reworked collect2
10396 # We have old collect2
10397 hardcode_direct=unsupported
10398 # It fails to find uninstalled libraries when the uninstalled
10399 # path is not listed in the libpath. Setting hardcode_minus_L
10400 # to unsupported forces relinking
10401 hardcode_minus_L=yes
10402 hardcode_libdir_flag_spec='-L$libdir'
10403 hardcode_libdir_separator=
10407 shared_flag='-shared'
10408 if test "$aix_use_runtimelinking" = yes; then
10409 shared_flag="$shared_flag "'${wl}-G'
10413 if test "$host_cpu" = ia64; then
10414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10415 # chokes on -Wl,-G. The following line is correct:
10418 if test "$aix_use_runtimelinking" = yes; then
10419 shared_flag='${wl}-G'
10421 shared_flag='${wl}-bM:SRE'
10426 export_dynamic_flag_spec='${wl}-bexpall'
10427 # It seems that -bexpall does not export symbols beginning with
10428 # underscore (_), so it is better to generate a list of symbols to export.
10429 always_export_symbols=yes
10430 if test "$aix_use_runtimelinking" = yes; then
10431 # Warning - without using the other runtime loading flags (-brtl),
10432 # -berok will link without error, but may produce a broken library.
10433 allow_undefined_flag='-berok'
10434 # Determine the default libpath from the value encoded in an
10435 # empty executable.
10436 cat >conftest.$ac_ext <<_ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10460 grep -v '^ *+' conftest.er1 >conftest.err
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && {
10465 test -z "$ac_c_werror_flag" ||
10466 test ! -s conftest.err
10467 } && test -s conftest$ac_exeext &&
10468 $as_test_x conftest$ac_exeext; then
10470 lt_aix_libpath_sed='
10471 /Import File Strings/,/^$/ {
10477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 # Check for a 64-bit object if we didn't find anything.
10479 if test -z "$aix_libpath"; then
10480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10490 conftest$ac_exeext conftest.$ac_ext
10491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10493 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10494 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"
10496 if test "$host_cpu" = ia64; then
10497 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10498 allow_undefined_flag="-z nodefs"
10499 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"
10501 # Determine the default libpath from the value encoded in an
10502 # empty executable.
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_link") 2>conftest.er1
10527 grep -v '^ *+' conftest.er1 >conftest.err
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && {
10532 test -z "$ac_c_werror_flag" ||
10533 test ! -s conftest.err
10534 } && test -s conftest$ac_exeext &&
10535 $as_test_x conftest$ac_exeext; then
10537 lt_aix_libpath_sed='
10538 /Import File Strings/,/^$/ {
10544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 # Check for a 64-bit object if we didn't find anything.
10546 if test -z "$aix_libpath"; then
10547 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557 conftest$ac_exeext conftest.$ac_ext
10558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10561 # Warning - without using the other run time loading flags,
10562 # -berok will link without error, but may produce a broken library.
10563 no_undefined_flag=' ${wl}-bernotok'
10564 allow_undefined_flag=' ${wl}-berok'
10565 # Exported symbols can be pulled into shared objects from archives
10566 whole_archive_flag_spec='$convenience'
10567 archive_cmds_need_lc=yes
10568 # This is similar to how AIX traditionally builds its shared libraries.
10569 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'
10577 # see comment about AmigaOS4 .so support
10578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10579 archive_expsym_cmds=''
10582 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)'
10583 hardcode_libdir_flag_spec='-L$libdir'
10584 hardcode_minus_L=yes
10590 export_dynamic_flag_spec=-rdynamic
10593 cygwin* | mingw* | pw32* | cegcc*)
10594 # When not using gcc, we currently assume that we are using
10595 # Microsoft Visual C++.
10596 # hardcode_libdir_flag_spec is actually meaningless, as there is
10597 # no search path for DLLs.
10598 hardcode_libdir_flag_spec=' '
10599 allow_undefined_flag=unsupported
10600 # Tell ltmain to make .lib files, not .a files.
10602 # Tell ltmain to make .dll files, not .so files.
10604 # FIXME: Setting linknames here is a bad hack.
10605 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10606 # The linker will automatically build a .lib file if we build a DLL.
10607 old_archive_from_new_cmds='true'
10608 # FIXME: Should let the user specify the lib program.
10609 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10610 fix_srcfile_path='`cygpath -w "$srcfile"`'
10611 enable_shared_with_static_runtimes=yes
10614 darwin* | rhapsody*)
10617 archive_cmds_need_lc=no
10619 hardcode_automatic=yes
10620 hardcode_shlibpath_var=unsupported
10621 whole_archive_flag_spec=''
10622 link_all_deplibs=yes
10623 allow_undefined_flag="$_lt_dar_allow_undefined"
10624 case $cc_basename in
10625 ifort*) _lt_dar_can_shared=yes ;;
10626 *) _lt_dar_can_shared=$GCC ;;
10628 if test "$_lt_dar_can_shared" = "yes"; then
10629 output_verbose_link_cmd=echo
10630 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10631 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10632 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}"
10633 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}"
10642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643 hardcode_libdir_flag_spec='-L$libdir'
10644 hardcode_shlibpath_var=no
10651 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10652 # support. Future versions do this automatically, but an explicit c++rt0.o
10653 # does not break anything, and helps significantly (at the cost of a little
10656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10657 hardcode_libdir_flag_spec='-R$libdir'
10658 hardcode_direct=yes
10659 hardcode_shlibpath_var=no
10662 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10665 hardcode_direct=yes
10666 hardcode_minus_L=yes
10667 hardcode_shlibpath_var=no
10670 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10671 freebsd* | dragonfly*)
10672 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10673 hardcode_libdir_flag_spec='-R$libdir'
10674 hardcode_direct=yes
10675 hardcode_shlibpath_var=no
10679 if test "$GCC" = yes; then
10680 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'
10682 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'
10684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10685 hardcode_libdir_separator=:
10686 hardcode_direct=yes
10688 # hardcode_minus_L: Not really in the search PATH,
10689 # but as the default location of the library.
10690 hardcode_minus_L=yes
10691 export_dynamic_flag_spec='${wl}-E'
10695 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10698 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10700 if test "$with_gnu_ld" = no; then
10701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10702 hardcode_libdir_flag_spec_ld='+b $libdir'
10703 hardcode_libdir_separator=:
10704 hardcode_direct=yes
10705 hardcode_direct_absolute=yes
10706 export_dynamic_flag_spec='${wl}-E'
10707 # hardcode_minus_L: Not really in the search PATH,
10708 # but as the default location of the library.
10709 hardcode_minus_L=yes
10714 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10723 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10729 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10735 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10739 if test "$with_gnu_ld" = no; then
10740 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10741 hardcode_libdir_separator=:
10746 hardcode_shlibpath_var=no
10749 hardcode_direct=yes
10750 hardcode_direct_absolute=yes
10751 export_dynamic_flag_spec='${wl}-E'
10753 # hardcode_minus_L: Not really in the search PATH,
10754 # but as the default location of the library.
10755 hardcode_minus_L=yes
10761 irix5* | irix6* | nonstopux*)
10762 if test "$GCC" = yes; then
10763 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'
10764 # Try to use the -exported_symbol ld option, if it does not
10765 # work, assume that -exports_file does not work either and
10766 # implicitly export all symbols.
10767 save_LDFLAGS="$LDFLAGS"
10768 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10769 cat >conftest.$ac_ext <<_ACEOF
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (ac_try="$ac_link"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_link") 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } && {
10786 test -z "$ac_c_werror_flag" ||
10787 test ! -s conftest.err
10788 } && test -s conftest$ac_exeext &&
10789 $as_test_x conftest$ac_exeext; then
10790 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'
10793 echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LDFLAGS="$save_LDFLAGS"
10803 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'
10804 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'
10806 archive_cmds_need_lc='no'
10807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10808 hardcode_libdir_separator=:
10810 link_all_deplibs=yes
10814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10817 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10819 hardcode_libdir_flag_spec='-R$libdir'
10820 hardcode_direct=yes
10821 hardcode_shlibpath_var=no
10825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826 hardcode_direct=yes
10827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10828 hardcode_libdir_separator=:
10829 hardcode_shlibpath_var=no
10836 if test -f /usr/libexec/ld.so; then
10837 hardcode_direct=yes
10838 hardcode_shlibpath_var=no
10839 hardcode_direct_absolute=yes
10840 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10842 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10844 export_dynamic_flag_spec='${wl}-E'
10847 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10849 hardcode_libdir_flag_spec='-R$libdir'
10852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10853 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10863 hardcode_libdir_flag_spec='-L$libdir'
10864 hardcode_minus_L=yes
10865 allow_undefined_flag=unsupported
10866 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'
10867 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10871 if test "$GCC" = yes; then
10872 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10873 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'
10875 allow_undefined_flag=' -expect_unresolved \*'
10876 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'
10878 archive_cmds_need_lc='no'
10879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10880 hardcode_libdir_separator=:
10883 osf4* | osf5*) # as osf3* with the addition of -msym flag
10884 if test "$GCC" = yes; then
10885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10886 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'
10887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10889 allow_undefined_flag=' -expect_unresolved \*'
10890 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'
10891 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~
10892 $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'
10894 # Both c and cxx compiler support -rpath directly
10895 hardcode_libdir_flag_spec='-rpath $libdir'
10897 archive_cmds_need_lc='no'
10898 hardcode_libdir_separator=:
10902 no_undefined_flag=' -z defs'
10903 if test "$GCC" = yes; then
10905 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10907 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10909 case `$CC -V 2>&1` in
10912 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10918 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10919 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10920 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10924 hardcode_libdir_flag_spec='-R$libdir'
10925 hardcode_shlibpath_var=no
10927 solaris2.[0-5] | solaris2.[0-5].*) ;;
10929 # The compiler driver will combine and reorder linker options,
10930 # but understands `-z linker_flag'. GCC discards it without `$wl',
10931 # but is careful enough not to reorder.
10932 # Supported since Solaris 2.6 (maybe 2.5.1?)
10933 if test "$GCC" = yes; then
10934 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10940 link_all_deplibs=yes
10944 if test "x$host_vendor" = xsequent; then
10945 # Use $CC to link under sequent, because it throws in some extra .o
10946 # files that make .init and .fini sections work.
10947 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10951 hardcode_libdir_flag_spec='-L$libdir'
10952 hardcode_direct=yes
10953 hardcode_minus_L=yes
10954 hardcode_shlibpath_var=no
10958 case $host_vendor in
10960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961 hardcode_direct=yes # is this really true???
10964 ## LD is ld it makes a PLAMLIB
10965 ## CC just makes a GrossModule.
10966 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10967 reload_cmds='$CC -r -o $output$reload_objs'
10971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10975 runpath_var='LD_RUN_PATH'
10976 hardcode_shlibpath_var=no
10980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981 hardcode_shlibpath_var=no
10982 export_dynamic_flag_spec='-Bexport'
10986 if test -d /usr/nec; then
10987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988 hardcode_shlibpath_var=no
10989 runpath_var=LD_RUN_PATH
10990 hardcode_runpath_var=yes
10995 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10996 no_undefined_flag='${wl}-z,text'
10997 archive_cmds_need_lc=no
10998 hardcode_shlibpath_var=no
10999 runpath_var='LD_RUN_PATH'
11001 if test "$GCC" = yes; then
11002 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010 sysv5* | sco3.2v5* | sco5v6*)
11011 # Note: We can NOT use -z defs as we might desire, because we do not
11012 # link with -lc, and that would cause any symbols used from libc to
11013 # always be unresolved, which means just about no library would
11014 # ever link correctly. If we're not using GNU ld we use -z text
11015 # though, which does catch some bad symbols but isn't as heavy-handed
11017 no_undefined_flag='${wl}-z,text'
11018 allow_undefined_flag='${wl}-z,nodefs'
11019 archive_cmds_need_lc=no
11020 hardcode_shlibpath_var=no
11021 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11022 hardcode_libdir_separator=':'
11023 link_all_deplibs=yes
11024 export_dynamic_flag_spec='${wl}-Bexport'
11025 runpath_var='LD_RUN_PATH'
11027 if test "$GCC" = yes; then
11028 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11038 hardcode_libdir_flag_spec='-L$libdir'
11039 hardcode_shlibpath_var=no
11047 if test x$host_vendor = xsni; then
11049 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11050 export_dynamic_flag_spec='${wl}-Blargedynsym'
11056 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11057 echo "${ECHO_T}$ld_shlibs" >&6; }
11058 test "$ld_shlibs" = no && can_build_shared=no
11060 with_gnu_ld=$with_gnu_ld
11077 # Do we need to explicitly link libc?
11079 case "x$archive_cmds_need_lc" in
11081 # Assume -lc should be added
11082 archive_cmds_need_lc=yes
11084 if test "$enable_shared" = yes && test "$GCC" = yes; then
11085 case $archive_cmds in
11087 # FIXME: we may have to deal with multi-command sequences.
11090 # Test whether the compiler implicitly links with -lc since on some
11091 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11092 # to ld, don't add -lc before -lgcc.
11093 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11094 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099 (eval $ac_compile) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } 2>conftest.err; then
11105 libobjs=conftest.$ac_objext
11107 wl=$lt_prog_compiler_wl
11108 pic_flag=$lt_prog_compiler_pic
11114 lt_save_allow_undefined_flag=$allow_undefined_flag
11115 allow_undefined_flag=
11116 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11117 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }
11122 archive_cmds_need_lc=no
11124 archive_cmds_need_lc=yes
11126 allow_undefined_flag=$lt_save_allow_undefined_flag
11128 cat conftest.err 1>&5
11131 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11132 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11295 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11296 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11298 if test "$GCC" = yes; then
11300 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11301 *) lt_awk_arg="/^libraries:/" ;;
11303 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11304 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11305 # if the path contains ";" then we assume it to be the separator
11306 # otherwise default to the standard path separator (i.e. ":") - it is
11307 # assumed that no part of a normal pathname contains ";" but that should
11308 # okay in the real world where ";" in dirpaths is itself problematic.
11309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11313 # Ok, now we have the path, separated by spaces, we can step through it
11314 # and add multilib dir if necessary.
11315 lt_tmp_lt_search_path_spec=
11316 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11317 for lt_sys_path in $lt_search_path_spec; do
11318 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11321 test -d "$lt_sys_path" && \
11322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11325 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11326 BEGIN {RS=" "; FS="/|\n";} {
11329 for (lt_i = NF; lt_i > 0; lt_i--) {
11330 if ($lt_i != "" && $lt_i != ".") {
11331 if ($lt_i == "..") {
11334 if (lt_count == 0) {
11335 lt_foo="/" $lt_i lt_foo;
11342 if (lt_foo != "") { lt_freq[lt_foo]++; }
11343 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11345 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11349 library_names_spec=
11350 libname_spec='lib$name'
11354 postuninstall_cmds=
11358 shlibpath_overrides_runpath=unknown
11360 dynamic_linker="$host_os ld.so"
11361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11362 need_lib_prefix=unknown
11363 hardcode_into_libs=no
11365 # when you set need_version to no, make sure it does not cause -set_version
11366 # flags to be left without arguments
11367 need_version=unknown
11372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11373 shlibpath_var=LIBPATH
11375 # AIX 3 has no versioning support, so we append a major version to the name.
11376 soname_spec='${libname}${release}${shared_ext}$major'
11383 hardcode_into_libs=yes
11384 if test "$host_cpu" = ia64; then
11385 # AIX 5 supports IA64
11386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11387 shlibpath_var=LD_LIBRARY_PATH
11389 # With GCC up to 2.95.x, collect2 would create an import file
11390 # for dependence libraries. The import file would start with
11391 # the line `#! .'. This would cause the generated library to
11392 # depend on `.', always an invalid library. This was fixed in
11393 # development snapshots of GCC prior to 3.0.
11395 aix4 | aix4.[01] | aix4.[01].*)
11396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11398 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11401 can_build_shared=no
11405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11406 # soname into executable. Probably we can add versioning support to
11407 # collect2, so additional links can be useful in future.
11408 if test "$aix_use_runtimelinking" = yes; then
11409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11410 # instead of lib<name>.a to let people know that these are not
11411 # typical AIX shared libraries.
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 # We preserve .a as extension for shared libraries through AIX4.2
11415 # and later when we are not doing run time linking.
11416 library_names_spec='${libname}${release}.a $libname.a'
11417 soname_spec='${libname}${release}${shared_ext}$major'
11419 shlibpath_var=LIBPATH
11426 # Since July 2007 AmigaOS4 officially supports .so libraries.
11427 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 library_names_spec='$libname.ixlibrary $libname.a'
11432 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11433 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'
11439 library_names_spec='${libname}${shared_ext}'
11440 dynamic_linker="$host_os ld.so"
11441 shlibpath_var=LIBRARY_PATH
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448 soname_spec='${libname}${release}${shared_ext}$major'
11449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11453 # the default ld.so.conf also contains /usr/contrib/lib and
11454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11455 # libtool to hard-code these into programs
11458 cygwin* | mingw* | pw32* | cegcc*)
11459 version_type=windows
11464 case $GCC,$host_os in
11465 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11466 library_names_spec='$libname.dll.a'
11467 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11468 postinstall_cmds='base_file=`basename \${file}`~
11469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11470 dldir=$destdir/`dirname \$dlpath`~
11471 test -d \$dldir || mkdir -p \$dldir~
11472 $install_prog $dir/$dlname \$dldir/$dlname~
11473 chmod a+x \$dldir/$dlname~
11474 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11475 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11477 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11478 dlpath=$dir/\$dldll~
11480 shlibpath_overrides_runpath=yes
11484 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11485 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11486 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11489 # MinGW DLLs use traditional 'lib' prefix
11490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11491 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11492 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11493 # It is most probably a Windows format PATH printed by
11494 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11495 # path with ; separators, and with drive letters. We can handle the
11496 # drive letters (cygwin fileutils understands them), so leave them,
11497 # especially as we might pass files found there to a mingw objdump,
11498 # which wouldn't understand a cygwinified path. Ahh.
11499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11505 # pw32 DLLs use 'pw' prefix rather than 'lib'
11506 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11512 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11515 dynamic_linker='Win32 ld.exe'
11516 # FIXME: first we should search . and the directory the executable is in
11520 darwin* | rhapsody*)
11521 dynamic_linker="$host_os dyld"
11522 version_type=darwin
11525 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11526 soname_spec='${libname}${release}${major}$shared_ext'
11527 shlibpath_overrides_runpath=yes
11528 shlibpath_var=DYLD_LIBRARY_PATH
11529 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11531 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11532 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 shlibpath_var=LD_LIBRARY_PATH
11548 freebsd* | dragonfly*)
11549 # DragonFly does not have aout. When/if they implement a new
11550 # versioning mechanism, adjust this.
11551 if test -x /usr/bin/objformat; then
11552 objformat=`/usr/bin/objformat`
11555 freebsd[123]*) objformat=aout ;;
11556 *) objformat=elf ;;
11559 version_type=freebsd-$objformat
11560 case $version_type in
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11571 shlibpath_var=LD_LIBRARY_PATH
11574 shlibpath_overrides_runpath=yes
11576 freebsd3.[01]* | freebsdelf3.[01]*)
11577 shlibpath_overrides_runpath=yes
11578 hardcode_into_libs=yes
11580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11582 shlibpath_overrides_runpath=no
11583 hardcode_into_libs=yes
11585 *) # from 4.6 on, and DragonFly
11586 shlibpath_overrides_runpath=yes
11587 hardcode_into_libs=yes
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'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 hardcode_into_libs=yes
11602 hpux9* | hpux10* | hpux11*)
11603 # Give a soname corresponding to the major version so that dld.sl refuses to
11604 # link against other versions.
11611 hardcode_into_libs=yes
11612 dynamic_linker="$host_os dld.so"
11613 shlibpath_var=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 if test "X$HPUX_IA64_MODE" = X32; then
11618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626 hardcode_into_libs=yes
11627 dynamic_linker="$host_os dld.sl"
11628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11637 dynamic_linker="$host_os dld.sl"
11638 shlibpath_var=SHLIB_PATH
11639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11644 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11645 postinstall_cmds='chmod 555 $lib'
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=no
11657 hardcode_into_libs=yes
11660 irix5* | irix6* | nonstopux*)
11662 nonstopux*) version_type=nonstopux ;;
11664 if test "$lt_cv_prog_gnu_ld" = yes; then
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11675 irix5* | nonstopux*)
11676 libsuff= shlibsuff=
11679 case $LD in # libtool.m4 will add one of these switches to LD
11680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11681 libsuff= shlibsuff= libmagic=32-bit;;
11682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11683 libsuff=32 shlibsuff=N32 libmagic=N32;;
11684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11685 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11686 *) libsuff= shlibsuff= libmagic=never-match;;
11690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11691 shlibpath_overrides_runpath=no
11692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11694 hardcode_into_libs=yes
11697 # No shared lib support for Linux oldld, aout, or coff.
11698 linux*oldld* | linux*aout* | linux*coff*)
11702 # This must be Linux ELF.
11703 linux* | k*bsd*-gnu)
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708 soname_spec='${libname}${release}${shared_ext}$major'
11709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 shlibpath_overrides_runpath=no
11712 # Some binutils ld are patched to set DT_RUNPATH
11713 save_LDFLAGS=$LDFLAGS
11714 save_libdir=$libdir
11715 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11716 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11717 cat >conftest.$ac_ext <<_ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_link") 2>conftest.er1
11741 grep -v '^ *+' conftest.er1 >conftest.err
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest$ac_exeext &&
11749 $as_test_x conftest$ac_exeext; then
11750 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11751 shlibpath_overrides_runpath=yes
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11762 conftest$ac_exeext conftest.$ac_ext
11763 LDFLAGS=$save_LDFLAGS
11764 libdir=$save_libdir
11766 # This implies no fast_install, which is unacceptable.
11767 # Some rework will be needed to allow for fast_install
11768 # before this can be enabled.
11769 hardcode_into_libs=yes
11771 # Append ld.so.conf contents to the search path
11772 if test -f /etc/ld.so.conf; then
11773 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' ' '`
11774 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11777 # We used to test for /lib/ld.so.1 and disable shared libraries on
11778 # powerpc, because MkLinux only supported shared libraries with the
11779 # GNU dynamic linker. Since this was broken with cross compilers,
11780 # most powerpc-linux boxes support dynamic linking these days and
11781 # people can always --disable-shared, the test was removed, and we
11782 # assume the GNU/Linux dynamic linker is in use.
11783 dynamic_linker='GNU/Linux ld.so'
11790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11793 dynamic_linker='NetBSD (a.out) ld.so'
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 dynamic_linker='NetBSD ld.elf_so'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 shlibpath_overrides_runpath=yes
11801 hardcode_into_libs=yes
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=yes
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath=no
11819 hardcode_into_libs=yes
11820 dynamic_linker='ldqnx.so'
11825 sys_lib_dlsearch_path_spec="/usr/lib"
11827 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11829 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11830 *) need_version=no ;;
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11837 openbsd2.[89] | openbsd2.[89].*)
11838 shlibpath_overrides_runpath=no
11841 shlibpath_overrides_runpath=yes
11845 shlibpath_overrides_runpath=yes
11850 libname_spec='$name'
11853 library_names_spec='$libname${shared_ext} $libname.a'
11854 dynamic_linker='OS/2 ld.exe'
11855 shlibpath_var=LIBPATH
11858 osf3* | osf4* | osf5*)
11862 soname_spec='${libname}${release}${shared_ext}$major'
11863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11866 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878 soname_spec='${libname}${release}${shared_ext}$major'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=yes
11881 hardcode_into_libs=yes
11882 # ldd complains unless libraries are executable
11883 postinstall_cmds='chmod +x $lib'
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11889 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=yes
11892 if test "$with_gnu_ld" = yes; then
11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901 soname_spec='${libname}${release}${shared_ext}$major'
11902 shlibpath_var=LD_LIBRARY_PATH
11903 case $host_vendor in
11905 shlibpath_overrides_runpath=no
11907 runpath_var=LD_RUN_PATH
11915 shlibpath_overrides_runpath=no
11916 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11922 if test -d /usr/nec ;then
11924 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11925 soname_spec='$libname${shared_ext}.$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11931 version_type=freebsd-elf
11934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11935 soname_spec='${libname}${release}${shared_ext}$major'
11936 shlibpath_var=LD_LIBRARY_PATH
11937 shlibpath_overrides_runpath=yes
11938 hardcode_into_libs=yes
11939 if test "$with_gnu_ld" = yes; then
11940 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11942 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11945 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11949 sys_lib_dlsearch_path_spec='/usr/lib'
11953 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958 shlibpath_var=LD_LIBRARY_PATH
11959 shlibpath_overrides_runpath=no
11960 hardcode_into_libs=yes
11965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966 soname_spec='${libname}${release}${shared_ext}$major'
11967 shlibpath_var=LD_LIBRARY_PATH
11974 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11975 echo "${ECHO_T}$dynamic_linker" >&6; }
11976 test "$dynamic_linker" = no && can_build_shared=no
11978 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11979 if test "$GCC" = yes; then
11980 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11983 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11984 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11986 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11987 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12076 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12079 if test -n "$hardcode_libdir_flag_spec" ||
12080 test -n "$runpath_var" ||
12081 test "X$hardcode_automatic" = "Xyes" ; then
12083 # We can hardcode non-existent directories.
12084 if test "$hardcode_direct" != no &&
12085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12086 # have to relink, otherwise we might link with an installed library
12087 # when we should be linking with a yet-to-be-installed one
12088 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12089 test "$hardcode_minus_L" != no; then
12090 # Linking always hardcodes the temporary library directory.
12091 hardcode_action=relink
12093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12094 hardcode_action=immediate
12097 # We cannot hardcode anything, or else we can only hardcode existing
12099 hardcode_action=unsupported
12101 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12102 echo "${ECHO_T}$hardcode_action" >&6; }
12104 if test "$hardcode_action" = relink ||
12105 test "$inherit_rpath" = yes; then
12106 # Fast installation is not supported
12107 enable_fast_install=no
12108 elif test "$shlibpath_overrides_runpath" = yes ||
12109 test "$enable_shared" = no; then
12110 # Fast installation is not necessary
12111 enable_fast_install=needless
12119 if test "x$enable_dlopen" != xyes; then
12120 enable_dlopen=unknown
12121 enable_dlopen_self=unknown
12122 enable_dlopen_self_static=unknown
12129 lt_cv_dlopen="load_add_on"
12131 lt_cv_dlopen_self=yes
12134 mingw* | pw32* | cegcc*)
12135 lt_cv_dlopen="LoadLibrary"
12140 lt_cv_dlopen="dlopen"
12145 # if libdl is installed we need to link against it
12146 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 ac_check_lib_save_LIBS=$LIBS
12153 cat >conftest.$ac_ext <<_ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12160 /* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (ac_try="$ac_link"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_link") 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } && {
12189 test -z "$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 } && test -s conftest$ac_exeext &&
12192 $as_test_x conftest$ac_exeext; then
12193 ac_cv_lib_dl_dlopen=yes
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 ac_cv_lib_dl_dlopen=no
12201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12205 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12207 if test $ac_cv_lib_dl_dlopen = yes; then
12208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12211 lt_cv_dlopen="dyld"
12213 lt_cv_dlopen_self=yes
12220 { echo "$as_me:$LINENO: checking for shl_load" >&5
12221 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12222 if test "${ac_cv_func_shl_load+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 cat >conftest.$ac_ext <<_ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12233 #define shl_load innocuous_shl_load
12235 /* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char shl_load (); below.
12237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238 <limits.h> exists even on freestanding compilers. */
12241 # include <limits.h>
12243 # include <assert.h>
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12255 /* The GNU C library defines this for functions which it implements
12256 to always fail with ENOSYS. Some functions are actually named
12257 something starting with __ and the normal name is an alias. */
12258 #if defined __stub_shl_load || defined __stub___shl_load
12265 return shl_load ();
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (ac_try="$ac_link"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_link") 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest$ac_exeext &&
12287 $as_test_x conftest$ac_exeext; then
12288 ac_cv_func_shl_load=yes
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 ac_cv_func_shl_load=no
12296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12297 conftest$ac_exeext conftest.$ac_ext
12299 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12300 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12301 if test $ac_cv_func_shl_load = yes; then
12302 lt_cv_dlopen="shl_load"
12304 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12305 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12306 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 ac_check_lib_save_LIBS=$LIBS
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12318 /* Override any GCC internal prototype to avoid an error.
12319 Use char because int might match the return type of a GCC
12320 builtin and then its argument prototype would still apply. */
12328 return shl_load ();
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_link") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1 >conftest.err
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest$ac_exeext &&
12350 $as_test_x conftest$ac_exeext; then
12351 ac_cv_lib_dld_shl_load=yes
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12356 ac_cv_lib_dld_shl_load=no
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12363 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12364 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12365 if test $ac_cv_lib_dld_shl_load = yes; then
12366 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12368 { echo "$as_me:$LINENO: checking for dlopen" >&5
12369 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12370 if test "${ac_cv_func_dlopen+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12379 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12381 #define dlopen innocuous_dlopen
12383 /* System header to define __stub macros and hopefully few prototypes,
12384 which can conflict with char dlopen (); below.
12385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12386 <limits.h> exists even on freestanding compilers. */
12389 # include <limits.h>
12391 # include <assert.h>
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12403 /* The GNU C library defines this for functions which it implements
12404 to always fail with ENOSYS. Some functions are actually named
12405 something starting with __ and the normal name is an alias. */
12406 #if defined __stub_dlopen || defined __stub___dlopen
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_link") 2>conftest.er1
12427 grep -v '^ *+' conftest.er1 >conftest.err
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && {
12432 test -z "$ac_c_werror_flag" ||
12433 test ! -s conftest.err
12434 } && test -s conftest$ac_exeext &&
12435 $as_test_x conftest$ac_exeext; then
12436 ac_cv_func_dlopen=yes
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_cv_func_dlopen=no
12444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12445 conftest$ac_exeext conftest.$ac_ext
12447 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12448 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12449 if test $ac_cv_func_dlopen = yes; then
12450 lt_cv_dlopen="dlopen"
12452 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12453 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12454 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 ac_check_lib_save_LIBS=$LIBS
12459 cat >conftest.$ac_ext <<_ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12481 rm -f conftest.$ac_objext conftest$ac_exeext
12482 if { (ac_try="$ac_link"
12483 case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_link") 2>conftest.er1
12490 grep -v '^ *+' conftest.er1 >conftest.err
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } && {
12495 test -z "$ac_c_werror_flag" ||
12496 test ! -s conftest.err
12497 } && test -s conftest$ac_exeext &&
12498 $as_test_x conftest$ac_exeext; then
12499 ac_cv_lib_dl_dlopen=yes
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12504 ac_cv_lib_dl_dlopen=no
12507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12508 conftest$ac_exeext conftest.$ac_ext
12509 LIBS=$ac_check_lib_save_LIBS
12511 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12512 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12513 if test $ac_cv_lib_dl_dlopen = yes; then
12514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12516 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12517 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12518 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-lsvld $LIBS"
12523 cat >conftest.$ac_ext <<_ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12554 grep -v '^ *+' conftest.er1 >conftest.err
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } && {
12559 test -z "$ac_c_werror_flag" ||
12560 test ! -s conftest.err
12561 } && test -s conftest$ac_exeext &&
12562 $as_test_x conftest$ac_exeext; then
12563 ac_cv_lib_svld_dlopen=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_cv_lib_svld_dlopen=no
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572 conftest$ac_exeext conftest.$ac_ext
12573 LIBS=$ac_check_lib_save_LIBS
12575 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12576 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12577 if test $ac_cv_lib_svld_dlopen = yes; then
12578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12580 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12581 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12582 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 ac_check_lib_save_LIBS=$LIBS
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12604 return dld_link ();
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (ac_try="$ac_link"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_link") 2>conftest.er1
12618 grep -v '^ *+' conftest.er1 >conftest.err
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && {
12623 test -z "$ac_c_werror_flag" ||
12624 test ! -s conftest.err
12625 } && test -s conftest$ac_exeext &&
12626 $as_test_x conftest$ac_exeext; then
12627 ac_cv_lib_dld_dld_link=yes
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 ac_cv_lib_dld_dld_link=no
12635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12636 conftest$ac_exeext conftest.$ac_ext
12637 LIBS=$ac_check_lib_save_LIBS
12639 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12640 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12641 if test $ac_cv_lib_dld_dld_link = yes; then
12642 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12663 if test "x$lt_cv_dlopen" != xno; then
12669 case $lt_cv_dlopen in
12671 save_CPPFLAGS="$CPPFLAGS"
12672 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12674 save_LDFLAGS="$LDFLAGS"
12675 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12678 LIBS="$lt_cv_dlopen_libs $LIBS"
12680 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12681 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12682 if test "${lt_cv_dlopen_self+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 if test "$cross_compiling" = yes; then :
12686 lt_cv_dlopen_self=cross
12688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12689 lt_status=$lt_dlunknown
12690 cat > conftest.$ac_ext <<_LT_EOF
12691 #line 12691 "configure"
12692 #include "confdefs.h"
12701 # define LT_DLGLOBAL RTLD_GLOBAL
12704 # define LT_DLGLOBAL DL_GLOBAL
12706 # define LT_DLGLOBAL 0
12710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12711 find out it does not work in some platform. */
12712 #ifndef LT_DLLAZY_OR_NOW
12714 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12717 # define LT_DLLAZY_OR_NOW DL_LAZY
12720 # define LT_DLLAZY_OR_NOW RTLD_NOW
12723 # define LT_DLLAZY_OR_NOW DL_NOW
12725 # define LT_DLLAZY_OR_NOW 0
12732 void fnord() { int i=42;}
12735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12736 int status = $lt_dlunknown;
12740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12741 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12742 /* dlclose (self); */
12750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12751 (eval $ac_link) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12755 (./conftest; exit; ) >&5 2>/dev/null
12757 case x$lt_status in
12758 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12759 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12760 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12763 # compilation failed
12764 lt_cv_dlopen_self=no
12771 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12772 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12774 if test "x$lt_cv_dlopen_self" = xyes; then
12775 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12776 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12777 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12778 if test "${lt_cv_dlopen_self_static+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 if test "$cross_compiling" = yes; then :
12782 lt_cv_dlopen_self_static=cross
12784 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12785 lt_status=$lt_dlunknown
12786 cat > conftest.$ac_ext <<_LT_EOF
12787 #line 12787 "configure"
12788 #include "confdefs.h"
12797 # define LT_DLGLOBAL RTLD_GLOBAL
12800 # define LT_DLGLOBAL DL_GLOBAL
12802 # define LT_DLGLOBAL 0
12806 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12807 find out it does not work in some platform. */
12808 #ifndef LT_DLLAZY_OR_NOW
12810 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12813 # define LT_DLLAZY_OR_NOW DL_LAZY
12816 # define LT_DLLAZY_OR_NOW RTLD_NOW
12819 # define LT_DLLAZY_OR_NOW DL_NOW
12821 # define LT_DLLAZY_OR_NOW 0
12828 void fnord() { int i=42;}
12831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12832 int status = $lt_dlunknown;
12836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12837 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12838 /* dlclose (self); */
12846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12851 (./conftest; exit; ) >&5 2>/dev/null
12853 case x$lt_status in
12854 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12855 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12856 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12859 # compilation failed
12860 lt_cv_dlopen_self_static=no
12867 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12868 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12871 CPPFLAGS="$save_CPPFLAGS"
12872 LDFLAGS="$save_LDFLAGS"
12877 case $lt_cv_dlopen_self in
12878 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12879 *) enable_dlopen_self=unknown ;;
12882 case $lt_cv_dlopen_self_static in
12883 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12884 *) enable_dlopen_self_static=unknown ;;
12906 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12907 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12908 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12909 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12910 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12911 { echo "$as_me:$LINENO: result: yes" >&5
12912 echo "${ECHO_T}yes" >&6; }
12914 # FIXME - insert some real tests, host_os isn't really good enough
12917 if test -n "$STRIP" ; then
12918 striplib="$STRIP -x"
12919 old_striplib="$STRIP -S"
12920 { echo "$as_me:$LINENO: result: yes" >&5
12921 echo "${ECHO_T}yes" >&6; }
12923 { echo "$as_me:$LINENO: result: no" >&5
12924 echo "${ECHO_T}no" >&6; }
12928 { echo "$as_me:$LINENO: result: no" >&5
12929 echo "${ECHO_T}no" >&6; }
12945 # Report which library types will actually be built
12946 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12947 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12948 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12949 echo "${ECHO_T}$can_build_shared" >&6; }
12951 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12952 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12953 test "$can_build_shared" = "no" && enable_shared=no
12955 # On AIX, shared libraries and static libraries use the same namespace, and
12956 # are all built from PIC.
12959 test "$enable_shared" = yes && enable_static=no
12960 if test -n "$RANLIB"; then
12961 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12962 postinstall_cmds='$RANLIB $lib'
12967 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12968 test "$enable_shared" = yes && enable_static=no
12972 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12973 echo "${ECHO_T}$enable_shared" >&6; }
12975 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12976 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12977 # Make sure either enable_shared or enable_static is yes.
12978 test "$enable_shared" = yes || enable_static=yes
12979 { echo "$as_me:$LINENO: result: $enable_static" >&5
12980 echo "${ECHO_T}$enable_static" >&6; }
12987 ac_cpp='$CPP $CPPFLAGS'
12988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12996 ac_cpp='$CXXCPP $CPPFLAGS'
12997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13001 archive_cmds_need_lc_CXX=no
13002 allow_undefined_flag_CXX=
13003 always_export_symbols_CXX=no
13004 archive_expsym_cmds_CXX=
13005 compiler_needs_object_CXX=no
13006 export_dynamic_flag_spec_CXX=
13007 hardcode_direct_CXX=no
13008 hardcode_direct_absolute_CXX=no
13009 hardcode_libdir_flag_spec_CXX=
13010 hardcode_libdir_flag_spec_ld_CXX=
13011 hardcode_libdir_separator_CXX=
13012 hardcode_minus_L_CXX=no
13013 hardcode_shlibpath_var_CXX=unsupported
13014 hardcode_automatic_CXX=no
13015 inherit_rpath_CXX=no
13017 module_expsym_cmds_CXX=
13018 link_all_deplibs_CXX=unknown
13019 old_archive_cmds_CXX=$old_archive_cmds
13020 no_undefined_flag_CXX=
13021 whole_archive_flag_spec_CXX=
13022 enable_shared_with_static_runtimes_CXX=no
13024 # Source file extension for C++ test sources.
13027 # Object file extension for compiled C++ test sources.
13031 # No sense in running all these tests if we already determined that
13032 # the CXX compiler isn't working. Some variables (like enable_shared)
13033 # are currently assumed to apply to all compilers on this platform,
13034 # and will be corrupted by setting them based on a non-working compiler.
13035 if test "$_lt_caught_CXX_error" != yes; then
13036 # Code to be used in simple compile tests
13037 lt_simple_compile_test_code="int some_variable = 0;"
13039 # Code to be used in simple link tests
13040 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13042 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13049 # If no C compiler was specified, use CC.
13052 # If no C compiler flags were specified, use CFLAGS.
13053 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13055 # Allow CC to be a program name with arguments.
13059 # save warnings/boilerplate of simple test code
13060 ac_outfile=conftest.$ac_objext
13061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13063 _lt_compiler_boilerplate=`cat conftest.err`
13066 ac_outfile=conftest.$ac_objext
13067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13069 _lt_linker_boilerplate=`cat conftest.err`
13073 # Allow CC to be a program name with arguments.
13078 lt_save_with_gnu_ld=$with_gnu_ld
13079 lt_save_path_LD=$lt_cv_path_LD
13080 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13081 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13083 $as_unset lt_cv_prog_gnu_ld
13085 if test -n "${lt_cv_path_LDCXX+set}"; then
13086 lt_cv_path_LD=$lt_cv_path_LDCXX
13088 $as_unset lt_cv_path_LD
13090 test -z "${LDCXX+set}" || LD=$LDCXX
13094 for cc_temp in $compiler""; do
13096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13102 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13105 if test -n "$compiler"; then
13106 # We don't want -fno-exception when compiling C++ code, so set the
13107 # no_builtin_flag separately
13108 if test "$GXX" = yes; then
13109 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13111 lt_prog_compiler_no_builtin_flag_CXX=
13114 if test "$GXX" = yes; then
13115 # Set up default GNU C++ configuration
13119 # Check whether --with-gnu-ld was given.
13120 if test "${with_gnu_ld+set}" = set; then
13121 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13127 if test "$GCC" = yes; then
13128 # Check if gcc -print-prog-name=ld gives a path.
13129 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13130 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13133 # gcc leaves a trailing carriage return which upsets mingw
13134 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13136 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13139 # Accept absolute paths.
13141 re_direlt='/[^/][^/]*/\.\./'
13142 # Canonicalize the pathname of ld
13143 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13144 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13145 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13147 test -z "$LD" && LD="$ac_prog"
13150 # If it fails, then pretend we aren't using GCC.
13154 # If it is relative, then search for the first ld in PATH.
13155 with_gnu_ld=unknown
13158 elif test "$with_gnu_ld" = yes; then
13159 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13160 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13162 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13163 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13165 if test "${lt_cv_path_LD+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13168 if test -z "$LD"; then
13169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13170 for ac_dir in $PATH; do
13172 test -z "$ac_dir" && ac_dir=.
13173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13174 lt_cv_path_LD="$ac_dir/$ac_prog"
13175 # Check to see if the program is GNU ld. I'd rather use --version,
13176 # but apparently some variants of GNU ld only accept -v.
13177 # Break only if it was the GNU/non-GNU ld that we prefer.
13178 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13179 *GNU* | *'with BFD'*)
13180 test "$with_gnu_ld" != no && break
13183 test "$with_gnu_ld" != yes && break
13190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13194 LD="$lt_cv_path_LD"
13195 if test -n "$LD"; then
13196 { echo "$as_me:$LINENO: result: $LD" >&5
13197 echo "${ECHO_T}$LD" >&6; }
13199 { echo "$as_me:$LINENO: result: no" >&5
13200 echo "${ECHO_T}no" >&6; }
13202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13204 { (exit 1); exit 1; }; }
13205 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13211 case `$LD -v 2>&1 </dev/null` in
13212 *GNU* | *'with BFD'*)
13213 lt_cv_prog_gnu_ld=yes
13216 lt_cv_prog_gnu_ld=no
13220 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13221 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13222 with_gnu_ld=$lt_cv_prog_gnu_ld
13230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13231 # archiving commands below assume that GNU ld is being used.
13232 if test "$with_gnu_ld" = yes; then
13233 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13234 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'
13236 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13239 # If archive_cmds runs LD, not CC, wlarc should be empty
13240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13241 # investigate it a little bit more. (MM)
13244 # ancient GNU ld didn't support --whole-archive et. al.
13245 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13246 $GREP 'no-whole-archive' > /dev/null; then
13247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13249 whole_archive_flag_spec_CXX=
13255 # A generic and very simple default shared library creation
13256 # command for GNU C++ for the case where it uses the native
13257 # linker, instead of GNU ld. If possible, this setting should
13258 # overridden to take advantage of the native linker features on
13259 # the platform it is being used on.
13260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13263 # Commands to make compiler produce verbose output that lists
13264 # what "hidden" libraries, object files and flags are used when
13265 # linking a shared library.
13266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13274 # PORTME: fill in a description of your system's C++ link characteristics
13275 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13280 # FIXME: insert proper C++ library support
13284 if test "$host_cpu" = ia64; then
13285 # On IA64, the linker does run time linking by default, so we don't
13286 # have to do anything special.
13287 aix_use_runtimelinking=no
13288 exp_sym_flag='-Bexport'
13291 aix_use_runtimelinking=no
13293 # Test if we are trying to use run time linking or normal
13294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13295 # need to do runtime linking.
13296 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13297 for ld_flag in $LDFLAGS; do
13300 aix_use_runtimelinking=yes
13308 exp_sym_flag='-bexport'
13309 no_entry_flag='-bnoentry'
13312 # When large executables or shared objects are built, AIX ld can
13313 # have problems creating the table of contents. If linking a library
13314 # or program results in "error TOC overflow" add -mminimal-toc to
13315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13318 archive_cmds_CXX=''
13319 hardcode_direct_CXX=yes
13320 hardcode_direct_absolute_CXX=yes
13321 hardcode_libdir_separator_CXX=':'
13322 link_all_deplibs_CXX=yes
13323 file_list_spec_CXX='${wl}-f,'
13325 if test "$GXX" = yes; then
13326 case $host_os in aix4.[012]|aix4.[012].*)
13327 # We only want to do this on AIX 4.2 and lower, the check
13328 # below for broken collect2 doesn't work under 4.3+
13329 collect2name=`${CC} -print-prog-name=collect2`
13330 if test -f "$collect2name" &&
13331 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13333 # We have reworked collect2
13336 # We have old collect2
13337 hardcode_direct_CXX=unsupported
13338 # It fails to find uninstalled libraries when the uninstalled
13339 # path is not listed in the libpath. Setting hardcode_minus_L
13340 # to unsupported forces relinking
13341 hardcode_minus_L_CXX=yes
13342 hardcode_libdir_flag_spec_CXX='-L$libdir'
13343 hardcode_libdir_separator_CXX=
13346 shared_flag='-shared'
13347 if test "$aix_use_runtimelinking" = yes; then
13348 shared_flag="$shared_flag "'${wl}-G'
13352 if test "$host_cpu" = ia64; then
13353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13354 # chokes on -Wl,-G. The following line is correct:
13357 if test "$aix_use_runtimelinking" = yes; then
13358 shared_flag='${wl}-G'
13360 shared_flag='${wl}-bM:SRE'
13365 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13366 # It seems that -bexpall does not export symbols beginning with
13367 # underscore (_), so it is better to generate a list of symbols to
13369 always_export_symbols_CXX=yes
13370 if test "$aix_use_runtimelinking" = yes; then
13371 # Warning - without using the other runtime loading flags (-brtl),
13372 # -berok will link without error, but may produce a broken library.
13373 allow_undefined_flag_CXX='-berok'
13374 # Determine the default libpath from the value encoded in an empty
13376 cat >conftest.$ac_ext <<_ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13391 rm -f conftest.$ac_objext conftest$ac_exeext
13392 if { (ac_try="$ac_link"
13393 case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_link") 2>conftest.er1
13400 grep -v '^ *+' conftest.er1 >conftest.err
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } && {
13405 test -z "$ac_cxx_werror_flag" ||
13406 test ! -s conftest.err
13407 } && test -s conftest$ac_exeext &&
13408 $as_test_x conftest$ac_exeext; then
13410 lt_aix_libpath_sed='
13411 /Import File Strings/,/^$/ {
13417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13418 # Check for a 64-bit object if we didn't find anything.
13419 if test -z "$aix_libpath"; then
13420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13430 conftest$ac_exeext conftest.$ac_ext
13431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13433 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13435 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"
13437 if test "$host_cpu" = ia64; then
13438 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13439 allow_undefined_flag_CXX="-z nodefs"
13440 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"
13442 # Determine the default libpath from the value encoded in an
13443 # empty executable.
13444 cat >conftest.$ac_ext <<_ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (ac_try="$ac_link"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_link") 2>conftest.er1
13468 grep -v '^ *+' conftest.er1 >conftest.err
13470 cat conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && {
13473 test -z "$ac_cxx_werror_flag" ||
13474 test ! -s conftest.err
13475 } && test -s conftest$ac_exeext &&
13476 $as_test_x conftest$ac_exeext; then
13478 lt_aix_libpath_sed='
13479 /Import File Strings/,/^$/ {
13485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13486 # Check for a 64-bit object if we didn't find anything.
13487 if test -z "$aix_libpath"; then
13488 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13498 conftest$ac_exeext conftest.$ac_ext
13499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13501 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13502 # Warning - without using the other run time loading flags,
13503 # -berok will link without error, but may produce a broken library.
13504 no_undefined_flag_CXX=' ${wl}-bernotok'
13505 allow_undefined_flag_CXX=' ${wl}-berok'
13506 # Exported symbols can be pulled into shared objects from archives
13507 whole_archive_flag_spec_CXX='$convenience'
13508 archive_cmds_need_lc_CXX=yes
13509 # This is similar to how AIX traditionally builds its shared
13511 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'
13517 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13518 allow_undefined_flag_CXX=unsupported
13519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13520 # support --undefined. This deserves some investigation. FIXME
13521 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13528 case $cc_basename in
13530 # FIXME: insert proper C++ library support
13536 cygwin* | mingw* | pw32* | cegcc*)
13537 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13538 # as there is no search path for DLLs.
13539 hardcode_libdir_flag_spec_CXX='-L$libdir'
13540 allow_undefined_flag_CXX=unsupported
13541 always_export_symbols_CXX=no
13542 enable_shared_with_static_runtimes_CXX=yes
13544 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13545 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'
13546 # If the export-symbols file already is a .def file (1st line
13547 # is EXPORTS), use it as is; otherwise, prepend...
13548 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13549 cp $export_symbols $output_objdir/$soname.def;
13551 echo EXPORTS > $output_objdir/$soname.def;
13552 cat $export_symbols >> $output_objdir/$soname.def;
13554 $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'
13559 darwin* | rhapsody*)
13562 archive_cmds_need_lc_CXX=no
13563 hardcode_direct_CXX=no
13564 hardcode_automatic_CXX=yes
13565 hardcode_shlibpath_var_CXX=unsupported
13566 whole_archive_flag_spec_CXX=''
13567 link_all_deplibs_CXX=yes
13568 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13569 case $cc_basename in
13570 ifort*) _lt_dar_can_shared=yes ;;
13571 *) _lt_dar_can_shared=$GCC ;;
13573 if test "$_lt_dar_can_shared" = "yes"; then
13574 output_verbose_link_cmd=echo
13575 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}"
13576 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13577 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}"
13578 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}"
13579 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13580 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}"
13581 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}"
13591 case $cc_basename in
13593 # FIXME: insert proper C++ library support
13597 # Green Hills C++ Compiler
13598 # FIXME: insert proper C++ library support
13602 # FIXME: insert proper C++ library support
13609 # C++ shared libraries reported to be fairly broken before
13615 archive_cmds_need_lc_CXX=no
13618 freebsd* | dragonfly*)
13619 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13628 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13629 hardcode_libdir_separator_CXX=:
13630 export_dynamic_flag_spec_CXX='${wl}-E'
13631 hardcode_direct_CXX=yes
13632 hardcode_minus_L_CXX=yes # Not in the search PATH,
13633 # but as the default
13634 # location of the library.
13636 case $cc_basename in
13638 # FIXME: insert proper C++ library support
13642 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'
13643 # Commands to make compiler produce verbose output that lists
13644 # what "hidden" libraries, object files and flags are used when
13645 # linking a shared library.
13647 # There doesn't appear to be a way to prevent this compiler from
13648 # explicitly linking system object files so we need to strip them
13649 # from the output so that they don't get included in the library
13651 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'
13654 if test "$GXX" = yes; then
13655 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'
13657 # FIXME: insert proper C++ library support
13665 if test $with_gnu_ld = no; then
13666 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13667 hardcode_libdir_separator_CXX=:
13673 export_dynamic_flag_spec_CXX='${wl}-E'
13679 hardcode_direct_CXX=no
13680 hardcode_shlibpath_var_CXX=no
13683 hardcode_direct_CXX=yes
13684 hardcode_direct_absolute_CXX=yes
13685 hardcode_minus_L_CXX=yes # Not in the search PATH,
13686 # but as the default
13687 # location of the library.
13691 case $cc_basename in
13693 # FIXME: insert proper C++ library support
13699 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13702 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13705 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13708 # Commands to make compiler produce verbose output that lists
13709 # what "hidden" libraries, object files and flags are used when
13710 # linking a shared library.
13712 # There doesn't appear to be a way to prevent this compiler from
13713 # explicitly linking system object files so we need to strip them
13714 # from the output so that they don't get included in the library
13716 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'
13719 if test "$GXX" = yes; then
13720 if test $with_gnu_ld = no; then
13723 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13726 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13729 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'
13734 # FIXME: insert proper C++ library support
13742 hardcode_direct_CXX=no
13743 hardcode_shlibpath_var_CXX=no
13744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13745 export_dynamic_flag_spec_CXX='${wl}-E'
13746 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13747 # Instead, shared libraries are loaded at an image base (0x10000000 by
13748 # default) and relocated if they conflict, which is a slow very memory
13749 # consuming and fragmenting process. To avoid this, we pick a random,
13750 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13751 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13752 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'
13753 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'
13756 case $cc_basename in
13759 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'
13761 # Archives containing C++ object files must be created using
13762 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13763 # necessary to make sure instantiated templates are included
13765 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13768 if test "$GXX" = yes; then
13769 if test "$with_gnu_ld" = no; then
13770 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'
13772 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'
13775 link_all_deplibs_CXX=yes
13778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13779 hardcode_libdir_separator_CXX=:
13780 inherit_rpath_CXX=yes
13783 linux* | k*bsd*-gnu)
13784 case $cc_basename in
13786 # Kuck and Associates, Inc. (KAI) C++ Compiler
13788 # KCC will only create a shared library if the output file
13789 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13790 # to its proper name (with version) after linking.
13791 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'
13792 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'
13793 # Commands to make compiler produce verbose output that lists
13794 # what "hidden" libraries, object files and flags are used when
13795 # linking a shared library.
13797 # There doesn't appear to be a way to prevent this compiler from
13798 # explicitly linking system object files so we need to strip them
13799 # from the output so that they don't get included in the library
13801 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'
13803 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13806 # Archives containing C++ object files must be created using
13807 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13808 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13813 # version 8.0 and above of icpc choke on multiply defined symbols
13814 # if we add $predep_objects and $postdep_objects, however 7.1 and
13815 # earlier do not add the objects themselves.
13816 case `$CC -V 2>&1` in
13818 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819 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'
13821 *) # Version 8.0 or newer
13824 ia64*) tmp_idyn=' -i_dynamic';;
13826 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13827 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'
13830 archive_cmds_need_lc_CXX=no
13831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13832 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13833 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13836 # Portland Group C++ compiler
13838 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13839 prelink_cmds_CXX='tpldir=Template.dir~
13841 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13842 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13843 old_archive_cmds_CXX='tpldir=Template.dir~
13845 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13846 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13848 archive_cmds_CXX='tpldir=Template.dir~
13850 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13851 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13852 archive_expsym_cmds_CXX='tpldir=Template.dir~
13854 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13855 $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'
13857 *) # Version 6 will use weak symbols
13858 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13859 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'
13863 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13864 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13865 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'
13869 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13870 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'
13872 runpath_var=LD_RUN_PATH
13873 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13874 hardcode_libdir_separator_CXX=:
13876 # Commands to make compiler produce verbose output that lists
13877 # what "hidden" libraries, object files and flags are used when
13878 # linking a shared library.
13880 # There doesn't appear to be a way to prevent this compiler from
13881 # explicitly linking system object files so we need to strip them
13882 # from the output so that they don't get included in the library
13884 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'
13887 # IBM XL 8.0 on PPC, with GNU ld
13888 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13890 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13891 if test "x$supports_anon_versioning" = xyes; then
13892 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13893 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13894 echo "local: *; };" >> $output_objdir/$libname.ver~
13895 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13899 case `$CC -V 2>&1 | sed 5q` in
13902 no_undefined_flag_CXX=' -zdefs'
13903 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13904 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'
13905 hardcode_libdir_flag_spec_CXX='-R$libdir'
13906 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'
13907 compiler_needs_object_CXX=yes
13909 # Not sure whether something based on
13910 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13912 output_verbose_link_cmd='echo'
13914 # Archives containing C++ object files must be created using
13915 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13916 # necessary to make sure instantiated templates are included
13918 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13926 # FIXME: insert proper C++ library support
13931 # FIXME: insert proper C++ library support
13936 case $cc_basename in
13938 # FIXME: insert proper C++ library support
13942 # FIXME: insert proper C++ library support
13949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13950 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13952 hardcode_libdir_flag_spec_CXX='-R$libdir'
13953 hardcode_direct_CXX=yes
13954 hardcode_shlibpath_var_CXX=no
13956 # Workaround some broken pre-1.5 toolchains
13957 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13965 # C++ shared libraries are fairly broken
13970 if test -f /usr/libexec/ld.so; then
13971 hardcode_direct_CXX=yes
13972 hardcode_shlibpath_var_CXX=no
13973 hardcode_direct_absolute_CXX=yes
13974 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13977 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13978 export_dynamic_flag_spec_CXX='${wl}-E'
13979 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13981 output_verbose_link_cmd=echo
13987 osf3* | osf4* | osf5*)
13988 case $cc_basename in
13990 # Kuck and Associates, Inc. (KAI) C++ Compiler
13992 # KCC will only create a shared library if the output file
13993 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13994 # to its proper name (with version) after linking.
13995 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'
13997 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13998 hardcode_libdir_separator_CXX=:
14000 # Archives containing C++ object files must be created using
14001 # the KAI C++ compiler.
14003 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14004 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14008 # Rational C++ 2.4.1
14009 # FIXME: insert proper C++ library support
14015 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14016 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'
14017 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14020 allow_undefined_flag_CXX=' -expect_unresolved \*'
14021 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'
14022 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14023 echo "-hidden">> $lib.exp~
14024 $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~
14026 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14030 hardcode_libdir_separator_CXX=:
14032 # Commands to make compiler produce verbose output that lists
14033 # what "hidden" libraries, object files and flags are used when
14034 # linking a shared library.
14036 # There doesn't appear to be a way to prevent this compiler from
14037 # explicitly linking system object files so we need to strip them
14038 # from the output so that they don't get included in the library
14040 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'
14043 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14044 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14047 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'
14050 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'
14054 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14055 hardcode_libdir_separator_CXX=:
14057 # Commands to make compiler produce verbose output that lists
14058 # what "hidden" libraries, object files and flags are used when
14059 # linking a shared library.
14060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14063 # FIXME: insert proper C++ library support
14071 # FIXME: insert proper C++ library support
14076 case $cc_basename in
14079 # FIXME: insert proper C++ library support
14084 # FIXME: insert proper C++ library support
14088 # FIXME: insert proper C++ library support
14095 case $cc_basename in
14097 # Sun C++ 4.2, 5.x and Centerline C++
14098 archive_cmds_need_lc_CXX=yes
14099 no_undefined_flag_CXX=' -zdefs'
14100 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14101 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14102 $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'
14104 hardcode_libdir_flag_spec_CXX='-R$libdir'
14105 hardcode_shlibpath_var_CXX=no
14107 solaris2.[0-5] | solaris2.[0-5].*) ;;
14109 # The compiler driver will combine and reorder linker options,
14110 # but understands `-z linker_flag'.
14111 # Supported since Solaris 2.6 (maybe 2.5.1?)
14112 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14115 link_all_deplibs_CXX=yes
14117 output_verbose_link_cmd='echo'
14119 # Archives containing C++ object files must be created using
14120 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14121 # necessary to make sure instantiated templates are included
14123 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14126 # Green Hills C++ Compiler
14127 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14129 # The C++ compiler must be used to create the archive.
14130 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14133 # GNU C++ compiler with Solaris linker
14134 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14135 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14136 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14137 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14138 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14139 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14141 # Commands to make compiler produce verbose output that lists
14142 # what "hidden" libraries, object files and flags are used when
14143 # linking a shared library.
14144 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14146 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14148 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14149 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14150 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14152 # Commands to make compiler produce verbose output that lists
14153 # what "hidden" libraries, object files and flags are used when
14154 # linking a shared library.
14155 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14158 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14160 solaris2.[0-5] | solaris2.[0-5].*) ;;
14162 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14170 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14171 no_undefined_flag_CXX='${wl}-z,text'
14172 archive_cmds_need_lc_CXX=no
14173 hardcode_shlibpath_var_CXX=no
14174 runpath_var='LD_RUN_PATH'
14176 case $cc_basename in
14178 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14179 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14182 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14188 sysv5* | sco3.2v5* | sco5v6*)
14189 # Note: We can NOT use -z defs as we might desire, because we do not
14190 # link with -lc, and that would cause any symbols used from libc to
14191 # always be unresolved, which means just about no library would
14192 # ever link correctly. If we're not using GNU ld we use -z text
14193 # though, which does catch some bad symbols but isn't as heavy-handed
14195 no_undefined_flag_CXX='${wl}-z,text'
14196 allow_undefined_flag_CXX='${wl}-z,nodefs'
14197 archive_cmds_need_lc_CXX=no
14198 hardcode_shlibpath_var_CXX=no
14199 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14200 hardcode_libdir_separator_CXX=':'
14201 link_all_deplibs_CXX=yes
14202 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14203 runpath_var='LD_RUN_PATH'
14205 case $cc_basename in
14207 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14208 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14211 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14218 case $cc_basename in
14220 # NonStop-UX NCC 3.20
14221 # FIXME: insert proper C++ library support
14225 # FIXME: insert proper C++ library support
14232 # FIXME: insert proper C++ library support
14237 # FIXME: insert proper C++ library support
14242 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14243 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14244 test "$ld_shlibs_CXX" = no && can_build_shared=no
14250 ## There is no encapsulation within the following macros, do not change
14251 ## the running order or otherwise move them around unless you know exactly
14252 ## what you are doing...
14253 # Dependencies to place before and after the object being linked:
14254 predep_objects_CXX=
14255 postdep_objects_CXX=
14258 compiler_lib_search_path_CXX=
14260 cat > conftest.$ac_ext <<_LT_EOF
14264 Foo (void) { a = 0; }
14270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14271 (eval $ac_compile) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; then
14275 # Parse the compiler output and extract the necessary
14276 # objects, libraries and library flags.
14278 # Sentinel used to keep track of whether or not we are before
14279 # the conftest object file.
14280 pre_test_object_deps_done=no
14282 for p in `eval "$output_verbose_link_cmd"`; do
14286 # Some compilers place space between "-{L,R}" and the path.
14287 # Remove the space.
14288 if test $p = "-L" ||
14289 test $p = "-R"; then
14296 if test "$pre_test_object_deps_done" = no; then
14299 # Internal compiler library paths should come after those
14300 # provided the user. The postdeps already come after the
14301 # user supplied libs so there is no need to process them.
14302 if test -z "$compiler_lib_search_path_CXX"; then
14303 compiler_lib_search_path_CXX="${prev}${p}"
14305 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14308 # The "-l" case would never come before the object being
14309 # linked, so don't bother handling this case.
14312 if test -z "$postdeps_CXX"; then
14313 postdeps_CXX="${prev}${p}"
14315 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14321 # This assumes that the test object file only shows up
14322 # once in the compiler output.
14323 if test "$p" = "conftest.$objext"; then
14324 pre_test_object_deps_done=yes
14328 if test "$pre_test_object_deps_done" = no; then
14329 if test -z "$predep_objects_CXX"; then
14330 predep_objects_CXX="$p"
14332 predep_objects_CXX="$predep_objects_CXX $p"
14335 if test -z "$postdep_objects_CXX"; then
14336 postdep_objects_CXX="$p"
14338 postdep_objects_CXX="$postdep_objects_CXX $p"
14343 *) ;; # Ignore the rest.
14351 echo "libtool.m4: error: problem compiling CXX test program"
14354 $RM -f confest.$objext
14356 # PORTME: override above test on systems where it is broken
14359 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14360 # hack all around it, let's just trust "g++" to DTRT.
14361 predep_objects_CXX=
14362 postdep_objects_CXX=
14367 case `$CC -V 2>&1 | sed 5q` in
14371 # The more standards-conforming stlport4 library is
14372 # incompatible with the Cstd library. Avoid specifying
14373 # it if it's in CXXFLAGS. Ignore libCrun as
14374 # -library=stlport4 depends on it.
14375 case " $CXX $CXXFLAGS " in
14376 *" -library=stlport4 "*)
14377 solaris_use_stlport4=yes
14381 if test "$solaris_use_stlport4" != yes; then
14382 postdeps_CXX='-library=Cstd -library=Crun'
14389 case $cc_basename in
14391 # The more standards-conforming stlport4 library is
14392 # incompatible with the Cstd library. Avoid specifying
14393 # it if it's in CXXFLAGS. Ignore libCrun as
14394 # -library=stlport4 depends on it.
14395 case " $CXX $CXXFLAGS " in
14396 *" -library=stlport4 "*)
14397 solaris_use_stlport4=yes
14401 # Adding this requires a known-good setup of shared libraries for
14402 # Sun compiler versions before 5.6, else PIC objects from an old
14403 # archive will be linked into the output, leading to subtle bugs.
14404 if test "$solaris_use_stlport4" != yes; then
14405 postdeps_CXX='-library=Cstd -library=Crun'
14413 case " $postdeps_CXX " in
14414 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14416 compiler_lib_search_dirs_CXX=
14417 if test -n "${compiler_lib_search_path_CXX}"; then
14418 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14451 lt_prog_compiler_wl_CXX=
14452 lt_prog_compiler_pic_CXX=
14453 lt_prog_compiler_static_CXX=
14455 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14456 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14458 # C++ specific cases for pic, static, wl, etc.
14459 if test "$GXX" = yes; then
14460 lt_prog_compiler_wl_CXX='-Wl,'
14461 lt_prog_compiler_static_CXX='-static'
14465 # All AIX code is PIC.
14466 if test "$host_cpu" = ia64; then
14467 # AIX 5 now supports IA64 processor
14468 lt_prog_compiler_static_CXX='-Bstatic'
14475 # see comment about AmigaOS4 .so support
14476 lt_prog_compiler_pic_CXX='-fPIC'
14479 # FIXME: we need at least 68020 code to build shared libraries, but
14480 # adding the `-m68020' flag to GCC prevents building anything better,
14482 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14487 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14488 # PIC is the default for these OSes.
14490 mingw* | cygwin* | os2* | pw32* | cegcc*)
14491 # This hack is so that the source file can tell whether it is being
14492 # built for inclusion in a dll (and should export symbols for example).
14493 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14494 # (--disable-auto-import) libraries
14495 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14497 darwin* | rhapsody*)
14498 # PIC is the default on this platform
14499 # Common symbols not allowed in MH_DYLIB files
14500 lt_prog_compiler_pic_CXX='-fno-common'
14503 # DJGPP does not support shared libraries at all
14504 lt_prog_compiler_pic_CXX=
14507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14508 # Instead, we relocate shared libraries at runtime.
14511 if test -d /usr/nec; then
14512 lt_prog_compiler_pic_CXX=-Kconform_pic
14516 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14517 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14518 # sets the default TLS model and affects inlining.
14523 lt_prog_compiler_pic_CXX='-fPIC'
14528 # QNX uses GNU C++, but need to define -shared option too, otherwise
14529 # it will coredump.
14530 lt_prog_compiler_pic_CXX='-fPIC -shared'
14533 lt_prog_compiler_pic_CXX='-fPIC'
14539 # All AIX code is PIC.
14540 if test "$host_cpu" = ia64; then
14541 # AIX 5 now supports IA64 processor
14542 lt_prog_compiler_static_CXX='-Bstatic'
14544 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14548 case $cc_basename in
14550 # Green Hills C++ Compiler
14551 # _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"
14556 case $cc_basename in
14558 lt_prog_compiler_pic_CXX='-KPIC'
14561 # Green Hills C++ Compiler
14562 lt_prog_compiler_pic_CXX='-pic'
14568 freebsd* | dragonfly*)
14569 # FreeBSD uses GNU C++
14571 hpux9* | hpux10* | hpux11*)
14572 case $cc_basename in
14574 lt_prog_compiler_wl_CXX='-Wl,'
14575 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14576 if test "$host_cpu" != ia64; then
14577 lt_prog_compiler_pic_CXX='+Z'
14581 lt_prog_compiler_wl_CXX='-Wl,'
14582 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14588 lt_prog_compiler_pic_CXX='+Z'
14597 # This is c89, which is MS Visual C++ (no shared libs)
14598 # Anyone wants to do a port?
14600 irix5* | irix6* | nonstopux*)
14601 case $cc_basename in
14603 lt_prog_compiler_wl_CXX='-Wl,'
14604 lt_prog_compiler_static_CXX='-non_shared'
14605 # CC pic flag -KPIC is the default.
14611 linux* | k*bsd*-gnu)
14612 case $cc_basename in
14615 lt_prog_compiler_wl_CXX='--backend -Wl,'
14616 lt_prog_compiler_pic_CXX='-fPIC'
14619 # old Intel C++ for x86_64 which still supported -KPIC.
14620 lt_prog_compiler_wl_CXX='-Wl,'
14621 lt_prog_compiler_pic_CXX='-KPIC'
14622 lt_prog_compiler_static_CXX='-static'
14625 # Intel C++, used to be incompatible with GCC.
14626 # ICC 10 doesn't accept -KPIC any more.
14627 lt_prog_compiler_wl_CXX='-Wl,'
14628 lt_prog_compiler_pic_CXX='-fPIC'
14629 lt_prog_compiler_static_CXX='-static'
14632 # Portland Group C++ compiler
14633 lt_prog_compiler_wl_CXX='-Wl,'
14634 lt_prog_compiler_pic_CXX='-fpic'
14635 lt_prog_compiler_static_CXX='-Bstatic'
14639 # Make sure the PIC flag is empty. It appears that all Alpha
14640 # Linux and Compaq Tru64 Unix objects are PIC.
14641 lt_prog_compiler_pic_CXX=
14642 lt_prog_compiler_static_CXX='-non_shared'
14645 # IBM XL 8.0 on PPC
14646 lt_prog_compiler_wl_CXX='-Wl,'
14647 lt_prog_compiler_pic_CXX='-qpic'
14648 lt_prog_compiler_static_CXX='-qstaticlink'
14651 case `$CC -V 2>&1 | sed 5q` in
14654 lt_prog_compiler_pic_CXX='-KPIC'
14655 lt_prog_compiler_static_CXX='-Bstatic'
14656 lt_prog_compiler_wl_CXX='-Qoption ld '
14667 case $cc_basename in
14669 lt_prog_compiler_pic_CXX='-W c,exportall'
14678 # QNX uses GNU C++, but need to define -shared option too, otherwise
14679 # it will coredump.
14680 lt_prog_compiler_pic_CXX='-fPIC -shared'
14682 osf3* | osf4* | osf5*)
14683 case $cc_basename in
14685 lt_prog_compiler_wl_CXX='--backend -Wl,'
14688 # Rational C++ 2.4.1
14689 lt_prog_compiler_pic_CXX='-pic'
14692 # Digital/Compaq C++
14693 lt_prog_compiler_wl_CXX='-Wl,'
14694 # Make sure the PIC flag is empty. It appears that all Alpha
14695 # Linux and Compaq Tru64 Unix objects are PIC.
14696 lt_prog_compiler_pic_CXX=
14697 lt_prog_compiler_static_CXX='-non_shared'
14706 case $cc_basename in
14708 # Sun C++ 4.2, 5.x and Centerline C++
14709 lt_prog_compiler_pic_CXX='-KPIC'
14710 lt_prog_compiler_static_CXX='-Bstatic'
14711 lt_prog_compiler_wl_CXX='-Qoption ld '
14714 # Green Hills C++ Compiler
14715 lt_prog_compiler_pic_CXX='-PIC'
14722 case $cc_basename in
14725 lt_prog_compiler_pic_CXX='-pic'
14726 lt_prog_compiler_static_CXX='-Bstatic'
14730 lt_prog_compiler_pic_CXX='-pic'
14736 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14737 case $cc_basename in
14739 lt_prog_compiler_wl_CXX='-Wl,'
14740 lt_prog_compiler_pic_CXX='-KPIC'
14741 lt_prog_compiler_static_CXX='-Bstatic'
14746 case $cc_basename in
14748 # NonStop-UX NCC 3.20
14749 lt_prog_compiler_pic_CXX='-KPIC'
14758 lt_prog_compiler_can_build_shared_CXX=no
14764 # For platforms which do not support PIC, -DPIC is meaningless:
14766 lt_prog_compiler_pic_CXX=
14769 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14773 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14778 # Check to make sure the PIC flag actually works.
14780 if test -n "$lt_prog_compiler_pic_CXX"; then
14781 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14783 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 lt_cv_prog_compiler_pic_works_CXX=no
14787 ac_outfile=conftest.$ac_objext
14788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14789 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14790 # Insert the option either (1) after the last *FLAGS variable, or
14791 # (2) before a word containing "conftest.", or (3) at the end.
14792 # Note that $ac_compile itself does not contain backslashes and begins
14793 # with a dollar sign (not a hyphen), so the echo should work correctly.
14794 # The option is referenced via a variable to avoid confusing sed.
14795 lt_compile=`echo "$ac_compile" | $SED \
14796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14798 -e 's:$: $lt_compiler_flag:'`
14799 (eval echo "\"\$as_me:14799: $lt_compile\"" >&5)
14800 (eval "$lt_compile" 2>conftest.err)
14802 cat conftest.err >&5
14803 echo "$as_me:14803: \$? = $ac_status" >&5
14804 if (exit $ac_status) && test -s "$ac_outfile"; then
14805 # The compiler can only warn and ignore the option if not recognized
14806 # So say no if there are warnings other than the usual output.
14807 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14810 lt_cv_prog_compiler_pic_works_CXX=yes
14816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14817 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14819 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14820 case $lt_prog_compiler_pic_CXX in
14822 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14825 lt_prog_compiler_pic_CXX=
14826 lt_prog_compiler_can_build_shared_CXX=no
14834 # Check to make sure the static flag actually works.
14836 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14837 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14838 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14839 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 lt_cv_prog_compiler_static_works_CXX=no
14843 save_LDFLAGS="$LDFLAGS"
14844 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14845 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14846 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14847 # The linker can only warn and ignore the option if not recognized
14848 # So say no if there are warnings
14849 if test -s conftest.err; then
14850 # Append any errors to the config.log.
14851 cat conftest.err 1>&5
14852 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14854 if diff conftest.exp conftest.er2 >/dev/null; then
14855 lt_cv_prog_compiler_static_works_CXX=yes
14858 lt_cv_prog_compiler_static_works_CXX=yes
14862 LDFLAGS="$save_LDFLAGS"
14865 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14866 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14868 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14871 lt_prog_compiler_static_CXX=
14877 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14878 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14879 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 lt_cv_prog_compiler_c_o_CXX=no
14883 $RM -r conftest 2>/dev/null
14887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14889 lt_compiler_flag="-o out/conftest2.$ac_objext"
14890 # Insert the option either (1) after the last *FLAGS variable, or
14891 # (2) before a word containing "conftest.", or (3) at the end.
14892 # Note that $ac_compile itself does not contain backslashes and begins
14893 # with a dollar sign (not a hyphen), so the echo should work correctly.
14894 lt_compile=`echo "$ac_compile" | $SED \
14895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14897 -e 's:$: $lt_compiler_flag:'`
14898 (eval echo "\"\$as_me:14898: $lt_compile\"" >&5)
14899 (eval "$lt_compile" 2>out/conftest.err)
14901 cat out/conftest.err >&5
14902 echo "$as_me:14902: \$? = $ac_status" >&5
14903 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14905 # The compiler can only warn and ignore the option if not recognized
14906 # So say no if there are warnings
14907 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14910 lt_cv_prog_compiler_c_o_CXX=yes
14915 # SGI C++ compiler will create directory out/ii_files/ for
14916 # template instantiation
14917 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14918 $RM out/* && rmdir out
14924 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14925 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14929 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14930 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14931 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 lt_cv_prog_compiler_c_o_CXX=no
14935 $RM -r conftest 2>/dev/null
14939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14941 lt_compiler_flag="-o out/conftest2.$ac_objext"
14942 # Insert the option either (1) after the last *FLAGS variable, or
14943 # (2) before a word containing "conftest.", or (3) at the end.
14944 # Note that $ac_compile itself does not contain backslashes and begins
14945 # with a dollar sign (not a hyphen), so the echo should work correctly.
14946 lt_compile=`echo "$ac_compile" | $SED \
14947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14949 -e 's:$: $lt_compiler_flag:'`
14950 (eval echo "\"\$as_me:14950: $lt_compile\"" >&5)
14951 (eval "$lt_compile" 2>out/conftest.err)
14953 cat out/conftest.err >&5
14954 echo "$as_me:14954: \$? = $ac_status" >&5
14955 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14957 # The compiler can only warn and ignore the option if not recognized
14958 # So say no if there are warnings
14959 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14960 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14961 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14962 lt_cv_prog_compiler_c_o_CXX=yes
14967 # SGI C++ compiler will create directory out/ii_files/ for
14968 # template instantiation
14969 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14970 $RM out/* && rmdir out
14976 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14977 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14982 hard_links="nottested"
14983 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14984 # do not overwrite the value of need_locks provided by the user
14985 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14986 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14991 ln conftest.a conftest.b 2>&5 || hard_links=no
14992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14993 { echo "$as_me:$LINENO: result: $hard_links" >&5
14994 echo "${ECHO_T}$hard_links" >&6; }
14995 if test "$hard_links" = no; then
14996 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14997 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15006 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15007 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15012 # If we're using GNU nm, then we don't want the "-C" option.
15013 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15014 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15015 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'
15017 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'
15021 export_symbols_cmds_CXX="$ltdll_cmds"
15023 cygwin* | mingw* | cegcc*)
15024 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'
15027 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15030 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15032 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15033 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15034 test "$ld_shlibs_CXX" = no && can_build_shared=no
15036 with_gnu_ld_CXX=$with_gnu_ld
15044 # Do we need to explicitly link libc?
15046 case "x$archive_cmds_need_lc_CXX" in
15048 # Assume -lc should be added
15049 archive_cmds_need_lc_CXX=yes
15051 if test "$enable_shared" = yes && test "$GCC" = yes; then
15052 case $archive_cmds_CXX in
15054 # FIXME: we may have to deal with multi-command sequences.
15057 # Test whether the compiler implicitly links with -lc since on some
15058 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15059 # to ld, don't add -lc before -lgcc.
15060 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15061 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066 (eval $ac_compile) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } 2>conftest.err; then
15072 libobjs=conftest.$ac_objext
15074 wl=$lt_prog_compiler_wl_CXX
15075 pic_flag=$lt_prog_compiler_pic_CXX
15081 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15082 allow_undefined_flag_CXX=
15083 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15084 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }
15089 archive_cmds_need_lc_CXX=no
15091 archive_cmds_need_lc_CXX=yes
15093 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15095 cat conftest.err 1>&5
15098 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15099 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15169 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15170 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15172 library_names_spec=
15173 libname_spec='lib$name'
15177 postuninstall_cmds=
15181 shlibpath_overrides_runpath=unknown
15183 dynamic_linker="$host_os ld.so"
15184 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15185 need_lib_prefix=unknown
15186 hardcode_into_libs=no
15188 # when you set need_version to no, make sure it does not cause -set_version
15189 # flags to be left without arguments
15190 need_version=unknown
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15196 shlibpath_var=LIBPATH
15198 # AIX 3 has no versioning support, so we append a major version to the name.
15199 soname_spec='${libname}${release}${shared_ext}$major'
15206 hardcode_into_libs=yes
15207 if test "$host_cpu" = ia64; then
15208 # AIX 5 supports IA64
15209 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15210 shlibpath_var=LD_LIBRARY_PATH
15212 # With GCC up to 2.95.x, collect2 would create an import file
15213 # for dependence libraries. The import file would start with
15214 # the line `#! .'. This would cause the generated library to
15215 # depend on `.', always an invalid library. This was fixed in
15216 # development snapshots of GCC prior to 3.0.
15218 aix4 | aix4.[01] | aix4.[01].*)
15219 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15221 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15224 can_build_shared=no
15228 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15229 # soname into executable. Probably we can add versioning support to
15230 # collect2, so additional links can be useful in future.
15231 if test "$aix_use_runtimelinking" = yes; then
15232 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15233 # instead of lib<name>.a to let people know that these are not
15234 # typical AIX shared libraries.
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 # We preserve .a as extension for shared libraries through AIX4.2
15238 # and later when we are not doing run time linking.
15239 library_names_spec='${libname}${release}.a $libname.a'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15242 shlibpath_var=LIBPATH
15249 # Since July 2007 AmigaOS4 officially supports .so libraries.
15250 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 library_names_spec='$libname.ixlibrary $libname.a'
15255 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15256 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'
15262 library_names_spec='${libname}${shared_ext}'
15263 dynamic_linker="$host_os ld.so"
15264 shlibpath_var=LIBRARY_PATH
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15273 shlibpath_var=LD_LIBRARY_PATH
15274 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15275 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15276 # the default ld.so.conf also contains /usr/contrib/lib and
15277 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15278 # libtool to hard-code these into programs
15281 cygwin* | mingw* | pw32* | cegcc*)
15282 version_type=windows
15287 case $GCC,$host_os in
15288 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15289 library_names_spec='$libname.dll.a'
15290 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15291 postinstall_cmds='base_file=`basename \${file}`~
15292 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15293 dldir=$destdir/`dirname \$dlpath`~
15294 test -d \$dldir || mkdir -p \$dldir~
15295 $install_prog $dir/$dlname \$dldir/$dlname~
15296 chmod a+x \$dldir/$dlname~
15297 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15298 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15300 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15301 dlpath=$dir/\$dldll~
15303 shlibpath_overrides_runpath=yes
15307 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15308 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15309 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15312 # MinGW DLLs use traditional 'lib' prefix
15313 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15314 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15315 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15316 # It is most probably a Windows format PATH printed by
15317 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15318 # path with ; separators, and with drive letters. We can handle the
15319 # drive letters (cygwin fileutils understands them), so leave them,
15320 # especially as we might pass files found there to a mingw objdump,
15321 # which wouldn't understand a cygwinified path. Ahh.
15322 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15324 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15328 # pw32 DLLs use 'pw' prefix rather than 'lib'
15329 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15335 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15338 dynamic_linker='Win32 ld.exe'
15339 # FIXME: first we should search . and the directory the executable is in
15343 darwin* | rhapsody*)
15344 dynamic_linker="$host_os dyld"
15345 version_type=darwin
15348 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15349 soname_spec='${libname}${release}${major}$shared_ext'
15350 shlibpath_overrides_runpath=yes
15351 shlibpath_var=DYLD_LIBRARY_PATH
15352 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15354 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 shlibpath_var=LD_LIBRARY_PATH
15370 freebsd* | dragonfly*)
15371 # DragonFly does not have aout. When/if they implement a new
15372 # versioning mechanism, adjust this.
15373 if test -x /usr/bin/objformat; then
15374 objformat=`/usr/bin/objformat`
15377 freebsd[123]*) objformat=aout ;;
15378 *) objformat=elf ;;
15381 version_type=freebsd-$objformat
15382 case $version_type in
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15393 shlibpath_var=LD_LIBRARY_PATH
15396 shlibpath_overrides_runpath=yes
15398 freebsd3.[01]* | freebsdelf3.[01]*)
15399 shlibpath_overrides_runpath=yes
15400 hardcode_into_libs=yes
15402 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15403 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15404 shlibpath_overrides_runpath=no
15405 hardcode_into_libs=yes
15407 *) # from 4.6 on, and DragonFly
15408 shlibpath_overrides_runpath=yes
15409 hardcode_into_libs=yes
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'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 hardcode_into_libs=yes
15424 hpux9* | hpux10* | hpux11*)
15425 # Give a soname corresponding to the major version so that dld.sl refuses to
15426 # link against other versions.
15433 hardcode_into_libs=yes
15434 dynamic_linker="$host_os dld.so"
15435 shlibpath_var=LD_LIBRARY_PATH
15436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 if test "X$HPUX_IA64_MODE" = X32; then
15440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15442 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15448 hardcode_into_libs=yes
15449 dynamic_linker="$host_os dld.sl"
15450 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15459 dynamic_linker="$host_os dld.sl"
15460 shlibpath_var=SHLIB_PATH
15461 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463 soname_spec='${libname}${release}${shared_ext}$major'
15466 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15467 postinstall_cmds='chmod 555 $lib'
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath=no
15479 hardcode_into_libs=yes
15482 irix5* | irix6* | nonstopux*)
15484 nonstopux*) version_type=nonstopux ;;
15486 if test "$lt_cv_prog_gnu_ld" = yes; then
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15497 irix5* | nonstopux*)
15498 libsuff= shlibsuff=
15501 case $LD in # libtool.m4 will add one of these switches to LD
15502 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15503 libsuff= shlibsuff= libmagic=32-bit;;
15504 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15505 libsuff=32 shlibsuff=N32 libmagic=N32;;
15506 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15507 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15508 *) libsuff= shlibsuff= libmagic=never-match;;
15512 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15513 shlibpath_overrides_runpath=no
15514 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15515 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15516 hardcode_into_libs=yes
15519 # No shared lib support for Linux oldld, aout, or coff.
15520 linux*oldld* | linux*aout* | linux*coff*)
15524 # This must be Linux ELF.
15525 linux* | k*bsd*-gnu)
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530 soname_spec='${libname}${release}${shared_ext}$major'
15531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15532 shlibpath_var=LD_LIBRARY_PATH
15533 shlibpath_overrides_runpath=no
15534 # Some binutils ld are patched to set DT_RUNPATH
15535 save_LDFLAGS=$LDFLAGS
15536 save_libdir=$libdir
15537 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15538 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15539 cat >conftest.$ac_ext <<_ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (ac_try="$ac_link"
15556 case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_link") 2>conftest.er1
15563 grep -v '^ *+' conftest.er1 >conftest.err
15565 cat conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && {
15568 test -z "$ac_cxx_werror_flag" ||
15569 test ! -s conftest.err
15570 } && test -s conftest$ac_exeext &&
15571 $as_test_x conftest$ac_exeext; then
15572 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15573 shlibpath_overrides_runpath=yes
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15584 conftest$ac_exeext conftest.$ac_ext
15585 LDFLAGS=$save_LDFLAGS
15586 libdir=$save_libdir
15588 # This implies no fast_install, which is unacceptable.
15589 # Some rework will be needed to allow for fast_install
15590 # before this can be enabled.
15591 hardcode_into_libs=yes
15593 # Append ld.so.conf contents to the search path
15594 if test -f /etc/ld.so.conf; then
15595 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' ' '`
15596 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15599 # We used to test for /lib/ld.so.1 and disable shared libraries on
15600 # powerpc, because MkLinux only supported shared libraries with the
15601 # GNU dynamic linker. Since this was broken with cross compilers,
15602 # most powerpc-linux boxes support dynamic linking these days and
15603 # people can always --disable-shared, the test was removed, and we
15604 # assume the GNU/Linux dynamic linker is in use.
15605 dynamic_linker='GNU/Linux ld.so'
15612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15615 dynamic_linker='NetBSD (a.out) ld.so'
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 dynamic_linker='NetBSD ld.elf_so'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 shlibpath_overrides_runpath=yes
15623 hardcode_into_libs=yes
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=yes
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638 soname_spec='${libname}${release}${shared_ext}$major'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 shlibpath_overrides_runpath=no
15641 hardcode_into_libs=yes
15642 dynamic_linker='ldqnx.so'
15647 sys_lib_dlsearch_path_spec="/usr/lib"
15649 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15651 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15652 *) need_version=no ;;
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15656 shlibpath_var=LD_LIBRARY_PATH
15657 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15659 openbsd2.[89] | openbsd2.[89].*)
15660 shlibpath_overrides_runpath=no
15663 shlibpath_overrides_runpath=yes
15667 shlibpath_overrides_runpath=yes
15672 libname_spec='$name'
15675 library_names_spec='$libname${shared_ext} $libname.a'
15676 dynamic_linker='OS/2 ld.exe'
15677 shlibpath_var=LIBPATH
15680 osf3* | osf4* | osf5*)
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 shlibpath_var=LD_LIBRARY_PATH
15702 shlibpath_overrides_runpath=yes
15703 hardcode_into_libs=yes
15704 # ldd complains unless libraries are executable
15705 postinstall_cmds='chmod +x $lib'
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15711 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 shlibpath_overrides_runpath=yes
15714 if test "$with_gnu_ld" = yes; then
15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723 soname_spec='${libname}${release}${shared_ext}$major'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 case $host_vendor in
15727 shlibpath_overrides_runpath=no
15729 runpath_var=LD_RUN_PATH
15737 shlibpath_overrides_runpath=no
15738 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15744 if test -d /usr/nec ;then
15746 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15747 soname_spec='$libname${shared_ext}.$major'
15748 shlibpath_var=LD_LIBRARY_PATH
15752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15753 version_type=freebsd-elf
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 shlibpath_overrides_runpath=yes
15760 hardcode_into_libs=yes
15761 if test "$with_gnu_ld" = yes; then
15762 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15764 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15767 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15771 sys_lib_dlsearch_path_spec='/usr/lib'
15775 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780 shlibpath_var=LD_LIBRARY_PATH
15781 shlibpath_overrides_runpath=no
15782 hardcode_into_libs=yes
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec='${libname}${release}${shared_ext}$major'
15789 shlibpath_var=LD_LIBRARY_PATH
15796 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15797 echo "${ECHO_T}$dynamic_linker" >&6; }
15798 test "$dynamic_linker" = no && can_build_shared=no
15800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15801 if test "$GCC" = yes; then
15802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15805 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15806 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15808 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15809 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15847 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15849 hardcode_action_CXX=
15850 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15851 test -n "$runpath_var_CXX" ||
15852 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15854 # We can hardcode non-existent directories.
15855 if test "$hardcode_direct_CXX" != no &&
15856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15857 # have to relink, otherwise we might link with an installed library
15858 # when we should be linking with a yet-to-be-installed one
15859 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15860 test "$hardcode_minus_L_CXX" != no; then
15861 # Linking always hardcodes the temporary library directory.
15862 hardcode_action_CXX=relink
15864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15865 hardcode_action_CXX=immediate
15868 # We cannot hardcode anything, or else we can only hardcode existing
15870 hardcode_action_CXX=unsupported
15872 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15873 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15875 if test "$hardcode_action_CXX" = relink ||
15876 test "$inherit_rpath_CXX" = yes; then
15877 # Fast installation is not supported
15878 enable_fast_install=no
15879 elif test "$shlibpath_overrides_runpath" = yes ||
15880 test "$enable_shared" = no; then
15881 # Fast installation is not necessary
15882 enable_fast_install=needless
15891 fi # test -n "$compiler"
15897 with_gnu_ld=$lt_save_with_gnu_ld
15898 lt_cv_path_LDCXX=$lt_cv_path_LD
15899 lt_cv_path_LD=$lt_save_path_LD
15900 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15901 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15902 fi # test "$_lt_caught_CXX_error" != yes
15905 ac_cpp='$CPP $CPPFLAGS'
15906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15922 ac_config_commands="$ac_config_commands libtool"
15927 # Only expand once:
15932 if test x$use_libtool != xno; then
15933 DEFAULT_OBJECT_TYPE=".lo"
15934 DEFAULT_ARCHIVE_TYPE=".la"
15935 DEFAULT_SHARED_OBJECT_TYPE=".la"
15936 LIBTOOL="\$(LIBTOOL)"
15937 LIBTOOL_INSTALL_TARGET="libtool-install"
15938 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15939 LIBTOOL_CLEAN_TARGET="libtool-clean"
15940 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15942 DEFAULT_OBJECT_TYPE=".o"
15943 DEFAULT_ARCHIVE_TYPE=".a"
15944 DEFAULT_SHARED_OBJECT_TYPE=".so"
15945 LIBTOOL="# \$(LIBTOOL)"
15946 LIBTOOL_INSTALL_TARGET=""
15947 LIBTOOL_UNINSTALL_TARGET=""
15948 LIBTOOL_CLEAN_TARGET=""
15949 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15961 # Check whether --enable-includes was given.
15962 if test "${enable_includes+set}" = set; then
15963 enableval=$enable_includes;
15964 if test x$enableval = xyes; then
15965 install_includes=yes
15973 if test x$use_libtool != xno -a x$install_includes = xyes; then
15974 INCLUDE_INSTALL_TARGET="install-includes"
15975 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15977 INCLUDE_INSTALL_TARGET=""
15978 INCLUDE_UNINSTALL_TARGET=""
15984 { echo "$as_me:$LINENO: checking host system type" >&5
15985 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15986 if test "${ac_cv_host+set}" = set; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 if test "x$host_alias" = x; then
15990 ac_cv_host=$ac_cv_build
15992 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15993 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15994 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15995 { (exit 1); exit 1; }; }
15999 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16000 echo "${ECHO_T}$ac_cv_host" >&6; }
16001 case $ac_cv_host in
16003 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16004 echo "$as_me: error: invalid value of canonical host" >&2;}
16005 { (exit 1); exit 1; }; };;
16008 ac_save_IFS=$IFS; IFS='-'
16014 # Remember, the first character of IFS is used to create $*,
16015 # except with old shells:
16018 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16022 *cygwin* ) CYGWIN=yes;;
16026 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16032 HAVE_SUN_OS_FALSE='#'
16034 HAVE_SUN_OS_TRUE='#'
16037 cat >>confdefs.h <<\_ACEOF
16038 #define HAVE_SUN_OS 1
16046 HAVE_SUN_OS_FALSE='#'
16048 HAVE_SUN_OS_TRUE='#'
16053 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16059 HAVE_OSF1_OS_FALSE='#'
16061 HAVE_OSF1_OS_TRUE='#'
16062 HAVE_OSF1_OS_FALSE=
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_OSF1_OS 1
16073 HAVE_OSF1_OS_FALSE='#'
16075 HAVE_OSF1_OS_TRUE='#'
16076 HAVE_OSF1_OS_FALSE=
16080 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16086 HAVE_AIX_OS_FALSE='#'
16088 HAVE_AIX_OS_TRUE='#'
16091 cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_AIX_OS 1
16100 HAVE_AIX_OS_FALSE='#'
16102 HAVE_AIX_OS_TRUE='#'
16107 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16113 HAVE_HPUX_OS_FALSE='#'
16115 HAVE_HPUX_OS_TRUE='#'
16116 HAVE_HPUX_OS_FALSE=
16118 cat >>confdefs.h <<\_ACEOF
16119 #define HAVE_HPUX_OS 1
16127 HAVE_HPUX_OS_FALSE='#'
16129 HAVE_HPUX_OS_TRUE='#'
16130 HAVE_HPUX_OS_FALSE=
16134 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16139 HAVE_LINUX_OS_TRUE=
16140 HAVE_LINUX_OS_FALSE='#'
16142 HAVE_LINUX_OS_TRUE='#'
16143 HAVE_LINUX_OS_FALSE=
16145 cat >>confdefs.h <<\_ACEOF
16146 #define HAVE_LINUX_OS 1
16153 HAVE_LINUX_OS_TRUE=
16154 HAVE_LINUX_OS_FALSE='#'
16156 HAVE_LINUX_OS_TRUE='#'
16157 HAVE_LINUX_OS_FALSE=
16161 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16166 HAVE_FREEBSD_OS_TRUE=
16167 HAVE_FREEBSD_OS_FALSE='#'
16169 HAVE_FREEBSD_OS_TRUE='#'
16170 HAVE_FREEBSD_OS_FALSE=
16172 cat >>confdefs.h <<\_ACEOF
16173 #define HAVE_FREEBSD_OS 1
16180 HAVE_FREEBSD_OS_TRUE=
16181 HAVE_FREEBSD_OS_FALSE='#'
16183 HAVE_FREEBSD_OS_TRUE='#'
16184 HAVE_FREEBSD_OS_FALSE=
16188 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16193 HAVE_NETBSD_OS_TRUE=
16194 HAVE_NETBSD_OS_FALSE='#'
16196 HAVE_NETBSD_OS_TRUE='#'
16197 HAVE_NETBSD_OS_FALSE=
16199 cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_NETBSD_OS 1
16207 HAVE_NETBSD_OS_TRUE=
16208 HAVE_NETBSD_OS_FALSE='#'
16210 HAVE_NETBSD_OS_TRUE='#'
16211 HAVE_NETBSD_OS_FALSE=
16215 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16220 HAVE_OPENBSD_OS_TRUE=
16221 HAVE_OPENBSD_OS_FALSE='#'
16223 HAVE_OPENBSD_OS_TRUE='#'
16224 HAVE_OPENBSD_OS_FALSE=
16226 cat >>confdefs.h <<\_ACEOF
16227 #define HAVE_OPENBSD_OS 1
16234 HAVE_OPENBSD_OS_TRUE=
16235 HAVE_OPENBSD_OS_FALSE='#'
16237 HAVE_OPENBSD_OS_TRUE='#'
16238 HAVE_OPENBSD_OS_FALSE=
16242 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16248 HAVE_BSDI_OS_FALSE='#'
16250 HAVE_BSDI_OS_TRUE='#'
16251 HAVE_BSDI_OS_FALSE=
16253 cat >>confdefs.h <<\_ACEOF
16254 #define HAVE_BSDI_OS 1
16262 HAVE_BSDI_OS_FALSE='#'
16264 HAVE_BSDI_OS_TRUE='#'
16265 HAVE_BSDI_OS_FALSE=
16269 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16275 HAVE_SGI_OS_FALSE='#'
16277 HAVE_SGI_OS_TRUE='#'
16280 cat >>confdefs.h <<\_ACEOF
16281 #define HAVE_SGI_OS 1
16289 HAVE_SGI_OS_FALSE='#'
16291 HAVE_SGI_OS_TRUE='#'
16296 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16302 HAVE_IRIX_OS_FALSE='#'
16304 HAVE_IRIX_OS_TRUE='#'
16305 HAVE_IRIX_OS_FALSE=
16307 cat >>confdefs.h <<\_ACEOF
16308 #define HAVE_IRIX_OS 1
16316 HAVE_IRIX_OS_FALSE='#'
16318 HAVE_IRIX_OS_TRUE='#'
16319 HAVE_IRIX_OS_FALSE=
16323 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16328 HAVE_DARWIN_OS_TRUE=
16329 HAVE_DARWIN_OS_FALSE='#'
16331 HAVE_DARWIN_OS_TRUE='#'
16332 HAVE_DARWIN_OS_FALSE=
16334 cat >>confdefs.h <<\_ACEOF
16335 #define HAVE_DARWIN_OS 1
16342 HAVE_DARWIN_OS_TRUE=
16343 HAVE_DARWIN_OS_FALSE='#'
16345 HAVE_DARWIN_OS_TRUE='#'
16346 HAVE_DARWIN_OS_FALSE=
16351 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16352 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16353 if test "x$DISTNAME" != "x"
16355 echo "distname set to $DISTNAME"
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16383 elif test -f /etc/SuSE-release
16386 elif test -d /etc/SuSEconfig
16389 elif test -f /etc/mandrake-release
16392 elif test -f /etc/whitebox-release
16395 elif test -f /etc/redhat-release
16398 elif test -f /etc/gentoo-release
16401 elif test -f /etc/debian_version
16404 elif test -f /etc/slackware-version
16407 elif test x$host_vendor = xapple
16410 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16413 elif test -f /etc/engarde-version
16416 elif test "$CYGWIN" = yes
16419 cat >>confdefs.h <<\_ACEOF
16420 #define HAVE_CYGWIN 1
16426 { echo "$as_me:$LINENO: result: done" >&5
16427 echo "${ECHO_T}done" >&6; }
16430 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16431 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16432 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16433 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 cat >conftest.make <<\_ACEOF
16439 @echo '@@@%%%=$(MAKE)=@@@%%%'
16441 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16442 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16443 *@@@%%%=?*=@@@%%%*)
16444 eval ac_cv_prog_make_${ac_make}_set=yes;;
16446 eval ac_cv_prog_make_${ac_make}_set=no;;
16448 rm -f conftest.make
16450 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16451 { echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6; }
16455 { echo "$as_me:$LINENO: result: no" >&5
16456 echo "${ECHO_T}no" >&6; }
16457 SET_MAKE="MAKE=${MAKE-make}"
16463 if test -n "$ac_aux_dir"; then
16464 case "$ac_aux_dir" in
16465 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16466 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16469 if test -z "$MKINSTALLDIRS"; then
16470 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16475 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16476 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16477 # Check whether --enable-nls was given.
16478 if test "${enable_nls+set}" = set; then
16479 enableval=$enable_nls; USE_NLS=$enableval
16484 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16485 echo "${ECHO_T}$USE_NLS" >&6; }
16492 # Prepare PATH_SEPARATOR.
16493 # The user is always right.
16494 if test "${PATH_SEPARATOR+set}" != set; then
16495 echo "#! /bin/sh" >conf$$.sh
16496 echo "exit 0" >>conf$$.sh
16498 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16506 # Find out how to test for executable files. Don't use a zero-byte file,
16507 # as systems may use methods other than mode bits to determine executability.
16508 cat >conf$$.file <<_ASEOF
16512 chmod +x conf$$.file
16513 if test -x conf$$.file >/dev/null 2>&1; then
16514 ac_executable_p="test -x"
16516 ac_executable_p="test -f"
16520 # Extract the first word of "msgfmt", so it can be a program name with args.
16521 set dummy msgfmt; ac_word=$2
16522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16524 if test "${ac_cv_path_MSGFMT+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16532 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16533 for ac_dir in $PATH; do
16535 test -z "$ac_dir" && ac_dir=.
16536 for ac_exec_ext in '' $ac_executable_extensions; do
16537 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16538 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16539 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16540 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16541 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16548 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16552 MSGFMT="$ac_cv_path_MSGFMT"
16553 if test "$MSGFMT" != ":"; then
16554 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16555 echo "${ECHO_T}$MSGFMT" >&6; }
16557 { echo "$as_me:$LINENO: result: no" >&5
16558 echo "${ECHO_T}no" >&6; }
16561 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16562 set dummy gmsgfmt; ac_word=$2
16563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16565 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16577 test -z "$as_dir" && as_dir=.
16578 for ac_exec_ext in '' $ac_executable_extensions; do
16579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16580 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16588 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16592 GMSGFMT=$ac_cv_path_GMSGFMT
16593 if test -n "$GMSGFMT"; then
16594 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16595 echo "${ECHO_T}$GMSGFMT" >&6; }
16597 { echo "$as_me:$LINENO: result: no" >&5
16598 echo "${ECHO_T}no" >&6; }
16604 # Prepare PATH_SEPARATOR.
16605 # The user is always right.
16606 if test "${PATH_SEPARATOR+set}" != set; then
16607 echo "#! /bin/sh" >conf$$.sh
16608 echo "exit 0" >>conf$$.sh
16610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16618 # Find out how to test for executable files. Don't use a zero-byte file,
16619 # as systems may use methods other than mode bits to determine executability.
16620 cat >conf$$.file <<_ASEOF
16624 chmod +x conf$$.file
16625 if test -x conf$$.file >/dev/null 2>&1; then
16626 ac_executable_p="test -x"
16628 ac_executable_p="test -f"
16632 # Extract the first word of "xgettext", so it can be a program name with args.
16633 set dummy xgettext; ac_word=$2
16634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16636 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 case "$XGETTEXT" in
16641 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16644 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16645 for ac_dir in $PATH; do
16647 test -z "$ac_dir" && ac_dir=.
16648 for ac_exec_ext in '' $ac_executable_extensions; do
16649 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16650 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16651 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16652 (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
16653 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16660 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16664 XGETTEXT="$ac_cv_path_XGETTEXT"
16665 if test "$XGETTEXT" != ":"; then
16666 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16667 echo "${ECHO_T}$XGETTEXT" >&6; }
16669 { echo "$as_me:$LINENO: result: no" >&5
16670 echo "${ECHO_T}no" >&6; }
16676 # Prepare PATH_SEPARATOR.
16677 # The user is always right.
16678 if test "${PATH_SEPARATOR+set}" != set; then
16679 echo "#! /bin/sh" >conf$$.sh
16680 echo "exit 0" >>conf$$.sh
16682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16690 # Find out how to test for executable files. Don't use a zero-byte file,
16691 # as systems may use methods other than mode bits to determine executability.
16692 cat >conf$$.file <<_ASEOF
16696 chmod +x conf$$.file
16697 if test -x conf$$.file >/dev/null 2>&1; then
16698 ac_executable_p="test -x"
16700 ac_executable_p="test -f"
16704 # Extract the first word of "msgmerge", so it can be a program name with args.
16705 set dummy msgmerge; ac_word=$2
16706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16708 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 case "$MSGMERGE" in
16713 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16717 for ac_dir in $PATH; do
16719 test -z "$ac_dir" && ac_dir=.
16720 for ac_exec_ext in '' $ac_executable_extensions; do
16721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16722 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16723 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16724 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16731 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16735 MSGMERGE="$ac_cv_path_MSGMERGE"
16736 if test "$MSGMERGE" != ":"; then
16737 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16738 echo "${ECHO_T}$MSGMERGE" >&6; }
16740 { echo "$as_me:$LINENO: result: no" >&5
16741 echo "${ECHO_T}no" >&6; }
16745 if test "$GMSGFMT" != ":"; then
16746 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16747 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16750 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16751 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16752 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16757 if test "$XGETTEXT" != ":"; then
16758 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16759 (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
16762 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16763 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16769 ac_config_commands="$ac_config_commands default-1"
16773 if test "X$prefix" = "XNONE"; then
16774 acl_final_prefix="$ac_default_prefix"
16776 acl_final_prefix="$prefix"
16778 if test "X$exec_prefix" = "XNONE"; then
16779 acl_final_exec_prefix='${prefix}'
16781 acl_final_exec_prefix="$exec_prefix"
16783 acl_save_prefix="$prefix"
16784 prefix="$acl_final_prefix"
16785 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16786 prefix="$acl_save_prefix"
16789 # Check whether --with-gnu-ld was given.
16790 if test "${with_gnu_ld+set}" = set; then
16791 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16796 # Prepare PATH_SEPARATOR.
16797 # The user is always right.
16798 if test "${PATH_SEPARATOR+set}" != set; then
16799 echo "#! /bin/sh" >conf$$.sh
16800 echo "exit 0" >>conf$$.sh
16802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16810 if test "$GCC" = yes; then
16811 # Check if gcc -print-prog-name=ld gives a path.
16812 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16816 # gcc leaves a trailing carriage return which upsets mingw
16817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16822 # Accept absolute paths.
16823 [\\/]* | [A-Za-z]:[\\/]*)
16824 re_direlt='/[^/][^/]*/\.\./'
16825 # Canonicalize the path of ld
16826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16828 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16830 test -z "$LD" && LD="$ac_prog"
16833 # If it fails, then pretend we aren't using GCC.
16837 # If it is relative, then search for the first ld in PATH.
16838 with_gnu_ld=unknown
16841 elif test "$with_gnu_ld" = yes; then
16842 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16845 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16848 if test "${acl_cv_path_LD+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 if test -z "$LD"; then
16852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16853 for ac_dir in $PATH; do
16854 test -z "$ac_dir" && ac_dir=.
16855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16856 acl_cv_path_LD="$ac_dir/$ac_prog"
16857 # Check to see if the program is GNU ld. I'd rather use --version,
16858 # but apparently some GNU ld's only accept -v.
16859 # Break only if it was the GNU/non-GNU ld that we prefer.
16860 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16861 *GNU* | *'with BFD'*)
16862 test "$with_gnu_ld" != no && break ;;
16864 test "$with_gnu_ld" != yes && break ;;
16870 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16874 LD="$acl_cv_path_LD"
16875 if test -n "$LD"; then
16876 { echo "$as_me:$LINENO: result: $LD" >&5
16877 echo "${ECHO_T}$LD" >&6; }
16879 { echo "$as_me:$LINENO: result: no" >&5
16880 echo "${ECHO_T}no" >&6; }
16882 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16883 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16884 { (exit 1); exit 1; }; }
16885 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16886 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16887 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16891 case `$LD -v 2>&1 </dev/null` in
16892 *GNU* | *'with BFD'*)
16893 acl_cv_prog_gnu_ld=yes ;;
16895 acl_cv_prog_gnu_ld=no ;;
16898 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16899 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16900 with_gnu_ld=$acl_cv_prog_gnu_ld
16905 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16906 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16907 if test "${acl_cv_rpath+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16912 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16914 rm -f ./conftest.sh
16918 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16919 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16921 libext="$acl_cv_libext"
16922 shlibext="$acl_cv_shlibext"
16923 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16924 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16925 hardcode_direct="$acl_cv_hardcode_direct"
16926 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16927 # Check whether --enable-rpath was given.
16928 if test "${enable_rpath+set}" = set; then
16929 enableval=$enable_rpath; :
16943 acl_save_prefix="$prefix"
16944 prefix="$acl_final_prefix"
16945 acl_save_exec_prefix="$exec_prefix"
16946 exec_prefix="$acl_final_exec_prefix"
16948 eval additional_includedir=\"$includedir\"
16949 eval additional_libdir=\"$libdir\"
16951 exec_prefix="$acl_save_exec_prefix"
16952 prefix="$acl_save_prefix"
16955 # Check whether --with-libiconv-prefix was given.
16956 if test "${with_libiconv_prefix+set}" = set; then
16957 withval=$with_libiconv_prefix;
16958 if test "X$withval" = "Xno"; then
16961 if test "X$withval" = "X"; then
16963 acl_save_prefix="$prefix"
16964 prefix="$acl_final_prefix"
16965 acl_save_exec_prefix="$exec_prefix"
16966 exec_prefix="$acl_final_exec_prefix"
16968 eval additional_includedir=\"$includedir\"
16969 eval additional_libdir=\"$libdir\"
16971 exec_prefix="$acl_save_exec_prefix"
16972 prefix="$acl_save_prefix"
16975 additional_includedir="$withval/include"
16976 additional_libdir="$withval/lib"
16987 names_already_handled=
16988 names_next_round='iconv '
16989 while test -n "$names_next_round"; do
16990 names_this_round="$names_next_round"
16992 for name in $names_this_round; do
16994 for n in $names_already_handled; do
16995 if test "$n" = "$name"; then
16996 already_handled=yes
17000 if test -z "$already_handled"; then
17001 names_already_handled="$names_already_handled $name"
17002 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17003 eval value=\"\$HAVE_LIB$uppername\"
17004 if test -n "$value"; then
17005 if test "$value" = yes; then
17006 eval value=\"\$LIB$uppername\"
17007 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17008 eval value=\"\$LTLIB$uppername\"
17009 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17018 if test $use_additional = yes; then
17019 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17020 found_dir="$additional_libdir"
17021 found_so="$additional_libdir/lib$name.$shlibext"
17022 if test -f "$additional_libdir/lib$name.la"; then
17023 found_la="$additional_libdir/lib$name.la"
17026 if test -f "$additional_libdir/lib$name.$libext"; then
17027 found_dir="$additional_libdir"
17028 found_a="$additional_libdir/lib$name.$libext"
17029 if test -f "$additional_libdir/lib$name.la"; then
17030 found_la="$additional_libdir/lib$name.la"
17035 if test "X$found_dir" = "X"; then
17036 for x in $LDFLAGS $LTLIBICONV; do
17038 acl_save_prefix="$prefix"
17039 prefix="$acl_final_prefix"
17040 acl_save_exec_prefix="$exec_prefix"
17041 exec_prefix="$acl_final_exec_prefix"
17043 exec_prefix="$acl_save_exec_prefix"
17044 prefix="$acl_save_prefix"
17048 dir=`echo "X$x" | sed -e 's/^X-L//'`
17049 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17051 found_so="$dir/lib$name.$shlibext"
17052 if test -f "$dir/lib$name.la"; then
17053 found_la="$dir/lib$name.la"
17056 if test -f "$dir/lib$name.$libext"; then
17058 found_a="$dir/lib$name.$libext"
17059 if test -f "$dir/lib$name.la"; then
17060 found_la="$dir/lib$name.la"
17066 if test "X$found_dir" != "X"; then
17071 if test "X$found_dir" != "X"; then
17072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17073 if test "X$found_so" != "X"; then
17074 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17078 for x in $ltrpathdirs; do
17079 if test "X$x" = "X$found_dir"; then
17084 if test -z "$haveit"; then
17085 ltrpathdirs="$ltrpathdirs $found_dir"
17087 if test "$hardcode_direct" = yes; then
17088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17093 for x in $rpathdirs; do
17094 if test "X$x" = "X$found_dir"; then
17099 if test -z "$haveit"; then
17100 rpathdirs="$rpathdirs $found_dir"
17104 for x in $LDFLAGS $LIBICONV; do
17106 acl_save_prefix="$prefix"
17107 prefix="$acl_final_prefix"
17108 acl_save_exec_prefix="$exec_prefix"
17109 exec_prefix="$acl_final_exec_prefix"
17111 exec_prefix="$acl_save_exec_prefix"
17112 prefix="$acl_save_prefix"
17114 if test "X$x" = "X-L$found_dir"; then
17119 if test -z "$haveit"; then
17120 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17122 if test "$hardcode_minus_L" != no; then
17123 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17125 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17131 if test "X$found_a" != "X"; then
17132 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17134 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17137 additional_includedir=
17138 case "$found_dir" in
17140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17141 additional_includedir="$basedir/include"
17144 if test "X$additional_includedir" != "X"; then
17145 if test "X$additional_includedir" != "X/usr/include"; then
17147 if test "X$additional_includedir" = "X/usr/local/include"; then
17148 if test -n "$GCC"; then
17150 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17154 if test -z "$haveit"; then
17155 for x in $CPPFLAGS $INCICONV; do
17157 acl_save_prefix="$prefix"
17158 prefix="$acl_final_prefix"
17159 acl_save_exec_prefix="$exec_prefix"
17160 exec_prefix="$acl_final_exec_prefix"
17162 exec_prefix="$acl_save_exec_prefix"
17163 prefix="$acl_save_prefix"
17165 if test "X$x" = "X-I$additional_includedir"; then
17170 if test -z "$haveit"; then
17171 if test -d "$additional_includedir"; then
17172 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17178 if test -n "$found_la"; then
17179 save_libdir="$libdir"
17180 case "$found_la" in
17181 */* | *\\*) . "$found_la" ;;
17182 *) . "./$found_la" ;;
17184 libdir="$save_libdir"
17185 for dep in $dependency_libs; do
17188 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17189 if test "X$additional_libdir" != "X/usr/lib"; then
17191 if test "X$additional_libdir" = "X/usr/local/lib"; then
17192 if test -n "$GCC"; then
17194 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17198 if test -z "$haveit"; then
17200 for x in $LDFLAGS $LIBICONV; do
17202 acl_save_prefix="$prefix"
17203 prefix="$acl_final_prefix"
17204 acl_save_exec_prefix="$exec_prefix"
17205 exec_prefix="$acl_final_exec_prefix"
17207 exec_prefix="$acl_save_exec_prefix"
17208 prefix="$acl_save_prefix"
17210 if test "X$x" = "X-L$additional_libdir"; then
17215 if test -z "$haveit"; then
17216 if test -d "$additional_libdir"; then
17217 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17221 for x in $LDFLAGS $LTLIBICONV; do
17223 acl_save_prefix="$prefix"
17224 prefix="$acl_final_prefix"
17225 acl_save_exec_prefix="$exec_prefix"
17226 exec_prefix="$acl_final_exec_prefix"
17228 exec_prefix="$acl_save_exec_prefix"
17229 prefix="$acl_save_prefix"
17231 if test "X$x" = "X-L$additional_libdir"; then
17236 if test -z "$haveit"; then
17237 if test -d "$additional_libdir"; then
17238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17245 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17246 if test "$enable_rpath" != no; then
17248 for x in $rpathdirs; do
17249 if test "X$x" = "X$dir"; then
17254 if test -z "$haveit"; then
17255 rpathdirs="$rpathdirs $dir"
17258 for x in $ltrpathdirs; do
17259 if test "X$x" = "X$dir"; then
17264 if test -z "$haveit"; then
17265 ltrpathdirs="$ltrpathdirs $dir"
17270 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17276 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17277 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17283 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17290 if test "X$rpathdirs" != "X"; then
17291 if test -n "$hardcode_libdir_separator"; then
17293 for found_dir in $rpathdirs; do
17294 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17296 acl_save_libdir="$libdir"
17298 eval flag=\"$hardcode_libdir_flag_spec\"
17299 libdir="$acl_save_libdir"
17300 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17302 for found_dir in $rpathdirs; do
17303 acl_save_libdir="$libdir"
17304 libdir="$found_dir"
17305 eval flag=\"$hardcode_libdir_flag_spec\"
17306 libdir="$acl_save_libdir"
17307 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17311 if test "X$ltrpathdirs" != "X"; then
17312 for found_dir in $ltrpathdirs; do
17313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17334 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17335 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17336 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 gt_save_CPPFLAGS="$CPPFLAGS"
17340 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17341 gt_save_LIBS="$LIBS"
17342 LIBS="$LIBS -framework CoreFoundation"
17343 cat >conftest.$ac_ext <<_ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 #include <CFPreferences.h>
17353 CFPreferencesCopyAppValue(NULL, NULL)
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_link") 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && {
17372 test -z "$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17374 } && test -s conftest$ac_exeext &&
17375 $as_test_x conftest$ac_exeext; then
17376 gt_cv_func_CFPreferencesCopyAppValue=yes
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 gt_cv_func_CFPreferencesCopyAppValue=no
17384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17385 conftest$ac_exeext conftest.$ac_ext
17386 CPPFLAGS="$gt_save_CPPFLAGS"
17387 LIBS="$gt_save_LIBS"
17389 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17390 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17391 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17398 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17399 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17400 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 gt_save_CPPFLAGS="$CPPFLAGS"
17404 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17405 gt_save_LIBS="$LIBS"
17406 LIBS="$LIBS -framework CoreFoundation"
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 #include <CFLocale.h>
17417 CFLocaleCopyCurrent();
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17431 grep -v '^ *+' conftest.er1 >conftest.err
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && {
17436 test -z "$ac_c_werror_flag" ||
17437 test ! -s conftest.err
17438 } && test -s conftest$ac_exeext &&
17439 $as_test_x conftest$ac_exeext; then
17440 gt_cv_func_CFLocaleCopyCurrent=yes
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 gt_cv_func_CFLocaleCopyCurrent=no
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449 conftest$ac_exeext conftest.$ac_ext
17450 CPPFLAGS="$gt_save_CPPFLAGS"
17451 LIBS="$gt_save_LIBS"
17453 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17454 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17455 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17457 cat >>confdefs.h <<\_ACEOF
17458 #define HAVE_CFLOCALECOPYCURRENT 1
17463 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17464 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17470 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17471 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17472 # Check whether --enable-nls was given.
17473 if test "${enable_nls+set}" = set; then
17474 enableval=$enable_nls; USE_NLS=$enableval
17479 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17480 echo "${ECHO_T}$USE_NLS" >&6; }
17489 if test "$USE_NLS" = "yes"; then
17490 gt_use_preinstalled_gnugettext=no
17497 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17498 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17499 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 #include <libintl.h>
17509 extern int _nl_msg_cat_cntr;
17510 extern int *_nl_domain_bindings;
17514 bindtextdomain ("", "");
17515 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_link") 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && {
17534 test -z "$ac_c_werror_flag" ||
17535 test ! -s conftest.err
17536 } && test -s conftest$ac_exeext &&
17537 $as_test_x conftest$ac_exeext; then
17538 gt_cv_func_gnugettext1_libc=yes
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 gt_cv_func_gnugettext1_libc=no
17546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17547 conftest$ac_exeext conftest.$ac_ext
17549 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17550 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17552 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17558 am_save_CPPFLAGS="$CPPFLAGS"
17560 for element in $INCICONV; do
17562 for x in $CPPFLAGS; do
17564 acl_save_prefix="$prefix"
17565 prefix="$acl_final_prefix"
17566 acl_save_exec_prefix="$exec_prefix"
17567 exec_prefix="$acl_final_exec_prefix"
17569 exec_prefix="$acl_save_exec_prefix"
17570 prefix="$acl_save_prefix"
17572 if test "X$x" = "X$element"; then
17577 if test -z "$haveit"; then
17578 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17583 { echo "$as_me:$LINENO: checking for iconv" >&5
17584 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17585 if test "${am_cv_func_iconv+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 am_cv_func_iconv="no, consider installing GNU libiconv"
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 #include <stdlib.h>
17602 iconv_t cd = iconv_open("","");
17603 iconv(cd,NULL,NULL,NULL,NULL);
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_link") 2>conftest.er1
17618 grep -v '^ *+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest$ac_exeext &&
17626 $as_test_x conftest$ac_exeext; then
17627 am_cv_func_iconv=yes
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17636 conftest$ac_exeext conftest.$ac_ext
17637 if test "$am_cv_func_iconv" != yes; then
17638 am_save_LIBS="$LIBS"
17639 LIBS="$LIBS $LIBICONV"
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <stdlib.h>
17651 iconv_t cd = iconv_open("","");
17652 iconv(cd,NULL,NULL,NULL,NULL);
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
17676 am_cv_lib_iconv=yes
17677 am_cv_func_iconv=yes
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS="$am_save_LIBS"
17691 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17692 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17693 if test "$am_cv_func_iconv" = yes; then
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_ICONV 1
17700 if test "$am_cv_lib_iconv" = yes; then
17701 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17702 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17703 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17704 echo "${ECHO_T}$LIBICONV" >&6; }
17706 CPPFLAGS="$am_save_CPPFLAGS"
17718 acl_save_prefix="$prefix"
17719 prefix="$acl_final_prefix"
17720 acl_save_exec_prefix="$exec_prefix"
17721 exec_prefix="$acl_final_exec_prefix"
17723 eval additional_includedir=\"$includedir\"
17724 eval additional_libdir=\"$libdir\"
17726 exec_prefix="$acl_save_exec_prefix"
17727 prefix="$acl_save_prefix"
17730 # Check whether --with-libintl-prefix was given.
17731 if test "${with_libintl_prefix+set}" = set; then
17732 withval=$with_libintl_prefix;
17733 if test "X$withval" = "Xno"; then
17736 if test "X$withval" = "X"; then
17738 acl_save_prefix="$prefix"
17739 prefix="$acl_final_prefix"
17740 acl_save_exec_prefix="$exec_prefix"
17741 exec_prefix="$acl_final_exec_prefix"
17743 eval additional_includedir=\"$includedir\"
17744 eval additional_libdir=\"$libdir\"
17746 exec_prefix="$acl_save_exec_prefix"
17747 prefix="$acl_save_prefix"
17750 additional_includedir="$withval/include"
17751 additional_libdir="$withval/lib"
17762 names_already_handled=
17763 names_next_round='intl '
17764 while test -n "$names_next_round"; do
17765 names_this_round="$names_next_round"
17767 for name in $names_this_round; do
17769 for n in $names_already_handled; do
17770 if test "$n" = "$name"; then
17771 already_handled=yes
17775 if test -z "$already_handled"; then
17776 names_already_handled="$names_already_handled $name"
17777 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17778 eval value=\"\$HAVE_LIB$uppername\"
17779 if test -n "$value"; then
17780 if test "$value" = yes; then
17781 eval value=\"\$LIB$uppername\"
17782 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17783 eval value=\"\$LTLIB$uppername\"
17784 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17793 if test $use_additional = yes; then
17794 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17795 found_dir="$additional_libdir"
17796 found_so="$additional_libdir/lib$name.$shlibext"
17797 if test -f "$additional_libdir/lib$name.la"; then
17798 found_la="$additional_libdir/lib$name.la"
17801 if test -f "$additional_libdir/lib$name.$libext"; then
17802 found_dir="$additional_libdir"
17803 found_a="$additional_libdir/lib$name.$libext"
17804 if test -f "$additional_libdir/lib$name.la"; then
17805 found_la="$additional_libdir/lib$name.la"
17810 if test "X$found_dir" = "X"; then
17811 for x in $LDFLAGS $LTLIBINTL; do
17813 acl_save_prefix="$prefix"
17814 prefix="$acl_final_prefix"
17815 acl_save_exec_prefix="$exec_prefix"
17816 exec_prefix="$acl_final_exec_prefix"
17818 exec_prefix="$acl_save_exec_prefix"
17819 prefix="$acl_save_prefix"
17823 dir=`echo "X$x" | sed -e 's/^X-L//'`
17824 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17826 found_so="$dir/lib$name.$shlibext"
17827 if test -f "$dir/lib$name.la"; then
17828 found_la="$dir/lib$name.la"
17831 if test -f "$dir/lib$name.$libext"; then
17833 found_a="$dir/lib$name.$libext"
17834 if test -f "$dir/lib$name.la"; then
17835 found_la="$dir/lib$name.la"
17841 if test "X$found_dir" != "X"; then
17846 if test "X$found_dir" != "X"; then
17847 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17848 if test "X$found_so" != "X"; then
17849 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17850 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17853 for x in $ltrpathdirs; do
17854 if test "X$x" = "X$found_dir"; then
17859 if test -z "$haveit"; then
17860 ltrpathdirs="$ltrpathdirs $found_dir"
17862 if test "$hardcode_direct" = yes; then
17863 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17866 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17868 for x in $rpathdirs; do
17869 if test "X$x" = "X$found_dir"; then
17874 if test -z "$haveit"; then
17875 rpathdirs="$rpathdirs $found_dir"
17879 for x in $LDFLAGS $LIBINTL; do
17881 acl_save_prefix="$prefix"
17882 prefix="$acl_final_prefix"
17883 acl_save_exec_prefix="$exec_prefix"
17884 exec_prefix="$acl_final_exec_prefix"
17886 exec_prefix="$acl_save_exec_prefix"
17887 prefix="$acl_save_prefix"
17889 if test "X$x" = "X-L$found_dir"; then
17894 if test -z "$haveit"; then
17895 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17897 if test "$hardcode_minus_L" != no; then
17898 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17900 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17906 if test "X$found_a" != "X"; then
17907 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17909 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17912 additional_includedir=
17913 case "$found_dir" in
17915 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17916 additional_includedir="$basedir/include"
17919 if test "X$additional_includedir" != "X"; then
17920 if test "X$additional_includedir" != "X/usr/include"; then
17922 if test "X$additional_includedir" = "X/usr/local/include"; then
17923 if test -n "$GCC"; then
17925 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17929 if test -z "$haveit"; then
17930 for x in $CPPFLAGS $INCINTL; do
17932 acl_save_prefix="$prefix"
17933 prefix="$acl_final_prefix"
17934 acl_save_exec_prefix="$exec_prefix"
17935 exec_prefix="$acl_final_exec_prefix"
17937 exec_prefix="$acl_save_exec_prefix"
17938 prefix="$acl_save_prefix"
17940 if test "X$x" = "X-I$additional_includedir"; then
17945 if test -z "$haveit"; then
17946 if test -d "$additional_includedir"; then
17947 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17953 if test -n "$found_la"; then
17954 save_libdir="$libdir"
17955 case "$found_la" in
17956 */* | *\\*) . "$found_la" ;;
17957 *) . "./$found_la" ;;
17959 libdir="$save_libdir"
17960 for dep in $dependency_libs; do
17963 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17964 if test "X$additional_libdir" != "X/usr/lib"; then
17966 if test "X$additional_libdir" = "X/usr/local/lib"; then
17967 if test -n "$GCC"; then
17969 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17973 if test -z "$haveit"; then
17975 for x in $LDFLAGS $LIBINTL; do
17977 acl_save_prefix="$prefix"
17978 prefix="$acl_final_prefix"
17979 acl_save_exec_prefix="$exec_prefix"
17980 exec_prefix="$acl_final_exec_prefix"
17982 exec_prefix="$acl_save_exec_prefix"
17983 prefix="$acl_save_prefix"
17985 if test "X$x" = "X-L$additional_libdir"; then
17990 if test -z "$haveit"; then
17991 if test -d "$additional_libdir"; then
17992 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17996 for x in $LDFLAGS $LTLIBINTL; do
17998 acl_save_prefix="$prefix"
17999 prefix="$acl_final_prefix"
18000 acl_save_exec_prefix="$exec_prefix"
18001 exec_prefix="$acl_final_exec_prefix"
18003 exec_prefix="$acl_save_exec_prefix"
18004 prefix="$acl_save_prefix"
18006 if test "X$x" = "X-L$additional_libdir"; then
18011 if test -z "$haveit"; then
18012 if test -d "$additional_libdir"; then
18013 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18020 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18021 if test "$enable_rpath" != no; then
18023 for x in $rpathdirs; do
18024 if test "X$x" = "X$dir"; then
18029 if test -z "$haveit"; then
18030 rpathdirs="$rpathdirs $dir"
18033 for x in $ltrpathdirs; do
18034 if test "X$x" = "X$dir"; then
18039 if test -z "$haveit"; then
18040 ltrpathdirs="$ltrpathdirs $dir"
18045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18048 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18051 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18052 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18058 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18059 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18065 if test "X$rpathdirs" != "X"; then
18066 if test -n "$hardcode_libdir_separator"; then
18068 for found_dir in $rpathdirs; do
18069 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18071 acl_save_libdir="$libdir"
18073 eval flag=\"$hardcode_libdir_flag_spec\"
18074 libdir="$acl_save_libdir"
18075 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18077 for found_dir in $rpathdirs; do
18078 acl_save_libdir="$libdir"
18079 libdir="$found_dir"
18080 eval flag=\"$hardcode_libdir_flag_spec\"
18081 libdir="$acl_save_libdir"
18082 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18086 if test "X$ltrpathdirs" != "X"; then
18087 for found_dir in $ltrpathdirs; do
18088 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18092 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18093 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18094 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18095 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 gt_save_CPPFLAGS="$CPPFLAGS"
18098 CPPFLAGS="$CPPFLAGS $INCINTL"
18099 gt_save_LIBS="$LIBS"
18100 LIBS="$LIBS $LIBINTL"
18101 cat >conftest.$ac_ext <<_ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 #include <libintl.h>
18108 extern int _nl_msg_cat_cntr;
18113 const char *_nl_expand_alias (const char *);
18117 bindtextdomain ("", "");
18118 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest$ac_exeext &&
18140 $as_test_x conftest$ac_exeext; then
18141 gt_cv_func_gnugettext1_libintl=yes
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 gt_cv_func_gnugettext1_libintl=no
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150 conftest$ac_exeext conftest.$ac_ext
18151 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18152 LIBS="$LIBS $LIBICONV"
18153 cat >conftest.$ac_ext <<_ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 #include <libintl.h>
18160 extern int _nl_msg_cat_cntr;
18165 const char *_nl_expand_alias (const char *);
18169 bindtextdomain ("", "");
18170 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_link") 2>conftest.er1
18184 grep -v '^ *+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } && {
18189 test -z "$ac_c_werror_flag" ||
18190 test ! -s conftest.err
18191 } && test -s conftest$ac_exeext &&
18192 $as_test_x conftest$ac_exeext; then
18193 LIBINTL="$LIBINTL $LIBICONV"
18194 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18195 gt_cv_func_gnugettext1_libintl=yes
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18205 conftest$ac_exeext conftest.$ac_ext
18207 CPPFLAGS="$gt_save_CPPFLAGS"
18208 LIBS="$gt_save_LIBS"
18210 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18211 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18214 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18215 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18216 && test "$PACKAGE" != gettext-runtime \
18217 && test "$PACKAGE" != gettext-tools; }; then
18218 gt_use_preinstalled_gnugettext=yes
18227 if test -n "$INTL_MACOSX_LIBS"; then
18228 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18229 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18230 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18231 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18235 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18236 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18238 cat >>confdefs.h <<\_ACEOF
18239 #define ENABLE_NLS 1
18247 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18248 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18249 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18250 echo "${ECHO_T}$USE_NLS" >&6; }
18251 if test "$USE_NLS" = "yes"; then
18252 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18253 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18254 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18255 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18256 gt_source="external libintl"
18261 gt_source="included intl directory"
18263 { echo "$as_me:$LINENO: result: $gt_source" >&5
18264 echo "${ECHO_T}$gt_source" >&6; }
18267 if test "$USE_NLS" = "yes"; then
18269 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18270 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18271 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18272 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18273 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18274 echo "${ECHO_T}$LIBINTL" >&6; }
18276 for element in $INCINTL; do
18278 for x in $CPPFLAGS; do
18280 acl_save_prefix="$prefix"
18281 prefix="$acl_final_prefix"
18282 acl_save_exec_prefix="$exec_prefix"
18283 exec_prefix="$acl_final_exec_prefix"
18285 exec_prefix="$acl_save_exec_prefix"
18286 prefix="$acl_save_prefix"
18288 if test "X$x" = "X$element"; then
18293 if test -z "$haveit"; then
18294 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18301 cat >>confdefs.h <<\_ACEOF
18302 #define HAVE_GETTEXT 1
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_DCGETTEXT 1
18317 INTLLIBS="$LIBINTL"
18325 if test x${prefix} = xNONE ; then
18326 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18327 sysconfdir=/etc/bacula
18330 if test `eval echo ${libdir}` = NONE/lib ; then
18334 if test `eval echo ${includedir}` = NONE/include ; then
18335 includedir=/usr/include
18338 if test `eval echo ${datarootdir}` = NONE/share ; then
18339 datarootdir=/usr/share
18344 if test x${exec_prefix} = xNONE ; then
18345 exec_prefix=${prefix}
18348 sysconfdir=`eval echo ${sysconfdir}`
18349 datarootdir=`eval echo ${datarootdir}`
18350 docdir=`eval echo ${docdir}`
18351 htmldir=`eval echo ${htmldir}`
18352 libdir=`eval echo ${libdir}`
18353 includedir=`eval echo ${includedir}`
18354 localedir=`eval echo ${datarootdir}/locale`
18355 cat >>confdefs.h <<_ACEOF
18356 #define SYSCONFDIR "$sysconfdir"
18359 cat >>confdefs.h <<_ACEOF
18360 #define LOCALEDIR "$localedir"
18364 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18365 sbindir=${exec_prefix}/sbin
18367 sbindir=`eval echo ${sbindir}`
18369 if test x$mandir = x'${prefix}/man' ; then
18370 mandir=/usr/share/man
18373 if test x$htmldir = x${docdir} ; then
18374 htmldir=`eval echo ${docdir}bacula/html`
18377 if test x$docdir = x'/usr/share/doc/' ; then
18378 docdir=`eval echo ${docdir}bacula`
18382 for ac_prog in msgfmt
18384 # Extract the first word of "$ac_prog", so it can be a program name with args.
18385 set dummy $ac_prog; ac_word=$2
18386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18388 if test "${ac_cv_path_MSGFMT+set}" = set; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18397 for as_dir in $PATH
18400 test -z "$as_dir" && as_dir=.
18401 for ac_exec_ext in '' $ac_executable_extensions; do
18402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18403 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18414 MSGFMT=$ac_cv_path_MSGFMT
18415 if test -n "$MSGFMT"; then
18416 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18417 echo "${ECHO_T}$MSGFMT" >&6; }
18419 { echo "$as_me:$LINENO: result: no" >&5
18420 echo "${ECHO_T}no" >&6; }
18424 test -n "$MSGFMT" && break
18426 test -n "$MSGFMT" || MSGFMT="no"
18428 if test "$MSGFMT" = "no"
18430 echo 'msgfmt program not found, disabling NLS !'
18432 USE_INCLUDED_LIBINTL=no
18435 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18436 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18437 if test "${ac_cv_gnu_library_2+set}" = set; then
18438 echo $ECHO_N "(cached) $ECHO_C" >&6
18440 cat >conftest.$ac_ext <<_ACEOF
18443 cat confdefs.h >>conftest.$ac_ext
18444 cat >>conftest.$ac_ext <<_ACEOF
18445 /* end confdefs.h. */
18447 #include <features.h>
18448 #ifdef __GNU_LIBRARY__
18449 #if (__GLIBC__ >= 2)
18455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18456 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18457 ac_cv_gnu_library_2=yes
18459 ac_cv_gnu_library_2=no
18466 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18467 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18469 GLIBC2="$ac_cv_gnu_library_2"
18472 if test -n "$ac_tool_prefix"; then
18473 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18477 if test "${ac_cv_prog_RANLIB+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18480 if test -n "$RANLIB"; then
18481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18484 for as_dir in $PATH
18487 test -z "$as_dir" && as_dir=.
18488 for ac_exec_ext in '' $ac_executable_extensions; do
18489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18490 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18500 RANLIB=$ac_cv_prog_RANLIB
18501 if test -n "$RANLIB"; then
18502 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18503 echo "${ECHO_T}$RANLIB" >&6; }
18505 { echo "$as_me:$LINENO: result: no" >&5
18506 echo "${ECHO_T}no" >&6; }
18511 if test -z "$ac_cv_prog_RANLIB"; then
18512 ac_ct_RANLIB=$RANLIB
18513 # Extract the first word of "ranlib", so it can be a program name with args.
18514 set dummy ranlib; ac_word=$2
18515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18518 echo $ECHO_N "(cached) $ECHO_C" >&6
18520 if test -n "$ac_ct_RANLIB"; then
18521 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18524 for as_dir in $PATH
18527 test -z "$as_dir" && as_dir=.
18528 for ac_exec_ext in '' $ac_executable_extensions; do
18529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18530 ac_cv_prog_ac_ct_RANLIB="ranlib"
18531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18541 if test -n "$ac_ct_RANLIB"; then
18542 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18545 { echo "$as_me:$LINENO: result: no" >&5
18546 echo "${ECHO_T}no" >&6; }
18549 if test "x$ac_ct_RANLIB" = x; then
18552 case $cross_compiling:$ac_tool_warned in
18554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18555 whose name does not start with the host triplet. If you think this
18556 configuration is useful to you, please write to autoconf@gnu.org." >&5
18557 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18558 whose name does not start with the host triplet. If you think this
18559 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18560 ac_tool_warned=yes ;;
18562 RANLIB=$ac_ct_RANLIB
18565 RANLIB="$ac_cv_prog_RANLIB"
18569 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18570 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18571 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18572 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 ac_check_lib_save_LIBS=$LIBS
18575 LIBS="-lcposix $LIBS"
18576 cat >conftest.$ac_ext <<_ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h. */
18583 /* Override any GCC internal prototype to avoid an error.
18584 Use char because int might match the return type of a GCC
18585 builtin and then its argument prototype would still apply. */
18593 return strerror ();
18598 rm -f conftest.$ac_objext conftest$ac_exeext
18599 if { (ac_try="$ac_link"
18600 case "(($ac_try" in
18601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18602 *) ac_try_echo=$ac_try;;
18604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18605 (eval "$ac_link") 2>conftest.er1
18607 grep -v '^ *+' conftest.er1 >conftest.err
18609 cat conftest.err >&5
18610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18611 (exit $ac_status); } && {
18612 test -z "$ac_c_werror_flag" ||
18613 test ! -s conftest.err
18614 } && test -s conftest$ac_exeext &&
18615 $as_test_x conftest$ac_exeext; then
18616 ac_cv_lib_cposix_strerror=yes
18618 echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.$ac_ext >&5
18621 ac_cv_lib_cposix_strerror=no
18624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18625 conftest$ac_exeext conftest.$ac_ext
18626 LIBS=$ac_check_lib_save_LIBS
18628 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18629 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18630 if test $ac_cv_lib_cposix_strerror = yes; then
18631 LIBS="$LIBS -lcposix"
18636 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18637 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18638 if test "${ac_cv_c_const+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18641 cat >conftest.$ac_ext <<_ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h. */
18651 /* FIXME: Include the comments suggested by Paul. */
18652 #ifndef __cplusplus
18653 /* Ultrix mips cc rejects this. */
18654 typedef int charset[2];
18656 /* SunOS 4.1.1 cc rejects this. */
18657 char const *const *pcpcc;
18659 /* NEC SVR4.0.2 mips cc rejects this. */
18660 struct point {int x, y;};
18661 static struct point const zero = {0,0};
18662 /* AIX XL C 1.02.0.0 rejects this.
18663 It does not let you subtract one const X* pointer from another in
18664 an arm of an if-expression whose if-part is not a constant
18666 const char *g = "string";
18667 pcpcc = &g + (g ? g-g : 0);
18668 /* HPUX 7.0 cc rejects these. */
18670 ppc = (char**) pcpcc;
18671 pcpcc = (char const *const *) ppc;
18672 { /* SCO 3.2v4 cc rejects this. */
18674 char const *s = 0 ? (char *) 0 : (char const *) 0;
18679 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18680 int x[] = {25, 17};
18681 const int *foo = &x[0];
18684 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18685 typedef const int *iptr;
18689 { /* AIX XL C 1.02.0.0 rejects this saying
18690 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18691 struct s { int j; const int *ap[3]; };
18692 struct s *b; b->j = 5;
18694 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18695 const int foo = 10;
18696 if (!foo) return 0;
18698 return !cs[0] && !zero.x;
18705 rm -f conftest.$ac_objext
18706 if { (ac_try="$ac_compile"
18707 case "(($ac_try" in
18708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_compile") 2>conftest.er1
18714 grep -v '^ *+' conftest.er1 >conftest.err
18716 cat conftest.err >&5
18717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718 (exit $ac_status); } && {
18719 test -z "$ac_c_werror_flag" ||
18720 test ! -s conftest.err
18721 } && test -s conftest.$ac_objext; then
18724 echo "$as_me: failed program was:" >&5
18725 sed 's/^/| /' conftest.$ac_ext >&5
18730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18732 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18733 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18734 if test $ac_cv_c_const = no; then
18736 cat >>confdefs.h <<\_ACEOF
18743 { echo "$as_me:$LINENO: checking for signed" >&5
18744 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18745 if test "${bh_cv_c_signed+set}" = set; then
18746 echo $ECHO_N "(cached) $ECHO_C" >&6
18748 cat >conftest.$ac_ext <<_ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18763 rm -f conftest.$ac_objext
18764 if { (ac_try="$ac_compile"
18765 case "(($ac_try" in
18766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767 *) ac_try_echo=$ac_try;;
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770 (eval "$ac_compile") 2>conftest.er1
18772 grep -v '^ *+' conftest.er1 >conftest.err
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } && {
18777 test -z "$ac_c_werror_flag" ||
18778 test ! -s conftest.err
18779 } && test -s conftest.$ac_objext; then
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18790 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18791 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18792 if test $bh_cv_c_signed = no; then
18794 cat >>confdefs.h <<\_ACEOF
18800 { echo "$as_me:$LINENO: checking for inline" >&5
18801 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18802 if test "${ac_cv_c_inline+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 for ac_kw in inline __inline__ __inline; do
18807 cat >conftest.$ac_ext <<_ACEOF
18810 cat confdefs.h >>conftest.$ac_ext
18811 cat >>conftest.$ac_ext <<_ACEOF
18812 /* end confdefs.h. */
18813 #ifndef __cplusplus
18815 static $ac_kw foo_t static_foo () {return 0; }
18816 $ac_kw foo_t foo () {return 0; }
18820 rm -f conftest.$ac_objext
18821 if { (ac_try="$ac_compile"
18822 case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18827 (eval "$ac_compile") 2>conftest.er1
18829 grep -v '^ *+' conftest.er1 >conftest.err
18831 cat conftest.err >&5
18832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18833 (exit $ac_status); } && {
18834 test -z "$ac_c_werror_flag" ||
18835 test ! -s conftest.err
18836 } && test -s conftest.$ac_objext; then
18837 ac_cv_c_inline=$ac_kw
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846 test "$ac_cv_c_inline" != no && break
18850 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18851 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18854 case $ac_cv_c_inline in
18857 case $ac_cv_c_inline in
18859 *) ac_val=$ac_cv_c_inline;;
18861 cat >>confdefs.h <<_ACEOF
18862 #ifndef __cplusplus
18863 #define inline $ac_val
18869 { echo "$as_me:$LINENO: checking for off_t" >&5
18870 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18871 if test "${ac_cv_type_off_t+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18874 cat >conftest.$ac_ext <<_ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 $ac_includes_default
18881 typedef off_t ac__type_new_;
18885 if ((ac__type_new_ *) 0)
18887 if (sizeof (ac__type_new_))
18893 rm -f conftest.$ac_objext
18894 if { (ac_try="$ac_compile"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_compile") 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest.$ac_objext; then
18910 ac_cv_type_off_t=yes
18912 echo "$as_me: failed program was:" >&5
18913 sed 's/^/| /' conftest.$ac_ext >&5
18915 ac_cv_type_off_t=no
18918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18920 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18921 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18922 if test $ac_cv_type_off_t = yes; then
18926 cat >>confdefs.h <<_ACEOF
18927 #define off_t long int
18932 { echo "$as_me:$LINENO: checking for size_t" >&5
18933 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18934 if test "${ac_cv_type_size_t+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18937 cat >conftest.$ac_ext <<_ACEOF
18940 cat confdefs.h >>conftest.$ac_ext
18941 cat >>conftest.$ac_ext <<_ACEOF
18942 /* end confdefs.h. */
18943 $ac_includes_default
18944 typedef size_t ac__type_new_;
18948 if ((ac__type_new_ *) 0)
18950 if (sizeof (ac__type_new_))
18956 rm -f conftest.$ac_objext
18957 if { (ac_try="$ac_compile"
18958 case "(($ac_try" in
18959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18960 *) ac_try_echo=$ac_try;;
18962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18963 (eval "$ac_compile") 2>conftest.er1
18965 grep -v '^ *+' conftest.er1 >conftest.err
18967 cat conftest.err >&5
18968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18969 (exit $ac_status); } && {
18970 test -z "$ac_c_werror_flag" ||
18971 test ! -s conftest.err
18972 } && test -s conftest.$ac_objext; then
18973 ac_cv_type_size_t=yes
18975 echo "$as_me: failed program was:" >&5
18976 sed 's/^/| /' conftest.$ac_ext >&5
18978 ac_cv_type_size_t=no
18981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18983 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18984 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18985 if test $ac_cv_type_size_t = yes; then
18989 cat >>confdefs.h <<_ACEOF
18990 #define size_t unsigned int
18996 { echo "$as_me:$LINENO: checking for long long" >&5
18997 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18998 if test "${ac_cv_type_long_long+set}" = set; then
18999 echo $ECHO_N "(cached) $ECHO_C" >&6
19001 cat >conftest.$ac_ext <<_ACEOF
19004 cat confdefs.h >>conftest.$ac_ext
19005 cat >>conftest.$ac_ext <<_ACEOF
19006 /* end confdefs.h. */
19007 long long ll = 1LL; int i = 63;
19011 long long llmax = (long long) -1;
19012 return ll << i | ll >> i | llmax / ll | llmax % ll;
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_link") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest$ac_exeext &&
19034 $as_test_x conftest$ac_exeext; then
19035 ac_cv_type_long_long=yes
19037 echo "$as_me: failed program was:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 ac_cv_type_long_long=no
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044 conftest$ac_exeext conftest.$ac_ext
19046 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19047 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19048 if test $ac_cv_type_long_long = yes; then
19050 cat >>confdefs.h <<\_ACEOF
19051 #define HAVE_LONG_LONG 1
19057 { echo "$as_me:$LINENO: checking for long double" >&5
19058 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19059 if test "${gt_cv_c_long_double+set}" = set; then
19060 echo $ECHO_N "(cached) $ECHO_C" >&6
19062 if test "$GCC" = yes; then
19063 gt_cv_c_long_double=yes
19065 cat >conftest.$ac_ext <<_ACEOF
19068 cat confdefs.h >>conftest.$ac_ext
19069 cat >>conftest.$ac_ext <<_ACEOF
19070 /* end confdefs.h. */
19072 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19073 long double foo = 0.0;
19074 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19075 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19085 rm -f conftest.$ac_objext
19086 if { (ac_try="$ac_compile"
19087 case "(($ac_try" in
19088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19089 *) ac_try_echo=$ac_try;;
19091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19092 (eval "$ac_compile") 2>conftest.er1
19094 grep -v '^ *+' conftest.er1 >conftest.err
19096 cat conftest.err >&5
19097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19098 (exit $ac_status); } && {
19099 test -z "$ac_c_werror_flag" ||
19100 test ! -s conftest.err
19101 } && test -s conftest.$ac_objext; then
19102 gt_cv_c_long_double=yes
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 gt_cv_c_long_double=no
19110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19113 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19114 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19115 if test $gt_cv_c_long_double = yes; then
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE_LONG_DOUBLE 1
19124 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19125 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19126 if test "${gt_cv_c_wchar_t+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 cat >conftest.$ac_ext <<_ACEOF
19132 cat confdefs.h >>conftest.$ac_ext
19133 cat >>conftest.$ac_ext <<_ACEOF
19134 /* end confdefs.h. */
19135 #include <stddef.h>
19136 wchar_t foo = (wchar_t)'\0';
19145 rm -f conftest.$ac_objext
19146 if { (ac_try="$ac_compile"
19147 case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19154 grep -v '^ *+' conftest.er1 >conftest.err
19156 cat conftest.err >&5
19157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } && {
19159 test -z "$ac_c_werror_flag" ||
19160 test ! -s conftest.err
19161 } && test -s conftest.$ac_objext; then
19162 gt_cv_c_wchar_t=yes
19164 echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19173 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19174 if test $gt_cv_c_wchar_t = yes; then
19176 cat >>confdefs.h <<\_ACEOF
19177 #define HAVE_WCHAR_T 1
19183 { echo "$as_me:$LINENO: checking for wint_t" >&5
19184 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19185 if test "${gt_cv_c_wint_t+set}" = set; then
19186 echo $ECHO_N "(cached) $ECHO_C" >&6
19188 cat >conftest.$ac_ext <<_ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19195 wint_t foo = (wchar_t)'\0';
19204 rm -f conftest.$ac_objext
19205 if { (ac_try="$ac_compile"
19206 case "(($ac_try" in
19207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19208 *) ac_try_echo=$ac_try;;
19210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19211 (eval "$ac_compile") 2>conftest.er1
19213 grep -v '^ *+' conftest.er1 >conftest.err
19215 cat conftest.err >&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); } && {
19218 test -z "$ac_c_werror_flag" ||
19219 test ! -s conftest.err
19220 } && test -s conftest.$ac_objext; then
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19232 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19233 if test $gt_cv_c_wint_t = yes; then
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_WINT_T 1
19242 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19243 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19244 if test "${gl_cv_header_inttypes_h+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19247 cat >conftest.$ac_ext <<_ACEOF
19250 cat confdefs.h >>conftest.$ac_ext
19251 cat >>conftest.$ac_ext <<_ACEOF
19252 /* end confdefs.h. */
19253 #include <sys/types.h>
19254 #include <inttypes.h>
19258 uintmax_t i = (uintmax_t) -1;
19263 rm -f conftest.$ac_objext
19264 if { (ac_try="$ac_compile"
19265 case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_compile") 2>conftest.er1
19272 grep -v '^ *+' conftest.er1 >conftest.err
19274 cat conftest.err >&5
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); } && {
19277 test -z "$ac_c_werror_flag" ||
19278 test ! -s conftest.err
19279 } && test -s conftest.$ac_objext; then
19280 gl_cv_header_inttypes_h=yes
19282 echo "$as_me: failed program was:" >&5
19283 sed 's/^/| /' conftest.$ac_ext >&5
19285 gl_cv_header_inttypes_h=no
19288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19290 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19291 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19292 if test $gl_cv_header_inttypes_h = yes; then
19294 cat >>confdefs.h <<_ACEOF
19295 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19301 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19302 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19303 if test "${gl_cv_header_stdint_h+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 cat >conftest.$ac_ext <<_ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 #include <sys/types.h>
19313 #include <stdint.h>
19317 uintmax_t i = (uintmax_t) -1;
19322 rm -f conftest.$ac_objext
19323 if { (ac_try="$ac_compile"
19324 case "(($ac_try" in
19325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19326 *) ac_try_echo=$ac_try;;
19328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19329 (eval "$ac_compile") 2>conftest.er1
19331 grep -v '^ *+' conftest.er1 >conftest.err
19333 cat conftest.err >&5
19334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); } && {
19336 test -z "$ac_c_werror_flag" ||
19337 test ! -s conftest.err
19338 } && test -s conftest.$ac_objext; then
19339 gl_cv_header_stdint_h=yes
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19344 gl_cv_header_stdint_h=no
19347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19349 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19350 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19351 if test $gl_cv_header_stdint_h = yes; then
19353 cat >>confdefs.h <<_ACEOF
19354 #define HAVE_STDINT_H_WITH_UINTMAX 1
19362 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19363 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19364 if test "${gt_cv_c_intmax_t+set}" = set; then
19365 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 cat >conftest.$ac_ext <<_ACEOF
19370 cat confdefs.h >>conftest.$ac_ext
19371 cat >>conftest.$ac_ext <<_ACEOF
19372 /* end confdefs.h. */
19374 #include <stddef.h>
19375 #include <stdlib.h>
19376 #if HAVE_STDINT_H_WITH_UINTMAX
19377 #include <stdint.h>
19379 #if HAVE_INTTYPES_H_WITH_UINTMAX
19380 #include <inttypes.h>
19391 rm -f conftest.$ac_objext
19392 if { (ac_try="$ac_compile"
19393 case "(($ac_try" in
19394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19395 *) ac_try_echo=$ac_try;;
19397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19398 (eval "$ac_compile") 2>conftest.er1
19400 grep -v '^ *+' conftest.er1 >conftest.err
19402 cat conftest.err >&5
19403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19404 (exit $ac_status); } && {
19405 test -z "$ac_c_werror_flag" ||
19406 test ! -s conftest.err
19407 } && test -s conftest.$ac_objext; then
19408 gt_cv_c_intmax_t=yes
19410 echo "$as_me: failed program was:" >&5
19411 sed 's/^/| /' conftest.$ac_ext >&5
19413 gt_cv_c_intmax_t=no
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19418 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19419 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19420 if test $gt_cv_c_intmax_t = yes; then
19422 cat >>confdefs.h <<\_ACEOF
19423 #define HAVE_INTMAX_T 1
19430 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19431 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19432 if test "${gt_cv_func_printf_posix+set}" = set; then
19433 echo $ECHO_N "(cached) $ECHO_C" >&6
19436 if test "$cross_compiling" = yes; then
19438 cat >conftest.$ac_ext <<_ACEOF
19441 cat confdefs.h >>conftest.$ac_ext
19442 cat >>conftest.$ac_ext <<_ACEOF
19443 /* end confdefs.h. */
19445 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451 $EGREP "notposix" >/dev/null 2>&1; then
19452 gt_cv_func_printf_posix="guessing no"
19454 gt_cv_func_printf_posix="guessing yes"
19460 cat >conftest.$ac_ext <<_ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19468 #include <string.h>
19469 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19470 dollar expansion (possibly an autoconf bug). */
19471 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19472 static char buf[100];
19475 sprintf (buf, format, 33, 55);
19476 return (strcmp (buf, "55 33") != 0);
19479 rm -f conftest$ac_exeext
19480 if { (ac_try="$ac_link"
19481 case "(($ac_try" in
19482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19483 *) ac_try_echo=$ac_try;;
19485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19486 (eval "$ac_link") 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19490 { (case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_try") 2>&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); }; }; then
19499 gt_cv_func_printf_posix=yes
19501 echo "$as_me: program exited with status $ac_status" >&5
19502 echo "$as_me: failed program was:" >&5
19503 sed 's/^/| /' conftest.$ac_ext >&5
19505 ( exit $ac_status )
19506 gt_cv_func_printf_posix=no
19508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19514 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19515 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19516 case $gt_cv_func_printf_posix in
19519 cat >>confdefs.h <<\_ACEOF
19520 #define HAVE_POSIX_PRINTF 1
19526 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19527 # for constant arguments. Useless!
19528 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19529 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19530 if test "${ac_cv_working_alloca_h+set}" = set; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19539 #include <alloca.h>
19543 char *p = (char *) alloca (2 * sizeof (int));
19549 rm -f conftest.$ac_objext conftest$ac_exeext
19550 if { (ac_try="$ac_link"
19551 case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19556 (eval "$ac_link") 2>conftest.er1
19558 grep -v '^ *+' conftest.er1 >conftest.err
19560 cat conftest.err >&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); } && {
19563 test -z "$ac_c_werror_flag" ||
19564 test ! -s conftest.err
19565 } && test -s conftest$ac_exeext &&
19566 $as_test_x conftest$ac_exeext; then
19567 ac_cv_working_alloca_h=yes
19569 echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19572 ac_cv_working_alloca_h=no
19575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19576 conftest$ac_exeext conftest.$ac_ext
19578 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19579 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19580 if test $ac_cv_working_alloca_h = yes; then
19582 cat >>confdefs.h <<\_ACEOF
19583 #define HAVE_ALLOCA_H 1
19588 { echo "$as_me:$LINENO: checking for alloca" >&5
19589 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19590 if test "${ac_cv_func_alloca_works+set}" = set; then
19591 echo $ECHO_N "(cached) $ECHO_C" >&6
19593 cat >conftest.$ac_ext <<_ACEOF
19596 cat confdefs.h >>conftest.$ac_ext
19597 cat >>conftest.$ac_ext <<_ACEOF
19598 /* end confdefs.h. */
19600 # define alloca __builtin_alloca
19603 # include <malloc.h>
19604 # define alloca _alloca
19606 # ifdef HAVE_ALLOCA_H
19607 # include <alloca.h>
19612 # ifndef alloca /* predefined by HP cc +Olibcalls */
19623 char *p = (char *) alloca (1);
19629 rm -f conftest.$ac_objext conftest$ac_exeext
19630 if { (ac_try="$ac_link"
19631 case "(($ac_try" in
19632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19633 *) ac_try_echo=$ac_try;;
19635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19636 (eval "$ac_link") 2>conftest.er1
19638 grep -v '^ *+' conftest.er1 >conftest.err
19640 cat conftest.err >&5
19641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19642 (exit $ac_status); } && {
19643 test -z "$ac_c_werror_flag" ||
19644 test ! -s conftest.err
19645 } && test -s conftest$ac_exeext &&
19646 $as_test_x conftest$ac_exeext; then
19647 ac_cv_func_alloca_works=yes
19649 echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19652 ac_cv_func_alloca_works=no
19655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19656 conftest$ac_exeext conftest.$ac_ext
19658 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19659 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19661 if test $ac_cv_func_alloca_works = yes; then
19663 cat >>confdefs.h <<\_ACEOF
19664 #define HAVE_ALLOCA 1
19668 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19669 # that cause trouble. Some versions do not even contain alloca or
19670 # contain a buggy version. If you still want to use their alloca,
19671 # use ar to extract alloca.o from them instead of compiling alloca.c.
19673 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19675 cat >>confdefs.h <<\_ACEOF
19680 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19681 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19682 if test "${ac_cv_os_cray+set}" = set; then
19683 echo $ECHO_N "(cached) $ECHO_C" >&6
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19691 #if defined CRAY && ! defined CRAY2
19698 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19699 $EGREP "webecray" >/dev/null 2>&1; then
19707 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19708 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19709 if test $ac_cv_os_cray = yes; then
19710 for ac_func in _getb67 GETB67 getb67; do
19711 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19712 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19713 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19714 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19717 cat >conftest.$ac_ext <<_ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19725 #define $ac_func innocuous_$ac_func
19727 /* System header to define __stub macros and hopefully few prototypes,
19728 which can conflict with char $ac_func (); below.
19729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19730 <limits.h> exists even on freestanding compilers. */
19733 # include <limits.h>
19735 # include <assert.h>
19740 /* Override any GCC internal prototype to avoid an error.
19741 Use char because int might match the return type of a GCC
19742 builtin and then its argument prototype would still apply. */
19747 /* The GNU C library defines this for functions which it implements
19748 to always fail with ENOSYS. Some functions are actually named
19749 something starting with __ and the normal name is an alias. */
19750 #if defined __stub_$ac_func || defined __stub___$ac_func
19757 return $ac_func ();
19762 rm -f conftest.$ac_objext conftest$ac_exeext
19763 if { (ac_try="$ac_link"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_link") 2>conftest.er1
19771 grep -v '^ *+' conftest.er1 >conftest.err
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } && {
19776 test -z "$ac_c_werror_flag" ||
19777 test ! -s conftest.err
19778 } && test -s conftest$ac_exeext &&
19779 $as_test_x conftest$ac_exeext; then
19780 eval "$as_ac_var=yes"
19782 echo "$as_me: failed program was:" >&5
19783 sed 's/^/| /' conftest.$ac_ext >&5
19785 eval "$as_ac_var=no"
19788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19789 conftest$ac_exeext conftest.$ac_ext
19791 ac_res=`eval echo '${'$as_ac_var'}'`
19792 { echo "$as_me:$LINENO: result: $ac_res" >&5
19793 echo "${ECHO_T}$ac_res" >&6; }
19794 if test `eval echo '${'$as_ac_var'}'` = yes; then
19796 cat >>confdefs.h <<_ACEOF
19797 #define CRAY_STACKSEG_END $ac_func
19806 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19807 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19808 if test "${ac_cv_c_stack_direction+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 if test "$cross_compiling" = yes; then
19812 ac_cv_c_stack_direction=0
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 $ac_includes_default
19822 find_stack_direction ()
19824 static char *addr = 0;
19829 return find_stack_direction ();
19832 return (&dummy > addr) ? 1 : -1;
19838 return find_stack_direction () < 0;
19841 rm -f conftest$ac_exeext
19842 if { (ac_try="$ac_link"
19843 case "(($ac_try" in
19844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19845 *) ac_try_echo=$ac_try;;
19847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19848 (eval "$ac_link") 2>&5
19850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19852 { (case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_try") 2>&5
19859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19860 (exit $ac_status); }; }; then
19861 ac_cv_c_stack_direction=1
19863 echo "$as_me: program exited with status $ac_status" >&5
19864 echo "$as_me: failed program was:" >&5
19865 sed 's/^/| /' conftest.$ac_ext >&5
19867 ( exit $ac_status )
19868 ac_cv_c_stack_direction=-1
19870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19875 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19876 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19878 cat >>confdefs.h <<_ACEOF
19879 #define STACK_DIRECTION $ac_cv_c_stack_direction
19887 for ac_header in stdlib.h unistd.h
19889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19894 echo $ECHO_N "(cached) $ECHO_C" >&6
19896 ac_res=`eval echo '${'$as_ac_Header'}'`
19897 { echo "$as_me:$LINENO: result: $ac_res" >&5
19898 echo "${ECHO_T}$ac_res" >&6; }
19900 # Is the header compilable?
19901 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19903 cat >conftest.$ac_ext <<_ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19909 $ac_includes_default
19910 #include <$ac_header>
19912 rm -f conftest.$ac_objext
19913 if { (ac_try="$ac_compile"
19914 case "(($ac_try" in
19915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19916 *) ac_try_echo=$ac_try;;
19918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19919 (eval "$ac_compile") 2>conftest.er1
19921 grep -v '^ *+' conftest.er1 >conftest.err
19923 cat conftest.err >&5
19924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925 (exit $ac_status); } && {
19926 test -z "$ac_c_werror_flag" ||
19927 test ! -s conftest.err
19928 } && test -s conftest.$ac_objext; then
19929 ac_header_compiler=yes
19931 echo "$as_me: failed program was:" >&5
19932 sed 's/^/| /' conftest.$ac_ext >&5
19934 ac_header_compiler=no
19937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19939 echo "${ECHO_T}$ac_header_compiler" >&6; }
19941 # Is the header present?
19942 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19944 cat >conftest.$ac_ext <<_ACEOF
19947 cat confdefs.h >>conftest.$ac_ext
19948 cat >>conftest.$ac_ext <<_ACEOF
19949 /* end confdefs.h. */
19950 #include <$ac_header>
19952 if { (ac_try="$ac_cpp conftest.$ac_ext"
19953 case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19960 grep -v '^ *+' conftest.er1 >conftest.err
19962 cat conftest.err >&5
19963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19964 (exit $ac_status); } >/dev/null && {
19965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19966 test ! -s conftest.err
19968 ac_header_preproc=yes
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19973 ac_header_preproc=no
19976 rm -f conftest.err conftest.$ac_ext
19977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978 echo "${ECHO_T}$ac_header_preproc" >&6; }
19980 # So? What about this header?
19981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19987 ac_header_preproc=yes
19990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20008 echo $ECHO_N "(cached) $ECHO_C" >&6
20010 eval "$as_ac_Header=\$ac_header_preproc"
20012 ac_res=`eval echo '${'$as_ac_Header'}'`
20013 { echo "$as_me:$LINENO: result: $ac_res" >&5
20014 echo "${ECHO_T}$ac_res" >&6; }
20017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20018 cat >>confdefs.h <<_ACEOF
20019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20027 for ac_func in getpagesize
20029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20033 echo $ECHO_N "(cached) $ECHO_C" >&6
20035 cat >conftest.$ac_ext <<_ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20043 #define $ac_func innocuous_$ac_func
20045 /* System header to define __stub macros and hopefully few prototypes,
20046 which can conflict with char $ac_func (); below.
20047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20048 <limits.h> exists even on freestanding compilers. */
20051 # include <limits.h>
20053 # include <assert.h>
20058 /* Override any GCC internal prototype to avoid an error.
20059 Use char because int might match the return type of a GCC
20060 builtin and then its argument prototype would still apply. */
20065 /* The GNU C library defines this for functions which it implements
20066 to always fail with ENOSYS. Some functions are actually named
20067 something starting with __ and the normal name is an alias. */
20068 #if defined __stub_$ac_func || defined __stub___$ac_func
20075 return $ac_func ();
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (ac_try="$ac_link"
20082 case "(($ac_try" in
20083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20084 *) ac_try_echo=$ac_try;;
20086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20087 (eval "$ac_link") 2>conftest.er1
20089 grep -v '^ *+' conftest.er1 >conftest.err
20091 cat conftest.err >&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } && {
20094 test -z "$ac_c_werror_flag" ||
20095 test ! -s conftest.err
20096 } && test -s conftest$ac_exeext &&
20097 $as_test_x conftest$ac_exeext; then
20098 eval "$as_ac_var=yes"
20100 echo "$as_me: failed program was:" >&5
20101 sed 's/^/| /' conftest.$ac_ext >&5
20103 eval "$as_ac_var=no"
20106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20107 conftest$ac_exeext conftest.$ac_ext
20109 ac_res=`eval echo '${'$as_ac_var'}'`
20110 { echo "$as_me:$LINENO: result: $ac_res" >&5
20111 echo "${ECHO_T}$ac_res" >&6; }
20112 if test `eval echo '${'$as_ac_var'}'` = yes; then
20113 cat >>confdefs.h <<_ACEOF
20114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20120 { echo "$as_me:$LINENO: checking for working mmap" >&5
20121 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20122 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20123 echo $ECHO_N "(cached) $ECHO_C" >&6
20125 if test "$cross_compiling" = yes; then
20126 ac_cv_func_mmap_fixed_mapped=no
20128 cat >conftest.$ac_ext <<_ACEOF
20131 cat confdefs.h >>conftest.$ac_ext
20132 cat >>conftest.$ac_ext <<_ACEOF
20133 /* end confdefs.h. */
20134 $ac_includes_default
20135 /* malloc might have been renamed as rpl_malloc. */
20138 /* Thanks to Mike Haertel and Jim Avera for this test.
20139 Here is a matrix of mmap possibilities:
20140 mmap private not fixed
20141 mmap private fixed at somewhere currently unmapped
20142 mmap private fixed at somewhere already mapped
20143 mmap shared not fixed
20144 mmap shared fixed at somewhere currently unmapped
20145 mmap shared fixed at somewhere already mapped
20146 For private mappings, we should verify that changes cannot be read()
20147 back from the file, nor mmap's back from the file at a different
20148 address. (There have been systems where private was not correctly
20149 implemented like the infamous i386 svr4.0, and systems where the
20150 VM page cache was not coherent with the file system buffer cache
20151 like early versions of FreeBSD and possibly contemporary NetBSD.)
20152 For shared mappings, we should conversely verify that changes get
20153 propagated back to all the places they're supposed to be.
20155 Grep wants private fixed already mapped.
20156 The main things grep needs to know about mmap are:
20157 * does it exist and is it safe to write into the mmap'd area
20158 * how to use it (BSD variants) */
20161 #include <sys/mman.h>
20163 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20167 /* This mess was copied from the GNU getpagesize.h. */
20168 #ifndef HAVE_GETPAGESIZE
20169 /* Assume that all systems that can run configure have sys/param.h. */
20170 # ifndef HAVE_SYS_PARAM_H
20171 # define HAVE_SYS_PARAM_H 1
20174 # ifdef _SC_PAGESIZE
20175 # define getpagesize() sysconf(_SC_PAGESIZE)
20176 # else /* no _SC_PAGESIZE */
20177 # ifdef HAVE_SYS_PARAM_H
20178 # include <sys/param.h>
20179 # ifdef EXEC_PAGESIZE
20180 # define getpagesize() EXEC_PAGESIZE
20181 # else /* no EXEC_PAGESIZE */
20183 # define getpagesize() NBPG * CLSIZE
20186 # endif /* no CLSIZE */
20187 # else /* no NBPG */
20189 # define getpagesize() NBPC
20190 # else /* no NBPC */
20192 # define getpagesize() PAGESIZE
20193 # endif /* PAGESIZE */
20194 # endif /* no NBPC */
20195 # endif /* no NBPG */
20196 # endif /* no EXEC_PAGESIZE */
20197 # else /* no HAVE_SYS_PARAM_H */
20198 # define getpagesize() 8192 /* punt totally */
20199 # endif /* no HAVE_SYS_PARAM_H */
20200 # endif /* no _SC_PAGESIZE */
20202 #endif /* no HAVE_GETPAGESIZE */
20207 char *data, *data2, *data3;
20211 pagesize = getpagesize ();
20213 /* First, make a file with some known garbage in it. */
20214 data = (char *) malloc (pagesize);
20217 for (i = 0; i < pagesize; ++i)
20218 *(data + i) = rand ();
20220 fd = creat ("conftest.mmap", 0600);
20223 if (write (fd, data, pagesize) != pagesize)
20227 /* Next, try to mmap the file at a fixed address which already has
20228 something else allocated at it. If we can, also make sure that
20229 we see the same garbage. */
20230 fd = open ("conftest.mmap", O_RDWR);
20233 data2 = (char *) malloc (2 * pagesize);
20236 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20237 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20238 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20240 for (i = 0; i < pagesize; ++i)
20241 if (*(data + i) != *(data2 + i))
20244 /* Finally, make sure that changes to the mapped area do not
20245 percolate back to the file as seen by read(). (This is a bug on
20246 some variants of i386 svr4.0.) */
20247 for (i = 0; i < pagesize; ++i)
20248 *(data2 + i) = *(data2 + i) + 1;
20249 data3 = (char *) malloc (pagesize);
20252 if (read (fd, data3, pagesize) != pagesize)
20254 for (i = 0; i < pagesize; ++i)
20255 if (*(data + i) != *(data3 + i))
20261 rm -f conftest$ac_exeext
20262 if { (ac_try="$ac_link"
20263 case "(($ac_try" in
20264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265 *) ac_try_echo=$ac_try;;
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268 (eval "$ac_link") 2>&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20272 { (case "(($ac_try" in
20273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20274 *) ac_try_echo=$ac_try;;
20276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20277 (eval "$ac_try") 2>&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); }; }; then
20281 ac_cv_func_mmap_fixed_mapped=yes
20283 echo "$as_me: program exited with status $ac_status" >&5
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ( exit $ac_status )
20288 ac_cv_func_mmap_fixed_mapped=no
20290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20296 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20297 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_MMAP 1
20304 rm -f conftest.mmap
20307 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20308 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20309 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20312 cat >conftest.$ac_ext <<_ACEOF
20315 cat confdefs.h >>conftest.$ac_ext
20316 cat >>conftest.$ac_ext <<_ACEOF
20317 /* end confdefs.h. */
20319 #include <features.h>
20320 #ifdef __GNU_LIBRARY__
20321 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20328 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20329 ac_cv_gnu_library_2_1=yes
20331 ac_cv_gnu_library_2_1=no
20338 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20339 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20341 GLIBC21="$ac_cv_gnu_library_2_1"
20346 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20347 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20348 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20352 if test "$cross_compiling" = yes; then
20354 # Guess based on the CPU.
20355 case "$host_cpu" in
20356 alpha* | i3456786 | m68k | s390*)
20357 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20359 gt_cv_int_divbyzero_sigfpe="guessing no";;
20363 cat >conftest.$ac_ext <<_ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20370 #include <stdlib.h>
20371 #include <signal.h>
20375 sigfpe_handler (int sig)
20377 sigfpe_handler (sig) int sig;
20380 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20381 exit (sig != SIGFPE);
20391 signal (SIGFPE, sigfpe_handler);
20392 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20393 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20394 signal (SIGTRAP, sigfpe_handler);
20396 /* Linux/SPARC yields signal SIGILL. */
20397 #if defined (__sparc__) && defined (__linux__)
20398 signal (SIGILL, sigfpe_handler);
20407 rm -f conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_link") 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20418 { (case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_try") 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 gt_cv_int_divbyzero_sigfpe=yes
20429 echo "$as_me: program exited with status $ac_status" >&5
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20433 ( exit $ac_status )
20434 gt_cv_int_divbyzero_sigfpe=no
20436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20442 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20443 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20444 case "$gt_cv_int_divbyzero_sigfpe" in
20449 cat >>confdefs.h <<_ACEOF
20450 #define INTDIV0_RAISES_SIGFPE $value
20455 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20456 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20457 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 unsigned long long ull = 1ULL; int i = 63;
20470 unsigned long long ullmax = (unsigned long long) -1;
20471 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20476 rm -f conftest.$ac_objext conftest$ac_exeext
20477 if { (ac_try="$ac_link"
20478 case "(($ac_try" in
20479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20480 *) ac_try_echo=$ac_try;;
20482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20483 (eval "$ac_link") 2>conftest.er1
20485 grep -v '^ *+' conftest.er1 >conftest.err
20487 cat conftest.err >&5
20488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20489 (exit $ac_status); } && {
20490 test -z "$ac_c_werror_flag" ||
20491 test ! -s conftest.err
20492 } && test -s conftest$ac_exeext &&
20493 $as_test_x conftest$ac_exeext; then
20494 ac_cv_type_unsigned_long_long=yes
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_cv_type_unsigned_long_long=no
20502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20503 conftest$ac_exeext conftest.$ac_ext
20505 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20506 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20507 if test $ac_cv_type_unsigned_long_long = yes; then
20509 cat >>confdefs.h <<\_ACEOF
20510 #define HAVE_UNSIGNED_LONG_LONG 1
20518 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20520 test $ac_cv_type_unsigned_long_long = yes \
20521 && ac_type='unsigned long long' \
20522 || ac_type='unsigned long'
20524 cat >>confdefs.h <<_ACEOF
20525 #define uintmax_t $ac_type
20530 cat >>confdefs.h <<\_ACEOF
20531 #define HAVE_UINTMAX_T 1
20537 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20538 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20539 if test "${gt_cv_header_inttypes_h+set}" = set; then
20540 echo $ECHO_N "(cached) $ECHO_C" >&6
20543 cat >conftest.$ac_ext <<_ACEOF
20546 cat confdefs.h >>conftest.$ac_ext
20547 cat >>conftest.$ac_ext <<_ACEOF
20548 /* end confdefs.h. */
20549 #include <sys/types.h>
20550 #include <inttypes.h>
20559 rm -f conftest.$ac_objext
20560 if { (ac_try="$ac_compile"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_compile") 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest.$ac_objext; then
20576 gt_cv_header_inttypes_h=yes
20578 echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20581 gt_cv_header_inttypes_h=no
20584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20588 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20589 if test $gt_cv_header_inttypes_h = yes; then
20591 cat >>confdefs.h <<_ACEOF
20592 #define HAVE_INTTYPES_H 1
20599 if test $gt_cv_header_inttypes_h = yes; then
20600 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20601 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20602 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20603 echo $ECHO_N "(cached) $ECHO_C" >&6
20606 cat >conftest.$ac_ext <<_ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h. */
20612 #include <inttypes.h>
20625 rm -f conftest.$ac_objext
20626 if { (ac_try="$ac_compile"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_compile") 2>conftest.er1
20634 grep -v '^ *+' conftest.er1 >conftest.err
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } && {
20639 test -z "$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20641 } && test -s conftest.$ac_objext; then
20642 gt_cv_inttypes_pri_broken=no
20644 echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 gt_cv_inttypes_pri_broken=yes
20650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20653 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20654 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20656 if test "$gt_cv_inttypes_pri_broken" = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define PRI_MACROS_BROKEN 1
20666 for ac_header in stdint.h
20668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20673 echo $ECHO_N "(cached) $ECHO_C" >&6
20675 ac_res=`eval echo '${'$as_ac_Header'}'`
20676 { echo "$as_me:$LINENO: result: $ac_res" >&5
20677 echo "${ECHO_T}$ac_res" >&6; }
20679 # Is the header compilable?
20680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20682 cat >conftest.$ac_ext <<_ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 $ac_includes_default
20689 #include <$ac_header>
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695 *) ac_try_echo=$ac_try;;
20697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20698 (eval "$ac_compile") 2>conftest.er1
20700 grep -v '^ *+' conftest.er1 >conftest.err
20702 cat conftest.err >&5
20703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } && {
20705 test -z "$ac_c_werror_flag" ||
20706 test ! -s conftest.err
20707 } && test -s conftest.$ac_objext; then
20708 ac_header_compiler=yes
20710 echo "$as_me: failed program was:" >&5
20711 sed 's/^/| /' conftest.$ac_ext >&5
20713 ac_header_compiler=no
20716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20718 echo "${ECHO_T}$ac_header_compiler" >&6; }
20720 # Is the header present?
20721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20723 cat >conftest.$ac_ext <<_ACEOF
20726 cat confdefs.h >>conftest.$ac_ext
20727 cat >>conftest.$ac_ext <<_ACEOF
20728 /* end confdefs.h. */
20729 #include <$ac_header>
20731 if { (ac_try="$ac_cpp conftest.$ac_ext"
20732 case "(($ac_try" in
20733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20734 *) ac_try_echo=$ac_try;;
20736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20739 grep -v '^ *+' conftest.er1 >conftest.err
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } >/dev/null && {
20744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20745 test ! -s conftest.err
20747 ac_header_preproc=yes
20749 echo "$as_me: failed program was:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ac_header_preproc=no
20755 rm -f conftest.err conftest.$ac_ext
20756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20757 echo "${ECHO_T}$ac_header_preproc" >&6; }
20759 # So? What about this header?
20760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20766 ac_header_preproc=yes
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20787 echo $ECHO_N "(cached) $ECHO_C" >&6
20789 eval "$as_ac_Header=\$ac_header_preproc"
20791 ac_res=`eval echo '${'$as_ac_Header'}'`
20792 { echo "$as_me:$LINENO: result: $ac_res" >&5
20793 echo "${ECHO_T}$ac_res" >&6; }
20796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20797 cat >>confdefs.h <<_ACEOF
20798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20805 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20806 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20808 cat >conftest.$ac_ext <<_ACEOF
20811 cat confdefs.h >>conftest.$ac_ext
20812 cat >>conftest.$ac_ext <<_ACEOF
20813 /* end confdefs.h. */
20815 #include <limits.h>
20817 #include <stdint.h>
20824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20825 $EGREP "Found it" >/dev/null 2>&1; then
20830 if test -z "$result"; then
20831 if test "$cross_compiling" = yes; then
20832 # Depending upon the size, compute the lo and hi bounds.
20833 cat >conftest.$ac_ext <<_ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20839 #include <stddef.h>
20843 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_compile") 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest.$ac_objext; then
20869 cat >conftest.$ac_ext <<_ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20875 #include <stddef.h>
20879 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_compile") 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest.$ac_objext; then
20903 ac_hi=$ac_mid; break
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20908 ac_lo=`expr $ac_mid + 1`
20909 if test $ac_lo -le $ac_mid; then
20913 ac_mid=`expr 2 '*' $ac_mid + 1`
20916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919 echo "$as_me: failed program was:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 cat >conftest.$ac_ext <<_ACEOF
20925 cat confdefs.h >>conftest.$ac_ext
20926 cat >>conftest.$ac_ext <<_ACEOF
20927 /* end confdefs.h. */
20928 #include <stddef.h>
20932 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20939 rm -f conftest.$ac_objext
20940 if { (ac_try="$ac_compile"
20941 case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_compile") 2>conftest.er1
20948 grep -v '^ *+' conftest.er1 >conftest.err
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); } && {
20953 test -z "$ac_c_werror_flag" ||
20954 test ! -s conftest.err
20955 } && test -s conftest.$ac_objext; then
20958 cat >conftest.$ac_ext <<_ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h. */
20964 #include <stddef.h>
20968 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20975 rm -f conftest.$ac_objext
20976 if { (ac_try="$ac_compile"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_compile") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } && {
20989 test -z "$ac_c_werror_flag" ||
20990 test ! -s conftest.err
20991 } && test -s conftest.$ac_objext; then
20992 ac_lo=$ac_mid; break
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20997 ac_hi=`expr '(' $ac_mid ')' - 1`
20998 if test $ac_mid -le $ac_hi; then
21002 ac_mid=`expr 2 '*' $ac_mid`
21005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21008 echo "$as_me: failed program was:" >&5
21009 sed 's/^/| /' conftest.$ac_ext >&5
21014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 # Binary search between lo and hi bounds.
21019 while test "x$ac_lo" != "x$ac_hi"; do
21020 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21021 cat >conftest.$ac_ext <<_ACEOF
21024 cat confdefs.h >>conftest.$ac_ext
21025 cat >>conftest.$ac_ext <<_ACEOF
21026 /* end confdefs.h. */
21027 #include <stddef.h>
21031 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21038 rm -f conftest.$ac_objext
21039 if { (ac_try="$ac_compile"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_compile") 2>conftest.er1
21047 grep -v '^ *+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } && {
21052 test -z "$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21054 } && test -s conftest.$ac_objext; then
21057 echo "$as_me: failed program was:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_lo=`expr '(' $ac_mid ')' + 1`
21063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21066 ?*) res_hi=$ac_lo;;
21070 cat >conftest.$ac_ext <<_ACEOF
21073 cat confdefs.h >>conftest.$ac_ext
21074 cat >>conftest.$ac_ext <<_ACEOF
21075 /* end confdefs.h. */
21076 #include <stddef.h>
21077 static long int longval () { return ~(size_t)0 / 10; }
21078 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21080 #include <stdlib.h>
21085 FILE *f = fopen ("conftest.val", "w");
21088 if ((~(size_t)0 / 10) < 0)
21090 long int i = longval ();
21091 if (i != (~(size_t)0 / 10))
21093 fprintf (f, "%ld\n", i);
21097 unsigned long int i = ulongval ();
21098 if (i != (~(size_t)0 / 10))
21100 fprintf (f, "%lu\n", i);
21102 return ferror (f) || fclose (f) != 0;
21108 rm -f conftest$ac_exeext
21109 if { (ac_try="$ac_link"
21110 case "(($ac_try" in
21111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112 *) ac_try_echo=$ac_try;;
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115 (eval "$ac_link") 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21119 { (case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21124 (eval "$ac_try") 2>&5
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 res_hi=`cat conftest.val`
21130 echo "$as_me: program exited with status $ac_status" >&5
21131 echo "$as_me: failed program was:" >&5
21132 sed 's/^/| /' conftest.$ac_ext >&5
21134 ( exit $ac_status )
21137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21141 if test "$cross_compiling" = yes; then
21142 # Depending upon the size, compute the lo and hi bounds.
21143 cat >conftest.$ac_ext <<_ACEOF
21146 cat confdefs.h >>conftest.$ac_ext
21147 cat >>conftest.$ac_ext <<_ACEOF
21148 /* end confdefs.h. */
21149 #include <stddef.h>
21153 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21160 rm -f conftest.$ac_objext
21161 if { (ac_try="$ac_compile"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21167 (eval "$ac_compile") 2>conftest.er1
21169 grep -v '^ *+' conftest.er1 >conftest.err
21171 cat conftest.err >&5
21172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21173 (exit $ac_status); } && {
21174 test -z "$ac_c_werror_flag" ||
21175 test ! -s conftest.err
21176 } && test -s conftest.$ac_objext; then
21179 cat >conftest.$ac_ext <<_ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 #include <stddef.h>
21189 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21196 rm -f conftest.$ac_objext
21197 if { (ac_try="$ac_compile"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_compile") 2>conftest.er1
21205 grep -v '^ *+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest.$ac_objext; then
21213 ac_hi=$ac_mid; break
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 ac_lo=`expr $ac_mid + 1`
21219 if test $ac_lo -le $ac_mid; then
21223 ac_mid=`expr 2 '*' $ac_mid + 1`
21226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 #include <stddef.h>
21242 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_compile") 2>conftest.er1
21258 grep -v '^ *+' conftest.er1 >conftest.err
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest.$ac_objext; then
21268 cat >conftest.$ac_ext <<_ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 #include <stddef.h>
21278 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21285 rm -f conftest.$ac_objext
21286 if { (ac_try="$ac_compile"
21287 case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_compile") 2>conftest.er1
21294 grep -v '^ *+' conftest.er1 >conftest.err
21296 cat conftest.err >&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && {
21299 test -z "$ac_c_werror_flag" ||
21300 test ! -s conftest.err
21301 } && test -s conftest.$ac_objext; then
21302 ac_lo=$ac_mid; break
21304 echo "$as_me: failed program was:" >&5
21305 sed 's/^/| /' conftest.$ac_ext >&5
21307 ac_hi=`expr '(' $ac_mid ')' - 1`
21308 if test $ac_mid -le $ac_hi; then
21312 ac_mid=`expr 2 '*' $ac_mid`
21315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21318 echo "$as_me: failed program was:" >&5
21319 sed 's/^/| /' conftest.$ac_ext >&5
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 # Binary search between lo and hi bounds.
21329 while test "x$ac_lo" != "x$ac_hi"; do
21330 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21331 cat >conftest.$ac_ext <<_ACEOF
21334 cat confdefs.h >>conftest.$ac_ext
21335 cat >>conftest.$ac_ext <<_ACEOF
21336 /* end confdefs.h. */
21337 #include <stddef.h>
21341 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21348 rm -f conftest.$ac_objext
21349 if { (ac_try="$ac_compile"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_compile") 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21361 (exit $ac_status); } && {
21362 test -z "$ac_c_werror_flag" ||
21363 test ! -s conftest.err
21364 } && test -s conftest.$ac_objext; then
21367 echo "$as_me: failed program was:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21370 ac_lo=`expr '(' $ac_mid ')' + 1`
21373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21376 ?*) res_lo=$ac_lo;;
21380 cat >conftest.$ac_ext <<_ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 #include <stddef.h>
21387 static long int longval () { return ~(size_t)0 % 10; }
21388 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21390 #include <stdlib.h>
21395 FILE *f = fopen ("conftest.val", "w");
21398 if ((~(size_t)0 % 10) < 0)
21400 long int i = longval ();
21401 if (i != (~(size_t)0 % 10))
21403 fprintf (f, "%ld\n", i);
21407 unsigned long int i = ulongval ();
21408 if (i != (~(size_t)0 % 10))
21410 fprintf (f, "%lu\n", i);
21412 return ferror (f) || fclose (f) != 0;
21418 rm -f conftest$ac_exeext
21419 if { (ac_try="$ac_link"
21420 case "(($ac_try" in
21421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21422 *) ac_try_echo=$ac_try;;
21424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21425 (eval "$ac_link") 2>&5
21427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21429 { (case "(($ac_try" in
21430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21431 *) ac_try_echo=$ac_try;;
21433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21434 (eval "$ac_try") 2>&5
21436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437 (exit $ac_status); }; }; then
21438 res_lo=`cat conftest.val`
21440 echo "$as_me: program exited with status $ac_status" >&5
21441 echo "$as_me: failed program was:" >&5
21442 sed 's/^/| /' conftest.$ac_ext >&5
21444 ( exit $ac_status )
21447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21451 if test "$cross_compiling" = yes; then
21452 # Depending upon the size, compute the lo and hi bounds.
21453 cat >conftest.$ac_ext <<_ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 #include <stddef.h>
21463 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21470 rm -f conftest.$ac_objext
21471 if { (ac_try="$ac_compile"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_compile") 2>conftest.er1
21479 grep -v '^ *+' conftest.er1 >conftest.err
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483 (exit $ac_status); } && {
21484 test -z "$ac_c_werror_flag" ||
21485 test ! -s conftest.err
21486 } && test -s conftest.$ac_objext; then
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 #include <stddef.h>
21499 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21506 rm -f conftest.$ac_objext
21507 if { (ac_try="$ac_compile"
21508 case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513 (eval "$ac_compile") 2>conftest.er1
21515 grep -v '^ *+' conftest.er1 >conftest.err
21517 cat conftest.err >&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } && {
21520 test -z "$ac_c_werror_flag" ||
21521 test ! -s conftest.err
21522 } && test -s conftest.$ac_objext; then
21523 ac_hi=$ac_mid; break
21525 echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21528 ac_lo=`expr $ac_mid + 1`
21529 if test $ac_lo -le $ac_mid; then
21533 ac_mid=`expr 2 '*' $ac_mid + 1`
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21539 echo "$as_me: failed program was:" >&5
21540 sed 's/^/| /' conftest.$ac_ext >&5
21542 cat >conftest.$ac_ext <<_ACEOF
21545 cat confdefs.h >>conftest.$ac_ext
21546 cat >>conftest.$ac_ext <<_ACEOF
21547 /* end confdefs.h. */
21548 #include <stddef.h>
21552 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21559 rm -f conftest.$ac_objext
21560 if { (ac_try="$ac_compile"
21561 case "(($ac_try" in
21562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563 *) ac_try_echo=$ac_try;;
21565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21566 (eval "$ac_compile") 2>conftest.er1
21568 grep -v '^ *+' conftest.er1 >conftest.err
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572 (exit $ac_status); } && {
21573 test -z "$ac_c_werror_flag" ||
21574 test ! -s conftest.err
21575 } && test -s conftest.$ac_objext; then
21578 cat >conftest.$ac_ext <<_ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 #include <stddef.h>
21588 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21595 rm -f conftest.$ac_objext
21596 if { (ac_try="$ac_compile"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_compile") 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); } && {
21609 test -z "$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21611 } && test -s conftest.$ac_objext; then
21612 ac_lo=$ac_mid; break
21614 echo "$as_me: failed program was:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_hi=`expr '(' $ac_mid ')' - 1`
21618 if test $ac_mid -le $ac_hi; then
21622 ac_mid=`expr 2 '*' $ac_mid`
21625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21628 echo "$as_me: failed program was:" >&5
21629 sed 's/^/| /' conftest.$ac_ext >&5
21634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 # Binary search between lo and hi bounds.
21639 while test "x$ac_lo" != "x$ac_hi"; do
21640 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21641 cat >conftest.$ac_ext <<_ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 #include <stddef.h>
21651 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21658 rm -f conftest.$ac_objext
21659 if { (ac_try="$ac_compile"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_compile") 2>conftest.er1
21667 grep -v '^ *+' conftest.er1 >conftest.err
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } && {
21672 test -z "$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 } && test -s conftest.$ac_objext; then
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21680 ac_lo=`expr '(' $ac_mid ')' + 1`
21683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21686 ?*) fits_in_uint=$ac_lo;;
21690 cat >conftest.$ac_ext <<_ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 #include <stddef.h>
21697 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21698 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21700 #include <stdlib.h>
21705 FILE *f = fopen ("conftest.val", "w");
21708 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21710 long int i = longval ();
21711 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21713 fprintf (f, "%ld\n", i);
21717 unsigned long int i = ulongval ();
21718 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21720 fprintf (f, "%lu\n", i);
21722 return ferror (f) || fclose (f) != 0;
21728 rm -f conftest$ac_exeext
21729 if { (ac_try="$ac_link"
21730 case "(($ac_try" in
21731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21732 *) ac_try_echo=$ac_try;;
21734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21735 (eval "$ac_link") 2>&5
21737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21738 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21739 { (case "(($ac_try" in
21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741 *) ac_try_echo=$ac_try;;
21743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_try") 2>&5
21746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21747 (exit $ac_status); }; }; then
21748 fits_in_uint=`cat conftest.val`
21750 echo "$as_me: program exited with status $ac_status" >&5
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 ( exit $ac_status )
21757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21761 if test "$fits_in_uint" = 1; then
21762 cat >conftest.$ac_ext <<_ACEOF
21765 cat confdefs.h >>conftest.$ac_ext
21766 cat >>conftest.$ac_ext <<_ACEOF
21767 /* end confdefs.h. */
21768 #include <stddef.h>
21770 extern unsigned long foo;
21780 rm -f conftest.$ac_objext
21781 if { (ac_try="$ac_compile"
21782 case "(($ac_try" in
21783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21784 *) ac_try_echo=$ac_try;;
21786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21787 (eval "$ac_compile") 2>conftest.er1
21789 grep -v '^ *+' conftest.er1 >conftest.err
21791 cat conftest.err >&5
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); } && {
21794 test -z "$ac_c_werror_flag" ||
21795 test ! -s conftest.err
21796 } && test -s conftest.$ac_objext; then
21799 echo "$as_me: failed program was:" >&5
21800 sed 's/^/| /' conftest.$ac_ext >&5
21805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21807 if test -z "$result"; then
21808 if test "$fits_in_uint" = 1; then
21809 result="$res_hi$res_lo"U
21811 result="$res_hi$res_lo"UL
21814 result='~(size_t)0'
21817 { echo "$as_me:$LINENO: result: $result" >&5
21818 echo "${ECHO_T}$result" >&6; }
21819 if test "$result" != yes; then
21821 cat >>confdefs.h <<_ACEOF
21822 #define SIZE_MAX $result
21831 for ac_header in stdint.h
21833 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 ac_res=`eval echo '${'$as_ac_Header'}'`
21841 { echo "$as_me:$LINENO: result: $ac_res" >&5
21842 echo "${ECHO_T}$ac_res" >&6; }
21844 # Is the header compilable?
21845 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21847 cat >conftest.$ac_ext <<_ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 $ac_includes_default
21854 #include <$ac_header>
21856 rm -f conftest.$ac_objext
21857 if { (ac_try="$ac_compile"
21858 case "(($ac_try" in
21859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21860 *) ac_try_echo=$ac_try;;
21862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21863 (eval "$ac_compile") 2>conftest.er1
21865 grep -v '^ *+' conftest.er1 >conftest.err
21867 cat conftest.err >&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); } && {
21870 test -z "$ac_c_werror_flag" ||
21871 test ! -s conftest.err
21872 } && test -s conftest.$ac_objext; then
21873 ac_header_compiler=yes
21875 echo "$as_me: failed program was:" >&5
21876 sed 's/^/| /' conftest.$ac_ext >&5
21878 ac_header_compiler=no
21881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21882 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21883 echo "${ECHO_T}$ac_header_compiler" >&6; }
21885 # Is the header present?
21886 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21888 cat >conftest.$ac_ext <<_ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 #include <$ac_header>
21896 if { (ac_try="$ac_cpp conftest.$ac_ext"
21897 case "(($ac_try" in
21898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899 *) ac_try_echo=$ac_try;;
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21904 grep -v '^ *+' conftest.er1 >conftest.err
21906 cat conftest.err >&5
21907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908 (exit $ac_status); } >/dev/null && {
21909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21910 test ! -s conftest.err
21912 ac_header_preproc=yes
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21917 ac_header_preproc=no
21920 rm -f conftest.err conftest.$ac_ext
21921 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21922 echo "${ECHO_T}$ac_header_preproc" >&6; }
21924 # So? What about this header?
21925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21927 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21928 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21930 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21931 ac_header_preproc=yes
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21935 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21937 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21938 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21939 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21940 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21941 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21942 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21943 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21944 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21945 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21951 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21952 echo $ECHO_N "(cached) $ECHO_C" >&6
21954 eval "$as_ac_Header=\$ac_header_preproc"
21956 ac_res=`eval echo '${'$as_ac_Header'}'`
21957 { echo "$as_me:$LINENO: result: $ac_res" >&5
21958 echo "${ECHO_T}$ac_res" >&6; }
21961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21962 cat >>confdefs.h <<_ACEOF
21963 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21977 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21978 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21979 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 cat >conftest.$ac_ext <<_ACEOF
21985 cat confdefs.h >>conftest.$ac_ext
21986 cat >>conftest.$ac_ext <<_ACEOF
21987 /* end confdefs.h. */
21988 $ac_includes_default
21989 typedef ptrdiff_t ac__type_new_;
21993 if ((ac__type_new_ *) 0)
21995 if (sizeof (ac__type_new_))
22001 rm -f conftest.$ac_objext
22002 if { (ac_try="$ac_compile"
22003 case "(($ac_try" in
22004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22005 *) ac_try_echo=$ac_try;;
22007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22008 (eval "$ac_compile") 2>conftest.er1
22010 grep -v '^ *+' conftest.er1 >conftest.err
22012 cat conftest.err >&5
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); } && {
22015 test -z "$ac_c_werror_flag" ||
22016 test ! -s conftest.err
22017 } && test -s conftest.$ac_objext; then
22018 ac_cv_type_ptrdiff_t=yes
22020 echo "$as_me: failed program was:" >&5
22021 sed 's/^/| /' conftest.$ac_ext >&5
22023 ac_cv_type_ptrdiff_t=no
22026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22028 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22029 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22030 if test $ac_cv_type_ptrdiff_t = yes; then
22034 cat >>confdefs.h <<\_ACEOF
22035 #define ptrdiff_t long
22051 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22052 stdlib.h string.h unistd.h sys/param.h
22054 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22055 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22059 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 ac_res=`eval echo '${'$as_ac_Header'}'`
22062 { echo "$as_me:$LINENO: result: $ac_res" >&5
22063 echo "${ECHO_T}$ac_res" >&6; }
22065 # Is the header compilable?
22066 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22067 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22068 cat >conftest.$ac_ext <<_ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074 $ac_includes_default
22075 #include <$ac_header>
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22086 grep -v '^ *+' conftest.er1 >conftest.err
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22094 ac_header_compiler=yes
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22099 ac_header_compiler=no
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22104 echo "${ECHO_T}$ac_header_compiler" >&6; }
22106 # Is the header present?
22107 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22108 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22115 #include <$ac_header>
22117 if { (ac_try="$ac_cpp conftest.$ac_ext"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22125 grep -v '^ *+' conftest.er1 >conftest.err
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } >/dev/null && {
22130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22133 ac_header_preproc=yes
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22138 ac_header_preproc=no
22141 rm -f conftest.err conftest.$ac_ext
22142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22143 echo "${ECHO_T}$ac_header_preproc" >&6; }
22145 # So? What about this header?
22146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22148 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22149 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22150 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22151 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22152 ac_header_preproc=yes
22155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22160 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22162 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22164 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22166 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22173 echo $ECHO_N "(cached) $ECHO_C" >&6
22175 eval "$as_ac_Header=\$ac_header_preproc"
22177 ac_res=`eval echo '${'$as_ac_Header'}'`
22178 { echo "$as_me:$LINENO: result: $ac_res" >&5
22179 echo "${ECHO_T}$ac_res" >&6; }
22182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22183 cat >>confdefs.h <<_ACEOF
22184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22214 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22215 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22216 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22225 cat >conftest.$ac_ext <<_ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h. */
22231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22233 #define $ac_func innocuous_$ac_func
22235 /* System header to define __stub macros and hopefully few prototypes,
22236 which can conflict with char $ac_func (); below.
22237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238 <limits.h> exists even on freestanding compilers. */
22241 # include <limits.h>
22243 # include <assert.h>
22248 /* Override any GCC internal prototype to avoid an error.
22249 Use char because int might match the return type of a GCC
22250 builtin and then its argument prototype would still apply. */
22255 /* The GNU C library defines this for functions which it implements
22256 to always fail with ENOSYS. Some functions are actually named
22257 something starting with __ and the normal name is an alias. */
22258 #if defined __stub_$ac_func || defined __stub___$ac_func
22265 return $ac_func ();
22270 rm -f conftest.$ac_objext conftest$ac_exeext
22271 if { (ac_try="$ac_link"
22272 case "(($ac_try" in
22273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274 *) ac_try_echo=$ac_try;;
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277 (eval "$ac_link") 2>conftest.er1
22279 grep -v '^ *+' conftest.er1 >conftest.err
22281 cat conftest.err >&5
22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest$ac_exeext &&
22287 $as_test_x conftest$ac_exeext; then
22288 eval "$as_ac_var=yes"
22290 echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22293 eval "$as_ac_var=no"
22296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22297 conftest$ac_exeext conftest.$ac_ext
22299 ac_res=`eval echo '${'$as_ac_var'}'`
22300 { echo "$as_me:$LINENO: result: $ac_res" >&5
22301 echo "${ECHO_T}$ac_res" >&6; }
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303 cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22312 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22313 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22314 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22315 echo $ECHO_N "(cached) $ECHO_C" >&6
22317 cat >conftest.$ac_ext <<_ACEOF
22320 cat confdefs.h >>conftest.$ac_ext
22321 cat >>conftest.$ac_ext <<_ACEOF
22322 /* end confdefs.h. */
22329 char *p = (char *) _snprintf;
22336 rm -f conftest.$ac_objext
22337 if { (ac_try="$ac_compile"
22338 case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_compile") 2>conftest.er1
22345 grep -v '^ *+' conftest.er1 >conftest.err
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest.$ac_objext; then
22353 ac_cv_have_decl__snprintf=yes
22355 echo "$as_me: failed program was:" >&5
22356 sed 's/^/| /' conftest.$ac_ext >&5
22358 ac_cv_have_decl__snprintf=no
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22363 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22364 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22365 if test $ac_cv_have_decl__snprintf = yes; then
22371 cat >>confdefs.h <<_ACEOF
22372 #define HAVE_DECL__SNPRINTF $gt_value
22377 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22378 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22379 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22380 echo $ECHO_N "(cached) $ECHO_C" >&6
22382 cat >conftest.$ac_ext <<_ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h. */
22394 char *p = (char *) _snwprintf;
22401 rm -f conftest.$ac_objext
22402 if { (ac_try="$ac_compile"
22403 case "(($ac_try" in
22404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405 *) ac_try_echo=$ac_try;;
22407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22408 (eval "$ac_compile") 2>conftest.er1
22410 grep -v '^ *+' conftest.er1 >conftest.err
22412 cat conftest.err >&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } && {
22415 test -z "$ac_c_werror_flag" ||
22416 test ! -s conftest.err
22417 } && test -s conftest.$ac_objext; then
22418 ac_cv_have_decl__snwprintf=yes
22420 echo "$as_me: failed program was:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22423 ac_cv_have_decl__snwprintf=no
22426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22428 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22429 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22430 if test $ac_cv_have_decl__snwprintf = yes; then
22436 cat >>confdefs.h <<_ACEOF
22437 #define HAVE_DECL__SNWPRINTF $gt_value
22443 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22444 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22445 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22446 echo $ECHO_N "(cached) $ECHO_C" >&6
22448 cat >conftest.$ac_ext <<_ACEOF
22451 cat confdefs.h >>conftest.$ac_ext
22452 cat >>conftest.$ac_ext <<_ACEOF
22453 /* end confdefs.h. */
22459 #ifndef feof_unlocked
22460 char *p = (char *) feof_unlocked;
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_compile") 2>conftest.er1
22476 grep -v '^ *+' conftest.er1 >conftest.err
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest.$ac_objext; then
22484 ac_cv_have_decl_feof_unlocked=yes
22486 echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 ac_cv_have_decl_feof_unlocked=no
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22494 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22495 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22496 if test $ac_cv_have_decl_feof_unlocked = yes; then
22502 cat >>confdefs.h <<_ACEOF
22503 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22508 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22509 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22510 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22524 #ifndef fgets_unlocked
22525 char *p = (char *) fgets_unlocked;
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_compile") 2>conftest.er1
22541 grep -v '^ *+' conftest.er1 >conftest.err
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); } && {
22546 test -z "$ac_c_werror_flag" ||
22547 test ! -s conftest.err
22548 } && test -s conftest.$ac_objext; then
22549 ac_cv_have_decl_fgets_unlocked=yes
22551 echo "$as_me: failed program was:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22554 ac_cv_have_decl_fgets_unlocked=no
22557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22560 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22561 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22567 cat >>confdefs.h <<_ACEOF
22568 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22573 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22574 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22575 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22578 cat >conftest.$ac_ext <<_ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22589 #ifndef getc_unlocked
22590 char *p = (char *) getc_unlocked;
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_compile") 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest.$ac_objext; then
22614 ac_cv_have_decl_getc_unlocked=yes
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22619 ac_cv_have_decl_getc_unlocked=no
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22625 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22626 if test $ac_cv_have_decl_getc_unlocked = yes; then
22632 cat >>confdefs.h <<_ACEOF
22633 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22638 case $gt_cv_func_printf_posix in
22639 *yes) HAVE_POSIX_PRINTF=1 ;;
22640 *) HAVE_POSIX_PRINTF=0 ;;
22643 if test "$ac_cv_func_asprintf" = yes; then
22649 if test "$ac_cv_func_snprintf" = yes; then
22655 if test "$ac_cv_func_wprintf" = yes; then
22667 am_save_CPPFLAGS="$CPPFLAGS"
22669 for element in $INCICONV; do
22671 for x in $CPPFLAGS; do
22673 acl_save_prefix="$prefix"
22674 prefix="$acl_final_prefix"
22675 acl_save_exec_prefix="$exec_prefix"
22676 exec_prefix="$acl_final_exec_prefix"
22678 exec_prefix="$acl_save_exec_prefix"
22679 prefix="$acl_save_prefix"
22681 if test "X$x" = "X$element"; then
22686 if test -z "$haveit"; then
22687 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22692 { echo "$as_me:$LINENO: checking for iconv" >&5
22693 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22694 if test "${am_cv_func_iconv+set}" = set; then
22695 echo $ECHO_N "(cached) $ECHO_C" >&6
22698 am_cv_func_iconv="no, consider installing GNU libiconv"
22700 cat >conftest.$ac_ext <<_ACEOF
22703 cat confdefs.h >>conftest.$ac_ext
22704 cat >>conftest.$ac_ext <<_ACEOF
22705 /* end confdefs.h. */
22706 #include <stdlib.h>
22711 iconv_t cd = iconv_open("","");
22712 iconv(cd,NULL,NULL,NULL,NULL);
22718 rm -f conftest.$ac_objext conftest$ac_exeext
22719 if { (ac_try="$ac_link"
22720 case "(($ac_try" in
22721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22722 *) ac_try_echo=$ac_try;;
22724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22725 (eval "$ac_link") 2>conftest.er1
22727 grep -v '^ *+' conftest.er1 >conftest.err
22729 cat conftest.err >&5
22730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731 (exit $ac_status); } && {
22732 test -z "$ac_c_werror_flag" ||
22733 test ! -s conftest.err
22734 } && test -s conftest$ac_exeext &&
22735 $as_test_x conftest$ac_exeext; then
22736 am_cv_func_iconv=yes
22738 echo "$as_me: failed program was:" >&5
22739 sed 's/^/| /' conftest.$ac_ext >&5
22744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22745 conftest$ac_exeext conftest.$ac_ext
22746 if test "$am_cv_func_iconv" != yes; then
22747 am_save_LIBS="$LIBS"
22748 LIBS="$LIBS $LIBICONV"
22749 cat >conftest.$ac_ext <<_ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755 #include <stdlib.h>
22760 iconv_t cd = iconv_open("","");
22761 iconv(cd,NULL,NULL,NULL,NULL);
22767 rm -f conftest.$ac_objext conftest$ac_exeext
22768 if { (ac_try="$ac_link"
22769 case "(($ac_try" in
22770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771 *) ac_try_echo=$ac_try;;
22773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22774 (eval "$ac_link") 2>conftest.er1
22776 grep -v '^ *+' conftest.er1 >conftest.err
22778 cat conftest.err >&5
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); } && {
22781 test -z "$ac_c_werror_flag" ||
22782 test ! -s conftest.err
22783 } && test -s conftest$ac_exeext &&
22784 $as_test_x conftest$ac_exeext; then
22785 am_cv_lib_iconv=yes
22786 am_cv_func_iconv=yes
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22795 conftest$ac_exeext conftest.$ac_ext
22796 LIBS="$am_save_LIBS"
22800 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22801 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22802 if test "$am_cv_func_iconv" = yes; then
22804 cat >>confdefs.h <<\_ACEOF
22805 #define HAVE_ICONV 1
22809 if test "$am_cv_lib_iconv" = yes; then
22810 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22811 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22812 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22813 echo "${ECHO_T}$LIBICONV" >&6; }
22815 CPPFLAGS="$am_save_CPPFLAGS"
22822 if test "$am_cv_func_iconv" = yes; then
22823 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22824 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22825 if test "${am_cv_proto_iconv+set}" = set; then
22826 echo $ECHO_N "(cached) $ECHO_C" >&6
22829 cat >conftest.$ac_ext <<_ACEOF
22832 cat confdefs.h >>conftest.$ac_ext
22833 cat >>conftest.$ac_ext <<_ACEOF
22834 /* end confdefs.h. */
22836 #include <stdlib.h>
22842 #if defined(__STDC__) || defined(__cplusplus)
22843 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22856 rm -f conftest.$ac_objext
22857 if { (ac_try="$ac_compile"
22858 case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_compile") 2>conftest.er1
22865 grep -v '^ *+' conftest.er1 >conftest.err
22867 cat conftest.err >&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } && {
22870 test -z "$ac_c_werror_flag" ||
22871 test ! -s conftest.err
22872 } && test -s conftest.$ac_objext; then
22873 am_cv_proto_iconv_arg1=""
22875 echo "$as_me: failed program was:" >&5
22876 sed 's/^/| /' conftest.$ac_ext >&5
22878 am_cv_proto_iconv_arg1="const"
22881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22882 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);"
22885 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22886 { echo "$as_me:$LINENO: result: ${ac_t:-
22887 }$am_cv_proto_iconv" >&5
22888 echo "${ECHO_T}${ac_t:-
22889 }$am_cv_proto_iconv" >&6; }
22891 cat >>confdefs.h <<_ACEOF
22892 #define ICONV_CONST $am_cv_proto_iconv_arg1
22898 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22899 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22900 if test "${am_cv_langinfo_codeset+set}" = set; then
22901 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 cat >conftest.$ac_ext <<_ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22909 #include <langinfo.h>
22913 char* cs = nl_langinfo(CODESET);
22918 rm -f conftest.$ac_objext conftest$ac_exeext
22919 if { (ac_try="$ac_link"
22920 case "(($ac_try" in
22921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22922 *) ac_try_echo=$ac_try;;
22924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22925 (eval "$ac_link") 2>conftest.er1
22927 grep -v '^ *+' conftest.er1 >conftest.err
22929 cat conftest.err >&5
22930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22931 (exit $ac_status); } && {
22932 test -z "$ac_c_werror_flag" ||
22933 test ! -s conftest.err
22934 } && test -s conftest$ac_exeext &&
22935 $as_test_x conftest$ac_exeext; then
22936 am_cv_langinfo_codeset=yes
22938 echo "$as_me: failed program was:" >&5
22939 sed 's/^/| /' conftest.$ac_ext >&5
22941 am_cv_langinfo_codeset=no
22944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22945 conftest$ac_exeext conftest.$ac_ext
22948 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22949 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22950 if test $am_cv_langinfo_codeset = yes; then
22952 cat >>confdefs.h <<\_ACEOF
22953 #define HAVE_LANGINFO_CODESET 1
22958 if test $ac_cv_header_locale_h = yes; then
22960 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22961 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22962 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22963 echo $ECHO_N "(cached) $ECHO_C" >&6
22965 cat >conftest.$ac_ext <<_ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h. */
22971 #include <locale.h>
22980 rm -f conftest.$ac_objext conftest$ac_exeext
22981 if { (ac_try="$ac_link"
22982 case "(($ac_try" in
22983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22984 *) ac_try_echo=$ac_try;;
22986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22987 (eval "$ac_link") 2>conftest.er1
22989 grep -v '^ *+' conftest.er1 >conftest.err
22991 cat conftest.err >&5
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); } && {
22994 test -z "$ac_c_werror_flag" ||
22995 test ! -s conftest.err
22996 } && test -s conftest$ac_exeext &&
22997 $as_test_x conftest$ac_exeext; then
22998 gt_cv_val_LC_MESSAGES=yes
23000 echo "$as_me: failed program was:" >&5
23001 sed 's/^/| /' conftest.$ac_ext >&5
23003 gt_cv_val_LC_MESSAGES=no
23006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23007 conftest$ac_exeext conftest.$ac_ext
23009 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23010 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23011 if test $gt_cv_val_LC_MESSAGES = yes; then
23013 cat >>confdefs.h <<\_ACEOF
23014 #define HAVE_LC_MESSAGES 1
23021 if test -n "$INTL_MACOSX_LIBS"; then
23022 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23025 for ac_prog in bison
23027 # Extract the first word of "$ac_prog", so it can be a program name with args.
23028 set dummy $ac_prog; ac_word=$2
23029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23031 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23032 echo $ECHO_N "(cached) $ECHO_C" >&6
23034 if test -n "$INTLBISON"; then
23035 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23038 for as_dir in $PATH
23041 test -z "$as_dir" && as_dir=.
23042 for ac_exec_ext in '' $ac_executable_extensions; do
23043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23044 ac_cv_prog_INTLBISON="$ac_prog"
23045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23054 INTLBISON=$ac_cv_prog_INTLBISON
23055 if test -n "$INTLBISON"; then
23056 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23057 echo "${ECHO_T}$INTLBISON" >&6; }
23059 { echo "$as_me:$LINENO: result: no" >&5
23060 echo "${ECHO_T}no" >&6; }
23064 test -n "$INTLBISON" && break
23067 if test -z "$INTLBISON"; then
23070 { echo "$as_me:$LINENO: checking version of bison" >&5
23071 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23072 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23073 case $ac_prog_version in
23074 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23075 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23076 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23077 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23079 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23080 echo "${ECHO_T}$ac_prog_version" >&6; }
23082 if test $ac_verc_fail = yes; then
23101 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23102 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23103 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23104 echo $ECHO_N "(cached) $ECHO_C" >&6
23106 gt_save_CPPFLAGS="$CPPFLAGS"
23107 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23108 gt_save_LIBS="$LIBS"
23109 LIBS="$LIBS -framework CoreFoundation"
23110 cat >conftest.$ac_ext <<_ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23116 #include <CFPreferences.h>
23120 CFPreferencesCopyAppValue(NULL, NULL)
23125 rm -f conftest.$ac_objext conftest$ac_exeext
23126 if { (ac_try="$ac_link"
23127 case "(($ac_try" in
23128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23129 *) ac_try_echo=$ac_try;;
23131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23132 (eval "$ac_link") 2>conftest.er1
23134 grep -v '^ *+' conftest.er1 >conftest.err
23136 cat conftest.err >&5
23137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23138 (exit $ac_status); } && {
23139 test -z "$ac_c_werror_flag" ||
23140 test ! -s conftest.err
23141 } && test -s conftest$ac_exeext &&
23142 $as_test_x conftest$ac_exeext; then
23143 gt_cv_func_CFPreferencesCopyAppValue=yes
23145 echo "$as_me: failed program was:" >&5
23146 sed 's/^/| /' conftest.$ac_ext >&5
23148 gt_cv_func_CFPreferencesCopyAppValue=no
23151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23152 conftest$ac_exeext conftest.$ac_ext
23153 CPPFLAGS="$gt_save_CPPFLAGS"
23154 LIBS="$gt_save_LIBS"
23156 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23157 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23158 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23160 cat >>confdefs.h <<\_ACEOF
23161 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23165 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23166 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23167 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23168 echo $ECHO_N "(cached) $ECHO_C" >&6
23170 gt_save_CPPFLAGS="$CPPFLAGS"
23171 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23172 gt_save_LIBS="$LIBS"
23173 LIBS="$LIBS -framework CoreFoundation"
23174 cat >conftest.$ac_ext <<_ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h. */
23180 #include <CFLocale.h>
23184 CFLocaleCopyCurrent();
23189 rm -f conftest.$ac_objext conftest$ac_exeext
23190 if { (ac_try="$ac_link"
23191 case "(($ac_try" in
23192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23193 *) ac_try_echo=$ac_try;;
23195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23196 (eval "$ac_link") 2>conftest.er1
23198 grep -v '^ *+' conftest.er1 >conftest.err
23200 cat conftest.err >&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); } && {
23203 test -z "$ac_c_werror_flag" ||
23204 test ! -s conftest.err
23205 } && test -s conftest$ac_exeext &&
23206 $as_test_x conftest$ac_exeext; then
23207 gt_cv_func_CFLocaleCopyCurrent=yes
23209 echo "$as_me: failed program was:" >&5
23210 sed 's/^/| /' conftest.$ac_ext >&5
23212 gt_cv_func_CFLocaleCopyCurrent=no
23215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23216 conftest$ac_exeext conftest.$ac_ext
23217 CPPFLAGS="$gt_save_CPPFLAGS"
23218 LIBS="$gt_save_LIBS"
23220 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23221 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23222 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23224 cat >>confdefs.h <<\_ACEOF
23225 #define HAVE_CFLOCALECOPYCURRENT 1
23230 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23231 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23237 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23238 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23239 # Check whether --enable-nls was given.
23240 if test "${enable_nls+set}" = set; then
23241 enableval=$enable_nls; USE_NLS=$enableval
23246 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23247 echo "${ECHO_T}$USE_NLS" >&6; }
23252 BUILD_INCLUDED_LIBINTL=no
23253 USE_INCLUDED_LIBINTL=no
23259 if test "$USE_NLS" = "yes"; then
23260 gt_use_preinstalled_gnugettext=no
23262 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23263 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23265 # Check whether --with-included-gettext was given.
23266 if test "${with_included_gettext+set}" = set; then
23267 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23269 nls_cv_force_use_gnu_gettext=no
23272 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23273 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23275 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23276 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23283 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23284 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23285 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23286 echo $ECHO_N "(cached) $ECHO_C" >&6
23288 cat >conftest.$ac_ext <<_ACEOF
23291 cat confdefs.h >>conftest.$ac_ext
23292 cat >>conftest.$ac_ext <<_ACEOF
23293 /* end confdefs.h. */
23294 #include <libintl.h>
23295 extern int _nl_msg_cat_cntr;
23296 extern int *_nl_domain_bindings;
23300 bindtextdomain ("", "");
23301 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23306 rm -f conftest.$ac_objext conftest$ac_exeext
23307 if { (ac_try="$ac_link"
23308 case "(($ac_try" in
23309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310 *) ac_try_echo=$ac_try;;
23312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23313 (eval "$ac_link") 2>conftest.er1
23315 grep -v '^ *+' conftest.er1 >conftest.err
23317 cat conftest.err >&5
23318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23319 (exit $ac_status); } && {
23320 test -z "$ac_c_werror_flag" ||
23321 test ! -s conftest.err
23322 } && test -s conftest$ac_exeext &&
23323 $as_test_x conftest$ac_exeext; then
23324 gt_cv_func_gnugettext1_libc=yes
23326 echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23329 gt_cv_func_gnugettext1_libc=no
23332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23333 conftest$ac_exeext conftest.$ac_ext
23335 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23336 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23338 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23344 acl_save_prefix="$prefix"
23345 prefix="$acl_final_prefix"
23346 acl_save_exec_prefix="$exec_prefix"
23347 exec_prefix="$acl_final_exec_prefix"
23349 eval additional_includedir=\"$includedir\"
23350 eval additional_libdir=\"$libdir\"
23352 exec_prefix="$acl_save_exec_prefix"
23353 prefix="$acl_save_prefix"
23356 # Check whether --with-libintl-prefix was given.
23357 if test "${with_libintl_prefix+set}" = set; then
23358 withval=$with_libintl_prefix;
23359 if test "X$withval" = "Xno"; then
23362 if test "X$withval" = "X"; then
23364 acl_save_prefix="$prefix"
23365 prefix="$acl_final_prefix"
23366 acl_save_exec_prefix="$exec_prefix"
23367 exec_prefix="$acl_final_exec_prefix"
23369 eval additional_includedir=\"$includedir\"
23370 eval additional_libdir=\"$libdir\"
23372 exec_prefix="$acl_save_exec_prefix"
23373 prefix="$acl_save_prefix"
23376 additional_includedir="$withval/include"
23377 additional_libdir="$withval/lib"
23388 names_already_handled=
23389 names_next_round='intl '
23390 while test -n "$names_next_round"; do
23391 names_this_round="$names_next_round"
23393 for name in $names_this_round; do
23395 for n in $names_already_handled; do
23396 if test "$n" = "$name"; then
23397 already_handled=yes
23401 if test -z "$already_handled"; then
23402 names_already_handled="$names_already_handled $name"
23403 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23404 eval value=\"\$HAVE_LIB$uppername\"
23405 if test -n "$value"; then
23406 if test "$value" = yes; then
23407 eval value=\"\$LIB$uppername\"
23408 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23409 eval value=\"\$LTLIB$uppername\"
23410 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23419 if test $use_additional = yes; then
23420 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23421 found_dir="$additional_libdir"
23422 found_so="$additional_libdir/lib$name.$shlibext"
23423 if test -f "$additional_libdir/lib$name.la"; then
23424 found_la="$additional_libdir/lib$name.la"
23427 if test -f "$additional_libdir/lib$name.$libext"; then
23428 found_dir="$additional_libdir"
23429 found_a="$additional_libdir/lib$name.$libext"
23430 if test -f "$additional_libdir/lib$name.la"; then
23431 found_la="$additional_libdir/lib$name.la"
23436 if test "X$found_dir" = "X"; then
23437 for x in $LDFLAGS $LTLIBINTL; do
23439 acl_save_prefix="$prefix"
23440 prefix="$acl_final_prefix"
23441 acl_save_exec_prefix="$exec_prefix"
23442 exec_prefix="$acl_final_exec_prefix"
23444 exec_prefix="$acl_save_exec_prefix"
23445 prefix="$acl_save_prefix"
23449 dir=`echo "X$x" | sed -e 's/^X-L//'`
23450 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23452 found_so="$dir/lib$name.$shlibext"
23453 if test -f "$dir/lib$name.la"; then
23454 found_la="$dir/lib$name.la"
23457 if test -f "$dir/lib$name.$libext"; then
23459 found_a="$dir/lib$name.$libext"
23460 if test -f "$dir/lib$name.la"; then
23461 found_la="$dir/lib$name.la"
23467 if test "X$found_dir" != "X"; then
23472 if test "X$found_dir" != "X"; then
23473 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23474 if test "X$found_so" != "X"; then
23475 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23476 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23479 for x in $ltrpathdirs; do
23480 if test "X$x" = "X$found_dir"; then
23485 if test -z "$haveit"; then
23486 ltrpathdirs="$ltrpathdirs $found_dir"
23488 if test "$hardcode_direct" = yes; then
23489 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23491 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23494 for x in $rpathdirs; do
23495 if test "X$x" = "X$found_dir"; then
23500 if test -z "$haveit"; then
23501 rpathdirs="$rpathdirs $found_dir"
23505 for x in $LDFLAGS $LIBINTL; do
23507 acl_save_prefix="$prefix"
23508 prefix="$acl_final_prefix"
23509 acl_save_exec_prefix="$exec_prefix"
23510 exec_prefix="$acl_final_exec_prefix"
23512 exec_prefix="$acl_save_exec_prefix"
23513 prefix="$acl_save_prefix"
23515 if test "X$x" = "X-L$found_dir"; then
23520 if test -z "$haveit"; then
23521 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23523 if test "$hardcode_minus_L" != no; then
23524 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23526 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23532 if test "X$found_a" != "X"; then
23533 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23535 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23538 additional_includedir=
23539 case "$found_dir" in
23541 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23542 additional_includedir="$basedir/include"
23545 if test "X$additional_includedir" != "X"; then
23546 if test "X$additional_includedir" != "X/usr/include"; then
23548 if test "X$additional_includedir" = "X/usr/local/include"; then
23549 if test -n "$GCC"; then
23551 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23555 if test -z "$haveit"; then
23556 for x in $CPPFLAGS $INCINTL; do
23558 acl_save_prefix="$prefix"
23559 prefix="$acl_final_prefix"
23560 acl_save_exec_prefix="$exec_prefix"
23561 exec_prefix="$acl_final_exec_prefix"
23563 exec_prefix="$acl_save_exec_prefix"
23564 prefix="$acl_save_prefix"
23566 if test "X$x" = "X-I$additional_includedir"; then
23571 if test -z "$haveit"; then
23572 if test -d "$additional_includedir"; then
23573 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23579 if test -n "$found_la"; then
23580 save_libdir="$libdir"
23581 case "$found_la" in
23582 */* | *\\*) . "$found_la" ;;
23583 *) . "./$found_la" ;;
23585 libdir="$save_libdir"
23586 for dep in $dependency_libs; do
23589 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23590 if test "X$additional_libdir" != "X/usr/lib"; then
23592 if test "X$additional_libdir" = "X/usr/local/lib"; then
23593 if test -n "$GCC"; then
23595 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23599 if test -z "$haveit"; then
23601 for x in $LDFLAGS $LIBINTL; do
23603 acl_save_prefix="$prefix"
23604 prefix="$acl_final_prefix"
23605 acl_save_exec_prefix="$exec_prefix"
23606 exec_prefix="$acl_final_exec_prefix"
23608 exec_prefix="$acl_save_exec_prefix"
23609 prefix="$acl_save_prefix"
23611 if test "X$x" = "X-L$additional_libdir"; then
23616 if test -z "$haveit"; then
23617 if test -d "$additional_libdir"; then
23618 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23622 for x in $LDFLAGS $LTLIBINTL; do
23624 acl_save_prefix="$prefix"
23625 prefix="$acl_final_prefix"
23626 acl_save_exec_prefix="$exec_prefix"
23627 exec_prefix="$acl_final_exec_prefix"
23629 exec_prefix="$acl_save_exec_prefix"
23630 prefix="$acl_save_prefix"
23632 if test "X$x" = "X-L$additional_libdir"; then
23637 if test -z "$haveit"; then
23638 if test -d "$additional_libdir"; then
23639 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23646 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23647 if test "$enable_rpath" != no; then
23649 for x in $rpathdirs; do
23650 if test "X$x" = "X$dir"; then
23655 if test -z "$haveit"; then
23656 rpathdirs="$rpathdirs $dir"
23659 for x in $ltrpathdirs; do
23660 if test "X$x" = "X$dir"; then
23665 if test -z "$haveit"; then
23666 ltrpathdirs="$ltrpathdirs $dir"
23671 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23674 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23677 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23678 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23684 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23685 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23691 if test "X$rpathdirs" != "X"; then
23692 if test -n "$hardcode_libdir_separator"; then
23694 for found_dir in $rpathdirs; do
23695 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23697 acl_save_libdir="$libdir"
23699 eval flag=\"$hardcode_libdir_flag_spec\"
23700 libdir="$acl_save_libdir"
23701 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23703 for found_dir in $rpathdirs; do
23704 acl_save_libdir="$libdir"
23705 libdir="$found_dir"
23706 eval flag=\"$hardcode_libdir_flag_spec\"
23707 libdir="$acl_save_libdir"
23708 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23712 if test "X$ltrpathdirs" != "X"; then
23713 for found_dir in $ltrpathdirs; do
23714 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23718 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23719 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23720 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23721 echo $ECHO_N "(cached) $ECHO_C" >&6
23723 gt_save_CPPFLAGS="$CPPFLAGS"
23724 CPPFLAGS="$CPPFLAGS $INCINTL"
23725 gt_save_LIBS="$LIBS"
23726 LIBS="$LIBS $LIBINTL"
23727 cat >conftest.$ac_ext <<_ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23733 #include <libintl.h>
23734 extern int _nl_msg_cat_cntr;
23739 const char *_nl_expand_alias (const char *);
23743 bindtextdomain ("", "");
23744 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23749 rm -f conftest.$ac_objext conftest$ac_exeext
23750 if { (ac_try="$ac_link"
23751 case "(($ac_try" in
23752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23753 *) ac_try_echo=$ac_try;;
23755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23756 (eval "$ac_link") 2>conftest.er1
23758 grep -v '^ *+' conftest.er1 >conftest.err
23760 cat conftest.err >&5
23761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23762 (exit $ac_status); } && {
23763 test -z "$ac_c_werror_flag" ||
23764 test ! -s conftest.err
23765 } && test -s conftest$ac_exeext &&
23766 $as_test_x conftest$ac_exeext; then
23767 gt_cv_func_gnugettext1_libintl=yes
23769 echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23772 gt_cv_func_gnugettext1_libintl=no
23775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23776 conftest$ac_exeext conftest.$ac_ext
23777 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23778 LIBS="$LIBS $LIBICONV"
23779 cat >conftest.$ac_ext <<_ACEOF
23782 cat confdefs.h >>conftest.$ac_ext
23783 cat >>conftest.$ac_ext <<_ACEOF
23784 /* end confdefs.h. */
23785 #include <libintl.h>
23786 extern int _nl_msg_cat_cntr;
23791 const char *_nl_expand_alias (const char *);
23795 bindtextdomain ("", "");
23796 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23801 rm -f conftest.$ac_objext conftest$ac_exeext
23802 if { (ac_try="$ac_link"
23803 case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_link") 2>conftest.er1
23810 grep -v '^ *+' conftest.er1 >conftest.err
23812 cat conftest.err >&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); } && {
23815 test -z "$ac_c_werror_flag" ||
23816 test ! -s conftest.err
23817 } && test -s conftest$ac_exeext &&
23818 $as_test_x conftest$ac_exeext; then
23819 LIBINTL="$LIBINTL $LIBICONV"
23820 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23821 gt_cv_func_gnugettext1_libintl=yes
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23831 conftest$ac_exeext conftest.$ac_ext
23833 CPPFLAGS="$gt_save_CPPFLAGS"
23834 LIBS="$gt_save_LIBS"
23836 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23837 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23840 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23841 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23842 && test "$PACKAGE" != gettext-runtime \
23843 && test "$PACKAGE" != gettext-tools; }; then
23844 gt_use_preinstalled_gnugettext=yes
23852 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23853 nls_cv_use_gnu_gettext=yes
23857 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23858 BUILD_INCLUDED_LIBINTL=yes
23859 USE_INCLUDED_LIBINTL=yes
23860 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23861 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23862 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23866 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23867 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23872 if test -n "$INTL_MACOSX_LIBS"; then
23873 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23874 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23875 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23876 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23880 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23881 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23883 cat >>confdefs.h <<\_ACEOF
23884 #define ENABLE_NLS 1
23892 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23893 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23894 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23895 echo "${ECHO_T}$USE_NLS" >&6; }
23896 if test "$USE_NLS" = "yes"; then
23897 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23898 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23899 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23900 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23901 gt_source="external libintl"
23906 gt_source="included intl directory"
23908 { echo "$as_me:$LINENO: result: $gt_source" >&5
23909 echo "${ECHO_T}$gt_source" >&6; }
23912 if test "$USE_NLS" = "yes"; then
23914 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23915 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23916 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23917 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23918 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23919 echo "${ECHO_T}$LIBINTL" >&6; }
23921 for element in $INCINTL; do
23923 for x in $CPPFLAGS; do
23925 acl_save_prefix="$prefix"
23926 prefix="$acl_final_prefix"
23927 acl_save_exec_prefix="$exec_prefix"
23928 exec_prefix="$acl_final_exec_prefix"
23930 exec_prefix="$acl_save_exec_prefix"
23931 prefix="$acl_save_prefix"
23933 if test "X$x" = "X$element"; then
23938 if test -z "$haveit"; then
23939 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23946 cat >>confdefs.h <<\_ACEOF
23947 #define HAVE_GETTEXT 1
23951 cat >>confdefs.h <<\_ACEOF
23952 #define HAVE_DCGETTEXT 1
23961 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23962 BUILD_INCLUDED_LIBINTL=yes
23969 nls_cv_header_intl=
23970 nls_cv_header_libgt=
23982 if test "$USE_INCLUDED_LIBINTL" = yes; then
23983 INTLOBJS="\$(GETTOBJS)"
23987 INTL_LIBTOOL_SUFFIX_PREFIX=
23991 INTLLIBS="$LIBINTL"
24003 support_postgresql=no
24005 support_smartalloc=yes
24006 support_readline=yes
24010 support_wx_console=no
24011 support_tray_monitor=no
24016 support_static_tools=no
24017 support_static_fd=no
24018 support_static_sd=no
24019 support_static_dir=no
24020 support_static_cons=no
24022 build_client_only=no
24031 # Check whether --enable-gnome was given.
24032 if test "${enable_gnome+set}" = set; then
24033 enableval=$enable_gnome;
24034 if test x$enableval = xyes; then
24043 if test x$support_gnome = xyes; then
24044 { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24045 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24046 { (exit 1); exit 1; }; }
24047 { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24048 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24049 { (exit 1); exit 1; }; }
24051 # AC_SUBST(GNOME_DIR)
24053 # Check whether --enable-bat was given.
24054 if test "${enable_bat+set}" = set; then
24055 enableval=$enable_bat;
24056 if test x$enableval = xyes; then
24058 cat >>confdefs.h <<\_ACEOF
24070 if test x$support_bat = xyes; then
24071 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24073 if test $pkg = 0; then
24074 BAT_DIR=src/qt-console
24076 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24077 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24078 { (exit 1); exit 1; }; }
24088 if test x$support_bat = xyes; then
24089 { echo "$as_me:$LINENO: checking for qwt support" >&5
24090 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24092 # Check whether --with-qwt was given.
24093 if test "${with_qwt+set}" = set; then
24095 case "$with_qwt" in
24100 if test -f ${with_qwt}/include/qwt.h; then
24101 QWT_INC="${with_qwt}/include"
24102 QWT_LDFLAGS="-L${with_qwt}/lib"
24113 if test $no_qwt = no; then
24114 if test x$QWT_INC = x; then
24115 for root in /usr /usr/local; do
24116 for ver in qwt qwt5 qwt-qt4; do
24117 if test -f ${root}/include/${ver}/qwt.h; then
24118 QWT_INC="${root}/include/${ver}"
24119 if test -d ${root}/lib64/; then
24120 QWT_LDFLAGS="-L${root}/lib64"
24121 elif test -d ${root}/lib/64/; then
24122 QWT_LDFLAGS="-L${root}/64"
24124 QWT_LDFLAGS="-L${root}/lib"
24135 if test x$QWT_INC = x; then
24136 { echo "$as_me:$LINENO: result: no" >&5
24137 echo "${ECHO_T}no" >&6; }
24140 cat >>confdefs.h <<\_ACEOF
24144 { echo "$as_me:$LINENO: result: yes" >&5
24145 echo "${ECHO_T}yes" >&6; }
24155 # Check whether --enable-bwx-console was given.
24156 if test "${enable_bwx_console+set}" = set; then
24157 enableval=$enable_bwx_console;
24158 if test x$enableval = xyes; then
24159 support_wx_console=yes
24167 if test x$support_wx_console = xyes; then
24168 abc=`$WXCONFIG $WXFLAGS --cppflags`
24170 if test $pkg = 0; then
24171 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24172 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24173 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24177 WX_DIR="src/wx-console"
24180 echo "wx-config program not found. bwx-console disabled."
24182 support_wx_console=no
24187 # Check whether --enable-tray-monitor was given.
24188 if test "${enable_tray_monitor+set}" = set; then
24189 enableval=$enable_tray_monitor;
24190 if test x$enableval = xyes; then
24191 support_tray_monitor=yes
24199 if test x$support_tray_monitor = xyes; then
24200 abc=`$PKGCONFIG --exists gtk+-2.0`
24202 if test $pkg = 0; then
24203 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24204 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24207 TRAY_MONITOR_DIR=src/tray-monitor
24208 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24210 if test $pkg = 0; then
24212 cat >>confdefs.h <<\_ACEOF
24213 #define HAVE_GTK_2_4 1
24221 # Check whether --enable-smartalloc was given.
24222 if test "${enable_smartalloc+set}" = set; then
24223 enableval=$enable_smartalloc;
24224 if test x$enableval = xno; then
24225 support_smartalloc=no
24232 if test x$support_smartalloc = xyes; then
24234 cat >>confdefs.h <<\_ACEOF
24235 #define SMARTALLOC 1
24240 # Check whether --enable-lockmgr was given.
24241 if test "${enable_lockmgr+set}" = set; then
24242 enableval=$enable_lockmgr;
24243 if test x$enableval = xyes; then
24244 support_lockmgr=yes
24251 if test x$support_lockmgr = xyes; then
24253 cat >>confdefs.h <<\_ACEOF
24254 #define _USE_LOCKMGR 1
24260 # Check whether --enable-static-tools was given.
24261 if test "${enable_static_tools+set}" = set; then
24262 enableval=$enable_static_tools;
24263 if test x$enableval = xyes; then
24264 if test x$use_libtool = xyes; then
24265 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24266 please rerun configure with --disable-libtool" >&5
24267 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24268 please rerun configure with --disable-libtool" >&2;}
24269 { (exit 1); exit 1; }; }
24271 support_static_tools=yes
24279 if test x$support_static_tools = xyes; then
24280 TTOOL_LDFLAGS="-static"
24284 # Check whether --enable-static-fd was given.
24285 if test "${enable_static_fd+set}" = set; then
24286 enableval=$enable_static_fd;
24287 if test x$enableval = xyes; then
24288 if test x$use_libtool = xyes; then
24289 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24290 please rerun configure with --disable-libtool" >&5
24291 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24292 please rerun configure with --disable-libtool" >&2;}
24293 { (exit 1); exit 1; }; }
24295 support_static_fd=yes
24303 if test x$support_static_fd = xyes; then
24304 STATIC_FD="static-bacula-fd"
24308 # Check whether --enable-static-sd was given.
24309 if test "${enable_static_sd+set}" = set; then
24310 enableval=$enable_static_sd;
24311 if test x$enableval = xyes; then
24312 if test x$use_libtool = xyes; then
24313 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24314 please rerun configure with --disable-libtool" >&5
24315 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24316 please rerun configure with --disable-libtool" >&2;}
24317 { (exit 1); exit 1; }; }
24319 support_static_sd=yes
24327 if test x$support_static_sd = xyes; then
24328 STATIC_SD="static-bacula-sd"
24332 # Check whether --enable-static-dir was given.
24333 if test "${enable_static_dir+set}" = set; then
24334 enableval=$enable_static_dir;
24335 if test x$enableval = xyes; then
24336 if test x$use_libtool = xyes; then
24337 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24338 please rerun configure with --disable-libtool" >&5
24339 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24340 please rerun configure with --disable-libtool" >&2;}
24341 { (exit 1); exit 1; }; }
24343 support_static_dir=yes
24351 if test x$support_static_dir = xyes; then
24352 STATIC_DIR="static-bacula-dir"
24356 # Check whether --enable-static-cons was given.
24357 if test "${enable_static_cons+set}" = set; then
24358 enableval=$enable_static_cons;
24359 if test x$enableval = xyes; then
24360 if test x$use_libtool = xyes; then
24361 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24362 please rerun configure with --disable-libtool" >&5
24363 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24364 please rerun configure with --disable-libtool" >&2;}
24365 { (exit 1); exit 1; }; }
24367 support_static_cons=yes
24377 if test x$support_static_cons = xyes; then
24378 STATIC_CONS="static-bconsole"
24379 STATIC_GNOME_CONS="static-bgnome-console"
24380 STATIC_WX_CONS="static-bwx-console"
24386 # Check whether --enable-client-only was given.
24387 if test "${enable_client_only+set}" = set; then
24388 enableval=$enable_client_only;
24389 if test x$enableval = xyes; then
24390 build_client_only=yes
24398 if test x$build_client_only = xno; then
24405 # Check whether --enable-build-dird was given.
24406 if test "${enable_build_dird+set}" = set; then
24407 enableval=$enable_build_dird;
24408 if test x$enableval = xno; then
24415 if test x$build_dird = xyes; then
24416 DIRD_DIR="src/dird"
24417 DIR_TOOLS="DIRTOOLS"
24420 DIR_TOOLS="NODIRTOOLS"
24425 # Check whether --enable-build-stored was given.
24426 if test "${enable_build_stored+set}" = set; then
24427 enableval=$enable_build_stored;
24428 if test x$enableval = xno; then
24435 if test x$build_stored = xyes; then
24436 STORED_DIR="src/stored"
24442 # Check whether --enable-conio was given.
24443 if test "${enable_conio+set}" = set; then
24444 enableval=$enable_conio;
24445 if test x$enableval = xno; then
24455 # Check whether --enable-ipv6 was given.
24456 if test "${enable_ipv6+set}" = set; then
24457 enableval=$enable_ipv6;
24458 if test x$enableval = xno; then
24466 if test x$support_ipv6 = xyes; then
24467 cat >conftest.$ac_ext <<_ACEOF
24470 cat confdefs.h >>conftest.$ac_ext
24471 cat >>conftest.$ac_ext <<_ACEOF
24472 /* end confdefs.h. */
24473 #include <sys/types.h>
24474 #include <sys/socket.h>
24475 #include <netinet/in.h>
24479 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24484 rm -f conftest.$ac_objext conftest$ac_exeext
24485 if { (ac_try="$ac_link"
24486 case "(($ac_try" in
24487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24488 *) ac_try_echo=$ac_try;;
24490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24491 (eval "$ac_link") 2>conftest.er1
24493 grep -v '^ *+' conftest.er1 >conftest.err
24495 cat conftest.err >&5
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } && {
24498 test -z "$ac_c_werror_flag" ||
24499 test ! -s conftest.err
24500 } && test -s conftest$ac_exeext &&
24501 $as_test_x conftest$ac_exeext; then
24504 echo "$as_me: failed program was:" >&5
24505 sed 's/^/| /' conftest.$ac_ext >&5
24510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24511 conftest$ac_exeext conftest.$ac_ext
24514 if test x$support_ipv6 = xyes; then
24516 cat >>confdefs.h <<\_ACEOF
24517 #define HAVE_IPV6 1
24523 if test x$support_conio = xyes; then
24524 if test "${ac_cv_header_termcap_h+set}" = set; then
24525 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24526 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24527 if test "${ac_cv_header_termcap_h+set}" = set; then
24528 echo $ECHO_N "(cached) $ECHO_C" >&6
24530 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24531 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24533 # Is the header compilable?
24534 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24535 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24536 cat >conftest.$ac_ext <<_ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h. */
24542 $ac_includes_default
24543 #include <termcap.h>
24545 rm -f conftest.$ac_objext
24546 if { (ac_try="$ac_compile"
24547 case "(($ac_try" in
24548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24549 *) ac_try_echo=$ac_try;;
24551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24552 (eval "$ac_compile") 2>conftest.er1
24554 grep -v '^ *+' conftest.er1 >conftest.err
24556 cat conftest.err >&5
24557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } && {
24559 test -z "$ac_c_werror_flag" ||
24560 test ! -s conftest.err
24561 } && test -s conftest.$ac_objext; then
24562 ac_header_compiler=yes
24564 echo "$as_me: failed program was:" >&5
24565 sed 's/^/| /' conftest.$ac_ext >&5
24567 ac_header_compiler=no
24570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24572 echo "${ECHO_T}$ac_header_compiler" >&6; }
24574 # Is the header present?
24575 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24576 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24577 cat >conftest.$ac_ext <<_ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583 #include <termcap.h>
24585 if { (ac_try="$ac_cpp conftest.$ac_ext"
24586 case "(($ac_try" in
24587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588 *) ac_try_echo=$ac_try;;
24590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24593 grep -v '^ *+' conftest.er1 >conftest.err
24595 cat conftest.err >&5
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } >/dev/null && {
24598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24599 test ! -s conftest.err
24601 ac_header_preproc=yes
24603 echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24606 ac_header_preproc=no
24609 rm -f conftest.err conftest.$ac_ext
24610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24611 echo "${ECHO_T}$ac_header_preproc" >&6; }
24613 # So? What about this header?
24614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24616 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24617 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24618 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24619 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24620 ac_header_preproc=yes
24623 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24624 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24625 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24626 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24627 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24628 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24629 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24630 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24631 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24632 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24633 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24634 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24638 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24639 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24640 if test "${ac_cv_header_termcap_h+set}" = set; then
24641 echo $ECHO_N "(cached) $ECHO_C" >&6
24643 ac_cv_header_termcap_h=$ac_header_preproc
24645 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24646 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24649 if test $ac_cv_header_termcap_h = yes; then
24650 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24651 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24652 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24653 echo $ECHO_N "(cached) $ECHO_C" >&6
24655 ac_check_lib_save_LIBS=$LIBS
24656 LIBS="-ltermcap $LIBS"
24657 cat >conftest.$ac_ext <<_ACEOF
24660 cat confdefs.h >>conftest.$ac_ext
24661 cat >>conftest.$ac_ext <<_ACEOF
24662 /* end confdefs.h. */
24664 /* Override any GCC internal prototype to avoid an error.
24665 Use char because int might match the return type of a GCC
24666 builtin and then its argument prototype would still apply. */
24679 rm -f conftest.$ac_objext conftest$ac_exeext
24680 if { (ac_try="$ac_link"
24681 case "(($ac_try" in
24682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24683 *) ac_try_echo=$ac_try;;
24685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24686 (eval "$ac_link") 2>conftest.er1
24688 grep -v '^ *+' conftest.er1 >conftest.err
24690 cat conftest.err >&5
24691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24692 (exit $ac_status); } && {
24693 test -z "$ac_c_werror_flag" ||
24694 test ! -s conftest.err
24695 } && test -s conftest$ac_exeext &&
24696 $as_test_x conftest$ac_exeext; then
24697 ac_cv_lib_termcap_tgetent=yes
24699 echo "$as_me: failed program was:" >&5
24700 sed 's/^/| /' conftest.$ac_ext >&5
24702 ac_cv_lib_termcap_tgetent=no
24705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24706 conftest$ac_exeext conftest.$ac_ext
24707 LIBS=$ac_check_lib_save_LIBS
24709 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24710 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24711 if test $ac_cv_lib_termcap_tgetent = yes; then
24712 CONS_LIBS="-ltermcap"
24716 support_readline=no
24718 cat >>confdefs.h <<\_ACEOF
24719 #define HAVE_CONIO 1
24724 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24725 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24726 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24727 echo $ECHO_N "(cached) $ECHO_C" >&6
24729 ac_check_lib_save_LIBS=$LIBS
24730 LIBS="-lncurses $LIBS"
24731 cat >conftest.$ac_ext <<_ACEOF
24734 cat confdefs.h >>conftest.$ac_ext
24735 cat >>conftest.$ac_ext <<_ACEOF
24736 /* end confdefs.h. */
24738 /* Override any GCC internal prototype to avoid an error.
24739 Use char because int might match the return type of a GCC
24740 builtin and then its argument prototype would still apply. */
24753 rm -f conftest.$ac_objext conftest$ac_exeext
24754 if { (ac_try="$ac_link"
24755 case "(($ac_try" in
24756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24757 *) ac_try_echo=$ac_try;;
24759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24760 (eval "$ac_link") 2>conftest.er1
24762 grep -v '^ *+' conftest.er1 >conftest.err
24764 cat conftest.err >&5
24765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24766 (exit $ac_status); } && {
24767 test -z "$ac_c_werror_flag" ||
24768 test ! -s conftest.err
24769 } && test -s conftest$ac_exeext &&
24770 $as_test_x conftest$ac_exeext; then
24771 ac_cv_lib_ncurses_tgetent=yes
24773 echo "$as_me: failed program was:" >&5
24774 sed 's/^/| /' conftest.$ac_ext >&5
24776 ac_cv_lib_ncurses_tgetent=no
24779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24780 conftest$ac_exeext conftest.$ac_ext
24781 LIBS=$ac_check_lib_save_LIBS
24783 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24784 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24785 if test $ac_cv_lib_ncurses_tgetent = yes; then
24786 CONS_LIBS="-lncurses"
24790 support_readline=no
24792 cat >>confdefs.h <<\_ACEOF
24793 #define HAVE_CONIO 1
24806 for ac_header in curses.h
24808 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24813 echo $ECHO_N "(cached) $ECHO_C" >&6
24815 ac_res=`eval echo '${'$as_ac_Header'}'`
24816 { echo "$as_me:$LINENO: result: $ac_res" >&5
24817 echo "${ECHO_T}$ac_res" >&6; }
24819 # Is the header compilable?
24820 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24822 cat >conftest.$ac_ext <<_ACEOF
24825 cat confdefs.h >>conftest.$ac_ext
24826 cat >>conftest.$ac_ext <<_ACEOF
24827 /* end confdefs.h. */
24828 $ac_includes_default
24829 #include <$ac_header>
24831 rm -f conftest.$ac_objext
24832 if { (ac_try="$ac_compile"
24833 case "(($ac_try" in
24834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835 *) ac_try_echo=$ac_try;;
24837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24838 (eval "$ac_compile") 2>conftest.er1
24840 grep -v '^ *+' conftest.er1 >conftest.err
24842 cat conftest.err >&5
24843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844 (exit $ac_status); } && {
24845 test -z "$ac_c_werror_flag" ||
24846 test ! -s conftest.err
24847 } && test -s conftest.$ac_objext; then
24848 ac_header_compiler=yes
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24853 ac_header_compiler=no
24856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24858 echo "${ECHO_T}$ac_header_compiler" >&6; }
24860 # Is the header present?
24861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24863 cat >conftest.$ac_ext <<_ACEOF
24866 cat confdefs.h >>conftest.$ac_ext
24867 cat >>conftest.$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24869 #include <$ac_header>
24871 if { (ac_try="$ac_cpp conftest.$ac_ext"
24872 case "(($ac_try" in
24873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24874 *) ac_try_echo=$ac_try;;
24876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24879 grep -v '^ *+' conftest.er1 >conftest.err
24881 cat conftest.err >&5
24882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24883 (exit $ac_status); } >/dev/null && {
24884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24885 test ! -s conftest.err
24887 ac_header_preproc=yes
24889 echo "$as_me: failed program was:" >&5
24890 sed 's/^/| /' conftest.$ac_ext >&5
24892 ac_header_preproc=no
24895 rm -f conftest.err conftest.$ac_ext
24896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24897 echo "${ECHO_T}$ac_header_preproc" >&6; }
24899 # So? What about this header?
24900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24906 ac_header_preproc=yes
24909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24927 echo $ECHO_N "(cached) $ECHO_C" >&6
24929 eval "$as_ac_Header=\$ac_header_preproc"
24931 ac_res=`eval echo '${'$as_ac_Header'}'`
24932 { echo "$as_me:$LINENO: result: $ac_res" >&5
24933 echo "${ECHO_T}$ac_res" >&6; }
24936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24937 cat >>confdefs.h <<_ACEOF
24938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24945 { echo "$as_me:$LINENO: checking for term.h" >&5
24946 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24947 if test "${ac_cv_header_term_h+set}" = set; then
24948 echo $ECHO_N "(cached) $ECHO_C" >&6
24950 cat >conftest.$ac_ext <<_ACEOF
24953 cat confdefs.h >>conftest.$ac_ext
24954 cat >>conftest.$ac_ext <<_ACEOF
24955 /* end confdefs.h. */
24957 #include <curses.h>
24963 rm -f conftest.$ac_objext
24964 if { (ac_try="$ac_compile"
24965 case "(($ac_try" in
24966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967 *) ac_try_echo=$ac_try;;
24969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24970 (eval "$ac_compile") 2>conftest.er1
24972 grep -v '^ *+' conftest.er1 >conftest.err
24974 cat conftest.err >&5
24975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24976 (exit $ac_status); } && {
24977 test -z "$ac_c_werror_flag" ||
24978 test ! -s conftest.err
24979 } && test -s conftest.$ac_objext; then
24980 ac_cv_header_term_h=yes
24982 echo "$as_me: failed program was:" >&5
24983 sed 's/^/| /' conftest.$ac_ext >&5
24985 ac_cv_header_term_h=no
24988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24990 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24991 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24992 if test $ac_cv_header_term_h = yes; then
24993 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24994 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24995 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24996 echo $ECHO_N "(cached) $ECHO_C" >&6
24998 ac_check_lib_save_LIBS=$LIBS
24999 LIBS="-lcurses $LIBS"
25000 cat >conftest.$ac_ext <<_ACEOF
25003 cat confdefs.h >>conftest.$ac_ext
25004 cat >>conftest.$ac_ext <<_ACEOF
25005 /* end confdefs.h. */
25007 /* Override any GCC internal prototype to avoid an error.
25008 Use char because int might match the return type of a GCC
25009 builtin and then its argument prototype would still apply. */
25022 rm -f conftest.$ac_objext conftest$ac_exeext
25023 if { (ac_try="$ac_link"
25024 case "(($ac_try" in
25025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25026 *) ac_try_echo=$ac_try;;
25028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25029 (eval "$ac_link") 2>conftest.er1
25031 grep -v '^ *+' conftest.er1 >conftest.err
25033 cat conftest.err >&5
25034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25035 (exit $ac_status); } && {
25036 test -z "$ac_c_werror_flag" ||
25037 test ! -s conftest.err
25038 } && test -s conftest$ac_exeext &&
25039 $as_test_x conftest$ac_exeext; then
25040 ac_cv_lib_curses_tgetent=yes
25042 echo "$as_me: failed program was:" >&5
25043 sed 's/^/| /' conftest.$ac_ext >&5
25045 ac_cv_lib_curses_tgetent=no
25048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25049 conftest$ac_exeext conftest.$ac_ext
25050 LIBS=$ac_check_lib_save_LIBS
25052 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25053 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25054 if test $ac_cv_lib_curses_tgetent = yes; then
25055 CONS_LIBS="-lcurses"
25059 support_readline=no
25061 cat >>confdefs.h <<\_ACEOF
25062 #define HAVE_CONIO 1
25070 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25081 # Check whether --enable-readline was given.
25082 if test "${enable_readline+set}" = set; then
25083 enableval=$enable_readline;
25084 if test x$enableval = xno; then
25085 support_readline=no
25094 if test x$support_readline = xyes; then
25096 # Check whether --with-readline was given.
25097 if test "${with_readline+set}" = set; then
25098 withval=$with_readline;
25099 case "$with_readline" in
25104 if test -f ${with_readline}/readline.h; then
25105 CONS_INC="-I${with_readline}"
25106 CONS_LDFLAGS="-L$with_readline"
25107 elif test -f ${with_readline}/include/readline/readline.h; then
25108 CONS_INC="-I${with_readline}/include/readline"
25109 CONS_LDFLAGS="-L${with_readline}/lib"
25110 with_readline="${with_readline}/include/readline"
25112 with_readline="/usr/include/readline"
25115 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25117 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25118 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25120 echo $ECHO_N "(cached) $ECHO_C" >&6
25122 ac_res=`eval echo '${'$as_ac_Header'}'`
25123 { echo "$as_me:$LINENO: result: $ac_res" >&5
25124 echo "${ECHO_T}$ac_res" >&6; }
25126 # Is the header compilable?
25127 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25128 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25129 cat >conftest.$ac_ext <<_ACEOF
25132 cat confdefs.h >>conftest.$ac_ext
25133 cat >>conftest.$ac_ext <<_ACEOF
25134 /* end confdefs.h. */
25135 $ac_includes_default
25136 #include <${with_readline}/readline.h>
25138 rm -f conftest.$ac_objext
25139 if { (ac_try="$ac_compile"
25140 case "(($ac_try" in
25141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25142 *) ac_try_echo=$ac_try;;
25144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25145 (eval "$ac_compile") 2>conftest.er1
25147 grep -v '^ *+' conftest.er1 >conftest.err
25149 cat conftest.err >&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } && {
25152 test -z "$ac_c_werror_flag" ||
25153 test ! -s conftest.err
25154 } && test -s conftest.$ac_objext; then
25155 ac_header_compiler=yes
25157 echo "$as_me: failed program was:" >&5
25158 sed 's/^/| /' conftest.$ac_ext >&5
25160 ac_header_compiler=no
25163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25165 echo "${ECHO_T}$ac_header_compiler" >&6; }
25167 # Is the header present?
25168 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25169 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25170 cat >conftest.$ac_ext <<_ACEOF
25173 cat confdefs.h >>conftest.$ac_ext
25174 cat >>conftest.$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25176 #include <${with_readline}/readline.h>
25178 if { (ac_try="$ac_cpp conftest.$ac_ext"
25179 case "(($ac_try" in
25180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25181 *) ac_try_echo=$ac_try;;
25183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25186 grep -v '^ *+' conftest.er1 >conftest.err
25188 cat conftest.err >&5
25189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25190 (exit $ac_status); } >/dev/null && {
25191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25192 test ! -s conftest.err
25194 ac_header_preproc=yes
25196 echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25199 ac_header_preproc=no
25202 rm -f conftest.err conftest.$ac_ext
25203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25204 echo "${ECHO_T}$ac_header_preproc" >&6; }
25206 # So? What about this header?
25207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25209 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25210 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25211 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25212 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25213 ac_header_preproc=yes
25216 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25217 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25218 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25219 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25220 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25221 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25222 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25223 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25224 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25225 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25226 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25227 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25231 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25232 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25234 echo $ECHO_N "(cached) $ECHO_C" >&6
25236 eval "$as_ac_Header=\$ac_header_preproc"
25238 ac_res=`eval echo '${'$as_ac_Header'}'`
25239 { echo "$as_me:$LINENO: result: $ac_res" >&5
25240 echo "${ECHO_T}$ac_res" >&6; }
25243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25246 cat >>confdefs.h <<\_ACEOF
25247 #define HAVE_READLINE 1
25250 CONS_LIBS="-lreadline -lhistory -ltermcap"
25256 echo "readline.h not found. readline turned off ..."
25268 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25269 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25270 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25271 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
25274 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25275 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25277 # Is the header compilable?
25278 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25279 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25280 cat >conftest.$ac_ext <<_ACEOF
25283 cat confdefs.h >>conftest.$ac_ext
25284 cat >>conftest.$ac_ext <<_ACEOF
25285 /* end confdefs.h. */
25286 $ac_includes_default
25287 #include </usr/include/readline/readline.h>
25289 rm -f conftest.$ac_objext
25290 if { (ac_try="$ac_compile"
25291 case "(($ac_try" in
25292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25293 *) ac_try_echo=$ac_try;;
25295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25296 (eval "$ac_compile") 2>conftest.er1
25298 grep -v '^ *+' conftest.er1 >conftest.err
25300 cat conftest.err >&5
25301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25302 (exit $ac_status); } && {
25303 test -z "$ac_c_werror_flag" ||
25304 test ! -s conftest.err
25305 } && test -s conftest.$ac_objext; then
25306 ac_header_compiler=yes
25308 echo "$as_me: failed program was:" >&5
25309 sed 's/^/| /' conftest.$ac_ext >&5
25311 ac_header_compiler=no
25314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25316 echo "${ECHO_T}$ac_header_compiler" >&6; }
25318 # Is the header present?
25319 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25320 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25321 cat >conftest.$ac_ext <<_ACEOF
25324 cat confdefs.h >>conftest.$ac_ext
25325 cat >>conftest.$ac_ext <<_ACEOF
25326 /* end confdefs.h. */
25327 #include </usr/include/readline/readline.h>
25329 if { (ac_try="$ac_cpp conftest.$ac_ext"
25330 case "(($ac_try" in
25331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25332 *) ac_try_echo=$ac_try;;
25334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25337 grep -v '^ *+' conftest.er1 >conftest.err
25339 cat conftest.err >&5
25340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25341 (exit $ac_status); } >/dev/null && {
25342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25343 test ! -s conftest.err
25345 ac_header_preproc=yes
25347 echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25350 ac_header_preproc=no
25353 rm -f conftest.err conftest.$ac_ext
25354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25355 echo "${ECHO_T}$ac_header_preproc" >&6; }
25357 # So? What about this header?
25358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25360 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25361 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25362 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25363 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25364 ac_header_preproc=yes
25367 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25368 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25369 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25370 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25371 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25372 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25373 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25374 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25375 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25376 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25377 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25378 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25382 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25383 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25384 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25385 echo $ECHO_N "(cached) $ECHO_C" >&6
25387 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25389 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25390 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25393 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25396 cat >>confdefs.h <<\_ACEOF
25397 #define HAVE_READLINE 1
25401 CONS_INC="-I/usr/include/readline"
25402 CONS_LIBS="-lreadline -ltermcap"
25406 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25408 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25409 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25411 echo $ECHO_N "(cached) $ECHO_C" >&6
25413 ac_res=`eval echo '${'$as_ac_Header'}'`
25414 { echo "$as_me:$LINENO: result: $ac_res" >&5
25415 echo "${ECHO_T}$ac_res" >&6; }
25417 # Is the header compilable?
25418 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25419 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25420 cat >conftest.$ac_ext <<_ACEOF
25423 cat confdefs.h >>conftest.$ac_ext
25424 cat >>conftest.$ac_ext <<_ACEOF
25425 /* end confdefs.h. */
25426 $ac_includes_default
25427 #include <${TOP_DIR}/depkgs/readline/readline.h>
25429 rm -f conftest.$ac_objext
25430 if { (ac_try="$ac_compile"
25431 case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25436 (eval "$ac_compile") 2>conftest.er1
25438 grep -v '^ *+' conftest.er1 >conftest.err
25440 cat conftest.err >&5
25441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25442 (exit $ac_status); } && {
25443 test -z "$ac_c_werror_flag" ||
25444 test ! -s conftest.err
25445 } && test -s conftest.$ac_objext; then
25446 ac_header_compiler=yes
25448 echo "$as_me: failed program was:" >&5
25449 sed 's/^/| /' conftest.$ac_ext >&5
25451 ac_header_compiler=no
25454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25456 echo "${ECHO_T}$ac_header_compiler" >&6; }
25458 # Is the header present?
25459 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25460 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25461 cat >conftest.$ac_ext <<_ACEOF
25464 cat confdefs.h >>conftest.$ac_ext
25465 cat >>conftest.$ac_ext <<_ACEOF
25466 /* end confdefs.h. */
25467 #include <${TOP_DIR}/depkgs/readline/readline.h>
25469 if { (ac_try="$ac_cpp conftest.$ac_ext"
25470 case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25477 grep -v '^ *+' conftest.er1 >conftest.err
25479 cat conftest.err >&5
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } >/dev/null && {
25482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25483 test ! -s conftest.err
25485 ac_header_preproc=yes
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25490 ac_header_preproc=no
25493 rm -f conftest.err conftest.$ac_ext
25494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25495 echo "${ECHO_T}$ac_header_preproc" >&6; }
25497 # So? What about this header?
25498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25500 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25501 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25502 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25503 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25504 ac_header_preproc=yes
25507 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25508 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25509 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25510 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25511 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25512 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25513 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25514 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25515 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25516 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25517 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25518 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25522 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25523 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25525 echo $ECHO_N "(cached) $ECHO_C" >&6
25527 eval "$as_ac_Header=\$ac_header_preproc"
25529 ac_res=`eval echo '${'$as_ac_Header'}'`
25530 { echo "$as_me:$LINENO: result: $ac_res" >&5
25531 echo "${ECHO_T}$ac_res" >&6; }
25534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25537 cat >>confdefs.h <<\_ACEOF
25538 #define HAVE_READLINE 1
25542 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25543 CONS_LIBS="-lreadline -lhistory -ltermcap"
25544 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25545 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25550 echo "readline.h not found. readline turned off ..."
25577 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25578 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25579 if test "${ac_cv_header_stat_broken+set}" = set; then
25580 echo $ECHO_N "(cached) $ECHO_C" >&6
25582 cat >conftest.$ac_ext <<_ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h. */
25588 #include <sys/types.h>
25589 #include <sys/stat.h>
25591 #if defined S_ISBLK && defined S_IFDIR
25592 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25595 #if defined S_ISBLK && defined S_IFCHR
25596 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25599 #if defined S_ISLNK && defined S_IFREG
25600 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25603 #if defined S_ISSOCK && defined S_IFREG
25604 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25608 rm -f conftest.$ac_objext
25609 if { (ac_try="$ac_compile"
25610 case "(($ac_try" in
25611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25612 *) ac_try_echo=$ac_try;;
25614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25615 (eval "$ac_compile") 2>conftest.er1
25617 grep -v '^ *+' conftest.er1 >conftest.err
25619 cat conftest.err >&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } && {
25622 test -z "$ac_c_werror_flag" ||
25623 test ! -s conftest.err
25624 } && test -s conftest.$ac_objext; then
25625 ac_cv_header_stat_broken=no
25627 echo "$as_me: failed program was:" >&5
25628 sed 's/^/| /' conftest.$ac_ext >&5
25630 ac_cv_header_stat_broken=yes
25633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25635 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25636 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25637 if test $ac_cv_header_stat_broken = yes; then
25639 cat >>confdefs.h <<\_ACEOF
25640 #define STAT_MACROS_BROKEN 1
25650 ac_header_dirent=no
25651 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25652 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25653 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25654 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25656 echo $ECHO_N "(cached) $ECHO_C" >&6
25658 cat >conftest.$ac_ext <<_ACEOF
25661 cat confdefs.h >>conftest.$ac_ext
25662 cat >>conftest.$ac_ext <<_ACEOF
25663 /* end confdefs.h. */
25664 #include <sys/types.h>
25676 rm -f conftest.$ac_objext
25677 if { (ac_try="$ac_compile"
25678 case "(($ac_try" in
25679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25680 *) ac_try_echo=$ac_try;;
25682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25683 (eval "$ac_compile") 2>conftest.er1
25685 grep -v '^ *+' conftest.er1 >conftest.err
25687 cat conftest.err >&5
25688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); } && {
25690 test -z "$ac_c_werror_flag" ||
25691 test ! -s conftest.err
25692 } && test -s conftest.$ac_objext; then
25693 eval "$as_ac_Header=yes"
25695 echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25698 eval "$as_ac_Header=no"
25701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25703 ac_res=`eval echo '${'$as_ac_Header'}'`
25704 { echo "$as_me:$LINENO: result: $ac_res" >&5
25705 echo "${ECHO_T}$ac_res" >&6; }
25706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25707 cat >>confdefs.h <<_ACEOF
25708 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25711 ac_header_dirent=$ac_hdr; break
25715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25716 if test $ac_header_dirent = dirent.h; then
25717 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25718 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25719 if test "${ac_cv_search_opendir+set}" = set; then
25720 echo $ECHO_N "(cached) $ECHO_C" >&6
25722 ac_func_search_save_LIBS=$LIBS
25723 cat >conftest.$ac_ext <<_ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h. */
25730 /* Override any GCC internal prototype to avoid an error.
25731 Use char because int might match the return type of a GCC
25732 builtin and then its argument prototype would still apply. */
25745 for ac_lib in '' dir; do
25746 if test -z "$ac_lib"; then
25747 ac_res="none required"
25750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25752 rm -f conftest.$ac_objext conftest$ac_exeext
25753 if { (ac_try="$ac_link"
25754 case "(($ac_try" in
25755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25756 *) ac_try_echo=$ac_try;;
25758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25759 (eval "$ac_link") 2>conftest.er1
25761 grep -v '^ *+' conftest.er1 >conftest.err
25763 cat conftest.err >&5
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); } && {
25766 test -z "$ac_c_werror_flag" ||
25767 test ! -s conftest.err
25768 } && test -s conftest$ac_exeext &&
25769 $as_test_x conftest$ac_exeext; then
25770 ac_cv_search_opendir=$ac_res
25772 echo "$as_me: failed program was:" >&5
25773 sed 's/^/| /' conftest.$ac_ext >&5
25778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25780 if test "${ac_cv_search_opendir+set}" = set; then
25784 if test "${ac_cv_search_opendir+set}" = set; then
25787 ac_cv_search_opendir=no
25789 rm conftest.$ac_ext
25790 LIBS=$ac_func_search_save_LIBS
25792 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25793 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25794 ac_res=$ac_cv_search_opendir
25795 if test "$ac_res" != no; then
25796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25801 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25802 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25803 if test "${ac_cv_search_opendir+set}" = set; then
25804 echo $ECHO_N "(cached) $ECHO_C" >&6
25806 ac_func_search_save_LIBS=$LIBS
25807 cat >conftest.$ac_ext <<_ACEOF
25810 cat confdefs.h >>conftest.$ac_ext
25811 cat >>conftest.$ac_ext <<_ACEOF
25812 /* end confdefs.h. */
25814 /* Override any GCC internal prototype to avoid an error.
25815 Use char because int might match the return type of a GCC
25816 builtin and then its argument prototype would still apply. */
25829 for ac_lib in '' x; do
25830 if test -z "$ac_lib"; then
25831 ac_res="none required"
25834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25836 rm -f conftest.$ac_objext conftest$ac_exeext
25837 if { (ac_try="$ac_link"
25838 case "(($ac_try" in
25839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25840 *) ac_try_echo=$ac_try;;
25842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25843 (eval "$ac_link") 2>conftest.er1
25845 grep -v '^ *+' conftest.er1 >conftest.err
25847 cat conftest.err >&5
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); } && {
25850 test -z "$ac_c_werror_flag" ||
25851 test ! -s conftest.err
25852 } && test -s conftest$ac_exeext &&
25853 $as_test_x conftest$ac_exeext; then
25854 ac_cv_search_opendir=$ac_res
25856 echo "$as_me: failed program was:" >&5
25857 sed 's/^/| /' conftest.$ac_ext >&5
25862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25864 if test "${ac_cv_search_opendir+set}" = set; then
25868 if test "${ac_cv_search_opendir+set}" = set; then
25871 ac_cv_search_opendir=no
25873 rm conftest.$ac_ext
25874 LIBS=$ac_func_search_save_LIBS
25876 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25877 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25878 ac_res=$ac_cv_search_opendir
25879 if test "$ac_res" != no; then
25880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25893 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25895 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25896 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25897 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25898 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25899 echo $ECHO_N "(cached) $ECHO_C" >&6
25901 cat >conftest.$ac_ext <<_ACEOF
25904 cat confdefs.h >>conftest.$ac_ext
25905 cat >>conftest.$ac_ext <<_ACEOF
25906 /* end confdefs.h. */
25907 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25909 #define $ac_func innocuous_$ac_func
25911 /* System header to define __stub macros and hopefully few prototypes,
25912 which can conflict with char $ac_func (); below.
25913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25914 <limits.h> exists even on freestanding compilers. */
25917 # include <limits.h>
25919 # include <assert.h>
25924 /* Override any GCC internal prototype to avoid an error.
25925 Use char because int might match the return type of a GCC
25926 builtin and then its argument prototype would still apply. */
25931 /* The GNU C library defines this for functions which it implements
25932 to always fail with ENOSYS. Some functions are actually named
25933 something starting with __ and the normal name is an alias. */
25934 #if defined __stub_$ac_func || defined __stub___$ac_func
25941 return $ac_func ();
25946 rm -f conftest.$ac_objext conftest$ac_exeext
25947 if { (ac_try="$ac_link"
25948 case "(($ac_try" in
25949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25950 *) ac_try_echo=$ac_try;;
25952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25953 (eval "$ac_link") 2>conftest.er1
25955 grep -v '^ *+' conftest.er1 >conftest.err
25957 cat conftest.err >&5
25958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25959 (exit $ac_status); } && {
25960 test -z "$ac_c_werror_flag" ||
25961 test ! -s conftest.err
25962 } && test -s conftest$ac_exeext &&
25963 $as_test_x conftest$ac_exeext; then
25964 eval "$as_ac_var=yes"
25966 echo "$as_me: failed program was:" >&5
25967 sed 's/^/| /' conftest.$ac_ext >&5
25969 eval "$as_ac_var=no"
25972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25973 conftest$ac_exeext conftest.$ac_ext
25975 ac_res=`eval echo '${'$as_ac_var'}'`
25976 { echo "$as_me:$LINENO: result: $ac_res" >&5
25977 echo "${ECHO_T}$ac_res" >&6; }
25978 if test `eval echo '${'$as_ac_var'}'` = yes; then
25979 cat >>confdefs.h <<_ACEOF
25980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25988 for ac_func in nanosleep nl_langinfo
25990 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25991 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25992 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25993 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25994 echo $ECHO_N "(cached) $ECHO_C" >&6
25996 cat >conftest.$ac_ext <<_ACEOF
25999 cat confdefs.h >>conftest.$ac_ext
26000 cat >>conftest.$ac_ext <<_ACEOF
26001 /* end confdefs.h. */
26002 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26003 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26004 #define $ac_func innocuous_$ac_func
26006 /* System header to define __stub macros and hopefully few prototypes,
26007 which can conflict with char $ac_func (); below.
26008 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26009 <limits.h> exists even on freestanding compilers. */
26012 # include <limits.h>
26014 # include <assert.h>
26019 /* Override any GCC internal prototype to avoid an error.
26020 Use char because int might match the return type of a GCC
26021 builtin and then its argument prototype would still apply. */
26026 /* The GNU C library defines this for functions which it implements
26027 to always fail with ENOSYS. Some functions are actually named
26028 something starting with __ and the normal name is an alias. */
26029 #if defined __stub_$ac_func || defined __stub___$ac_func
26036 return $ac_func ();
26041 rm -f conftest.$ac_objext conftest$ac_exeext
26042 if { (ac_try="$ac_link"
26043 case "(($ac_try" in
26044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26045 *) ac_try_echo=$ac_try;;
26047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26048 (eval "$ac_link") 2>conftest.er1
26050 grep -v '^ *+' conftest.er1 >conftest.err
26052 cat conftest.err >&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); } && {
26055 test -z "$ac_c_werror_flag" ||
26056 test ! -s conftest.err
26057 } && test -s conftest$ac_exeext &&
26058 $as_test_x conftest$ac_exeext; then
26059 eval "$as_ac_var=yes"
26061 echo "$as_me: failed program was:" >&5
26062 sed 's/^/| /' conftest.$ac_ext >&5
26064 eval "$as_ac_var=no"
26067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26068 conftest$ac_exeext conftest.$ac_ext
26070 ac_res=`eval echo '${'$as_ac_var'}'`
26071 { echo "$as_me:$LINENO: result: $ac_res" >&5
26072 echo "${ECHO_T}$ac_res" >&6; }
26073 if test `eval echo '${'$as_ac_var'}'` = yes; then
26074 cat >>confdefs.h <<_ACEOF
26075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26082 for ac_header in varargs.h
26084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26089 echo $ECHO_N "(cached) $ECHO_C" >&6
26091 ac_res=`eval echo '${'$as_ac_Header'}'`
26092 { echo "$as_me:$LINENO: result: $ac_res" >&5
26093 echo "${ECHO_T}$ac_res" >&6; }
26095 # Is the header compilable?
26096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26098 cat >conftest.$ac_ext <<_ACEOF
26101 cat confdefs.h >>conftest.$ac_ext
26102 cat >>conftest.$ac_ext <<_ACEOF
26103 /* end confdefs.h. */
26104 $ac_includes_default
26105 #include <$ac_header>
26107 rm -f conftest.$ac_objext
26108 if { (ac_try="$ac_compile"
26109 case "(($ac_try" in
26110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26111 *) ac_try_echo=$ac_try;;
26113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26114 (eval "$ac_compile") 2>conftest.er1
26116 grep -v '^ *+' conftest.er1 >conftest.err
26118 cat conftest.err >&5
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); } && {
26121 test -z "$ac_c_werror_flag" ||
26122 test ! -s conftest.err
26123 } && test -s conftest.$ac_objext; then
26124 ac_header_compiler=yes
26126 echo "$as_me: failed program was:" >&5
26127 sed 's/^/| /' conftest.$ac_ext >&5
26129 ac_header_compiler=no
26132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26134 echo "${ECHO_T}$ac_header_compiler" >&6; }
26136 # Is the header present?
26137 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26138 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26139 cat >conftest.$ac_ext <<_ACEOF
26142 cat confdefs.h >>conftest.$ac_ext
26143 cat >>conftest.$ac_ext <<_ACEOF
26144 /* end confdefs.h. */
26145 #include <$ac_header>
26147 if { (ac_try="$ac_cpp conftest.$ac_ext"
26148 case "(($ac_try" in
26149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26150 *) ac_try_echo=$ac_try;;
26152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26155 grep -v '^ *+' conftest.er1 >conftest.err
26157 cat conftest.err >&5
26158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); } >/dev/null && {
26160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26161 test ! -s conftest.err
26163 ac_header_preproc=yes
26165 echo "$as_me: failed program was:" >&5
26166 sed 's/^/| /' conftest.$ac_ext >&5
26168 ac_header_preproc=no
26171 rm -f conftest.err conftest.$ac_ext
26172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26173 echo "${ECHO_T}$ac_header_preproc" >&6; }
26175 # So? What about this header?
26176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26179 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26181 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26182 ac_header_preproc=yes
26185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26186 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26188 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26190 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26192 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26194 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26196 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26203 echo $ECHO_N "(cached) $ECHO_C" >&6
26205 eval "$as_ac_Header=\$ac_header_preproc"
26207 ac_res=`eval echo '${'$as_ac_Header'}'`
26208 { echo "$as_me:$LINENO: result: $ac_res" >&5
26209 echo "${ECHO_T}$ac_res" >&6; }
26212 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26213 cat >>confdefs.h <<_ACEOF
26214 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26223 { echo "$as_me:$LINENO: checking for Python support" >&5
26224 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26226 # Check whether --with-python was given.
26227 if test "${with_python+set}" = set; then
26228 withval=$with_python;
26231 if test "$withval" != "no"; then
26232 if test "$withval" = "yes"; then
26233 if test -e /usr/bin/python-config ; then
26234 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26235 PYTHON_LIBS=`/usr/bin/python-config --libs`
26237 for python_root in /usr /usr/local /usr/sfw; do
26238 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26239 if test -f $python_root/include/${ver}/Python.h; then
26240 PYTHON_INCDIR=-I$python_root/include/${ver}
26241 if test -d $python_root/lib64/${ver}/config; then
26242 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26244 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26251 if test x$PYTHON_INCDIR = x; then
26252 if test -f $prefix/include/Python.h; then
26253 PYTHON_INCDIR=-I$prefix/include
26254 if test -d $prefix/lib64/config; then
26255 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26257 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26260 { echo "$as_me:$LINENO: result: no" >&5
26261 echo "${ECHO_T}no" >&6; }
26262 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26263 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26264 { (exit 1); exit 1; }; }
26269 if test -e $withval/bin/python-config ; then
26270 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26271 PYTHON_LIBS=`$withval/bin/python-config --libs`
26272 elif test -f $withval/Python.h; then
26273 PYTHON_INCDIR=-I$withval
26274 PYTHON_LIBS="-L$withval/config -lpython"
26275 elif test -f $withval/include/Python.h; then
26276 PYTHON_INCDIR=-I$withval/include
26277 if test -d $withval/lib64/config; then
26278 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26280 PYTHON_LIBS="-L$withval/lib/config -lpython"
26282 elif test -f $withval/include/python/Python.h; then
26283 PYTHON_INCDIR=-I$withval/include/python
26284 if test -d $withval/lib64/python/config; then
26285 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26287 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26290 { echo "$as_me:$LINENO: result: no" >&5
26291 echo "${ECHO_T}no" >&6; }
26292 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26293 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26294 { (exit 1); exit 1; }; }
26298 cat >>confdefs.h <<\_ACEOF
26299 #define HAVE_PYTHON 1
26302 { echo "$as_me:$LINENO: result: yes" >&5
26303 echo "${ECHO_T}yes" >&6; }
26305 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26306 echo "$as_me: checking for more Python libs" >&6;}
26307 saved_LIBS="$LIBS"; LIBS=
26308 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26309 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26310 if test "${ac_cv_search_shm_open+set}" = set; then
26311 echo $ECHO_N "(cached) $ECHO_C" >&6
26313 ac_func_search_save_LIBS=$LIBS
26314 cat >conftest.$ac_ext <<_ACEOF
26317 cat confdefs.h >>conftest.$ac_ext
26318 cat >>conftest.$ac_ext <<_ACEOF
26319 /* end confdefs.h. */
26321 /* Override any GCC internal prototype to avoid an error.
26322 Use char because int might match the return type of a GCC
26323 builtin and then its argument prototype would still apply. */
26331 return shm_open ();
26336 for ac_lib in '' rt; do
26337 if test -z "$ac_lib"; then
26338 ac_res="none required"
26341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26343 rm -f conftest.$ac_objext conftest$ac_exeext
26344 if { (ac_try="$ac_link"
26345 case "(($ac_try" in
26346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26347 *) ac_try_echo=$ac_try;;
26349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26350 (eval "$ac_link") 2>conftest.er1
26352 grep -v '^ *+' conftest.er1 >conftest.err
26354 cat conftest.err >&5
26355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26356 (exit $ac_status); } && {
26357 test -z "$ac_c_werror_flag" ||
26358 test ! -s conftest.err
26359 } && test -s conftest$ac_exeext &&
26360 $as_test_x conftest$ac_exeext; then
26361 ac_cv_search_shm_open=$ac_res
26363 echo "$as_me: failed program was:" >&5
26364 sed 's/^/| /' conftest.$ac_ext >&5
26369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26371 if test "${ac_cv_search_shm_open+set}" = set; then
26375 if test "${ac_cv_search_shm_open+set}" = set; then
26378 ac_cv_search_shm_open=no
26380 rm conftest.$ac_ext
26381 LIBS=$ac_func_search_save_LIBS
26383 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26384 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26385 ac_res=$ac_cv_search_shm_open
26386 if test "$ac_res" != no; then
26387 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26392 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26393 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26394 if test "${ac_cv_lib_util_openpty+set}" = set; then
26395 echo $ECHO_N "(cached) $ECHO_C" >&6
26397 ac_check_lib_save_LIBS=$LIBS
26398 LIBS="-lutil $LIBS"
26399 cat >conftest.$ac_ext <<_ACEOF
26402 cat confdefs.h >>conftest.$ac_ext
26403 cat >>conftest.$ac_ext <<_ACEOF
26404 /* end confdefs.h. */
26406 /* Override any GCC internal prototype to avoid an error.
26407 Use char because int might match the return type of a GCC
26408 builtin and then its argument prototype would still apply. */
26421 rm -f conftest.$ac_objext conftest$ac_exeext
26422 if { (ac_try="$ac_link"
26423 case "(($ac_try" in
26424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26425 *) ac_try_echo=$ac_try;;
26427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26428 (eval "$ac_link") 2>conftest.er1
26430 grep -v '^ *+' conftest.er1 >conftest.err
26432 cat conftest.err >&5
26433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26434 (exit $ac_status); } && {
26435 test -z "$ac_c_werror_flag" ||
26436 test ! -s conftest.err
26437 } && test -s conftest$ac_exeext &&
26438 $as_test_x conftest$ac_exeext; then
26439 ac_cv_lib_util_openpty=yes
26441 echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26444 ac_cv_lib_util_openpty=no
26447 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26448 conftest$ac_exeext conftest.$ac_ext
26449 LIBS=$ac_check_lib_save_LIBS
26451 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26452 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26453 if test $ac_cv_lib_util_openpty = yes; then
26454 cat >>confdefs.h <<_ACEOF
26455 #define HAVE_LIBUTIL 1
26458 LIBS="-lutil $LIBS"
26462 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26465 { echo "$as_me:$LINENO: result: no" >&5
26466 echo "${ECHO_T}no" >&6; }
26471 { echo "$as_me:$LINENO: result: no" >&5
26472 echo "${ECHO_T}no" >&6; }
26480 { echo "$as_me:$LINENO: checking for socket" >&5
26481 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26482 if test "${ac_cv_func_socket+set}" = set; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
26485 cat >conftest.$ac_ext <<_ACEOF
26488 cat confdefs.h >>conftest.$ac_ext
26489 cat >>conftest.$ac_ext <<_ACEOF
26490 /* end confdefs.h. */
26491 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26493 #define socket innocuous_socket
26495 /* System header to define __stub macros and hopefully few prototypes,
26496 which can conflict with char socket (); below.
26497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26498 <limits.h> exists even on freestanding compilers. */
26501 # include <limits.h>
26503 # include <assert.h>
26508 /* Override any GCC internal prototype to avoid an error.
26509 Use char because int might match the return type of a GCC
26510 builtin and then its argument prototype would still apply. */
26515 /* The GNU C library defines this for functions which it implements
26516 to always fail with ENOSYS. Some functions are actually named
26517 something starting with __ and the normal name is an alias. */
26518 #if defined __stub_socket || defined __stub___socket
26530 rm -f conftest.$ac_objext conftest$ac_exeext
26531 if { (ac_try="$ac_link"
26532 case "(($ac_try" in
26533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534 *) ac_try_echo=$ac_try;;
26536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26537 (eval "$ac_link") 2>conftest.er1
26539 grep -v '^ *+' conftest.er1 >conftest.err
26541 cat conftest.err >&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } && {
26544 test -z "$ac_c_werror_flag" ||
26545 test ! -s conftest.err
26546 } && test -s conftest$ac_exeext &&
26547 $as_test_x conftest$ac_exeext; then
26548 ac_cv_func_socket=yes
26550 echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26553 ac_cv_func_socket=no
26556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26557 conftest$ac_exeext conftest.$ac_ext
26559 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26560 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26561 if test $ac_cv_func_socket = yes; then
26562 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26563 echo "${ECHO_T}using libc's socket" >&6; }
26566 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26567 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26568 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26569 echo $ECHO_N "(cached) $ECHO_C" >&6
26571 ac_check_lib_save_LIBS=$LIBS
26572 LIBS="-lxnet $LIBS"
26573 cat >conftest.$ac_ext <<_ACEOF
26576 cat confdefs.h >>conftest.$ac_ext
26577 cat >>conftest.$ac_ext <<_ACEOF
26578 /* end confdefs.h. */
26580 /* Override any GCC internal prototype to avoid an error.
26581 Use char because int might match the return type of a GCC
26582 builtin and then its argument prototype would still apply. */
26595 rm -f conftest.$ac_objext conftest$ac_exeext
26596 if { (ac_try="$ac_link"
26597 case "(($ac_try" in
26598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26599 *) ac_try_echo=$ac_try;;
26601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26602 (eval "$ac_link") 2>conftest.er1
26604 grep -v '^ *+' conftest.er1 >conftest.err
26606 cat conftest.err >&5
26607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26608 (exit $ac_status); } && {
26609 test -z "$ac_c_werror_flag" ||
26610 test ! -s conftest.err
26611 } && test -s conftest$ac_exeext &&
26612 $as_test_x conftest$ac_exeext; then
26613 ac_cv_lib_xnet_socket=yes
26615 echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26618 ac_cv_lib_xnet_socket=no
26621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26622 conftest$ac_exeext conftest.$ac_ext
26623 LIBS=$ac_check_lib_save_LIBS
26625 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26626 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26627 if test $ac_cv_lib_xnet_socket = yes; then
26628 cat >>confdefs.h <<_ACEOF
26629 #define HAVE_LIBXNET 1
26632 LIBS="-lxnet $LIBS"
26637 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26638 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26639 if test "${ac_cv_lib_socket_socket+set}" = set; then
26640 echo $ECHO_N "(cached) $ECHO_C" >&6
26642 ac_check_lib_save_LIBS=$LIBS
26643 LIBS="-lsocket $LIBS"
26644 cat >conftest.$ac_ext <<_ACEOF
26647 cat confdefs.h >>conftest.$ac_ext
26648 cat >>conftest.$ac_ext <<_ACEOF
26649 /* end confdefs.h. */
26651 /* Override any GCC internal prototype to avoid an error.
26652 Use char because int might match the return type of a GCC
26653 builtin and then its argument prototype would still apply. */
26666 rm -f conftest.$ac_objext conftest$ac_exeext
26667 if { (ac_try="$ac_link"
26668 case "(($ac_try" in
26669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26670 *) ac_try_echo=$ac_try;;
26672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26673 (eval "$ac_link") 2>conftest.er1
26675 grep -v '^ *+' conftest.er1 >conftest.err
26677 cat conftest.err >&5
26678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26679 (exit $ac_status); } && {
26680 test -z "$ac_c_werror_flag" ||
26681 test ! -s conftest.err
26682 } && test -s conftest$ac_exeext &&
26683 $as_test_x conftest$ac_exeext; then
26684 ac_cv_lib_socket_socket=yes
26686 echo "$as_me: failed program was:" >&5
26687 sed 's/^/| /' conftest.$ac_ext >&5
26689 ac_cv_lib_socket_socket=no
26692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26693 conftest$ac_exeext conftest.$ac_ext
26694 LIBS=$ac_check_lib_save_LIBS
26696 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26697 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26698 if test $ac_cv_lib_socket_socket = yes; then
26699 cat >>confdefs.h <<_ACEOF
26700 #define HAVE_LIBSOCKET 1
26703 LIBS="-lsocket $LIBS"
26708 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26709 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26710 if test "${ac_cv_lib_inet_socket+set}" = set; then
26711 echo $ECHO_N "(cached) $ECHO_C" >&6
26713 ac_check_lib_save_LIBS=$LIBS
26714 LIBS="-linet $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. */
26737 rm -f conftest.$ac_objext conftest$ac_exeext
26738 if { (ac_try="$ac_link"
26739 case "(($ac_try" in
26740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26741 *) ac_try_echo=$ac_try;;
26743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26744 (eval "$ac_link") 2>conftest.er1
26746 grep -v '^ *+' conftest.er1 >conftest.err
26748 cat conftest.err >&5
26749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26750 (exit $ac_status); } && {
26751 test -z "$ac_c_werror_flag" ||
26752 test ! -s conftest.err
26753 } && test -s conftest$ac_exeext &&
26754 $as_test_x conftest$ac_exeext; then
26755 ac_cv_lib_inet_socket=yes
26757 echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26760 ac_cv_lib_inet_socket=no
26763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26764 conftest$ac_exeext conftest.$ac_ext
26765 LIBS=$ac_check_lib_save_LIBS
26767 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26768 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26769 if test $ac_cv_lib_inet_socket = yes; then
26770 cat >>confdefs.h <<_ACEOF
26771 #define HAVE_LIBINET 1
26774 LIBS="-linet $LIBS"
26784 # Check whether --with-tcp-wrappers was given.
26785 if test "${with_tcp_wrappers+set}" = set; then
26786 withval=$with_tcp_wrappers;
26787 if test "x$withval" != "xno" ; then
26789 LIBS="$saved_LIBS -lwrap"
26790 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26791 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26792 if test "${ac_cv_search_nanosleep+set}" = set; then
26793 echo $ECHO_N "(cached) $ECHO_C" >&6
26795 ac_func_search_save_LIBS=$LIBS
26796 cat >conftest.$ac_ext <<_ACEOF
26799 cat confdefs.h >>conftest.$ac_ext
26800 cat >>conftest.$ac_ext <<_ACEOF
26801 /* end confdefs.h. */
26803 /* Override any GCC internal prototype to avoid an error.
26804 Use char because int might match the return type of a GCC
26805 builtin and then its argument prototype would still apply. */
26813 return nanosleep ();
26818 for ac_lib in '' rt; do
26819 if test -z "$ac_lib"; then
26820 ac_res="none required"
26823 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26825 rm -f conftest.$ac_objext conftest$ac_exeext
26826 if { (ac_try="$ac_link"
26827 case "(($ac_try" in
26828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26829 *) ac_try_echo=$ac_try;;
26831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26832 (eval "$ac_link") 2>conftest.er1
26834 grep -v '^ *+' conftest.er1 >conftest.err
26836 cat conftest.err >&5
26837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26838 (exit $ac_status); } && {
26839 test -z "$ac_c_werror_flag" ||
26840 test ! -s conftest.err
26841 } && test -s conftest$ac_exeext &&
26842 $as_test_x conftest$ac_exeext; then
26843 ac_cv_search_nanosleep=$ac_res
26845 echo "$as_me: failed program was:" >&5
26846 sed 's/^/| /' conftest.$ac_ext >&5
26851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26853 if test "${ac_cv_search_nanosleep+set}" = set; then
26857 if test "${ac_cv_search_nanosleep+set}" = set; then
26860 ac_cv_search_nanosleep=no
26862 rm conftest.$ac_ext
26863 LIBS=$ac_func_search_save_LIBS
26865 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26866 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26867 ac_res=$ac_cv_search_nanosleep
26868 if test "$ac_res" != no; then
26869 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26873 { echo "$as_me:$LINENO: checking for libwrap" >&5
26874 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26875 cat >conftest.$ac_ext <<_ACEOF
26878 cat confdefs.h >>conftest.$ac_ext
26879 cat >>conftest.$ac_ext <<_ACEOF
26880 /* end confdefs.h. */
26882 #include <sys/types.h>
26884 int deny_severity = 0;
26885 int allow_severity = 0;
26886 struct request_info *req;
26898 rm -f conftest.$ac_objext conftest$ac_exeext
26899 if { (ac_try="$ac_link"
26900 case "(($ac_try" in
26901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26902 *) ac_try_echo=$ac_try;;
26904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26905 (eval "$ac_link") 2>conftest.er1
26907 grep -v '^ *+' conftest.er1 >conftest.err
26909 cat conftest.err >&5
26910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26911 (exit $ac_status); } && {
26912 test -z "$ac_c_werror_flag" ||
26913 test ! -s conftest.err
26914 } && test -s conftest$ac_exeext &&
26915 $as_test_x conftest$ac_exeext; then
26917 { echo "$as_me:$LINENO: result: yes" >&5
26918 echo "${ECHO_T}yes" >&6; }
26920 cat >>confdefs.h <<\_ACEOF
26921 #define HAVE_LIBWRAP 1
26929 echo "$as_me: failed program was:" >&5
26930 sed 's/^/| /' conftest.$ac_ext >&5
26933 LIBS="$saved_LIBS -lwrap -lnsl"
26934 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26935 cat >conftest.$ac_ext <<_ACEOF
26938 cat confdefs.h >>conftest.$ac_ext
26939 cat >>conftest.$ac_ext <<_ACEOF
26940 /* end confdefs.h. */
26942 #include <sys/types.h>
26944 int deny_severity = 0;
26945 int allow_severity = 0;
26946 struct request_info *req;
26958 rm -f conftest.$ac_objext conftest$ac_exeext
26959 if { (ac_try="$ac_link"
26960 case "(($ac_try" in
26961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26962 *) ac_try_echo=$ac_try;;
26964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26965 (eval "$ac_link") 2>conftest.er1
26967 grep -v '^ *+' conftest.er1 >conftest.err
26969 cat conftest.err >&5
26970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26971 (exit $ac_status); } && {
26972 test -z "$ac_c_werror_flag" ||
26973 test ! -s conftest.err
26974 } && test -s conftest$ac_exeext &&
26975 $as_test_x conftest$ac_exeext; then
26977 { echo "$as_me:$LINENO: result: yes" >&5
26978 echo "${ECHO_T}yes" >&6; }
26980 cat >>confdefs.h <<\_ACEOF
26981 #define HAVE_LIBWRAP 1
26989 echo "$as_me: failed program was:" >&5
26990 sed 's/^/| /' conftest.$ac_ext >&5
26993 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26994 echo "$as_me: error: *** libwrap missing" >&2;}
26995 { (exit 1); exit 1; }; }
27000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27001 conftest$ac_exeext conftest.$ac_ext
27006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27007 conftest$ac_exeext conftest.$ac_ext
27014 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27015 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27017 # Check whether --with-openssl was given.
27018 if test "${with_openssl+set}" = set; then
27019 withval=$with_openssl;
27020 with_openssl_directory=${withval}
27026 if test "x$with_openssl_directory" != "xno"; then
27027 OPENSSL_LIBS="-lssl -lcrypto"
27030 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27032 # Make sure the $with_openssl_directory also makes sense
27034 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27035 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27036 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27040 saved_LIBS="${LIBS}"
27041 saved_CFLAGS="${CFLAGS}"
27042 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27043 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27045 cat >conftest.$ac_ext <<_ACEOF
27048 cat confdefs.h >>conftest.$ac_ext
27049 cat >>conftest.$ac_ext <<_ACEOF
27050 /* end confdefs.h. */
27052 #include <openssl/ssl.h>
27058 CRYPTO_set_id_callback(NULL);
27064 rm -f conftest.$ac_objext conftest$ac_exeext
27065 if { (ac_try="$ac_link"
27066 case "(($ac_try" in
27067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27068 *) ac_try_echo=$ac_try;;
27070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27071 (eval "$ac_link") 2>conftest.er1
27073 grep -v '^ *+' conftest.er1 >conftest.err
27075 cat conftest.err >&5
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); } && {
27078 test -z "$ac_c_werror_flag" ||
27079 test ! -s conftest.err
27080 } && test -s conftest$ac_exeext &&
27081 $as_test_x conftest$ac_exeext; then
27084 support_crypto="yes"
27087 echo "$as_me: failed program was:" >&5
27088 sed 's/^/| /' conftest.$ac_ext >&5
27096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27097 conftest$ac_exeext conftest.$ac_ext
27099 cat >conftest.$ac_ext <<_ACEOF
27102 cat confdefs.h >>conftest.$ac_ext
27103 cat >>conftest.$ac_ext <<_ACEOF
27104 /* end confdefs.h. */
27106 #include <openssl/evp.h>
27118 rm -f conftest.$ac_objext conftest$ac_exeext
27119 if { (ac_try="$ac_link"
27120 case "(($ac_try" in
27121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27122 *) ac_try_echo=$ac_try;;
27124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27125 (eval "$ac_link") 2>conftest.er1
27127 grep -v '^ *+' conftest.er1 >conftest.err
27129 cat conftest.err >&5
27130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27131 (exit $ac_status); } && {
27132 test -z "$ac_c_werror_flag" ||
27133 test ! -s conftest.err
27134 } && test -s conftest$ac_exeext &&
27135 $as_test_x conftest$ac_exeext; then
27137 ac_cv_openssl_sha2="yes"
27140 echo "$as_me: failed program was:" >&5
27141 sed 's/^/| /' conftest.$ac_ext >&5
27144 ac_cv_openssl_sha2="no"
27149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27150 conftest$ac_exeext conftest.$ac_ext
27152 cat >conftest.$ac_ext <<_ACEOF
27155 cat confdefs.h >>conftest.$ac_ext
27156 cat >>conftest.$ac_ext <<_ACEOF
27157 /* end confdefs.h. */
27159 #include <openssl/evp.h>
27171 rm -f conftest.$ac_objext conftest$ac_exeext
27172 if { (ac_try="$ac_link"
27173 case "(($ac_try" in
27174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175 *) ac_try_echo=$ac_try;;
27177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178 (eval "$ac_link") 2>conftest.er1
27180 grep -v '^ *+' conftest.er1 >conftest.err
27182 cat conftest.err >&5
27183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); } && {
27185 test -z "$ac_c_werror_flag" ||
27186 test ! -s conftest.err
27187 } && test -s conftest$ac_exeext &&
27188 $as_test_x conftest$ac_exeext; then
27190 ac_cv_openssl_export="no"
27193 echo "$as_me: failed program was:" >&5
27194 sed 's/^/| /' conftest.$ac_ext >&5
27197 ac_cv_openssl_export="yes"
27202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27203 conftest$ac_exeext conftest.$ac_ext
27205 LIBS="${saved_LIBS}"
27206 CFLAGS="${saved_CFLAGS}"
27208 if test "$support_tls" = "yes"; then
27210 cat >>confdefs.h <<\_ACEOF
27211 #define HAVE_OPENSSL 1
27215 cat >>confdefs.h <<\_ACEOF
27220 cat >>confdefs.h <<\_ACEOF
27221 #define HAVE_CRYPTO 1
27226 if test "$ac_cv_openssl_sha2" = "yes"; then
27228 cat >>confdefs.h <<\_ACEOF
27229 #define HAVE_SHA2 1
27234 if test "$ac_cv_openssl_export" = "yes"; then
27236 cat >>confdefs.h <<\_ACEOF
27237 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27243 support_crypto="no"
27248 if test "$support_tls" = "no"; then
27253 { echo "$as_me:$LINENO: result: $support_tls" >&5
27254 echo "${ECHO_T}$support_tls" >&6; }
27258 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27259 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27260 if test "${ac_cv_search_dlopen+set}" = set; then
27261 echo $ECHO_N "(cached) $ECHO_C" >&6
27263 ac_func_search_save_LIBS=$LIBS
27264 cat >conftest.$ac_ext <<_ACEOF
27267 cat confdefs.h >>conftest.$ac_ext
27268 cat >>conftest.$ac_ext <<_ACEOF
27269 /* end confdefs.h. */
27271 /* Override any GCC internal prototype to avoid an error.
27272 Use char because int might match the return type of a GCC
27273 builtin and then its argument prototype would still apply. */
27286 for ac_lib in '' dl; do
27287 if test -z "$ac_lib"; then
27288 ac_res="none required"
27291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27293 rm -f conftest.$ac_objext conftest$ac_exeext
27294 if { (ac_try="$ac_link"
27295 case "(($ac_try" in
27296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27297 *) ac_try_echo=$ac_try;;
27299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27300 (eval "$ac_link") 2>conftest.er1
27302 grep -v '^ *+' conftest.er1 >conftest.err
27304 cat conftest.err >&5
27305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27306 (exit $ac_status); } && {
27307 test -z "$ac_c_werror_flag" ||
27308 test ! -s conftest.err
27309 } && test -s conftest$ac_exeext &&
27310 $as_test_x conftest$ac_exeext; then
27311 ac_cv_search_dlopen=$ac_res
27313 echo "$as_me: failed program was:" >&5
27314 sed 's/^/| /' conftest.$ac_ext >&5
27319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27321 if test "${ac_cv_search_dlopen+set}" = set; then
27325 if test "${ac_cv_search_dlopen+set}" = set; then
27328 ac_cv_search_dlopen=no
27330 rm conftest.$ac_ext
27331 LIBS=$ac_func_search_save_LIBS
27333 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27334 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27335 ac_res=$ac_cv_search_dlopen
27336 if test "$ac_res" != no; then
27337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27342 working_dir=`eval echo ${prefix}/var/bacula/working`
27344 # Check whether --with-working-dir was given.
27345 if test "${with_working_dir+set}" = set; then
27346 withval=$with_working_dir;
27347 if test "x$withval" != "xno" ; then
27348 working_dir=$withval
27359 # Check whether --with-archivedir was given.
27360 if test "${with_archivedir+set}" = set; then
27361 withval=$with_archivedir;
27362 if test "x$withval" != "xno" ; then
27363 archivedir=$withval
27372 basename=`hostname`
27374 # Check whether --with-basename was given.
27375 if test "${with_basename+set}" = set; then
27376 withval=$with_basename;
27377 if test "x$withval" != "xno" ; then
27387 hostname=`uname -n | cut -d '.' -f 1`
27388 if test x${hostname} = x ; then
27389 hostname="localhost"
27392 # Check whether --with-hostname was given.
27393 if test "${with_hostname+set}" = set; then
27394 withval=$with_hostname;
27395 if test "x$withval" != "xno" ; then
27406 scriptdir=`eval echo ${sysconfdir}`
27408 # Check whether --with-scriptdir was given.
27409 if test "${with_scriptdir+set}" = set; then
27410 withval=$with_scriptdir;
27411 if test "x$withval" != "xno" ; then
27424 # Check whether --with-bsrdir was given.
27425 if test "${with_bsrdir+set}" = set; then
27426 withval=$with_bsrdir;
27427 if test "x$withval" != "xno" ; then
27439 # Check whether --with-logdir was given.
27440 if test "${with_logdir+set}" = set; then
27441 withval=$with_logdir;
27442 if test "x$withval" != "xno" ; then
27453 # ------------------------------------------
27454 # Where to place plugindir (plugin files)
27455 # ------------------------------------------
27456 plugindir=`eval echo ${libdir}`
27458 # Check whether --with-plugindir was given.
27459 if test "${with_plugindir+set}" = set; then
27460 withval=$with_plugindir;
27461 if test "x$withval" != "xno" ; then
27471 dump_email=root@localhost
27473 # Check whether --with-dump-email was given.
27474 if test "${with_dump_email+set}" = set; then
27475 withval=$with_dump_email;
27476 if test "x$withval" != "xno" ; then
27477 dump_email=$withval
27486 job_email=root@localhost
27488 # Check whether --with-job-email was given.
27489 if test "${with_job_email+set}" = set; then
27490 withval=$with_job_email;
27491 if test "x$withval" != "xno" ; then
27501 smtp_host=localhost
27503 # Check whether --with-smtp_host was given.
27504 if test "${with_smtp_host+set}" = set; then
27505 withval=$with_smtp_host;
27506 if test "x$withval" != "xno" ; then
27518 # Check whether --with-pid-dir was given.
27519 if test "${with_pid_dir+set}" = set; then
27520 withval=$with_pid_dir;
27521 if test "x$withval" != "xno" ; then
27529 cat >>confdefs.h <<_ACEOF
27530 #define _PATH_BACULA_PIDDIR "$piddir"
27535 subsysdir=/var/run/subsys
27536 if test -d /var/run/subsys; then
27537 subsysdir=/var/run/subsys
27538 elif test -d /var/lock/subsys; then
27539 subsysdir=/var/lock/subsys
27541 subsysdir=/var/run/subsys
27544 # Check whether --with-subsys-dir was given.
27545 if test "${with_subsys_dir+set}" = set; then
27546 withval=$with_subsys_dir;
27547 if test "x$withval" != "xno" ; then
27559 # Check whether --with-baseport was given.
27560 if test "${with_baseport+set}" = set; then
27561 withval=$with_baseport;
27562 if test "x$withval" != "xno" ; then
27571 dir_port=`expr $baseport`
27572 fd_port=`expr $baseport + 1`
27573 sd_port=`expr $fd_port + 1`
27581 # Check whether --with-dir-password was given.
27582 if test "${with_dir_password+set}" = set; then
27583 withval=$with_dir_password;
27584 if test "x$withval" != "xno" ; then
27585 dir_password=$withval
27592 if test "x$dir_password" = "x" ; then
27593 if test "x$OPENSSL" = "xnone" ; then
27594 key=`autoconf/randpass 33`
27596 key=`openssl rand -base64 33`
27603 # Check whether --with-fd-password was given.
27604 if test "${with_fd_password+set}" = set; then
27605 withval=$with_fd_password;
27606 if test "x$withval" != "xno" ; then
27607 fd_password=$withval
27614 if test "x$fd_password" = "x" ; then
27615 if test "x$OPENSSL" = "xnone" ; then
27616 key=`autoconf/randpass 37`
27618 key=`openssl rand -base64 33`
27625 # Check whether --with-sd-password was given.
27626 if test "${with_sd_password+set}" = set; then
27627 withval=$with_sd_password;
27628 if test "x$withval" != "xno" ; then
27629 sd_password=$withval
27636 if test "x$sd_password" = "x" ; then
27637 if test "x$OPENSSL" = "xnone" ; then
27638 key=`autoconf/randpass 41`
27640 key=`openssl rand -base64 33`
27647 # Check whether --with-mon-dir-password was given.
27648 if test "${with_mon_dir_password+set}" = set; then
27649 withval=$with_mon_dir_password;
27650 if test "x$withval" != "xno" ; then
27651 mon_dir_password=$withval
27658 if test "x$mon_dir_password" = "x" ; then
27659 if test "x$OPENSSL" = "xnone" ; then
27660 key=`autoconf/randpass 33`
27662 key=`openssl rand -base64 33`
27664 mon_dir_password=$key
27669 # Check whether --with-mon-fd-password was given.
27670 if test "${with_mon_fd_password+set}" = set; then
27671 withval=$with_mon_fd_password;
27672 if test "x$withval" != "xno" ; then
27673 mon_fd_password=$withval
27680 if test "x$mon_fd_password" = "x" ; then
27681 if test "x$OPENSSL" = "xnone" ; then
27682 key=`autoconf/randpass 37`
27684 key=`openssl rand -base64 33`
27686 mon_fd_password=$key
27691 # Check whether --with-mon-sd-password was given.
27692 if test "${with_mon_sd_password+set}" = set; then
27693 withval=$with_mon_sd_password;
27694 if test "x$withval" != "xno" ; then
27695 mon_sd_password=$withval
27702 if test "x$mon_sd_password" = "x" ; then
27703 if test "x$OPENSSL" = "xnone" ; then
27704 key=`autoconf/randpass 41`
27706 key=`openssl rand -base64 33`
27708 mon_sd_password=$key
27720 # Check whether --with-db_name was given.
27721 if test "${with_db_name+set}" = set; then
27722 withval=$with_db_name;
27723 if test "x$withval" != "x" ; then
27734 # Check whether --with-db_user was given.
27735 if test "${with_db_user+set}" = set; then
27736 withval=$with_db_user;
27737 if test "x$withval" != "x" ; then
27748 # Check whether --with-db_password was given.
27749 if test "${with_db_password+set}" = set; then
27750 withval=$with_db_password;
27751 if test "x$withval" != "x" ; then
27752 db_password=$withval
27762 # Check whether --with-db_port was given.
27763 if test "${with_db_port+set}" = set; then
27764 withval=$with_db_port;
27765 if test "x$withval" != "x" ; then
27775 # Handle users and groups for each daemon
27779 # Check whether --with-dir_user was given.
27780 if test "${with_dir_user+set}" = set; then
27781 withval=$with_dir_user;
27782 if test "x$withval" != "x" ; then
27792 # Check whether --with-dir_group was given.
27793 if test "${with_dir_group+set}" = set; then
27794 withval=$with_dir_group;
27795 if test "x$withval" != "x" ; then
27805 # Check whether --with-sd_user was given.
27806 if test "${with_sd_user+set}" = set; then
27807 withval=$with_sd_user;
27808 if test "x$withval" != "x" ; then
27818 # Check whether --with-sd_group was given.
27819 if test "${with_sd_group+set}" = set; then
27820 withval=$with_sd_group;
27821 if test "x$withval" != "x" ; then
27831 # Check whether --with-fd_user was given.
27832 if test "${with_fd_user+set}" = set; then
27833 withval=$with_fd_user;
27834 if test "x$withval" != "x" ; then
27844 # Check whether --with-fd_group was given.
27845 if test "${with_fd_group+set}" = set; then
27846 withval=$with_fd_group;
27847 if test "x$withval" != "x" ; then
27864 # Check whether --with-sbin-perm was given.
27865 if test "${with_sbin_perm+set}" = set; then
27866 withval=$with_sbin_perm;
27867 if test "x$withval" != "x" ; then
27880 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27881 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27883 # Check whether --with-postgresql was given.
27884 if test "${with_postgresql+set}" = set; then
27885 withval=$with_postgresql;
27886 if test "$withval" != "no"; then
27887 if test "$db_found" = "yes"; then
27888 { echo "$as_me:$LINENO: result: error" >&5
27889 echo "${ECHO_T}error" >&6; }
27890 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27891 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27892 { (exit 1); exit 1; }; };
27894 if test "$withval" = "yes"; then
27895 PG_CONFIG=`which pg_config`
27896 if test -n "$PG_CONFIG";then
27897 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27898 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27899 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27900 elif test -f /usr/local/include/libpq-fe.h; then
27901 POSTGRESQL_INCDIR=/usr/local/include
27902 if test -d /usr/local/lib64; then
27903 POSTGRESQL_LIBDIR=/usr/local/lib64
27905 POSTGRESQL_LIBDIR=/usr/local/lib
27907 POSTGRESQL_BINDIR=/usr/local/bin
27908 elif test -f /usr/include/libpq-fe.h; then
27909 POSTGRESQL_INCDIR=/usr/include
27910 if test -d /usr/lib64; then
27911 POSTGRESQL_LIBDIR=/usr/lib64
27913 POSTGRESQL_LIBDIR=/usr/lib
27915 POSTGRESQL_BINDIR=/usr/bin
27916 elif test -f /usr/include/pgsql/libpq-fe.h; then
27917 POSTGRESQL_INCDIR=/usr/include/pgsql
27918 if test -d /usr/lib64/pgsql; then
27919 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27921 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27923 POSTGRESQL_BINDIR=/usr/bin
27924 elif test -f /usr/include/postgresql/libpq-fe.h; then
27925 POSTGRESQL_INCDIR=/usr/include/postgresql
27926 if test -d /usr/lib64/postgresql; then
27927 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27929 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27931 POSTGRESQL_BINDIR=/usr/bin
27933 { echo "$as_me:$LINENO: result: no" >&5
27934 echo "${ECHO_T}no" >&6; }
27935 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27936 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27937 { (exit 1); exit 1; }; }
27939 elif test -f $withval/include/libpq-fe.h; then
27940 POSTGRESQL_INCDIR=$withval/include
27941 POSTGRESQL_LIBDIR=$withval/lib
27942 POSTGRESQL_BINDIR=$withval/bin
27943 elif test -f $withval/include/postgresql/libpq-fe.h; then
27944 POSTGRESQL_INCDIR=$withval/include/postgresql
27945 if test -d $withval/lib64; then
27946 POSTGRESQL_LIBDIR=$withval/lib64
27948 POSTGRESQL_LIBDIR=$withval/lib
27950 POSTGRESQL_BINDIR=$withval/bin
27952 { echo "$as_me:$LINENO: result: no" >&5
27953 echo "${ECHO_T}no" >&6; }
27954 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27955 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27956 { (exit 1); exit 1; }; }
27958 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27959 { echo "$as_me:$LINENO: checking for crypt" >&5
27960 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27961 if test "${ac_cv_func_crypt+set}" = set; then
27962 echo $ECHO_N "(cached) $ECHO_C" >&6
27964 cat >conftest.$ac_ext <<_ACEOF
27967 cat confdefs.h >>conftest.$ac_ext
27968 cat >>conftest.$ac_ext <<_ACEOF
27969 /* end confdefs.h. */
27970 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27971 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27972 #define crypt innocuous_crypt
27974 /* System header to define __stub macros and hopefully few prototypes,
27975 which can conflict with char crypt (); below.
27976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27977 <limits.h> exists even on freestanding compilers. */
27980 # include <limits.h>
27982 # include <assert.h>
27987 /* Override any GCC internal prototype to avoid an error.
27988 Use char because int might match the return type of a GCC
27989 builtin and then its argument prototype would still apply. */
27994 /* The GNU C library defines this for functions which it implements
27995 to always fail with ENOSYS. Some functions are actually named
27996 something starting with __ and the normal name is an alias. */
27997 #if defined __stub_crypt || defined __stub___crypt
28009 rm -f conftest.$ac_objext conftest$ac_exeext
28010 if { (ac_try="$ac_link"
28011 case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016 (eval "$ac_link") 2>conftest.er1
28018 grep -v '^ *+' conftest.er1 >conftest.err
28020 cat conftest.err >&5
28021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022 (exit $ac_status); } && {
28023 test -z "$ac_c_werror_flag" ||
28024 test ! -s conftest.err
28025 } && test -s conftest$ac_exeext &&
28026 $as_test_x conftest$ac_exeext; then
28027 ac_cv_func_crypt=yes
28029 echo "$as_me: failed program was:" >&5
28030 sed 's/^/| /' conftest.$ac_ext >&5
28032 ac_cv_func_crypt=no
28035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28036 conftest$ac_exeext conftest.$ac_ext
28038 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28039 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28040 if test $ac_cv_func_crypt = yes; then
28043 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28044 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28045 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28046 echo $ECHO_N "(cached) $ECHO_C" >&6
28048 ac_check_lib_save_LIBS=$LIBS
28049 LIBS="-lcrypt $LIBS"
28050 cat >conftest.$ac_ext <<_ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h. */
28057 /* Override any GCC internal prototype to avoid an error.
28058 Use char because int might match the return type of a GCC
28059 builtin and then its argument prototype would still apply. */
28072 rm -f conftest.$ac_objext conftest$ac_exeext
28073 if { (ac_try="$ac_link"
28074 case "(($ac_try" in
28075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28076 *) ac_try_echo=$ac_try;;
28078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28079 (eval "$ac_link") 2>conftest.er1
28081 grep -v '^ *+' conftest.er1 >conftest.err
28083 cat conftest.err >&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); } && {
28086 test -z "$ac_c_werror_flag" ||
28087 test ! -s conftest.err
28088 } && test -s conftest$ac_exeext &&
28089 $as_test_x conftest$ac_exeext; then
28090 ac_cv_lib_crypt_crypt=yes
28092 echo "$as_me: failed program was:" >&5
28093 sed 's/^/| /' conftest.$ac_ext >&5
28095 ac_cv_lib_crypt_crypt=no
28098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28099 conftest$ac_exeext conftest.$ac_ext
28100 LIBS=$ac_check_lib_save_LIBS
28102 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28103 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28104 if test $ac_cv_lib_crypt_crypt = yes; then
28105 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28110 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28111 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28112 SQL_BINDIR=$POSTGRESQL_BINDIR
28113 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28115 cat >>confdefs.h <<\_ACEOF
28116 #define HAVE_POSTGRESQL 1
28119 { echo "$as_me:$LINENO: result: yes" >&5
28120 echo "${ECHO_T}yes" >&6; }
28122 support_postgresql=yes
28126 { echo "$as_me:$LINENO: result: no" >&5
28127 echo "${ECHO_T}no" >&6; }
28132 { echo "$as_me:$LINENO: result: no" >&5
28133 echo "${ECHO_T}no" >&6; }
28145 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28146 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28148 # Check whether --with-mysql was given.
28149 if test "${with_mysql+set}" = set; then
28150 withval=$with_mysql;
28151 if test "$withval" != "no"; then
28152 if test "$withval" = "yes"; then
28153 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28154 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28155 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28156 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28157 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28159 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28161 MYSQL_BINDIR=/usr/local/mysql/bin
28162 elif test -f /usr/include/mysql/mysql.h; then
28163 MYSQL_INCDIR=/usr/include/mysql
28164 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28165 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28166 MYSQL_LIBDIR=/usr/lib64/mysql
28167 elif test -f /usr/lib64/libmysqlclient_r.a \
28168 -o -f /usr/lib64/libmysqlclient_r.so; then
28169 MYSQL_LIBDIR=/usr/lib64
28170 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28171 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28172 MYSQL_LIBDIR=/usr/lib/mysql
28174 MYSQL_LIBDIR=/usr/lib
28176 MYSQL_BINDIR=/usr/bin
28177 elif test -f /usr/include/mysql.h; then
28178 MYSQL_INCDIR=/usr/include
28179 if test -f /usr/lib64/libmysqlclient_r.a \
28180 -o -f /usr/lib64/libmysqlclient_r.so; then
28181 MYSQL_LIBDIR=/usr/lib64
28183 MYSQL_LIBDIR=/usr/lib
28185 MYSQL_BINDIR=/usr/bin
28186 elif test -f /usr/local/include/mysql/mysql.h; then
28187 MYSQL_INCDIR=/usr/local/include/mysql
28188 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28189 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28190 MYSQL_LIBDIR=/usr/local/lib64/mysql
28192 MYSQL_LIBDIR=/usr/local/lib/mysql
28194 MYSQL_BINDIR=/usr/local/bin
28195 elif test -f /usr/local/include/mysql.h; then
28196 MYSQL_INCDIR=/usr/local/include
28197 if test -f /usr/local/lib64/libmysqlclient_r.a \
28198 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28199 MYSQL_LIBDIR=/usr/local/lib64
28201 MYSQL_LIBDIR=/usr/local/lib
28203 MYSQL_BINDIR=/usr/local/bin
28205 { echo "$as_me:$LINENO: result: no" >&5
28206 echo "${ECHO_T}no" >&6; }
28207 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28208 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28209 { (exit 1); exit 1; }; }
28212 if test -f $withval/include/mysql/mysql.h; then
28213 MYSQL_INCDIR=$withval/include/mysql
28214 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28215 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28216 MYSQL_LIBDIR=$withval/lib64/mysql
28217 elif test -f $withval/lib64/libmysqlclient_r.a \
28218 -o -f $withval/lib64/libmysqlclient_r.so; then
28219 MYSQL_LIBDIR=$withval/lib64
28220 elif test -f $withval/lib/libmysqlclient_r.a \
28221 -o -f $withval/lib/libmysqlclient_r.so; then
28222 MYSQL_LIBDIR=$withval/lib
28224 MYSQL_LIBDIR=$withval/lib/mysql
28226 MYSQL_BINDIR=$withval/bin
28227 elif test -f $withval/include/mysql.h; then
28228 MYSQL_INCDIR=$withval/include
28229 if test -f $withval/lib64/libmysqlclient_r.a \
28230 -o -f $withval/lib64/libmysqlclient_r.so; then
28231 MYSQL_LIBDIR=$withval/lib64
28233 MYSQL_LIBDIR=$withval/lib
28235 MYSQL_BINDIR=$withval/bin
28237 { echo "$as_me:$LINENO: result: no" >&5
28238 echo "${ECHO_T}no" >&6; }
28239 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28240 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28241 { (exit 1); exit 1; }; }
28244 SQL_INCLUDE=-I$MYSQL_INCDIR
28245 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28246 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28247 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28248 cat >>confdefs.h <<\_ACEOF
28249 #define HAVE_THREAD_SAFE_MYSQL 1
28253 SQL_BINDIR=$MYSQL_BINDIR
28254 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28256 cat >>confdefs.h <<\_ACEOF
28257 #define HAVE_MYSQL 1
28260 { echo "$as_me:$LINENO: result: yes" >&5
28261 echo "${ECHO_T}yes" >&6; }
28268 { echo "$as_me:$LINENO: result: no" >&5
28269 echo "${ECHO_T}no" >&6; }
28277 # Check whether --with-embedded-mysql was given.
28278 if test "${with_embedded_mysql+set}" = set; then
28279 withval=$with_embedded_mysql;
28280 if test "$withval" != "no"; then
28281 if test "$withval" = "yes"; then
28282 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28283 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28284 if test -d /usr/local/mysql/lib64/mysql; then
28285 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28287 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28289 MYSQL_BINDIR=/usr/local/mysql/bin
28290 elif test -f /usr/include/mysql/mysql.h; then
28291 MYSQL_INCDIR=/usr/include/mysql
28292 if test -d /usr/lib64/mysql; then
28293 MYSQL_LIBDIR=/usr/lib64/mysql
28295 MYSQL_LIBDIR=/usr/lib/mysql
28297 MYSQL_BINDIR=/usr/bin
28298 elif test -f /usr/include/mysql.h; then
28299 MYSQL_INCDIR=/usr/include
28300 if test -d /usr/lib64; then
28301 MYSQL_LIBDIR=/usr/lib64
28303 MYSQL_LIBDIR=/usr/lib
28305 MYSQL_BINDIR=/usr/bin
28306 elif test -f /usr/local/include/mysql/mysql.h; then
28307 MYSQL_INCDIR=/usr/local/include/mysql
28308 if test -d /usr/local/lib64/mysql; then
28309 MYSQL_LIBDIR=/usr/local/lib64/mysql
28311 MYSQL_LIBDIR=/usr/local/lib/mysql
28313 MYSQL_BINDIR=/usr/local/bin
28314 elif test -f /usr/local/include/mysql.h; then
28315 MYSQL_INCDIR=/usr/local/include
28316 if test -d /usr/local/lib64; then
28317 MYSQL_LIBDIR=/usr/local/lib64
28319 MYSQL_LIBDIR=/usr/local/lib
28321 MYSQL_BINDIR=/usr/local/bin
28323 { echo "$as_me:$LINENO: result: no" >&5
28324 echo "${ECHO_T}no" >&6; }
28325 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28326 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28327 { (exit 1); exit 1; }; }
28330 if test -f $withval/include/mysql/mysql.h; then
28331 MYSQL_INCDIR=$withval/include/mysql
28332 if test -d $withval/lib64/mysql; then
28333 MYSQL_LIBDIR=$withval/lib64/mysql
28335 MYSQL_LIBDIR=$withval/lib/mysql
28337 MYSQL_BINDIR=$withval/bin
28338 elif test -f $withval/include/mysql.h; then
28339 MYSQL_INCDIR=$withval/include
28340 if test -d $withval/lib64; then
28341 MYSQL_LIBDIR=$withval/lib64
28343 MYSQL_LIBDIR=$withval/lib
28345 MYSQL_BINDIR=$withval/bin
28347 { echo "$as_me:$LINENO: result: no" >&5
28348 echo "${ECHO_T}no" >&6; }
28349 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28350 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28351 { (exit 1); exit 1; }; }
28354 SQL_INCLUDE=-I$MYSQL_INCDIR
28355 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28356 SQL_BINDIR=$MYSQL_BINDIR
28357 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28359 cat >>confdefs.h <<\_ACEOF
28360 #define HAVE_MYSQL 1
28363 cat >>confdefs.h <<\_ACEOF
28364 #define HAVE_EMBEDDED_MYSQL 1
28367 { echo "$as_me:$LINENO: result: yes" >&5
28368 echo "${ECHO_T}yes" >&6; }
28375 { echo "$as_me:$LINENO: result: no" >&5
28376 echo "${ECHO_T}no" >&6; }
28392 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28393 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28395 # Check whether --with-sqlite3 was given.
28396 if test "${with_sqlite3+set}" = set; then
28397 withval=$with_sqlite3;
28398 if test "$withval" != "no"; then
28399 if test "$withval" = "yes"; then
28400 if test -f /usr/local/include/sqlite3.h; then
28401 SQLITE_INCDIR=/usr/local/include
28402 if test -d /usr/local/lib64; then
28403 SQLITE_LIBDIR=/usr/local/lib64
28405 SQLITE_LIBDIR=/usr/local/lib
28407 SQLITE_BINDIR=/usr/local/bin
28408 elif test -f /usr/include/sqlite3.h; then
28409 SQLITE_INCDIR=/usr/include
28410 if test -d /usr/lib64; then
28411 SQLITE_LIBDIR=/usr/lib64
28413 SQLITE_LIBDIR=/usr/lib
28415 SQLITE_BINDIR=/usr/bin
28416 elif test -f $prefix/include/sqlite3.h; then
28417 SQLITE_INCDIR=$prefix/include
28418 if test -d $prefix/lib64; then
28419 SQLITE_LIBDIR=$prefix/lib64
28421 SQLITE_LIBDIR=$prefix/lib
28423 SQLITE_BINDIR=$prefix/bin
28425 { echo "$as_me:$LINENO: result: no" >&5
28426 echo "${ECHO_T}no" >&6; }
28427 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28428 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28429 { (exit 1); exit 1; }; }
28432 if test -f $withval/sqlite3.h; then
28433 SQLITE_INCDIR=$withval
28434 SQLITE_LIBDIR=$withval
28435 SQLITE_BINDIR=$withval
28436 elif test -f $withval/include/sqlite3.h; then
28437 SQLITE_INCDIR=$withval/include
28438 if test -d $withval/lib64; then
28439 SQLITE_LIBDIR=$withval/lib64
28441 SQLITE_LIBDIR=$withval/lib
28443 SQLITE_BINDIR=$withval/bin
28445 { echo "$as_me:$LINENO: result: no" >&5
28446 echo "${ECHO_T}no" >&6; }
28447 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28448 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28449 { (exit 1); exit 1; }; }
28452 SQL_INCLUDE=-I$SQLITE_INCDIR
28453 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28454 SQL_BINDIR=$SQLITE_BINDIR
28455 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28457 cat >>confdefs.h <<\_ACEOF
28458 #define HAVE_SQLITE3 1
28461 { echo "$as_me:$LINENO: result: yes" >&5
28462 echo "${ECHO_T}yes" >&6; }
28464 support_sqlite3=yes
28469 { echo "$as_me:$LINENO: result: no" >&5
28470 echo "${ECHO_T}no" >&6; }
28475 { echo "$as_me:$LINENO: result: no" >&5
28476 echo "${ECHO_T}no" >&6; }
28488 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28489 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28491 # Check whether --with-sqlite was given.
28492 if test "${with_sqlite+set}" = set; then
28493 withval=$with_sqlite;
28494 if test "$withval" != "no"; then
28495 if test "$withval" = "yes"; then
28496 if test -f /usr/local/include/sqlite.h; then
28497 SQLITE_INCDIR=/usr/local/include
28498 if test -d /usr/local/lib64; then
28499 SQLITE_LIBDIR=/usr/local/lib64
28501 SQLITE_LIBDIR=/usr/local/lib
28503 SQLITE_BINDIR=/usr/local/bin
28504 elif test -f /usr/include/sqlite.h; then
28505 SQLITE_INCDIR=/usr/include
28506 if test -d /usr/lib64; then
28507 SQLITE_LIBDIR=/usr/lib64
28509 SQLITE_LIBDIR=/usr/lib
28511 SQLITE_BINDIR=/usr/bin
28512 elif test -f $prefix/include/sqlite.h; then
28513 SQLITE_INCDIR=$prefix/include
28514 if test -d $prefix/lib64; then
28515 SQLITE_LIBDIR=$prefix/lib64
28517 SQLITE_LIBDIR=$prefix/lib
28519 SQLITE_BINDIR=$prefix/bin
28521 { echo "$as_me:$LINENO: result: no" >&5
28522 echo "${ECHO_T}no" >&6; }
28523 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28524 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28525 { (exit 1); exit 1; }; }
28528 if test -f $withval/sqlite.h; then
28529 SQLITE_INCDIR=$withval
28530 SQLITE_LIBDIR=$withval
28531 SQLITE_BINDIR=$withval
28532 elif test -f $withval/include/sqlite.h; then
28533 SQLITE_INCDIR=$withval/include
28534 if test -d $withval/lib64; then
28535 SQLITE_LIBDIR=$withval/lib64
28537 SQLITE_LIBDIR=$withval/lib
28539 SQLITE_BINDIR=$withval/bin
28541 { echo "$as_me:$LINENO: result: no" >&5
28542 echo "${ECHO_T}no" >&6; }
28543 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28544 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28545 { (exit 1); exit 1; }; }
28548 SQL_INCLUDE=-I$SQLITE_INCDIR
28549 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28550 SQL_BINDIR=$SQLITE_BINDIR
28551 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28553 cat >>confdefs.h <<\_ACEOF
28554 #define HAVE_SQLITE 1
28557 { echo "$as_me:$LINENO: result: yes" >&5
28558 echo "${ECHO_T}yes" >&6; }
28565 { echo "$as_me:$LINENO: result: no" >&5
28566 echo "${ECHO_T}no" >&6; }
28571 { echo "$as_me:$LINENO: result: no" >&5
28572 echo "${ECHO_T}no" >&6; }
28584 { echo "$as_me:$LINENO: checking for DBI support" >&5
28585 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28587 # Check whether --with-dbi was given.
28588 if test "${with_dbi+set}" = set; then
28590 if test "$withval" != "no"; then
28591 if test "$withval" = "yes"; then
28592 if test -f /usr/local/include/dbi/dbi.h; then
28593 DBI_INCDIR=/usr/local/dbi/include
28594 if test -d /usr/local/lib64; then
28595 DBI_LIBDIR=/usr/local/lib64
28597 DBI_LIBDIR=/usr/local/lib
28599 DBI_BINDIR=/usr/local/bin
28600 elif test -f /usr/include/dbi/dbi.h; then
28601 DBI_INCDIR=/usr/include
28602 if test -d /usr/lib64; then
28603 DBI_LIBDIR=/usr/lib64
28605 DBI_LIBDIR=/usr/lib
28607 DBI_BINDIR=/usr/bin
28608 elif test -f $prefix/include/dbi/dbi.h; then
28609 DBI_INCDIR=$prefix/include
28610 if test -d $prefix/lib64; then
28611 DBI_LIBDIR=$prefix/lib64
28613 DBI_LIBDIR=$prefix/lib
28615 DBI_BINDIR=$prefix/bin
28617 { echo "$as_me:$LINENO: result: no" >&5
28618 echo "${ECHO_T}no" >&6; }
28619 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28620 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28621 { (exit 1); exit 1; }; }
28623 if test -d /usr/local/lib/dbd; then
28624 DRIVERDIR=/usr/local/lib/dbd
28625 if test -d /usr/local/lib64/dbd; then
28626 DRIVERDIR=/usr/local/lib64/dbd
28628 DRIVERDIR=/usr/local/lib/dbd
28630 elif test -d /usr/lib/dbd; then
28631 DRIVERDIR=/usr/lib/dbd
28632 if test -d /usr/lib64/dbd; then
28633 DRIVERDIR=/usr/lib64/dbd
28635 DRIVERDIR=/usr/lib/dbd
28637 elif test -d $prefix/lib/dbd; then
28638 if test -d $prefix/lib64/dbd; then
28639 DRIVERDIR=$prefix/lib64/dbd
28641 DRIVERDIR=$prefix/lib/dbd
28644 { echo "$as_me:$LINENO: result: no" >&5
28645 echo "${ECHO_T}no" >&6; }
28646 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28647 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28648 { (exit 1); exit 1; }; }
28651 if test -f $withval/dbi.h; then
28652 DBI_INCDIR=$withval
28653 DBI_LIBDIR=$withval
28654 DBI_BINDIR=$withval
28655 elif test -f $withval/include/dbi/dbi.h; then
28656 DBI_INCDIR=$withval/include
28657 if test -d $withval/lib64; then
28658 DBI_LIBDIR=$withval/lib64
28660 DBI_LIBDIR=$withval/lib
28662 DBI_BINDIR=$withval/bin
28664 { echo "$as_me:$LINENO: result: no" >&5
28665 echo "${ECHO_T}no" >&6; }
28666 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28667 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28668 { (exit 1); exit 1; }; }
28670 if test -d $withval/dbd; then
28671 DRIVERDIR=$withval/dbd
28672 elif test -d $withval/lib/; then
28673 if test -d $withval/lib64/dbd; then
28674 DRIVERDIR=$withval/lib64/dbd
28676 DRIVERDIR=$withval/lib/dbd
28679 { echo "$as_me:$LINENO: result: no" >&5
28680 echo "${ECHO_T}no" >&6; }
28681 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28682 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28683 { (exit 1); exit 1; }; }
28686 SQL_INCLUDE=-I$DBI_INCDIR
28687 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28688 SQL_BINDIR=$DBI_BINDIR
28689 SQL_LIB=$DBI_LIBDIR/libdbi.a
28690 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28693 cat >>confdefs.h <<\_ACEOF
28697 { echo "$as_me:$LINENO: result: yes" >&5
28698 echo "${ECHO_T}yes" >&6; }
28706 { echo "$as_me:$LINENO: result: no" >&5
28707 echo "${ECHO_T}no" >&6; }
28712 { echo "$as_me:$LINENO: result: no" >&5
28713 echo "${ECHO_T}no" >&6; }
28728 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28729 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28731 # Check whether --with-dbi-driver was given.
28732 if test "${with_dbi_driver+set}" = set; then
28733 withval=$with_dbi_driver;
28734 if test "$withval" != "no"; then
28738 if test -f /usr/local/mysql/bin/mysql; then
28739 SQL_BINDIR=/usr/local/mysql/bin
28740 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28741 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28742 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28744 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28746 elif test -f /usr/bin/mysql; then
28747 SQL_BINDIR=/usr/bin
28748 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28749 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28750 SQL_LIBDIR=/usr/lib64/mysql
28751 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28752 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28753 SQL_LIBDIR=/usr/lib/mysql
28755 SQL_LIBDIR=/usr/lib
28757 elif test -f /usr/local/bin/mysql; then
28758 SQL_BINDIR=/usr/local/bin
28759 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28760 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28761 SQL_LIBDIR=/usr/local/lib64/mysql
28762 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28763 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28764 SQL_LIBDIR=/usr/local/lib/mysql
28766 SQL_LIBDIR=/usr/local/lib
28768 elif test -f $withval/bin/mysql; then
28769 SQL_BINDIR=$withval/bin
28770 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28771 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28772 SQL_LIBDIR=$withval/lib64/mysql
28773 elif test -f $withval/lib64/libmysqlclient_r.a \
28774 -o -f $withval/lib64/libmysqlclient_r.so; then
28775 SQL_LIBDIR=$withval/lib64
28776 elif test -f $withval/lib/libmysqlclient_r.a \
28777 -o -f $withval/lib/libmysqlclient_r.so; then
28778 SQL_LIBDIR=$withval/lib/
28780 SQL_LIBDIR=$withval/lib/mysql
28783 { echo "$as_me:$LINENO: result: no" >&5
28784 echo "${ECHO_T}no" >&6; }
28785 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28786 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28787 { (exit 1); exit 1; }; }
28789 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28790 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28792 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28796 db_prog="postgresql"
28797 PG_CONFIG=`which pg_config`
28798 if test -n "$PG_CONFIG"; then
28799 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28800 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28801 elif test -f /usr/local/bin/psql; then
28802 SQL_BINDIR=/usr/local/bin
28803 if test -d /usr/local/lib64; then
28804 SQL_LIBDIR=/usr/local/lib64
28806 SQL_LIBDIR=/usr/local/lib
28808 elif test -f /usr/bin/psql; then
28809 SQL_BINDIR=/usr/local/bin
28810 if test -d /usr/lib64/postgresql; then
28811 SQL_LIBDIR=/usr/lib64/postgresql
28812 elif test -d /usr/lib/postgresql; then
28813 SQL_LIBDIR=/usr/lib/postgresql
28814 elif test -d /usr/lib64; then
28815 SQL_LIBDIR=/usr/lib64
28817 SQL_LIBDIR=/usr/lib
28819 elif test -f $withval/bin/psql; then
28820 SQL_BINDIR=$withval/bin
28821 if test -d $withval/lib64; then
28822 SQL_LIBDIR=$withval/lib64
28824 SQL_LIBDIR=$withval/lib
28827 { echo "$as_me:$LINENO: result: no" >&5
28828 echo "${ECHO_T}no" >&6; }
28829 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28830 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28831 { (exit 1); exit 1; }; }
28833 if test -f $SQL_LIBDIR/libpq.so; then
28834 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28836 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28841 if test -f /usr/local/bin/sqlite; then
28842 SQL_BINDIR=/usr/local/bin
28843 if test -d /usr/local/lib64; then
28844 SQL_LIBDIR=/usr/local/lib64
28846 SQL_LIBDIR=/usr/local/lib
28848 elif test -f /usr/bin/sqlite; then
28849 SQL_BINDIR=/usr/bin
28850 if test -d /usr/lib64; then
28851 SQL_LIBDIR=/usr/lib64
28853 SQL_LIBDIR=/usr/lib
28855 elif test -f $withval/bin/sqlite; then
28856 SQL_BINDIR=$withval/bin
28857 if test -d $withval/lib64; then
28858 SQL_LIBDIR=$withval/lib64
28860 SQL_LIBDIR=$withval/lib
28863 { echo "$as_me:$LINENO: result: no" >&5
28864 echo "${ECHO_T}no" >&6; }
28865 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28866 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28867 { (exit 1); exit 1; }; }
28869 if test -f $SQL_LIBDIR/libsqlite.so; then
28870 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28872 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28877 if test -f /usr/local/bin/sqlite3; then
28878 SQL_BINDIR=/usr/local/bin
28879 if test -d /usr/local/lib64; then
28880 SQL_LIBDIR=/usr/local/lib64
28882 SQL_LIBDIR=/usr/local/lib
28884 elif test -f /usr/bin/sqlite3; then
28885 SQL_BINDIR=/usr/bin
28886 if test -d /usr/lib64; then
28887 SQL_LIBDIR=/usr/lib64
28889 SQL_LIBDIR=/usr/lib
28891 elif test -f $withval/bin/sqlite3; then
28892 SQL_BINDIR=$withval/bin
28893 if test -d $withval/lib64; then
28894 SQL_LIBDIR=$withval/lib64
28896 SQL_LIBDIR=$withval/lib
28899 { echo "$as_me:$LINENO: result: no" >&5
28900 echo "${ECHO_T}no" >&6; }
28901 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28902 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28903 { (exit 1); exit 1; }; }
28905 if test -f $SQL_LIBDIR/libsqlite3.so; then
28906 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28908 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28912 { echo "$as_me:$LINENO: result: no" >&5
28913 echo "${ECHO_T}no" >&6; }
28914 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28915 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28916 { (exit 1); exit 1; }; }
28920 { echo "$as_me:$LINENO: result: yes" >&5
28921 echo "${ECHO_T}yes" >&6; }
28924 { echo "$as_me:$LINENO: result: no" >&5
28925 echo "${ECHO_T}no" >&6; }
28930 { echo "$as_me:$LINENO: result: no" >&5
28931 echo "${ECHO_T}no" >&6; }
28944 support_batch_insert=no
28945 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28947 if test $pkg = 0; then
28948 support_batch_insert=yes
28949 # Check whether --enable-batch-insert was given.
28950 if test "${enable_batch_insert+set}" = set; then
28951 enableval=$enable_batch_insert;
28952 if test x$enableval = xno; then
28953 support_batch_insert=no
28955 support_batch_insert=yes
28963 if test x$DB_TYPE = xpostgresql; then
28964 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28966 if test $pkg != 0; then
28967 support_batch_insert=no
28971 if test x$DB_TYPE = xdbi; then
28975 if test $DB_PROG = postgresql; then
28976 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28980 if test $DB_PROG = mysql; then
28981 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28985 if test $DB_PROG = sqlite3; then
28986 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28990 if test $pkg = 0; then
28991 # Check whether --enable-batch-insert was given.
28992 if test "${enable_batch_insert+set}" = set; then
28993 enableval=$enable_batch_insert;
28994 if test x$enableval = xno; then
28995 support_batch_insert=no
28997 support_batch_insert=yes
29010 if test $support_batch_insert = yes ; then
29012 cat >>confdefs.h <<\_ACEOF
29013 #define HAVE_BATCH_FILE_INSERT 1
29018 cat >>confdefs.h <<\_ACEOF
29019 #define PROTOTYPES 1
29023 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29024 if test -z "$CCOPTS"; then
29025 CCOPTS='-g -O2 -Wall'
29032 largefile_support="no"
29034 # Check whether --enable-largefile was given.
29035 if test "${enable_largefile+set}" = set; then
29036 enableval=$enable_largefile;
29039 if test "$enable_largefile" != no; then
29040 if test -n "$ac_tool_prefix"; then
29041 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29042 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29045 if test "${ac_cv_prog_GETCONF+set}" = set; then
29046 echo $ECHO_N "(cached) $ECHO_C" >&6
29048 if test -n "$GETCONF"; then
29049 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29052 for as_dir in $PATH
29055 test -z "$as_dir" && as_dir=.
29056 for ac_exec_ext in '' $ac_executable_extensions; do
29057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29058 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29068 GETCONF=$ac_cv_prog_GETCONF
29069 if test -n "$GETCONF"; then
29070 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29071 echo "${ECHO_T}$GETCONF" >&6; }
29073 { echo "$as_me:$LINENO: result: no" >&5
29074 echo "${ECHO_T}no" >&6; }
29079 if test -z "$ac_cv_prog_GETCONF"; then
29080 ac_ct_GETCONF=$GETCONF
29081 # Extract the first word of "getconf", so it can be a program name with args.
29082 set dummy getconf; ac_word=$2
29083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29085 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29086 echo $ECHO_N "(cached) $ECHO_C" >&6
29088 if test -n "$ac_ct_GETCONF"; then
29089 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29092 for as_dir in $PATH
29095 test -z "$as_dir" && as_dir=.
29096 for ac_exec_ext in '' $ac_executable_extensions; do
29097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29098 ac_cv_prog_ac_ct_GETCONF="getconf"
29099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29108 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29109 if test -n "$ac_ct_GETCONF"; then
29110 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29111 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29113 { echo "$as_me:$LINENO: result: no" >&5
29114 echo "${ECHO_T}no" >&6; }
29117 if test "x$ac_ct_GETCONF" = x; then
29120 case $cross_compiling:$ac_tool_warned in
29122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29123 whose name does not start with the host triplet. If you think this
29124 configuration is useful to you, please write to autoconf@gnu.org." >&5
29125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29126 whose name does not start with the host triplet. If you think this
29127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29128 ac_tool_warned=yes ;;
29130 GETCONF=$ac_ct_GETCONF
29133 GETCONF="$ac_cv_prog_GETCONF"
29136 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29137 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29138 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29139 echo $ECHO_N "(cached) $ECHO_C" >&6
29141 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29142 ac_cv_sys_largefile_CFLAGS=no
29144 # IRIX 6.2 and later require cc -n32.
29145 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29146 if test "$GCC" != yes; then
29147 ac_cv_sys_largefile_CFLAGS=-n32
29150 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29151 cat >conftest.$ac_ext <<_ACEOF
29154 cat confdefs.h >>conftest.$ac_ext
29155 cat >>conftest.$ac_ext <<_ACEOF
29156 /* end confdefs.h. */
29166 rm -f conftest.$ac_objext conftest$ac_exeext
29167 if { (ac_try="$ac_link"
29168 case "(($ac_try" in
29169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29170 *) ac_try_echo=$ac_try;;
29172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173 (eval "$ac_link") 2>conftest.er1
29175 grep -v '^ *+' conftest.er1 >conftest.err
29177 cat conftest.err >&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); } && {
29180 test -z "$ac_c_werror_flag" ||
29181 test ! -s conftest.err
29182 } && test -s conftest$ac_exeext &&
29183 $as_test_x conftest$ac_exeext; then
29186 echo "$as_me: failed program was:" >&5
29187 sed 's/^/| /' conftest.$ac_ext >&5
29189 ac_cv_sys_largefile_CFLAGS=no
29192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29193 conftest$ac_exeext conftest.$ac_ext
29198 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29199 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29200 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29201 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29202 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29203 echo $ECHO_N "(cached) $ECHO_C" >&6
29205 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29206 ac_cv_sys_largefile_LDFLAGS=no
29210 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29211 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29212 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29213 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29214 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29215 echo $ECHO_N "(cached) $ECHO_C" >&6
29217 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29218 ac_cv_sys_largefile_LIBS=no
29222 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29223 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29225 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29228 -D_FILE_OFFSET_BITS=*) ;;
29229 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29230 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29235 case "$CPPFLAGS" in
29236 '') CPPFLAGS="$ac_flag" ;;
29237 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29245 '') CFLAGS="$ac_flag" ;;
29246 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29251 case "$ac_cv_sys_largefile_LDFLAGS" in
29255 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29256 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29259 case "$ac_cv_sys_largefile_LIBS" in
29263 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29264 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29267 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29268 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29269 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29270 echo $ECHO_N "(cached) $ECHO_C" >&6
29272 ac_cv_sys_file_offset_bits=no
29273 ac_cv_sys_file_offset_bits=64
29274 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29276 -D_FILE_OFFSET_BITS)
29277 ac_cv_sys_file_offset_bits=1 ;;
29278 -D_FILE_OFFSET_BITS=*)
29279 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29284 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29285 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29286 if test "$ac_cv_sys_file_offset_bits" != no; then
29288 cat >>confdefs.h <<_ACEOF
29289 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29293 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29294 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29295 if test "${ac_cv_sys_largefile_source+set}" = set; then
29296 echo $ECHO_N "(cached) $ECHO_C" >&6
29298 ac_cv_sys_largefile_source=no
29299 ac_cv_sys_largefile_source=1
29300 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29302 -D_LARGEFILE_SOURCE)
29303 ac_cv_sys_largefile_source=1 ;;
29304 -D_LARGEFILE_SOURCE=*)
29305 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29310 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29311 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29312 if test "$ac_cv_sys_largefile_source" != no; then
29314 cat >>confdefs.h <<_ACEOF
29315 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29319 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29320 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29321 if test "${ac_cv_sys_large_files+set}" = set; then
29322 echo $ECHO_N "(cached) $ECHO_C" >&6
29324 ac_cv_sys_large_files=no
29325 ac_cv_sys_large_files=1
29326 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29329 ac_cv_sys_large_files=1 ;;
29331 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29336 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29337 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29338 if test "$ac_cv_sys_large_files" != no; then
29340 cat >>confdefs.h <<_ACEOF
29341 #define _LARGE_FILES $ac_cv_sys_large_files
29348 { echo "$as_me:$LINENO: checking for X" >&5
29349 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29352 # Check whether --with-x was given.
29353 if test "${with_x+set}" = set; then
29357 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29358 if test "x$with_x" = xno; then
29359 # The user explicitly disabled X.
29362 case $x_includes,$x_libraries in #(
29363 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29364 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29365 { (exit 1); exit 1; }; };; #(
29366 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29367 echo $ECHO_N "(cached) $ECHO_C" >&6
29369 # One or both of the vars are not set, and there is no cached value.
29370 ac_x_includes=no ac_x_libraries=no
29371 rm -f -r conftest.dir
29372 if mkdir conftest.dir; then
29374 cat >Imakefile <<'_ACEOF'
29376 @echo incroot='${INCROOT}'
29378 @echo usrlibdir='${USRLIBDIR}'
29380 @echo libdir='${LIBDIR}'
29382 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29383 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29384 for ac_var in incroot usrlibdir libdir; do
29385 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29387 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29388 for ac_extension in a so sl; do
29389 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29390 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29391 ac_im_usrlibdir=$ac_im_libdir; break
29394 # Screen out bogus values from the imake configuration. They are
29395 # bogus both because they are the default anyway, and because
29396 # using them would break gcc on systems where it needs fixed includes.
29397 case $ac_im_incroot in
29398 /usr/include) ac_x_includes= ;;
29399 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29401 case $ac_im_usrlibdir in
29402 /usr/lib | /lib) ;;
29403 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29407 rm -f -r conftest.dir
29410 # Standard set of common directories for X headers.
29411 # Check X11 before X11Rn because it is often a symlink to the current release.
29423 /usr/local/X11/include
29424 /usr/local/X11R6/include
29425 /usr/local/X11R5/include
29426 /usr/local/X11R4/include
29428 /usr/local/include/X11
29429 /usr/local/include/X11R6
29430 /usr/local/include/X11R5
29431 /usr/local/include/X11R4
29435 /usr/XFree86/include/X11
29439 /usr/unsupported/include
29440 /usr/athena/include
29441 /usr/local/x11r5/include
29442 /usr/lpp/Xamples/include
29444 /usr/openwin/include
29445 /usr/openwin/share/include'
29447 if test "$ac_x_includes" = no; then
29448 # Guess where to find include files, by looking for Xlib.h.
29449 # First, try using that file with no special directory specified.
29450 cat >conftest.$ac_ext <<_ACEOF
29453 cat confdefs.h >>conftest.$ac_ext
29454 cat >>conftest.$ac_ext <<_ACEOF
29455 /* end confdefs.h. */
29456 #include <X11/Xlib.h>
29458 if { (ac_try="$ac_cpp conftest.$ac_ext"
29459 case "(($ac_try" in
29460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29461 *) ac_try_echo=$ac_try;;
29463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29466 grep -v '^ *+' conftest.er1 >conftest.err
29468 cat conftest.err >&5
29469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29470 (exit $ac_status); } >/dev/null && {
29471 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29472 test ! -s conftest.err
29474 # We can compile using X headers with no special include directory.
29477 echo "$as_me: failed program was:" >&5
29478 sed 's/^/| /' conftest.$ac_ext >&5
29480 for ac_dir in $ac_x_header_dirs; do
29481 if test -r "$ac_dir/X11/Xlib.h"; then
29482 ac_x_includes=$ac_dir
29488 rm -f conftest.err conftest.$ac_ext
29489 fi # $ac_x_includes = no
29491 if test "$ac_x_libraries" = no; then
29492 # Check for the libraries.
29493 # See if we find them without any special options.
29494 # Don't add to $LIBS permanently.
29497 cat >conftest.$ac_ext <<_ACEOF
29500 cat confdefs.h >>conftest.$ac_ext
29501 cat >>conftest.$ac_ext <<_ACEOF
29502 /* end confdefs.h. */
29503 #include <X11/Xlib.h>
29512 rm -f conftest.$ac_objext conftest$ac_exeext
29513 if { (ac_try="$ac_link"
29514 case "(($ac_try" in
29515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29516 *) ac_try_echo=$ac_try;;
29518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29519 (eval "$ac_link") 2>conftest.er1
29521 grep -v '^ *+' conftest.er1 >conftest.err
29523 cat conftest.err >&5
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525 (exit $ac_status); } && {
29526 test -z "$ac_c_werror_flag" ||
29527 test ! -s conftest.err
29528 } && test -s conftest$ac_exeext &&
29529 $as_test_x conftest$ac_exeext; then
29531 # We can link X programs with no special library path.
29534 echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.$ac_ext >&5
29538 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29540 # Don't even attempt the hair of trying to link an X program!
29541 for ac_extension in a so sl; do
29542 if test -r "$ac_dir/libX11.$ac_extension"; then
29543 ac_x_libraries=$ac_dir
29550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29551 conftest$ac_exeext conftest.$ac_ext
29552 fi # $ac_x_libraries = no
29554 case $ac_x_includes,$ac_x_libraries in #(
29555 no,* | *,no | *\'*)
29556 # Didn't find X, or a directory has "'" in its name.
29557 ac_cv_have_x="have_x=no";; #(
29559 # Record where we found X for the cache.
29560 ac_cv_have_x="have_x=yes\
29561 ac_x_includes='$ac_x_includes'\
29562 ac_x_libraries='$ac_x_libraries'"
29568 eval "$ac_cv_have_x"
29571 if test "$have_x" != yes; then
29572 { echo "$as_me:$LINENO: result: $have_x" >&5
29573 echo "${ECHO_T}$have_x" >&6; }
29576 # If each of the values was on the command line, it overrides each guess.
29577 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29578 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29579 # Update the cache value to reflect the command line values.
29580 ac_cv_have_x="have_x=yes\
29581 ac_x_includes='$x_includes'\
29582 ac_x_libraries='$x_libraries'"
29583 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29584 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29587 if test "$no_x" = yes; then
29588 # Not all programs may use this symbol, but it does not hurt to define it.
29590 cat >>confdefs.h <<\_ACEOF
29591 #define X_DISPLAY_MISSING 1
29594 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29596 if test -n "$x_includes"; then
29597 X_CFLAGS="$X_CFLAGS -I$x_includes"
29600 # It would also be nice to do this for all -L options, not just this one.
29601 if test -n "$x_libraries"; then
29602 X_LIBS="$X_LIBS -L$x_libraries"
29603 # For Solaris; some versions of Sun CC require a space after -R and
29604 # others require no space. Words are not sufficient . . . .
29605 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29606 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29607 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29608 ac_xsave_c_werror_flag=$ac_c_werror_flag
29609 ac_c_werror_flag=yes
29610 cat >conftest.$ac_ext <<_ACEOF
29613 cat confdefs.h >>conftest.$ac_ext
29614 cat >>conftest.$ac_ext <<_ACEOF
29615 /* end confdefs.h. */
29625 rm -f conftest.$ac_objext conftest$ac_exeext
29626 if { (ac_try="$ac_link"
29627 case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29632 (eval "$ac_link") 2>conftest.er1
29634 grep -v '^ *+' conftest.er1 >conftest.err
29636 cat conftest.err >&5
29637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29638 (exit $ac_status); } && {
29639 test -z "$ac_c_werror_flag" ||
29640 test ! -s conftest.err
29641 } && test -s conftest$ac_exeext &&
29642 $as_test_x conftest$ac_exeext; then
29643 { echo "$as_me:$LINENO: result: no" >&5
29644 echo "${ECHO_T}no" >&6; }
29645 X_LIBS="$X_LIBS -R$x_libraries"
29647 echo "$as_me: failed program was:" >&5
29648 sed 's/^/| /' conftest.$ac_ext >&5
29650 LIBS="$ac_xsave_LIBS -R $x_libraries"
29651 cat >conftest.$ac_ext <<_ACEOF
29654 cat confdefs.h >>conftest.$ac_ext
29655 cat >>conftest.$ac_ext <<_ACEOF
29656 /* end confdefs.h. */
29666 rm -f conftest.$ac_objext conftest$ac_exeext
29667 if { (ac_try="$ac_link"
29668 case "(($ac_try" in
29669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29670 *) ac_try_echo=$ac_try;;
29672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29673 (eval "$ac_link") 2>conftest.er1
29675 grep -v '^ *+' conftest.er1 >conftest.err
29677 cat conftest.err >&5
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); } && {
29680 test -z "$ac_c_werror_flag" ||
29681 test ! -s conftest.err
29682 } && test -s conftest$ac_exeext &&
29683 $as_test_x conftest$ac_exeext; then
29684 { echo "$as_me:$LINENO: result: yes" >&5
29685 echo "${ECHO_T}yes" >&6; }
29686 X_LIBS="$X_LIBS -R $x_libraries"
29688 echo "$as_me: failed program was:" >&5
29689 sed 's/^/| /' conftest.$ac_ext >&5
29691 { echo "$as_me:$LINENO: result: neither works" >&5
29692 echo "${ECHO_T}neither works" >&6; }
29695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29696 conftest$ac_exeext conftest.$ac_ext
29699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29700 conftest$ac_exeext conftest.$ac_ext
29701 ac_c_werror_flag=$ac_xsave_c_werror_flag
29702 LIBS=$ac_xsave_LIBS
29705 # Check for system-dependent libraries X programs must link with.
29706 # Do this before checking for the system-independent R6 libraries
29707 # (-lICE), since we may need -lsocket or whatever for X linking.
29709 if test "$ISC" = yes; then
29710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29712 # Martyn Johnson says this is needed for Ultrix, if the X
29713 # libraries were built with DECnet support. And Karl Berry says
29714 # the Alpha needs dnet_stub (dnet does not exist).
29715 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29716 cat >conftest.$ac_ext <<_ACEOF
29719 cat confdefs.h >>conftest.$ac_ext
29720 cat >>conftest.$ac_ext <<_ACEOF
29721 /* end confdefs.h. */
29723 /* Override any GCC internal prototype to avoid an error.
29724 Use char because int might match the return type of a GCC
29725 builtin and then its argument prototype would still apply. */
29729 char XOpenDisplay ();
29733 return XOpenDisplay ();
29738 rm -f conftest.$ac_objext conftest$ac_exeext
29739 if { (ac_try="$ac_link"
29740 case "(($ac_try" in
29741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29742 *) ac_try_echo=$ac_try;;
29744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29745 (eval "$ac_link") 2>conftest.er1
29747 grep -v '^ *+' conftest.er1 >conftest.err
29749 cat conftest.err >&5
29750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751 (exit $ac_status); } && {
29752 test -z "$ac_c_werror_flag" ||
29753 test ! -s conftest.err
29754 } && test -s conftest$ac_exeext &&
29755 $as_test_x conftest$ac_exeext; then
29758 echo "$as_me: failed program was:" >&5
29759 sed 's/^/| /' conftest.$ac_ext >&5
29761 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29762 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29763 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29764 echo $ECHO_N "(cached) $ECHO_C" >&6
29766 ac_check_lib_save_LIBS=$LIBS
29767 LIBS="-ldnet $LIBS"
29768 cat >conftest.$ac_ext <<_ACEOF
29771 cat confdefs.h >>conftest.$ac_ext
29772 cat >>conftest.$ac_ext <<_ACEOF
29773 /* end confdefs.h. */
29775 /* Override any GCC internal prototype to avoid an error.
29776 Use char because int might match the return type of a GCC
29777 builtin and then its argument prototype would still apply. */
29785 return dnet_ntoa ();
29790 rm -f conftest.$ac_objext conftest$ac_exeext
29791 if { (ac_try="$ac_link"
29792 case "(($ac_try" in
29793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29794 *) ac_try_echo=$ac_try;;
29796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29797 (eval "$ac_link") 2>conftest.er1
29799 grep -v '^ *+' conftest.er1 >conftest.err
29801 cat conftest.err >&5
29802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29803 (exit $ac_status); } && {
29804 test -z "$ac_c_werror_flag" ||
29805 test ! -s conftest.err
29806 } && test -s conftest$ac_exeext &&
29807 $as_test_x conftest$ac_exeext; then
29808 ac_cv_lib_dnet_dnet_ntoa=yes
29810 echo "$as_me: failed program was:" >&5
29811 sed 's/^/| /' conftest.$ac_ext >&5
29813 ac_cv_lib_dnet_dnet_ntoa=no
29816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29817 conftest$ac_exeext conftest.$ac_ext
29818 LIBS=$ac_check_lib_save_LIBS
29820 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29821 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29822 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29823 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29826 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29827 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29828 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29829 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29830 echo $ECHO_N "(cached) $ECHO_C" >&6
29832 ac_check_lib_save_LIBS=$LIBS
29833 LIBS="-ldnet_stub $LIBS"
29834 cat >conftest.$ac_ext <<_ACEOF
29837 cat confdefs.h >>conftest.$ac_ext
29838 cat >>conftest.$ac_ext <<_ACEOF
29839 /* end confdefs.h. */
29841 /* Override any GCC internal prototype to avoid an error.
29842 Use char because int might match the return type of a GCC
29843 builtin and then its argument prototype would still apply. */
29851 return dnet_ntoa ();
29856 rm -f conftest.$ac_objext conftest$ac_exeext
29857 if { (ac_try="$ac_link"
29858 case "(($ac_try" in
29859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29860 *) ac_try_echo=$ac_try;;
29862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29863 (eval "$ac_link") 2>conftest.er1
29865 grep -v '^ *+' conftest.er1 >conftest.err
29867 cat conftest.err >&5
29868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29869 (exit $ac_status); } && {
29870 test -z "$ac_c_werror_flag" ||
29871 test ! -s conftest.err
29872 } && test -s conftest$ac_exeext &&
29873 $as_test_x conftest$ac_exeext; then
29874 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29876 echo "$as_me: failed program was:" >&5
29877 sed 's/^/| /' conftest.$ac_ext >&5
29879 ac_cv_lib_dnet_stub_dnet_ntoa=no
29882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29883 conftest$ac_exeext conftest.$ac_ext
29884 LIBS=$ac_check_lib_save_LIBS
29886 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29887 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29888 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29889 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29896 conftest$ac_exeext conftest.$ac_ext
29897 LIBS="$ac_xsave_LIBS"
29899 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29900 # to get the SysV transport functions.
29901 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29903 # The nsl library prevents programs from opening the X display
29904 # on Irix 5.2, according to T.E. Dickey.
29905 # The functions gethostbyname, getservbyname, and inet_addr are
29906 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29907 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29908 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29909 if test "${ac_cv_func_gethostbyname+set}" = set; then
29910 echo $ECHO_N "(cached) $ECHO_C" >&6
29912 cat >conftest.$ac_ext <<_ACEOF
29915 cat confdefs.h >>conftest.$ac_ext
29916 cat >>conftest.$ac_ext <<_ACEOF
29917 /* end confdefs.h. */
29918 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29920 #define gethostbyname innocuous_gethostbyname
29922 /* System header to define __stub macros and hopefully few prototypes,
29923 which can conflict with char gethostbyname (); below.
29924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29925 <limits.h> exists even on freestanding compilers. */
29928 # include <limits.h>
29930 # include <assert.h>
29933 #undef gethostbyname
29935 /* Override any GCC internal prototype to avoid an error.
29936 Use char because int might match the return type of a GCC
29937 builtin and then its argument prototype would still apply. */
29941 char gethostbyname ();
29942 /* The GNU C library defines this for functions which it implements
29943 to always fail with ENOSYS. Some functions are actually named
29944 something starting with __ and the normal name is an alias. */
29945 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29952 return gethostbyname ();
29957 rm -f conftest.$ac_objext conftest$ac_exeext
29958 if { (ac_try="$ac_link"
29959 case "(($ac_try" in
29960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29961 *) ac_try_echo=$ac_try;;
29963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29964 (eval "$ac_link") 2>conftest.er1
29966 grep -v '^ *+' conftest.er1 >conftest.err
29968 cat conftest.err >&5
29969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29970 (exit $ac_status); } && {
29971 test -z "$ac_c_werror_flag" ||
29972 test ! -s conftest.err
29973 } && test -s conftest$ac_exeext &&
29974 $as_test_x conftest$ac_exeext; then
29975 ac_cv_func_gethostbyname=yes
29977 echo "$as_me: failed program was:" >&5
29978 sed 's/^/| /' conftest.$ac_ext >&5
29980 ac_cv_func_gethostbyname=no
29983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29984 conftest$ac_exeext conftest.$ac_ext
29986 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
29987 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
29989 if test $ac_cv_func_gethostbyname = no; then
29990 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
29991 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
29992 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
29993 echo $ECHO_N "(cached) $ECHO_C" >&6
29995 ac_check_lib_save_LIBS=$LIBS
29997 cat >conftest.$ac_ext <<_ACEOF
30000 cat confdefs.h >>conftest.$ac_ext
30001 cat >>conftest.$ac_ext <<_ACEOF
30002 /* end confdefs.h. */
30004 /* Override any GCC internal prototype to avoid an error.
30005 Use char because int might match the return type of a GCC
30006 builtin and then its argument prototype would still apply. */
30010 char gethostbyname ();
30014 return gethostbyname ();
30019 rm -f conftest.$ac_objext conftest$ac_exeext
30020 if { (ac_try="$ac_link"
30021 case "(($ac_try" in
30022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023 *) ac_try_echo=$ac_try;;
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026 (eval "$ac_link") 2>conftest.er1
30028 grep -v '^ *+' conftest.er1 >conftest.err
30030 cat conftest.err >&5
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } && {
30033 test -z "$ac_c_werror_flag" ||
30034 test ! -s conftest.err
30035 } && test -s conftest$ac_exeext &&
30036 $as_test_x conftest$ac_exeext; then
30037 ac_cv_lib_nsl_gethostbyname=yes
30039 echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30042 ac_cv_lib_nsl_gethostbyname=no
30045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30046 conftest$ac_exeext conftest.$ac_ext
30047 LIBS=$ac_check_lib_save_LIBS
30049 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30050 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30051 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30052 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30055 if test $ac_cv_lib_nsl_gethostbyname = no; then
30056 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30057 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30058 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30059 echo $ECHO_N "(cached) $ECHO_C" >&6
30061 ac_check_lib_save_LIBS=$LIBS
30063 cat >conftest.$ac_ext <<_ACEOF
30066 cat confdefs.h >>conftest.$ac_ext
30067 cat >>conftest.$ac_ext <<_ACEOF
30068 /* end confdefs.h. */
30070 /* Override any GCC internal prototype to avoid an error.
30071 Use char because int might match the return type of a GCC
30072 builtin and then its argument prototype would still apply. */
30076 char gethostbyname ();
30080 return gethostbyname ();
30085 rm -f conftest.$ac_objext conftest$ac_exeext
30086 if { (ac_try="$ac_link"
30087 case "(($ac_try" in
30088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30089 *) ac_try_echo=$ac_try;;
30091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30092 (eval "$ac_link") 2>conftest.er1
30094 grep -v '^ *+' conftest.er1 >conftest.err
30096 cat conftest.err >&5
30097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); } && {
30099 test -z "$ac_c_werror_flag" ||
30100 test ! -s conftest.err
30101 } && test -s conftest$ac_exeext &&
30102 $as_test_x conftest$ac_exeext; then
30103 ac_cv_lib_bsd_gethostbyname=yes
30105 echo "$as_me: failed program was:" >&5
30106 sed 's/^/| /' conftest.$ac_ext >&5
30108 ac_cv_lib_bsd_gethostbyname=no
30111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30112 conftest$ac_exeext conftest.$ac_ext
30113 LIBS=$ac_check_lib_save_LIBS
30115 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30116 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30117 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30118 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30124 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30125 # socket/setsockopt and other routines are undefined under SCO ODT
30126 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30127 # on later versions), says Simon Leinen: it contains gethostby*
30128 # variants that don't use the name server (or something). -lsocket
30129 # must be given before -lnsl if both are needed. We assume that
30130 # if connect needs -lnsl, so does gethostbyname.
30131 { echo "$as_me:$LINENO: checking for connect" >&5
30132 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30133 if test "${ac_cv_func_connect+set}" = set; then
30134 echo $ECHO_N "(cached) $ECHO_C" >&6
30136 cat >conftest.$ac_ext <<_ACEOF
30139 cat confdefs.h >>conftest.$ac_ext
30140 cat >>conftest.$ac_ext <<_ACEOF
30141 /* end confdefs.h. */
30142 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30144 #define connect innocuous_connect
30146 /* System header to define __stub macros and hopefully few prototypes,
30147 which can conflict with char connect (); below.
30148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30149 <limits.h> exists even on freestanding compilers. */
30152 # include <limits.h>
30154 # include <assert.h>
30159 /* Override any GCC internal prototype to avoid an error.
30160 Use char because int might match the return type of a GCC
30161 builtin and then its argument prototype would still apply. */
30166 /* The GNU C library defines this for functions which it implements
30167 to always fail with ENOSYS. Some functions are actually named
30168 something starting with __ and the normal name is an alias. */
30169 #if defined __stub_connect || defined __stub___connect
30181 rm -f conftest.$ac_objext conftest$ac_exeext
30182 if { (ac_try="$ac_link"
30183 case "(($ac_try" in
30184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30185 *) ac_try_echo=$ac_try;;
30187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30188 (eval "$ac_link") 2>conftest.er1
30190 grep -v '^ *+' conftest.er1 >conftest.err
30192 cat conftest.err >&5
30193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30194 (exit $ac_status); } && {
30195 test -z "$ac_c_werror_flag" ||
30196 test ! -s conftest.err
30197 } && test -s conftest$ac_exeext &&
30198 $as_test_x conftest$ac_exeext; then
30199 ac_cv_func_connect=yes
30201 echo "$as_me: failed program was:" >&5
30202 sed 's/^/| /' conftest.$ac_ext >&5
30204 ac_cv_func_connect=no
30207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30208 conftest$ac_exeext conftest.$ac_ext
30210 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30211 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30213 if test $ac_cv_func_connect = no; then
30214 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30215 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30216 if test "${ac_cv_lib_socket_connect+set}" = set; then
30217 echo $ECHO_N "(cached) $ECHO_C" >&6
30219 ac_check_lib_save_LIBS=$LIBS
30220 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30221 cat >conftest.$ac_ext <<_ACEOF
30224 cat confdefs.h >>conftest.$ac_ext
30225 cat >>conftest.$ac_ext <<_ACEOF
30226 /* end confdefs.h. */
30228 /* Override any GCC internal prototype to avoid an error.
30229 Use char because int might match the return type of a GCC
30230 builtin and then its argument prototype would still apply. */
30243 rm -f conftest.$ac_objext conftest$ac_exeext
30244 if { (ac_try="$ac_link"
30245 case "(($ac_try" in
30246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30247 *) ac_try_echo=$ac_try;;
30249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30250 (eval "$ac_link") 2>conftest.er1
30252 grep -v '^ *+' conftest.er1 >conftest.err
30254 cat conftest.err >&5
30255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30256 (exit $ac_status); } && {
30257 test -z "$ac_c_werror_flag" ||
30258 test ! -s conftest.err
30259 } && test -s conftest$ac_exeext &&
30260 $as_test_x conftest$ac_exeext; then
30261 ac_cv_lib_socket_connect=yes
30263 echo "$as_me: failed program was:" >&5
30264 sed 's/^/| /' conftest.$ac_ext >&5
30266 ac_cv_lib_socket_connect=no
30269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30270 conftest$ac_exeext conftest.$ac_ext
30271 LIBS=$ac_check_lib_save_LIBS
30273 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30274 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30275 if test $ac_cv_lib_socket_connect = yes; then
30276 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30281 # Guillermo Gomez says -lposix is necessary on A/UX.
30282 { echo "$as_me:$LINENO: checking for remove" >&5
30283 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30284 if test "${ac_cv_func_remove+set}" = set; then
30285 echo $ECHO_N "(cached) $ECHO_C" >&6
30287 cat >conftest.$ac_ext <<_ACEOF
30290 cat confdefs.h >>conftest.$ac_ext
30291 cat >>conftest.$ac_ext <<_ACEOF
30292 /* end confdefs.h. */
30293 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30295 #define remove innocuous_remove
30297 /* System header to define __stub macros and hopefully few prototypes,
30298 which can conflict with char remove (); below.
30299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30300 <limits.h> exists even on freestanding compilers. */
30303 # include <limits.h>
30305 # include <assert.h>
30310 /* Override any GCC internal prototype to avoid an error.
30311 Use char because int might match the return type of a GCC
30312 builtin and then its argument prototype would still apply. */
30317 /* The GNU C library defines this for functions which it implements
30318 to always fail with ENOSYS. Some functions are actually named
30319 something starting with __ and the normal name is an alias. */
30320 #if defined __stub_remove || defined __stub___remove
30332 rm -f conftest.$ac_objext conftest$ac_exeext
30333 if { (ac_try="$ac_link"
30334 case "(($ac_try" in
30335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30336 *) ac_try_echo=$ac_try;;
30338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30339 (eval "$ac_link") 2>conftest.er1
30341 grep -v '^ *+' conftest.er1 >conftest.err
30343 cat conftest.err >&5
30344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30345 (exit $ac_status); } && {
30346 test -z "$ac_c_werror_flag" ||
30347 test ! -s conftest.err
30348 } && test -s conftest$ac_exeext &&
30349 $as_test_x conftest$ac_exeext; then
30350 ac_cv_func_remove=yes
30352 echo "$as_me: failed program was:" >&5
30353 sed 's/^/| /' conftest.$ac_ext >&5
30355 ac_cv_func_remove=no
30358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30359 conftest$ac_exeext conftest.$ac_ext
30361 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30362 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30364 if test $ac_cv_func_remove = no; then
30365 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30366 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30367 if test "${ac_cv_lib_posix_remove+set}" = set; then
30368 echo $ECHO_N "(cached) $ECHO_C" >&6
30370 ac_check_lib_save_LIBS=$LIBS
30371 LIBS="-lposix $LIBS"
30372 cat >conftest.$ac_ext <<_ACEOF
30375 cat confdefs.h >>conftest.$ac_ext
30376 cat >>conftest.$ac_ext <<_ACEOF
30377 /* end confdefs.h. */
30379 /* Override any GCC internal prototype to avoid an error.
30380 Use char because int might match the return type of a GCC
30381 builtin and then its argument prototype would still apply. */
30394 rm -f conftest.$ac_objext conftest$ac_exeext
30395 if { (ac_try="$ac_link"
30396 case "(($ac_try" in
30397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30398 *) ac_try_echo=$ac_try;;
30400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30401 (eval "$ac_link") 2>conftest.er1
30403 grep -v '^ *+' conftest.er1 >conftest.err
30405 cat conftest.err >&5
30406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407 (exit $ac_status); } && {
30408 test -z "$ac_c_werror_flag" ||
30409 test ! -s conftest.err
30410 } && test -s conftest$ac_exeext &&
30411 $as_test_x conftest$ac_exeext; then
30412 ac_cv_lib_posix_remove=yes
30414 echo "$as_me: failed program was:" >&5
30415 sed 's/^/| /' conftest.$ac_ext >&5
30417 ac_cv_lib_posix_remove=no
30420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30421 conftest$ac_exeext conftest.$ac_ext
30422 LIBS=$ac_check_lib_save_LIBS
30424 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30425 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30426 if test $ac_cv_lib_posix_remove = yes; then
30427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30432 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30433 { echo "$as_me:$LINENO: checking for shmat" >&5
30434 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30435 if test "${ac_cv_func_shmat+set}" = set; then
30436 echo $ECHO_N "(cached) $ECHO_C" >&6
30438 cat >conftest.$ac_ext <<_ACEOF
30441 cat confdefs.h >>conftest.$ac_ext
30442 cat >>conftest.$ac_ext <<_ACEOF
30443 /* end confdefs.h. */
30444 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30446 #define shmat innocuous_shmat
30448 /* System header to define __stub macros and hopefully few prototypes,
30449 which can conflict with char shmat (); below.
30450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30451 <limits.h> exists even on freestanding compilers. */
30454 # include <limits.h>
30456 # include <assert.h>
30461 /* Override any GCC internal prototype to avoid an error.
30462 Use char because int might match the return type of a GCC
30463 builtin and then its argument prototype would still apply. */
30468 /* The GNU C library defines this for functions which it implements
30469 to always fail with ENOSYS. Some functions are actually named
30470 something starting with __ and the normal name is an alias. */
30471 #if defined __stub_shmat || defined __stub___shmat
30483 rm -f conftest.$ac_objext conftest$ac_exeext
30484 if { (ac_try="$ac_link"
30485 case "(($ac_try" in
30486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30487 *) ac_try_echo=$ac_try;;
30489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30490 (eval "$ac_link") 2>conftest.er1
30492 grep -v '^ *+' conftest.er1 >conftest.err
30494 cat conftest.err >&5
30495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30496 (exit $ac_status); } && {
30497 test -z "$ac_c_werror_flag" ||
30498 test ! -s conftest.err
30499 } && test -s conftest$ac_exeext &&
30500 $as_test_x conftest$ac_exeext; then
30501 ac_cv_func_shmat=yes
30503 echo "$as_me: failed program was:" >&5
30504 sed 's/^/| /' conftest.$ac_ext >&5
30506 ac_cv_func_shmat=no
30509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30510 conftest$ac_exeext conftest.$ac_ext
30512 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30513 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30515 if test $ac_cv_func_shmat = no; then
30516 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30517 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30518 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30519 echo $ECHO_N "(cached) $ECHO_C" >&6
30521 ac_check_lib_save_LIBS=$LIBS
30523 cat >conftest.$ac_ext <<_ACEOF
30526 cat confdefs.h >>conftest.$ac_ext
30527 cat >>conftest.$ac_ext <<_ACEOF
30528 /* end confdefs.h. */
30530 /* Override any GCC internal prototype to avoid an error.
30531 Use char because int might match the return type of a GCC
30532 builtin and then its argument prototype would still apply. */
30545 rm -f conftest.$ac_objext conftest$ac_exeext
30546 if { (ac_try="$ac_link"
30547 case "(($ac_try" in
30548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30549 *) ac_try_echo=$ac_try;;
30551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30552 (eval "$ac_link") 2>conftest.er1
30554 grep -v '^ *+' conftest.er1 >conftest.err
30556 cat conftest.err >&5
30557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30558 (exit $ac_status); } && {
30559 test -z "$ac_c_werror_flag" ||
30560 test ! -s conftest.err
30561 } && test -s conftest$ac_exeext &&
30562 $as_test_x conftest$ac_exeext; then
30563 ac_cv_lib_ipc_shmat=yes
30565 echo "$as_me: failed program was:" >&5
30566 sed 's/^/| /' conftest.$ac_ext >&5
30568 ac_cv_lib_ipc_shmat=no
30571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30572 conftest$ac_exeext conftest.$ac_ext
30573 LIBS=$ac_check_lib_save_LIBS
30575 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30576 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30577 if test $ac_cv_lib_ipc_shmat = yes; then
30578 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30584 # Check for libraries that X11R6 Xt/Xaw programs need.
30585 ac_save_LDFLAGS=$LDFLAGS
30586 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30587 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30588 # check for ICE first), but we must link in the order -lSM -lICE or
30589 # we get undefined symbols. So assume we have SM if we have ICE.
30590 # These have to be linked with before -lX11, unlike the other
30591 # libraries we check for below, so use a different variable.
30592 # John Interrante, Karl Berry
30593 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30594 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30595 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30596 echo $ECHO_N "(cached) $ECHO_C" >&6
30598 ac_check_lib_save_LIBS=$LIBS
30599 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30600 cat >conftest.$ac_ext <<_ACEOF
30603 cat confdefs.h >>conftest.$ac_ext
30604 cat >>conftest.$ac_ext <<_ACEOF
30605 /* end confdefs.h. */
30607 /* Override any GCC internal prototype to avoid an error.
30608 Use char because int might match the return type of a GCC
30609 builtin and then its argument prototype would still apply. */
30613 char IceConnectionNumber ();
30617 return IceConnectionNumber ();
30622 rm -f conftest.$ac_objext conftest$ac_exeext
30623 if { (ac_try="$ac_link"
30624 case "(($ac_try" in
30625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30626 *) ac_try_echo=$ac_try;;
30628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30629 (eval "$ac_link") 2>conftest.er1
30631 grep -v '^ *+' conftest.er1 >conftest.err
30633 cat conftest.err >&5
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); } && {
30636 test -z "$ac_c_werror_flag" ||
30637 test ! -s conftest.err
30638 } && test -s conftest$ac_exeext &&
30639 $as_test_x conftest$ac_exeext; then
30640 ac_cv_lib_ICE_IceConnectionNumber=yes
30642 echo "$as_me: failed program was:" >&5
30643 sed 's/^/| /' conftest.$ac_ext >&5
30645 ac_cv_lib_ICE_IceConnectionNumber=no
30648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30649 conftest$ac_exeext conftest.$ac_ext
30650 LIBS=$ac_check_lib_save_LIBS
30652 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30653 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30654 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30655 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30658 LDFLAGS=$ac_save_LDFLAGS
30724 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30726 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30727 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30728 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30729 echo $ECHO_N "(cached) $ECHO_C" >&6
30731 ac_res=`eval echo '${'$as_ac_Header'}'`
30732 { echo "$as_me:$LINENO: result: $ac_res" >&5
30733 echo "${ECHO_T}$ac_res" >&6; }
30735 # Is the header compilable?
30736 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30738 cat >conftest.$ac_ext <<_ACEOF
30741 cat confdefs.h >>conftest.$ac_ext
30742 cat >>conftest.$ac_ext <<_ACEOF
30743 /* end confdefs.h. */
30744 $ac_includes_default
30745 #include <$ac_header>
30747 rm -f conftest.$ac_objext
30748 if { (ac_try="$ac_compile"
30749 case "(($ac_try" in
30750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30751 *) ac_try_echo=$ac_try;;
30753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30754 (eval "$ac_compile") 2>conftest.er1
30756 grep -v '^ *+' conftest.er1 >conftest.err
30758 cat conftest.err >&5
30759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30760 (exit $ac_status); } && {
30761 test -z "$ac_c_werror_flag" ||
30762 test ! -s conftest.err
30763 } && test -s conftest.$ac_objext; then
30764 ac_header_compiler=yes
30766 echo "$as_me: failed program was:" >&5
30767 sed 's/^/| /' conftest.$ac_ext >&5
30769 ac_header_compiler=no
30772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30773 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30774 echo "${ECHO_T}$ac_header_compiler" >&6; }
30776 # Is the header present?
30777 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30778 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30779 cat >conftest.$ac_ext <<_ACEOF
30782 cat confdefs.h >>conftest.$ac_ext
30783 cat >>conftest.$ac_ext <<_ACEOF
30784 /* end confdefs.h. */
30785 #include <$ac_header>
30787 if { (ac_try="$ac_cpp conftest.$ac_ext"
30788 case "(($ac_try" in
30789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30790 *) ac_try_echo=$ac_try;;
30792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30795 grep -v '^ *+' conftest.er1 >conftest.err
30797 cat conftest.err >&5
30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); } >/dev/null && {
30800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30801 test ! -s conftest.err
30803 ac_header_preproc=yes
30805 echo "$as_me: failed program was:" >&5
30806 sed 's/^/| /' conftest.$ac_ext >&5
30808 ac_header_preproc=no
30811 rm -f conftest.err conftest.$ac_ext
30812 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30813 echo "${ECHO_T}$ac_header_preproc" >&6; }
30815 # So? What about this header?
30816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30818 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30819 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30821 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30822 ac_header_preproc=yes
30825 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30826 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30827 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30828 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30829 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30830 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30831 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30832 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30834 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30835 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30836 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30843 echo $ECHO_N "(cached) $ECHO_C" >&6
30845 eval "$as_ac_Header=\$ac_header_preproc"
30847 ac_res=`eval echo '${'$as_ac_Header'}'`
30848 { echo "$as_me:$LINENO: result: $ac_res" >&5
30849 echo "${ECHO_T}$ac_res" >&6; }
30852 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30853 cat >>confdefs.h <<_ACEOF
30854 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30861 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30862 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30863 if test "${ac_cv_header_stdc+set}" = set; then
30864 echo $ECHO_N "(cached) $ECHO_C" >&6
30866 cat >conftest.$ac_ext <<_ACEOF
30869 cat confdefs.h >>conftest.$ac_ext
30870 cat >>conftest.$ac_ext <<_ACEOF
30871 /* end confdefs.h. */
30872 #include <stdlib.h>
30873 #include <stdarg.h>
30874 #include <string.h>
30885 rm -f conftest.$ac_objext
30886 if { (ac_try="$ac_compile"
30887 case "(($ac_try" in
30888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30889 *) ac_try_echo=$ac_try;;
30891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30892 (eval "$ac_compile") 2>conftest.er1
30894 grep -v '^ *+' conftest.er1 >conftest.err
30896 cat conftest.err >&5
30897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30898 (exit $ac_status); } && {
30899 test -z "$ac_c_werror_flag" ||
30900 test ! -s conftest.err
30901 } && test -s conftest.$ac_objext; then
30902 ac_cv_header_stdc=yes
30904 echo "$as_me: failed program was:" >&5
30905 sed 's/^/| /' conftest.$ac_ext >&5
30907 ac_cv_header_stdc=no
30910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30912 if test $ac_cv_header_stdc = yes; then
30913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30914 cat >conftest.$ac_ext <<_ACEOF
30917 cat confdefs.h >>conftest.$ac_ext
30918 cat >>conftest.$ac_ext <<_ACEOF
30919 /* end confdefs.h. */
30920 #include <string.h>
30923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30924 $EGREP "memchr" >/dev/null 2>&1; then
30927 ac_cv_header_stdc=no
30933 if test $ac_cv_header_stdc = yes; then
30934 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30935 cat >conftest.$ac_ext <<_ACEOF
30938 cat confdefs.h >>conftest.$ac_ext
30939 cat >>conftest.$ac_ext <<_ACEOF
30940 /* end confdefs.h. */
30941 #include <stdlib.h>
30944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30945 $EGREP "free" >/dev/null 2>&1; then
30948 ac_cv_header_stdc=no
30954 if test $ac_cv_header_stdc = yes; then
30955 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30956 if test "$cross_compiling" = yes; then
30959 cat >conftest.$ac_ext <<_ACEOF
30962 cat confdefs.h >>conftest.$ac_ext
30963 cat >>conftest.$ac_ext <<_ACEOF
30964 /* end confdefs.h. */
30966 #include <stdlib.h>
30967 #if ((' ' & 0x0FF) == 0x020)
30968 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30969 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30971 # define ISLOWER(c) \
30972 (('a' <= (c) && (c) <= 'i') \
30973 || ('j' <= (c) && (c) <= 'r') \
30974 || ('s' <= (c) && (c) <= 'z'))
30975 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30978 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30983 for (i = 0; i < 256; i++)
30984 if (XOR (islower (i), ISLOWER (i))
30985 || toupper (i) != TOUPPER (i))
30990 rm -f conftest$ac_exeext
30991 if { (ac_try="$ac_link"
30992 case "(($ac_try" in
30993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30994 *) ac_try_echo=$ac_try;;
30996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30997 (eval "$ac_link") 2>&5
30999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31000 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31001 { (case "(($ac_try" in
31002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31003 *) ac_try_echo=$ac_try;;
31005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31006 (eval "$ac_try") 2>&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); }; }; then
31012 echo "$as_me: program exited with status $ac_status" >&5
31013 echo "$as_me: failed program was:" >&5
31014 sed 's/^/| /' conftest.$ac_ext >&5
31016 ( exit $ac_status )
31017 ac_cv_header_stdc=no
31019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31025 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31026 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31027 if test $ac_cv_header_stdc = yes; then
31029 cat >>confdefs.h <<\_ACEOF
31030 #define STDC_HEADERS 1
31035 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31036 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31037 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31038 echo $ECHO_N "(cached) $ECHO_C" >&6
31040 cat >conftest.$ac_ext <<_ACEOF
31043 cat confdefs.h >>conftest.$ac_ext
31044 cat >>conftest.$ac_ext <<_ACEOF
31045 /* end confdefs.h. */
31046 #include <sys/types.h>
31050 return makedev(0, 0);
31055 rm -f conftest.$ac_objext conftest$ac_exeext
31056 if { (ac_try="$ac_link"
31057 case "(($ac_try" in
31058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31059 *) ac_try_echo=$ac_try;;
31061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31062 (eval "$ac_link") 2>conftest.er1
31064 grep -v '^ *+' conftest.er1 >conftest.err
31066 cat conftest.err >&5
31067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31068 (exit $ac_status); } && {
31069 test -z "$ac_c_werror_flag" ||
31070 test ! -s conftest.err
31071 } && test -s conftest$ac_exeext &&
31072 $as_test_x conftest$ac_exeext; then
31073 ac_cv_header_sys_types_h_makedev=yes
31075 echo "$as_me: failed program was:" >&5
31076 sed 's/^/| /' conftest.$ac_ext >&5
31078 ac_cv_header_sys_types_h_makedev=no
31081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31082 conftest$ac_exeext conftest.$ac_ext
31085 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31086 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31088 if test $ac_cv_header_sys_types_h_makedev = no; then
31089 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31090 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31091 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31092 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31093 echo $ECHO_N "(cached) $ECHO_C" >&6
31095 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31096 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31098 # Is the header compilable?
31099 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31100 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31101 cat >conftest.$ac_ext <<_ACEOF
31104 cat confdefs.h >>conftest.$ac_ext
31105 cat >>conftest.$ac_ext <<_ACEOF
31106 /* end confdefs.h. */
31107 $ac_includes_default
31108 #include <sys/mkdev.h>
31110 rm -f conftest.$ac_objext
31111 if { (ac_try="$ac_compile"
31112 case "(($ac_try" in
31113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31114 *) ac_try_echo=$ac_try;;
31116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31117 (eval "$ac_compile") 2>conftest.er1
31119 grep -v '^ *+' conftest.er1 >conftest.err
31121 cat conftest.err >&5
31122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31123 (exit $ac_status); } && {
31124 test -z "$ac_c_werror_flag" ||
31125 test ! -s conftest.err
31126 } && test -s conftest.$ac_objext; then
31127 ac_header_compiler=yes
31129 echo "$as_me: failed program was:" >&5
31130 sed 's/^/| /' conftest.$ac_ext >&5
31132 ac_header_compiler=no
31135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31137 echo "${ECHO_T}$ac_header_compiler" >&6; }
31139 # Is the header present?
31140 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31141 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31142 cat >conftest.$ac_ext <<_ACEOF
31145 cat confdefs.h >>conftest.$ac_ext
31146 cat >>conftest.$ac_ext <<_ACEOF
31147 /* end confdefs.h. */
31148 #include <sys/mkdev.h>
31150 if { (ac_try="$ac_cpp conftest.$ac_ext"
31151 case "(($ac_try" in
31152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31153 *) ac_try_echo=$ac_try;;
31155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31158 grep -v '^ *+' conftest.er1 >conftest.err
31160 cat conftest.err >&5
31161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31162 (exit $ac_status); } >/dev/null && {
31163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31164 test ! -s conftest.err
31166 ac_header_preproc=yes
31168 echo "$as_me: failed program was:" >&5
31169 sed 's/^/| /' conftest.$ac_ext >&5
31171 ac_header_preproc=no
31174 rm -f conftest.err conftest.$ac_ext
31175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31176 echo "${ECHO_T}$ac_header_preproc" >&6; }
31178 # So? What about this header?
31179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31181 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31182 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31183 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31184 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31185 ac_header_preproc=yes
31188 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31189 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31190 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31191 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31192 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31193 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31194 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31195 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31196 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31197 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31198 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31199 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31203 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31204 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31205 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31206 echo $ECHO_N "(cached) $ECHO_C" >&6
31208 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31210 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31211 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31214 if test $ac_cv_header_sys_mkdev_h = yes; then
31216 cat >>confdefs.h <<\_ACEOF
31217 #define MAJOR_IN_MKDEV 1
31224 if test $ac_cv_header_sys_mkdev_h = no; then
31225 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31226 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31227 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31228 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31229 echo $ECHO_N "(cached) $ECHO_C" >&6
31231 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31232 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31234 # Is the header compilable?
31235 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31236 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31237 cat >conftest.$ac_ext <<_ACEOF
31240 cat confdefs.h >>conftest.$ac_ext
31241 cat >>conftest.$ac_ext <<_ACEOF
31242 /* end confdefs.h. */
31243 $ac_includes_default
31244 #include <sys/sysmacros.h>
31246 rm -f conftest.$ac_objext
31247 if { (ac_try="$ac_compile"
31248 case "(($ac_try" in
31249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31250 *) ac_try_echo=$ac_try;;
31252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31253 (eval "$ac_compile") 2>conftest.er1
31255 grep -v '^ *+' conftest.er1 >conftest.err
31257 cat conftest.err >&5
31258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31259 (exit $ac_status); } && {
31260 test -z "$ac_c_werror_flag" ||
31261 test ! -s conftest.err
31262 } && test -s conftest.$ac_objext; then
31263 ac_header_compiler=yes
31265 echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.$ac_ext >&5
31268 ac_header_compiler=no
31271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31272 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31273 echo "${ECHO_T}$ac_header_compiler" >&6; }
31275 # Is the header present?
31276 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31277 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31278 cat >conftest.$ac_ext <<_ACEOF
31281 cat confdefs.h >>conftest.$ac_ext
31282 cat >>conftest.$ac_ext <<_ACEOF
31283 /* end confdefs.h. */
31284 #include <sys/sysmacros.h>
31286 if { (ac_try="$ac_cpp conftest.$ac_ext"
31287 case "(($ac_try" in
31288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31289 *) ac_try_echo=$ac_try;;
31291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31294 grep -v '^ *+' conftest.er1 >conftest.err
31296 cat conftest.err >&5
31297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31298 (exit $ac_status); } >/dev/null && {
31299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31300 test ! -s conftest.err
31302 ac_header_preproc=yes
31304 echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.$ac_ext >&5
31307 ac_header_preproc=no
31310 rm -f conftest.err conftest.$ac_ext
31311 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31312 echo "${ECHO_T}$ac_header_preproc" >&6; }
31314 # So? What about this header?
31315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31317 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31318 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31319 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31320 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31321 ac_header_preproc=yes
31324 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31325 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31326 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31327 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31328 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31329 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31330 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31331 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31332 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31333 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31334 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31335 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31339 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31340 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31341 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31342 echo $ECHO_N "(cached) $ECHO_C" >&6
31344 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31346 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31347 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31350 if test $ac_cv_header_sys_sysmacros_h = yes; then
31352 cat >>confdefs.h <<\_ACEOF
31353 #define MAJOR_IN_SYSMACROS 1
31367 ac_header_dirent=no
31368 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31369 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31370 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31371 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31373 echo $ECHO_N "(cached) $ECHO_C" >&6
31375 cat >conftest.$ac_ext <<_ACEOF
31378 cat confdefs.h >>conftest.$ac_ext
31379 cat >>conftest.$ac_ext <<_ACEOF
31380 /* end confdefs.h. */
31381 #include <sys/types.h>
31393 rm -f conftest.$ac_objext
31394 if { (ac_try="$ac_compile"
31395 case "(($ac_try" in
31396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31397 *) ac_try_echo=$ac_try;;
31399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31400 (eval "$ac_compile") 2>conftest.er1
31402 grep -v '^ *+' conftest.er1 >conftest.err
31404 cat conftest.err >&5
31405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406 (exit $ac_status); } && {
31407 test -z "$ac_c_werror_flag" ||
31408 test ! -s conftest.err
31409 } && test -s conftest.$ac_objext; then
31410 eval "$as_ac_Header=yes"
31412 echo "$as_me: failed program was:" >&5
31413 sed 's/^/| /' conftest.$ac_ext >&5
31415 eval "$as_ac_Header=no"
31418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31420 ac_res=`eval echo '${'$as_ac_Header'}'`
31421 { echo "$as_me:$LINENO: result: $ac_res" >&5
31422 echo "${ECHO_T}$ac_res" >&6; }
31423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31424 cat >>confdefs.h <<_ACEOF
31425 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31428 ac_header_dirent=$ac_hdr; break
31432 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31433 if test $ac_header_dirent = dirent.h; then
31434 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31435 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31436 if test "${ac_cv_search_opendir+set}" = set; then
31437 echo $ECHO_N "(cached) $ECHO_C" >&6
31439 ac_func_search_save_LIBS=$LIBS
31440 cat >conftest.$ac_ext <<_ACEOF
31443 cat confdefs.h >>conftest.$ac_ext
31444 cat >>conftest.$ac_ext <<_ACEOF
31445 /* end confdefs.h. */
31447 /* Override any GCC internal prototype to avoid an error.
31448 Use char because int might match the return type of a GCC
31449 builtin and then its argument prototype would still apply. */
31462 for ac_lib in '' dir; do
31463 if test -z "$ac_lib"; then
31464 ac_res="none required"
31467 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31469 rm -f conftest.$ac_objext conftest$ac_exeext
31470 if { (ac_try="$ac_link"
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_link") 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); } && {
31483 test -z "$ac_c_werror_flag" ||
31484 test ! -s conftest.err
31485 } && test -s conftest$ac_exeext &&
31486 $as_test_x conftest$ac_exeext; then
31487 ac_cv_search_opendir=$ac_res
31489 echo "$as_me: failed program was:" >&5
31490 sed 's/^/| /' conftest.$ac_ext >&5
31495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31497 if test "${ac_cv_search_opendir+set}" = set; then
31501 if test "${ac_cv_search_opendir+set}" = set; then
31504 ac_cv_search_opendir=no
31506 rm conftest.$ac_ext
31507 LIBS=$ac_func_search_save_LIBS
31509 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31510 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31511 ac_res=$ac_cv_search_opendir
31512 if test "$ac_res" != no; then
31513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31518 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31519 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31520 if test "${ac_cv_search_opendir+set}" = set; then
31521 echo $ECHO_N "(cached) $ECHO_C" >&6
31523 ac_func_search_save_LIBS=$LIBS
31524 cat >conftest.$ac_ext <<_ACEOF
31527 cat confdefs.h >>conftest.$ac_ext
31528 cat >>conftest.$ac_ext <<_ACEOF
31529 /* end confdefs.h. */
31531 /* Override any GCC internal prototype to avoid an error.
31532 Use char because int might match the return type of a GCC
31533 builtin and then its argument prototype would still apply. */
31546 for ac_lib in '' x; do
31547 if test -z "$ac_lib"; then
31548 ac_res="none required"
31551 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31553 rm -f conftest.$ac_objext conftest$ac_exeext
31554 if { (ac_try="$ac_link"
31555 case "(($ac_try" in
31556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31557 *) ac_try_echo=$ac_try;;
31559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31560 (eval "$ac_link") 2>conftest.er1
31562 grep -v '^ *+' conftest.er1 >conftest.err
31564 cat conftest.err >&5
31565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566 (exit $ac_status); } && {
31567 test -z "$ac_c_werror_flag" ||
31568 test ! -s conftest.err
31569 } && test -s conftest$ac_exeext &&
31570 $as_test_x conftest$ac_exeext; then
31571 ac_cv_search_opendir=$ac_res
31573 echo "$as_me: failed program was:" >&5
31574 sed 's/^/| /' conftest.$ac_ext >&5
31579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31581 if test "${ac_cv_search_opendir+set}" = set; then
31585 if test "${ac_cv_search_opendir+set}" = set; then
31588 ac_cv_search_opendir=no
31590 rm conftest.$ac_ext
31591 LIBS=$ac_func_search_save_LIBS
31593 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31594 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31595 ac_res=$ac_cv_search_opendir
31596 if test "$ac_res" != no; then
31597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31603 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31604 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31605 if test "${ac_cv_header_stat_broken+set}" = set; then
31606 echo $ECHO_N "(cached) $ECHO_C" >&6
31608 cat >conftest.$ac_ext <<_ACEOF
31611 cat confdefs.h >>conftest.$ac_ext
31612 cat >>conftest.$ac_ext <<_ACEOF
31613 /* end confdefs.h. */
31614 #include <sys/types.h>
31615 #include <sys/stat.h>
31617 #if defined S_ISBLK && defined S_IFDIR
31618 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31621 #if defined S_ISBLK && defined S_IFCHR
31622 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31625 #if defined S_ISLNK && defined S_IFREG
31626 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31629 #if defined S_ISSOCK && defined S_IFREG
31630 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31634 rm -f conftest.$ac_objext
31635 if { (ac_try="$ac_compile"
31636 case "(($ac_try" in
31637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31638 *) ac_try_echo=$ac_try;;
31640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31641 (eval "$ac_compile") 2>conftest.er1
31643 grep -v '^ *+' conftest.er1 >conftest.err
31645 cat conftest.err >&5
31646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31647 (exit $ac_status); } && {
31648 test -z "$ac_c_werror_flag" ||
31649 test ! -s conftest.err
31650 } && test -s conftest.$ac_objext; then
31651 ac_cv_header_stat_broken=no
31653 echo "$as_me: failed program was:" >&5
31654 sed 's/^/| /' conftest.$ac_ext >&5
31656 ac_cv_header_stat_broken=yes
31659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31661 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31662 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31663 if test $ac_cv_header_stat_broken = yes; then
31665 cat >>confdefs.h <<\_ACEOF
31666 #define STAT_MACROS_BROKEN 1
31671 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31672 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31673 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31674 echo $ECHO_N "(cached) $ECHO_C" >&6
31676 cat >conftest.$ac_ext <<_ACEOF
31679 cat confdefs.h >>conftest.$ac_ext
31680 cat >>conftest.$ac_ext <<_ACEOF
31681 /* end confdefs.h. */
31682 #include <sys/types.h>
31683 #include <sys/wait.h>
31684 #ifndef WEXITSTATUS
31685 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31688 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31696 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31701 rm -f conftest.$ac_objext
31702 if { (ac_try="$ac_compile"
31703 case "(($ac_try" in
31704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31705 *) ac_try_echo=$ac_try;;
31707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31708 (eval "$ac_compile") 2>conftest.er1
31710 grep -v '^ *+' conftest.er1 >conftest.err
31712 cat conftest.err >&5
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); } && {
31715 test -z "$ac_c_werror_flag" ||
31716 test ! -s conftest.err
31717 } && test -s conftest.$ac_objext; then
31718 ac_cv_header_sys_wait_h=yes
31720 echo "$as_me: failed program was:" >&5
31721 sed 's/^/| /' conftest.$ac_ext >&5
31723 ac_cv_header_sys_wait_h=no
31726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31728 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31729 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31730 if test $ac_cv_header_sys_wait_h = yes; then
31732 cat >>confdefs.h <<\_ACEOF
31733 #define HAVE_SYS_WAIT_H 1
31738 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31739 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31740 if test "${ac_cv_header_time+set}" = set; then
31741 echo $ECHO_N "(cached) $ECHO_C" >&6
31743 cat >conftest.$ac_ext <<_ACEOF
31746 cat confdefs.h >>conftest.$ac_ext
31747 cat >>conftest.$ac_ext <<_ACEOF
31748 /* end confdefs.h. */
31749 #include <sys/types.h>
31750 #include <sys/time.h>
31756 if ((struct tm *) 0)
31762 rm -f conftest.$ac_objext
31763 if { (ac_try="$ac_compile"
31764 case "(($ac_try" in
31765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31766 *) ac_try_echo=$ac_try;;
31768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31769 (eval "$ac_compile") 2>conftest.er1
31771 grep -v '^ *+' conftest.er1 >conftest.err
31773 cat conftest.err >&5
31774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31775 (exit $ac_status); } && {
31776 test -z "$ac_c_werror_flag" ||
31777 test ! -s conftest.err
31778 } && test -s conftest.$ac_objext; then
31779 ac_cv_header_time=yes
31781 echo "$as_me: failed program was:" >&5
31782 sed 's/^/| /' conftest.$ac_ext >&5
31784 ac_cv_header_time=no
31787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31789 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31790 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31791 if test $ac_cv_header_time = yes; then
31793 cat >>confdefs.h <<\_ACEOF
31794 #define TIME_WITH_SYS_TIME 1
31799 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31800 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31801 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31802 echo $ECHO_N "(cached) $ECHO_C" >&6
31804 cat >conftest.$ac_ext <<_ACEOF
31807 cat confdefs.h >>conftest.$ac_ext
31808 cat >>conftest.$ac_ext <<_ACEOF
31809 /* end confdefs.h. */
31810 $ac_includes_default
31814 static struct stat ac_aggr;
31815 if (ac_aggr.st_blksize)
31821 rm -f conftest.$ac_objext
31822 if { (ac_try="$ac_compile"
31823 case "(($ac_try" in
31824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31825 *) ac_try_echo=$ac_try;;
31827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31828 (eval "$ac_compile") 2>conftest.er1
31830 grep -v '^ *+' conftest.er1 >conftest.err
31832 cat conftest.err >&5
31833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31834 (exit $ac_status); } && {
31835 test -z "$ac_c_werror_flag" ||
31836 test ! -s conftest.err
31837 } && test -s conftest.$ac_objext; then
31838 ac_cv_member_struct_stat_st_blksize=yes
31840 echo "$as_me: failed program was:" >&5
31841 sed 's/^/| /' conftest.$ac_ext >&5
31843 cat >conftest.$ac_ext <<_ACEOF
31846 cat confdefs.h >>conftest.$ac_ext
31847 cat >>conftest.$ac_ext <<_ACEOF
31848 /* end confdefs.h. */
31849 $ac_includes_default
31853 static struct stat ac_aggr;
31854 if (sizeof ac_aggr.st_blksize)
31860 rm -f conftest.$ac_objext
31861 if { (ac_try="$ac_compile"
31862 case "(($ac_try" in
31863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31864 *) ac_try_echo=$ac_try;;
31866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31867 (eval "$ac_compile") 2>conftest.er1
31869 grep -v '^ *+' conftest.er1 >conftest.err
31871 cat conftest.err >&5
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); } && {
31874 test -z "$ac_c_werror_flag" ||
31875 test ! -s conftest.err
31876 } && test -s conftest.$ac_objext; then
31877 ac_cv_member_struct_stat_st_blksize=yes
31879 echo "$as_me: failed program was:" >&5
31880 sed 's/^/| /' conftest.$ac_ext >&5
31882 ac_cv_member_struct_stat_st_blksize=no
31885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31890 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31891 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31892 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31894 cat >>confdefs.h <<_ACEOF
31895 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31899 cat >>confdefs.h <<\_ACEOF
31900 #define HAVE_ST_BLKSIZE 1
31906 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31907 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31908 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31909 echo $ECHO_N "(cached) $ECHO_C" >&6
31911 cat >conftest.$ac_ext <<_ACEOF
31914 cat confdefs.h >>conftest.$ac_ext
31915 cat >>conftest.$ac_ext <<_ACEOF
31916 /* end confdefs.h. */
31917 $ac_includes_default
31921 static struct stat ac_aggr;
31922 if (ac_aggr.st_blocks)
31928 rm -f conftest.$ac_objext
31929 if { (ac_try="$ac_compile"
31930 case "(($ac_try" in
31931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932 *) ac_try_echo=$ac_try;;
31934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31935 (eval "$ac_compile") 2>conftest.er1
31937 grep -v '^ *+' conftest.er1 >conftest.err
31939 cat conftest.err >&5
31940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31941 (exit $ac_status); } && {
31942 test -z "$ac_c_werror_flag" ||
31943 test ! -s conftest.err
31944 } && test -s conftest.$ac_objext; then
31945 ac_cv_member_struct_stat_st_blocks=yes
31947 echo "$as_me: failed program was:" >&5
31948 sed 's/^/| /' conftest.$ac_ext >&5
31950 cat >conftest.$ac_ext <<_ACEOF
31953 cat confdefs.h >>conftest.$ac_ext
31954 cat >>conftest.$ac_ext <<_ACEOF
31955 /* end confdefs.h. */
31956 $ac_includes_default
31960 static struct stat ac_aggr;
31961 if (sizeof ac_aggr.st_blocks)
31967 rm -f conftest.$ac_objext
31968 if { (ac_try="$ac_compile"
31969 case "(($ac_try" in
31970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31971 *) ac_try_echo=$ac_try;;
31973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31974 (eval "$ac_compile") 2>conftest.er1
31976 grep -v '^ *+' conftest.er1 >conftest.err
31978 cat conftest.err >&5
31979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31980 (exit $ac_status); } && {
31981 test -z "$ac_c_werror_flag" ||
31982 test ! -s conftest.err
31983 } && test -s conftest.$ac_objext; then
31984 ac_cv_member_struct_stat_st_blocks=yes
31986 echo "$as_me: failed program was:" >&5
31987 sed 's/^/| /' conftest.$ac_ext >&5
31989 ac_cv_member_struct_stat_st_blocks=no
31992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31997 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
31998 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
31999 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32001 cat >>confdefs.h <<_ACEOF
32002 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32006 cat >>confdefs.h <<\_ACEOF
32007 #define HAVE_ST_BLOCKS 1
32011 case " $LIBOBJS " in
32012 *" fileblocks.$ac_objext "* ) ;;
32013 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32020 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32021 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32022 if test "${ac_cv_struct_tm+set}" = set; then
32023 echo $ECHO_N "(cached) $ECHO_C" >&6
32025 cat >conftest.$ac_ext <<_ACEOF
32028 cat confdefs.h >>conftest.$ac_ext
32029 cat >>conftest.$ac_ext <<_ACEOF
32030 /* end confdefs.h. */
32031 #include <sys/types.h>
32038 int *p = &tm.tm_sec;
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_struct_tm=time.h
32063 echo "$as_me: failed program was:" >&5
32064 sed 's/^/| /' conftest.$ac_ext >&5
32066 ac_cv_struct_tm=sys/time.h
32069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32071 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32072 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32073 if test $ac_cv_struct_tm = sys/time.h; then
32075 cat >>confdefs.h <<\_ACEOF
32076 #define TM_IN_SYS_TIME 1
32081 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32082 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32083 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32084 echo $ECHO_N "(cached) $ECHO_C" >&6
32086 cat >conftest.$ac_ext <<_ACEOF
32089 cat confdefs.h >>conftest.$ac_ext
32090 cat >>conftest.$ac_ext <<_ACEOF
32091 /* end confdefs.h. */
32092 #include <sys/types.h>
32093 #include <$ac_cv_struct_tm>
32099 static struct tm ac_aggr;
32100 if (ac_aggr.tm_zone)
32106 rm -f conftest.$ac_objext
32107 if { (ac_try="$ac_compile"
32108 case "(($ac_try" in
32109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32110 *) ac_try_echo=$ac_try;;
32112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32113 (eval "$ac_compile") 2>conftest.er1
32115 grep -v '^ *+' conftest.er1 >conftest.err
32117 cat conftest.err >&5
32118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32119 (exit $ac_status); } && {
32120 test -z "$ac_c_werror_flag" ||
32121 test ! -s conftest.err
32122 } && test -s conftest.$ac_objext; then
32123 ac_cv_member_struct_tm_tm_zone=yes
32125 echo "$as_me: failed program was:" >&5
32126 sed 's/^/| /' conftest.$ac_ext >&5
32128 cat >conftest.$ac_ext <<_ACEOF
32131 cat confdefs.h >>conftest.$ac_ext
32132 cat >>conftest.$ac_ext <<_ACEOF
32133 /* end confdefs.h. */
32134 #include <sys/types.h>
32135 #include <$ac_cv_struct_tm>
32141 static struct tm ac_aggr;
32142 if (sizeof ac_aggr.tm_zone)
32148 rm -f conftest.$ac_objext
32149 if { (ac_try="$ac_compile"
32150 case "(($ac_try" in
32151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32152 *) ac_try_echo=$ac_try;;
32154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32155 (eval "$ac_compile") 2>conftest.er1
32157 grep -v '^ *+' conftest.er1 >conftest.err
32159 cat conftest.err >&5
32160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32161 (exit $ac_status); } && {
32162 test -z "$ac_c_werror_flag" ||
32163 test ! -s conftest.err
32164 } && test -s conftest.$ac_objext; then
32165 ac_cv_member_struct_tm_tm_zone=yes
32167 echo "$as_me: failed program was:" >&5
32168 sed 's/^/| /' conftest.$ac_ext >&5
32170 ac_cv_member_struct_tm_tm_zone=no
32173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32178 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32179 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32180 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32182 cat >>confdefs.h <<_ACEOF
32183 #define HAVE_STRUCT_TM_TM_ZONE 1
32189 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32191 cat >>confdefs.h <<\_ACEOF
32192 #define HAVE_TM_ZONE 1
32196 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32197 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32198 if test "${ac_cv_have_decl_tzname+set}" = set; then
32199 echo $ECHO_N "(cached) $ECHO_C" >&6
32201 cat >conftest.$ac_ext <<_ACEOF
32204 cat confdefs.h >>conftest.$ac_ext
32205 cat >>conftest.$ac_ext <<_ACEOF
32206 /* end confdefs.h. */
32220 rm -f conftest.$ac_objext
32221 if { (ac_try="$ac_compile"
32222 case "(($ac_try" in
32223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32224 *) ac_try_echo=$ac_try;;
32226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32227 (eval "$ac_compile") 2>conftest.er1
32229 grep -v '^ *+' conftest.er1 >conftest.err
32231 cat conftest.err >&5
32232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 (exit $ac_status); } && {
32234 test -z "$ac_c_werror_flag" ||
32235 test ! -s conftest.err
32236 } && test -s conftest.$ac_objext; then
32237 ac_cv_have_decl_tzname=yes
32239 echo "$as_me: failed program was:" >&5
32240 sed 's/^/| /' conftest.$ac_ext >&5
32242 ac_cv_have_decl_tzname=no
32245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32247 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32248 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32249 if test $ac_cv_have_decl_tzname = yes; then
32251 cat >>confdefs.h <<_ACEOF
32252 #define HAVE_DECL_TZNAME 1
32257 cat >>confdefs.h <<_ACEOF
32258 #define HAVE_DECL_TZNAME 0
32265 { echo "$as_me:$LINENO: checking for tzname" >&5
32266 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32267 if test "${ac_cv_var_tzname+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. */
32277 #if !HAVE_DECL_TZNAME
32278 extern char *tzname[];
32284 return tzname[0][0];
32289 rm -f conftest.$ac_objext conftest$ac_exeext
32290 if { (ac_try="$ac_link"
32291 case "(($ac_try" in
32292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32293 *) ac_try_echo=$ac_try;;
32295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32296 (eval "$ac_link") 2>conftest.er1
32298 grep -v '^ *+' conftest.er1 >conftest.err
32300 cat conftest.err >&5
32301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32302 (exit $ac_status); } && {
32303 test -z "$ac_c_werror_flag" ||
32304 test ! -s conftest.err
32305 } && test -s conftest$ac_exeext &&
32306 $as_test_x conftest$ac_exeext; then
32307 ac_cv_var_tzname=yes
32309 echo "$as_me: failed program was:" >&5
32310 sed 's/^/| /' conftest.$ac_ext >&5
32312 ac_cv_var_tzname=no
32315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32316 conftest$ac_exeext conftest.$ac_ext
32318 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32319 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32320 if test $ac_cv_var_tzname = yes; then
32322 cat >>confdefs.h <<\_ACEOF
32323 #define HAVE_TZNAME 1
32330 { echo "$as_me:$LINENO: checking for utime.h" >&5
32331 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32332 if test "${ba_cv_header_utime_h+set}" = set; then
32333 echo $ECHO_N "(cached) $ECHO_C" >&6
32336 cat >conftest.$ac_ext <<_ACEOF
32339 cat confdefs.h >>conftest.$ac_ext
32340 cat >>conftest.$ac_ext <<_ACEOF
32341 /* end confdefs.h. */
32343 #include <sys/types.h>
32356 rm -f conftest.$ac_objext
32357 if { (ac_try="$ac_compile"
32358 case "(($ac_try" in
32359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32360 *) ac_try_echo=$ac_try;;
32362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32363 (eval "$ac_compile") 2>conftest.er1
32365 grep -v '^ *+' conftest.er1 >conftest.err
32367 cat conftest.err >&5
32368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32369 (exit $ac_status); } && {
32370 test -z "$ac_c_werror_flag" ||
32371 test ! -s conftest.err
32372 } && test -s conftest.$ac_objext; then
32374 ba_cv_header_utime_h=yes
32377 echo "$as_me: failed program was:" >&5
32378 sed 's/^/| /' conftest.$ac_ext >&5
32381 ba_cv_header_utime_h=no
32386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32390 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32391 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32392 test $ba_cv_header_utime_h = yes &&
32393 cat >>confdefs.h <<\_ACEOF
32394 #define HAVE_UTIME_H 1
32398 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32399 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32400 if test "${ba_cv_header_socklen_t+set}" = set; then
32401 echo $ECHO_N "(cached) $ECHO_C" >&6
32404 cat >conftest.$ac_ext <<_ACEOF
32407 cat confdefs.h >>conftest.$ac_ext
32408 cat >>conftest.$ac_ext <<_ACEOF
32409 /* end confdefs.h. */
32411 #include <sys/types.h>
32412 #include <sys/socket.h>
32424 rm -f conftest.$ac_objext
32425 if { (ac_try="$ac_compile"
32426 case "(($ac_try" in
32427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32428 *) ac_try_echo=$ac_try;;
32430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32431 (eval "$ac_compile") 2>conftest.er1
32433 grep -v '^ *+' conftest.er1 >conftest.err
32435 cat conftest.err >&5
32436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32437 (exit $ac_status); } && {
32438 test -z "$ac_c_werror_flag" ||
32439 test ! -s conftest.err
32440 } && test -s conftest.$ac_objext; then
32442 ba_cv_header_socklen_t=yes
32445 echo "$as_me: failed program was:" >&5
32446 sed 's/^/| /' conftest.$ac_ext >&5
32449 ba_cv_header_socklen_t=no
32454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32458 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32459 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32460 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32461 #define HAVE_SOCKLEN_T 1
32466 ac_cpp='$CXXCPP $CPPFLAGS'
32467 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32468 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32469 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32471 { echo "$as_me:$LINENO: checking for typeof" >&5
32472 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32473 if test "${ba_cv_have_typeof+set}" = set; then
32474 echo $ECHO_N "(cached) $ECHO_C" >&6
32477 if test "$cross_compiling" = yes; then
32479 ba_cv_have_typeof=no
32483 cat >conftest.$ac_ext <<_ACEOF
32486 cat confdefs.h >>conftest.$ac_ext
32487 cat >>conftest.$ac_ext <<_ACEOF
32488 /* end confdefs.h. */
32490 main(){char *a = 0; a = (typeof a)a;}
32493 rm -f conftest$ac_exeext
32494 if { (ac_try="$ac_link"
32495 case "(($ac_try" in
32496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32497 *) ac_try_echo=$ac_try;;
32499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32500 (eval "$ac_link") 2>&5
32502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32503 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32504 { (case "(($ac_try" in
32505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32506 *) ac_try_echo=$ac_try;;
32508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32509 (eval "$ac_try") 2>&5
32511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32512 (exit $ac_status); }; }; then
32514 ba_cv_have_typeof=yes
32517 echo "$as_me: program exited with status $ac_status" >&5
32518 echo "$as_me: failed program was:" >&5
32519 sed 's/^/| /' conftest.$ac_ext >&5
32521 ( exit $ac_status )
32523 ba_cv_have_typeof=no
32526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32533 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32534 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32535 test $ba_cv_have_typeof = yes &&
32536 cat >>confdefs.h <<\_ACEOF
32537 #define HAVE_TYPEOF 1
32541 ac_cpp='$CPP $CPPFLAGS'
32542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32547 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32548 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32549 if test "${ac_cv_c_const+set}" = set; then
32550 echo $ECHO_N "(cached) $ECHO_C" >&6
32552 cat >conftest.$ac_ext <<_ACEOF
32555 cat confdefs.h >>conftest.$ac_ext
32556 cat >>conftest.$ac_ext <<_ACEOF
32557 /* end confdefs.h. */
32562 /* FIXME: Include the comments suggested by Paul. */
32563 #ifndef __cplusplus
32564 /* Ultrix mips cc rejects this. */
32565 typedef int charset[2];
32567 /* SunOS 4.1.1 cc rejects this. */
32568 char const *const *pcpcc;
32570 /* NEC SVR4.0.2 mips cc rejects this. */
32571 struct point {int x, y;};
32572 static struct point const zero = {0,0};
32573 /* AIX XL C 1.02.0.0 rejects this.
32574 It does not let you subtract one const X* pointer from another in
32575 an arm of an if-expression whose if-part is not a constant
32577 const char *g = "string";
32578 pcpcc = &g + (g ? g-g : 0);
32579 /* HPUX 7.0 cc rejects these. */
32581 ppc = (char**) pcpcc;
32582 pcpcc = (char const *const *) ppc;
32583 { /* SCO 3.2v4 cc rejects this. */
32585 char const *s = 0 ? (char *) 0 : (char const *) 0;
32590 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32591 int x[] = {25, 17};
32592 const int *foo = &x[0];
32595 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32596 typedef const int *iptr;
32600 { /* AIX XL C 1.02.0.0 rejects this saying
32601 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32602 struct s { int j; const int *ap[3]; };
32603 struct s *b; b->j = 5;
32605 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32606 const int foo = 10;
32607 if (!foo) return 0;
32609 return !cs[0] && !zero.x;
32616 rm -f conftest.$ac_objext
32617 if { (ac_try="$ac_compile"
32618 case "(($ac_try" in
32619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32620 *) ac_try_echo=$ac_try;;
32622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32623 (eval "$ac_compile") 2>conftest.er1
32625 grep -v '^ *+' conftest.er1 >conftest.err
32627 cat conftest.err >&5
32628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629 (exit $ac_status); } && {
32630 test -z "$ac_c_werror_flag" ||
32631 test ! -s conftest.err
32632 } && test -s conftest.$ac_objext; then
32635 echo "$as_me: failed program was:" >&5
32636 sed 's/^/| /' conftest.$ac_ext >&5
32641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32643 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32644 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32645 if test $ac_cv_c_const = no; then
32647 cat >>confdefs.h <<\_ACEOF
32654 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32655 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32657 # The order of these tests is important.
32658 cat >conftest.$ac_ext <<_ACEOF
32661 cat confdefs.h >>conftest.$ac_ext
32662 cat >>conftest.$ac_ext <<_ACEOF
32663 /* end confdefs.h. */
32665 #include <sys/statvfs.h>
32666 #include <sys/fstyp.h>
32669 if { (ac_try="$ac_cpp conftest.$ac_ext"
32670 case "(($ac_try" in
32671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32672 *) ac_try_echo=$ac_try;;
32674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32677 grep -v '^ *+' conftest.er1 >conftest.err
32679 cat conftest.err >&5
32680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32681 (exit $ac_status); } >/dev/null && {
32682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32683 test ! -s conftest.err
32685 cat >>confdefs.h <<\_ACEOF
32686 #define FSTYPE_STATVFS 1
32691 echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32697 rm -f conftest.err conftest.$ac_ext
32698 if test $fstype = no; then
32699 cat >conftest.$ac_ext <<_ACEOF
32702 cat confdefs.h >>conftest.$ac_ext
32703 cat >>conftest.$ac_ext <<_ACEOF
32704 /* end confdefs.h. */
32706 #include <sys/statfs.h>
32707 #include <sys/fstyp.h>
32710 if { (ac_try="$ac_cpp conftest.$ac_ext"
32711 case "(($ac_try" in
32712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32713 *) ac_try_echo=$ac_try;;
32715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32718 grep -v '^ *+' conftest.er1 >conftest.err
32720 cat conftest.err >&5
32721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32722 (exit $ac_status); } >/dev/null && {
32723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32724 test ! -s conftest.err
32726 cat >>confdefs.h <<\_ACEOF
32727 #define FSTYPE_USG_STATFS 1
32732 echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32738 rm -f conftest.err conftest.$ac_ext
32740 if test $fstype = no; then
32741 cat >conftest.$ac_ext <<_ACEOF
32744 cat confdefs.h >>conftest.$ac_ext
32745 cat >>conftest.$ac_ext <<_ACEOF
32746 /* end confdefs.h. */
32748 #include <sys/statfs.h>
32749 #include <sys/vmount.h>
32752 if { (ac_try="$ac_cpp conftest.$ac_ext"
32753 case "(($ac_try" in
32754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32755 *) ac_try_echo=$ac_try;;
32757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32760 grep -v '^ *+' conftest.er1 >conftest.err
32762 cat conftest.err >&5
32763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32764 (exit $ac_status); } >/dev/null && {
32765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32766 test ! -s conftest.err
32768 cat >>confdefs.h <<\_ACEOF
32769 #define FSTYPE_AIX_STATFS 1
32774 echo "$as_me: failed program was:" >&5
32775 sed 's/^/| /' conftest.$ac_ext >&5
32780 rm -f conftest.err conftest.$ac_ext
32782 if test $fstype = no; then
32783 cat >conftest.$ac_ext <<_ACEOF
32786 cat confdefs.h >>conftest.$ac_ext
32787 cat >>conftest.$ac_ext <<_ACEOF
32788 /* end confdefs.h. */
32790 #include <mntent.h>
32793 if { (ac_try="$ac_cpp conftest.$ac_ext"
32794 case "(($ac_try" in
32795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796 *) ac_try_echo=$ac_try;;
32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32801 grep -v '^ *+' conftest.er1 >conftest.err
32803 cat conftest.err >&5
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); } >/dev/null && {
32806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32807 test ! -s conftest.err
32809 cat >>confdefs.h <<\_ACEOF
32810 #define FSTYPE_MNTENT 1
32815 echo "$as_me: failed program was:" >&5
32816 sed 's/^/| /' conftest.$ac_ext >&5
32821 rm -f conftest.err conftest.$ac_ext
32823 if test $fstype = no; then
32824 cat >conftest.$ac_ext <<_ACEOF
32827 cat confdefs.h >>conftest.$ac_ext
32828 cat >>conftest.$ac_ext <<_ACEOF
32829 /* end confdefs.h. */
32830 #include <sys/mount.h>
32833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32834 $EGREP "f_type;" >/dev/null 2>&1; then
32835 cat >>confdefs.h <<\_ACEOF
32836 #define FSTYPE_STATFS 1
32843 if test $fstype = no; then
32844 cat >conftest.$ac_ext <<_ACEOF
32847 cat confdefs.h >>conftest.$ac_ext
32848 cat >>conftest.$ac_ext <<_ACEOF
32849 /* end confdefs.h. */
32851 #include <sys/mount.h>
32852 #include <sys/fs_types.h>
32855 if { (ac_try="$ac_cpp conftest.$ac_ext"
32856 case "(($ac_try" in
32857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32858 *) ac_try_echo=$ac_try;;
32860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32863 grep -v '^ *+' conftest.er1 >conftest.err
32865 cat conftest.err >&5
32866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32867 (exit $ac_status); } >/dev/null && {
32868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32869 test ! -s conftest.err
32871 cat >>confdefs.h <<\_ACEOF
32872 #define FSTYPE_GETMNT 1
32877 echo "$as_me: failed program was:" >&5
32878 sed 's/^/| /' conftest.$ac_ext >&5
32883 rm -f conftest.err conftest.$ac_ext
32885 { echo "$as_me:$LINENO: result: $fstype" >&5
32886 echo "${ECHO_T}$fstype" >&6; }
32888 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32889 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32890 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32891 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32892 echo $ECHO_N "(cached) $ECHO_C" >&6
32894 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32895 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32897 # Is the header compilable?
32898 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32899 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32900 cat >conftest.$ac_ext <<_ACEOF
32903 cat confdefs.h >>conftest.$ac_ext
32904 cat >>conftest.$ac_ext <<_ACEOF
32905 /* end confdefs.h. */
32906 $ac_includes_default
32907 #include <sys/statvfs.h>
32909 rm -f conftest.$ac_objext
32910 if { (ac_try="$ac_compile"
32911 case "(($ac_try" in
32912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32913 *) ac_try_echo=$ac_try;;
32915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32916 (eval "$ac_compile") 2>conftest.er1
32918 grep -v '^ *+' conftest.er1 >conftest.err
32920 cat conftest.err >&5
32921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32922 (exit $ac_status); } && {
32923 test -z "$ac_c_werror_flag" ||
32924 test ! -s conftest.err
32925 } && test -s conftest.$ac_objext; then
32926 ac_header_compiler=yes
32928 echo "$as_me: failed program was:" >&5
32929 sed 's/^/| /' conftest.$ac_ext >&5
32931 ac_header_compiler=no
32934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32936 echo "${ECHO_T}$ac_header_compiler" >&6; }
32938 # Is the header present?
32939 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32940 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32941 cat >conftest.$ac_ext <<_ACEOF
32944 cat confdefs.h >>conftest.$ac_ext
32945 cat >>conftest.$ac_ext <<_ACEOF
32946 /* end confdefs.h. */
32947 #include <sys/statvfs.h>
32949 if { (ac_try="$ac_cpp conftest.$ac_ext"
32950 case "(($ac_try" in
32951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32952 *) ac_try_echo=$ac_try;;
32954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32957 grep -v '^ *+' conftest.er1 >conftest.err
32959 cat conftest.err >&5
32960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32961 (exit $ac_status); } >/dev/null && {
32962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32963 test ! -s conftest.err
32965 ac_header_preproc=yes
32967 echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.$ac_ext >&5
32970 ac_header_preproc=no
32973 rm -f conftest.err conftest.$ac_ext
32974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32975 echo "${ECHO_T}$ac_header_preproc" >&6; }
32977 # So? What about this header?
32978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32980 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32981 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32982 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32983 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
32984 ac_header_preproc=yes
32987 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
32988 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
32989 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
32990 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
32991 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
32992 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
32993 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
32994 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
32995 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
32996 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
32997 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
32998 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33002 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33003 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33004 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33005 echo $ECHO_N "(cached) $ECHO_C" >&6
33007 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33009 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33010 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33013 if test $ac_cv_header_sys_statvfs_h = yes; then
33015 cat >>confdefs.h <<\_ACEOF
33016 #define HAVE_SYS_STATVFS_H 1
33023 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33024 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33025 if test "${ac_cv_type_signal+set}" = set; then
33026 echo $ECHO_N "(cached) $ECHO_C" >&6
33028 cat >conftest.$ac_ext <<_ACEOF
33031 cat confdefs.h >>conftest.$ac_ext
33032 cat >>conftest.$ac_ext <<_ACEOF
33033 /* end confdefs.h. */
33034 #include <sys/types.h>
33035 #include <signal.h>
33040 return *(signal (0, 0)) (0) == 1;
33045 rm -f conftest.$ac_objext
33046 if { (ac_try="$ac_compile"
33047 case "(($ac_try" in
33048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33049 *) ac_try_echo=$ac_try;;
33051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33052 (eval "$ac_compile") 2>conftest.er1
33054 grep -v '^ *+' conftest.er1 >conftest.err
33056 cat conftest.err >&5
33057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33058 (exit $ac_status); } && {
33059 test -z "$ac_c_werror_flag" ||
33060 test ! -s conftest.err
33061 } && test -s conftest.$ac_objext; then
33062 ac_cv_type_signal=int
33064 echo "$as_me: failed program was:" >&5
33065 sed 's/^/| /' conftest.$ac_ext >&5
33067 ac_cv_type_signal=void
33070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33072 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33073 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33075 cat >>confdefs.h <<_ACEOF
33076 #define RETSIGTYPE $ac_cv_type_signal
33081 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33082 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33083 if test "${bash_cv_signal_vintage+set}" = set; then
33084 echo $ECHO_N "(cached) $ECHO_C" >&6
33087 cat >conftest.$ac_ext <<_ACEOF
33090 cat confdefs.h >>conftest.$ac_ext
33091 cat >>conftest.$ac_ext <<_ACEOF
33092 /* end confdefs.h. */
33093 #include <signal.h>
33099 struct sigaction sa;
33100 sigemptyset(&ss); sigsuspend(&ss);
33101 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33102 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33108 rm -f conftest.$ac_objext conftest$ac_exeext
33109 if { (ac_try="$ac_link"
33110 case "(($ac_try" in
33111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33112 *) ac_try_echo=$ac_try;;
33114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33115 (eval "$ac_link") 2>conftest.er1
33117 grep -v '^ *+' conftest.er1 >conftest.err
33119 cat conftest.err >&5
33120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121 (exit $ac_status); } && {
33122 test -z "$ac_c_werror_flag" ||
33123 test ! -s conftest.err
33124 } && test -s conftest$ac_exeext &&
33125 $as_test_x conftest$ac_exeext; then
33126 bash_cv_signal_vintage="posix"
33128 echo "$as_me: failed program was:" >&5
33129 sed 's/^/| /' conftest.$ac_ext >&5
33132 cat >conftest.$ac_ext <<_ACEOF
33135 cat confdefs.h >>conftest.$ac_ext
33136 cat >>conftest.$ac_ext <<_ACEOF
33137 /* end confdefs.h. */
33138 #include <signal.h>
33143 int mask = sigmask(SIGINT);
33144 sigsetmask(mask); sigblock(mask); sigpause(mask);
33150 rm -f conftest.$ac_objext conftest$ac_exeext
33151 if { (ac_try="$ac_link"
33152 case "(($ac_try" in
33153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154 *) ac_try_echo=$ac_try;;
33156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33157 (eval "$ac_link") 2>conftest.er1
33159 grep -v '^ *+' conftest.er1 >conftest.err
33161 cat conftest.err >&5
33162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163 (exit $ac_status); } && {
33164 test -z "$ac_c_werror_flag" ||
33165 test ! -s conftest.err
33166 } && test -s conftest$ac_exeext &&
33167 $as_test_x conftest$ac_exeext; then
33168 bash_cv_signal_vintage="4.2bsd"
33170 echo "$as_me: failed program was:" >&5
33171 sed 's/^/| /' conftest.$ac_ext >&5
33174 cat >conftest.$ac_ext <<_ACEOF
33177 cat confdefs.h >>conftest.$ac_ext
33178 cat >>conftest.$ac_ext <<_ACEOF
33179 /* end confdefs.h. */
33181 #include <signal.h>
33182 RETSIGTYPE foo() { }
33187 int mask = sigmask(SIGINT);
33188 sigset(SIGINT, foo); sigrelse(SIGINT);
33189 sighold(SIGINT); sigpause(SIGINT);
33195 rm -f conftest.$ac_objext conftest$ac_exeext
33196 if { (ac_try="$ac_link"
33197 case "(($ac_try" in
33198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33199 *) ac_try_echo=$ac_try;;
33201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33202 (eval "$ac_link") 2>conftest.er1
33204 grep -v '^ *+' conftest.er1 >conftest.err
33206 cat conftest.err >&5
33207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33208 (exit $ac_status); } && {
33209 test -z "$ac_c_werror_flag" ||
33210 test ! -s conftest.err
33211 } && test -s conftest$ac_exeext &&
33212 $as_test_x conftest$ac_exeext; then
33213 bash_cv_signal_vintage="svr3"
33215 echo "$as_me: failed program was:" >&5
33216 sed 's/^/| /' conftest.$ac_ext >&5
33218 bash_cv_signal_vintage="v7"
33222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33223 conftest$ac_exeext conftest.$ac_ext
33227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33228 conftest$ac_exeext conftest.$ac_ext
33232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33233 conftest$ac_exeext conftest.$ac_ext
33237 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33238 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33239 if test "$bash_cv_signal_vintage" = "posix"; then
33240 cat >>confdefs.h <<\_ACEOF
33241 #define HAVE_POSIX_SIGNALS 1
33244 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33245 cat >>confdefs.h <<\_ACEOF
33246 #define HAVE_BSD_SIGNALS 1
33249 elif test "$bash_cv_signal_vintage" = "svr3"; then
33250 cat >>confdefs.h <<\_ACEOF
33251 #define HAVE_USG_SIGHOLD 1
33256 { echo "$as_me:$LINENO: checking for mode_t" >&5
33257 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33258 if test "${ac_cv_type_mode_t+set}" = set; then
33259 echo $ECHO_N "(cached) $ECHO_C" >&6
33261 cat >conftest.$ac_ext <<_ACEOF
33264 cat confdefs.h >>conftest.$ac_ext
33265 cat >>conftest.$ac_ext <<_ACEOF
33266 /* end confdefs.h. */
33267 $ac_includes_default
33268 typedef mode_t ac__type_new_;
33272 if ((ac__type_new_ *) 0)
33274 if (sizeof (ac__type_new_))
33280 rm -f conftest.$ac_objext
33281 if { (ac_try="$ac_compile"
33282 case "(($ac_try" in
33283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33284 *) ac_try_echo=$ac_try;;
33286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33287 (eval "$ac_compile") 2>conftest.er1
33289 grep -v '^ *+' conftest.er1 >conftest.err
33291 cat conftest.err >&5
33292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33293 (exit $ac_status); } && {
33294 test -z "$ac_c_werror_flag" ||
33295 test ! -s conftest.err
33296 } && test -s conftest.$ac_objext; then
33297 ac_cv_type_mode_t=yes
33299 echo "$as_me: failed program was:" >&5
33300 sed 's/^/| /' conftest.$ac_ext >&5
33302 ac_cv_type_mode_t=no
33305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33307 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33308 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33309 if test $ac_cv_type_mode_t = yes; then
33313 cat >>confdefs.h <<_ACEOF
33319 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33320 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33321 if test "${ac_cv_type_uid_t+set}" = set; then
33322 echo $ECHO_N "(cached) $ECHO_C" >&6
33324 cat >conftest.$ac_ext <<_ACEOF
33327 cat confdefs.h >>conftest.$ac_ext
33328 cat >>conftest.$ac_ext <<_ACEOF
33329 /* end confdefs.h. */
33330 #include <sys/types.h>
33333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33334 $EGREP "uid_t" >/dev/null 2>&1; then
33335 ac_cv_type_uid_t=yes
33337 ac_cv_type_uid_t=no
33342 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33343 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33344 if test $ac_cv_type_uid_t = no; then
33346 cat >>confdefs.h <<\_ACEOF
33351 cat >>confdefs.h <<\_ACEOF
33357 { echo "$as_me:$LINENO: checking for size_t" >&5
33358 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33359 if test "${ac_cv_type_size_t+set}" = set; then
33360 echo $ECHO_N "(cached) $ECHO_C" >&6
33362 cat >conftest.$ac_ext <<_ACEOF
33365 cat confdefs.h >>conftest.$ac_ext
33366 cat >>conftest.$ac_ext <<_ACEOF
33367 /* end confdefs.h. */
33368 $ac_includes_default
33369 typedef size_t ac__type_new_;
33373 if ((ac__type_new_ *) 0)
33375 if (sizeof (ac__type_new_))
33381 rm -f conftest.$ac_objext
33382 if { (ac_try="$ac_compile"
33383 case "(($ac_try" in
33384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385 *) ac_try_echo=$ac_try;;
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388 (eval "$ac_compile") 2>conftest.er1
33390 grep -v '^ *+' conftest.er1 >conftest.err
33392 cat conftest.err >&5
33393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394 (exit $ac_status); } && {
33395 test -z "$ac_c_werror_flag" ||
33396 test ! -s conftest.err
33397 } && test -s conftest.$ac_objext; then
33398 ac_cv_type_size_t=yes
33400 echo "$as_me: failed program was:" >&5
33401 sed 's/^/| /' conftest.$ac_ext >&5
33403 ac_cv_type_size_t=no
33406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33408 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33409 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33410 if test $ac_cv_type_size_t = yes; then
33414 cat >>confdefs.h <<_ACEOF
33415 #define size_t unsigned int
33420 { echo "$as_me:$LINENO: checking for pid_t" >&5
33421 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33422 if test "${ac_cv_type_pid_t+set}" = set; then
33423 echo $ECHO_N "(cached) $ECHO_C" >&6
33425 cat >conftest.$ac_ext <<_ACEOF
33428 cat confdefs.h >>conftest.$ac_ext
33429 cat >>conftest.$ac_ext <<_ACEOF
33430 /* end confdefs.h. */
33431 $ac_includes_default
33432 typedef pid_t ac__type_new_;
33436 if ((ac__type_new_ *) 0)
33438 if (sizeof (ac__type_new_))
33444 rm -f conftest.$ac_objext
33445 if { (ac_try="$ac_compile"
33446 case "(($ac_try" in
33447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33448 *) ac_try_echo=$ac_try;;
33450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33451 (eval "$ac_compile") 2>conftest.er1
33453 grep -v '^ *+' conftest.er1 >conftest.err
33455 cat conftest.err >&5
33456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); } && {
33458 test -z "$ac_c_werror_flag" ||
33459 test ! -s conftest.err
33460 } && test -s conftest.$ac_objext; then
33461 ac_cv_type_pid_t=yes
33463 echo "$as_me: failed program was:" >&5
33464 sed 's/^/| /' conftest.$ac_ext >&5
33466 ac_cv_type_pid_t=no
33469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33471 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33472 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33473 if test $ac_cv_type_pid_t = yes; then
33477 cat >>confdefs.h <<_ACEOF
33483 { echo "$as_me:$LINENO: checking for off_t" >&5
33484 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33485 if test "${ac_cv_type_off_t+set}" = set; then
33486 echo $ECHO_N "(cached) $ECHO_C" >&6
33488 cat >conftest.$ac_ext <<_ACEOF
33491 cat confdefs.h >>conftest.$ac_ext
33492 cat >>conftest.$ac_ext <<_ACEOF
33493 /* end confdefs.h. */
33494 $ac_includes_default
33495 typedef off_t ac__type_new_;
33499 if ((ac__type_new_ *) 0)
33501 if (sizeof (ac__type_new_))
33507 rm -f conftest.$ac_objext
33508 if { (ac_try="$ac_compile"
33509 case "(($ac_try" in
33510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33511 *) ac_try_echo=$ac_try;;
33513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33514 (eval "$ac_compile") 2>conftest.er1
33516 grep -v '^ *+' conftest.er1 >conftest.err
33518 cat conftest.err >&5
33519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520 (exit $ac_status); } && {
33521 test -z "$ac_c_werror_flag" ||
33522 test ! -s conftest.err
33523 } && test -s conftest.$ac_objext; then
33524 ac_cv_type_off_t=yes
33526 echo "$as_me: failed program was:" >&5
33527 sed 's/^/| /' conftest.$ac_ext >&5
33529 ac_cv_type_off_t=no
33532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33534 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33535 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33536 if test $ac_cv_type_off_t = yes; then
33540 cat >>confdefs.h <<_ACEOF
33541 #define off_t long int
33547 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33548 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33549 if test "${ac_cv_type_intptr_t+set}" = set; then
33550 echo $ECHO_N "(cached) $ECHO_C" >&6
33552 cat >conftest.$ac_ext <<_ACEOF
33555 cat confdefs.h >>conftest.$ac_ext
33556 cat >>conftest.$ac_ext <<_ACEOF
33557 /* end confdefs.h. */
33558 $ac_includes_default
33559 typedef intptr_t ac__type_new_;
33563 if ((ac__type_new_ *) 0)
33565 if (sizeof (ac__type_new_))
33571 rm -f conftest.$ac_objext
33572 if { (ac_try="$ac_compile"
33573 case "(($ac_try" in
33574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33575 *) ac_try_echo=$ac_try;;
33577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33578 (eval "$ac_compile") 2>conftest.er1
33580 grep -v '^ *+' conftest.er1 >conftest.err
33582 cat conftest.err >&5
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); } && {
33585 test -z "$ac_c_werror_flag" ||
33586 test ! -s conftest.err
33587 } && test -s conftest.$ac_objext; then
33588 ac_cv_type_intptr_t=yes
33590 echo "$as_me: failed program was:" >&5
33591 sed 's/^/| /' conftest.$ac_ext >&5
33593 ac_cv_type_intptr_t=no
33596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33598 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33599 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33600 if test $ac_cv_type_intptr_t = yes; then
33602 cat >>confdefs.h <<\_ACEOF
33603 #define HAVE_INTPTR_T 1
33607 for ac_type in 'int' 'long int' 'long long int'; do
33608 cat >conftest.$ac_ext <<_ACEOF
33611 cat confdefs.h >>conftest.$ac_ext
33612 cat >>conftest.$ac_ext <<_ACEOF
33613 /* end confdefs.h. */
33614 $ac_includes_default
33618 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33625 rm -f conftest.$ac_objext
33626 if { (ac_try="$ac_compile"
33627 case "(($ac_try" in
33628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33629 *) ac_try_echo=$ac_try;;
33631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33632 (eval "$ac_compile") 2>conftest.er1
33634 grep -v '^ *+' conftest.er1 >conftest.err
33636 cat conftest.err >&5
33637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638 (exit $ac_status); } && {
33639 test -z "$ac_c_werror_flag" ||
33640 test ! -s conftest.err
33641 } && test -s conftest.$ac_objext; then
33643 cat >>confdefs.h <<_ACEOF
33644 #define intptr_t $ac_type
33649 echo "$as_me: failed program was:" >&5
33650 sed 's/^/| /' conftest.$ac_ext >&5
33655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33656 test -z "$ac_type" && break
33662 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33663 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33664 if test "${ac_cv_type_uintptr_t+set}" = set; then
33665 echo $ECHO_N "(cached) $ECHO_C" >&6
33667 cat >conftest.$ac_ext <<_ACEOF
33670 cat confdefs.h >>conftest.$ac_ext
33671 cat >>conftest.$ac_ext <<_ACEOF
33672 /* end confdefs.h. */
33673 $ac_includes_default
33674 typedef uintptr_t ac__type_new_;
33678 if ((ac__type_new_ *) 0)
33680 if (sizeof (ac__type_new_))
33686 rm -f conftest.$ac_objext
33687 if { (ac_try="$ac_compile"
33688 case "(($ac_try" in
33689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33690 *) ac_try_echo=$ac_try;;
33692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33693 (eval "$ac_compile") 2>conftest.er1
33695 grep -v '^ *+' conftest.er1 >conftest.err
33697 cat conftest.err >&5
33698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33699 (exit $ac_status); } && {
33700 test -z "$ac_c_werror_flag" ||
33701 test ! -s conftest.err
33702 } && test -s conftest.$ac_objext; then
33703 ac_cv_type_uintptr_t=yes
33705 echo "$as_me: failed program was:" >&5
33706 sed 's/^/| /' conftest.$ac_ext >&5
33708 ac_cv_type_uintptr_t=no
33711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33713 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33714 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33715 if test $ac_cv_type_uintptr_t = yes; then
33717 cat >>confdefs.h <<\_ACEOF
33718 #define HAVE_UINTPTR_T 1
33722 for ac_type in 'unsigned int' 'unsigned long int' \
33723 'unsigned long long int'; do
33724 cat >conftest.$ac_ext <<_ACEOF
33727 cat confdefs.h >>conftest.$ac_ext
33728 cat >>conftest.$ac_ext <<_ACEOF
33729 /* end confdefs.h. */
33730 $ac_includes_default
33734 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33741 rm -f conftest.$ac_objext
33742 if { (ac_try="$ac_compile"
33743 case "(($ac_try" in
33744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33745 *) ac_try_echo=$ac_try;;
33747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33748 (eval "$ac_compile") 2>conftest.er1
33750 grep -v '^ *+' conftest.er1 >conftest.err
33752 cat conftest.err >&5
33753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33754 (exit $ac_status); } && {
33755 test -z "$ac_c_werror_flag" ||
33756 test ! -s conftest.err
33757 } && test -s conftest.$ac_objext; then
33759 cat >>confdefs.h <<_ACEOF
33760 #define uintptr_t $ac_type
33765 echo "$as_me: failed program was:" >&5
33766 sed 's/^/| /' conftest.$ac_ext >&5
33771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33772 test -z "$ac_type" && break
33777 { echo "$as_me:$LINENO: checking for ino_t" >&5
33778 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33779 if test "${ac_cv_type_ino_t+set}" = set; then
33780 echo $ECHO_N "(cached) $ECHO_C" >&6
33782 cat >conftest.$ac_ext <<_ACEOF
33785 cat confdefs.h >>conftest.$ac_ext
33786 cat >>conftest.$ac_ext <<_ACEOF
33787 /* end confdefs.h. */
33788 $ac_includes_default
33789 typedef ino_t ac__type_new_;
33793 if ((ac__type_new_ *) 0)
33795 if (sizeof (ac__type_new_))
33801 rm -f conftest.$ac_objext
33802 if { (ac_try="$ac_compile"
33803 case "(($ac_try" in
33804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33805 *) ac_try_echo=$ac_try;;
33807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33808 (eval "$ac_compile") 2>conftest.er1
33810 grep -v '^ *+' conftest.er1 >conftest.err
33812 cat conftest.err >&5
33813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33814 (exit $ac_status); } && {
33815 test -z "$ac_c_werror_flag" ||
33816 test ! -s conftest.err
33817 } && test -s conftest.$ac_objext; then
33818 ac_cv_type_ino_t=yes
33820 echo "$as_me: failed program was:" >&5
33821 sed 's/^/| /' conftest.$ac_ext >&5
33823 ac_cv_type_ino_t=no
33826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33828 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33829 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33830 if test $ac_cv_type_ino_t = yes; then
33834 cat >>confdefs.h <<_ACEOF
33835 #define ino_t unsigned long
33840 { echo "$as_me:$LINENO: checking for dev_t" >&5
33841 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33842 if test "${ac_cv_type_dev_t+set}" = set; then
33843 echo $ECHO_N "(cached) $ECHO_C" >&6
33845 cat >conftest.$ac_ext <<_ACEOF
33848 cat confdefs.h >>conftest.$ac_ext
33849 cat >>conftest.$ac_ext <<_ACEOF
33850 /* end confdefs.h. */
33851 $ac_includes_default
33852 typedef dev_t ac__type_new_;
33856 if ((ac__type_new_ *) 0)
33858 if (sizeof (ac__type_new_))
33864 rm -f conftest.$ac_objext
33865 if { (ac_try="$ac_compile"
33866 case "(($ac_try" in
33867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33868 *) ac_try_echo=$ac_try;;
33870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33871 (eval "$ac_compile") 2>conftest.er1
33873 grep -v '^ *+' conftest.er1 >conftest.err
33875 cat conftest.err >&5
33876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33877 (exit $ac_status); } && {
33878 test -z "$ac_c_werror_flag" ||
33879 test ! -s conftest.err
33880 } && test -s conftest.$ac_objext; then
33881 ac_cv_type_dev_t=yes
33883 echo "$as_me: failed program was:" >&5
33884 sed 's/^/| /' conftest.$ac_ext >&5
33886 ac_cv_type_dev_t=no
33889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33891 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33892 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33893 if test $ac_cv_type_dev_t = yes; then
33897 cat >>confdefs.h <<_ACEOF
33898 #define dev_t unsigned long
33903 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33904 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33905 if test "${ac_cv_type_daddr_t+set}" = set; then
33906 echo $ECHO_N "(cached) $ECHO_C" >&6
33908 cat >conftest.$ac_ext <<_ACEOF
33911 cat confdefs.h >>conftest.$ac_ext
33912 cat >>conftest.$ac_ext <<_ACEOF
33913 /* end confdefs.h. */
33914 $ac_includes_default
33915 typedef daddr_t ac__type_new_;
33919 if ((ac__type_new_ *) 0)
33921 if (sizeof (ac__type_new_))
33927 rm -f conftest.$ac_objext
33928 if { (ac_try="$ac_compile"
33929 case "(($ac_try" in
33930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33931 *) ac_try_echo=$ac_try;;
33933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33934 (eval "$ac_compile") 2>conftest.er1
33936 grep -v '^ *+' conftest.er1 >conftest.err
33938 cat conftest.err >&5
33939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33940 (exit $ac_status); } && {
33941 test -z "$ac_c_werror_flag" ||
33942 test ! -s conftest.err
33943 } && test -s conftest.$ac_objext; then
33944 ac_cv_type_daddr_t=yes
33946 echo "$as_me: failed program was:" >&5
33947 sed 's/^/| /' conftest.$ac_ext >&5
33949 ac_cv_type_daddr_t=no
33952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33954 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33955 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33956 if test $ac_cv_type_daddr_t = yes; then
33960 cat >>confdefs.h <<_ACEOF
33961 #define daddr_t long
33966 { echo "$as_me:$LINENO: checking for major_t" >&5
33967 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33968 if test "${ac_cv_type_major_t+set}" = set; then
33969 echo $ECHO_N "(cached) $ECHO_C" >&6
33971 cat >conftest.$ac_ext <<_ACEOF
33974 cat confdefs.h >>conftest.$ac_ext
33975 cat >>conftest.$ac_ext <<_ACEOF
33976 /* end confdefs.h. */
33977 $ac_includes_default
33978 typedef major_t ac__type_new_;
33982 if ((ac__type_new_ *) 0)
33984 if (sizeof (ac__type_new_))
33990 rm -f conftest.$ac_objext
33991 if { (ac_try="$ac_compile"
33992 case "(($ac_try" in
33993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33994 *) ac_try_echo=$ac_try;;
33996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33997 (eval "$ac_compile") 2>conftest.er1
33999 grep -v '^ *+' conftest.er1 >conftest.err
34001 cat conftest.err >&5
34002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34003 (exit $ac_status); } && {
34004 test -z "$ac_c_werror_flag" ||
34005 test ! -s conftest.err
34006 } && test -s conftest.$ac_objext; then
34007 ac_cv_type_major_t=yes
34009 echo "$as_me: failed program was:" >&5
34010 sed 's/^/| /' conftest.$ac_ext >&5
34012 ac_cv_type_major_t=no
34015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34017 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34018 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34019 if test $ac_cv_type_major_t = yes; then
34023 cat >>confdefs.h <<_ACEOF
34024 #define major_t int
34029 { echo "$as_me:$LINENO: checking for minor_t" >&5
34030 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34031 if test "${ac_cv_type_minor_t+set}" = set; then
34032 echo $ECHO_N "(cached) $ECHO_C" >&6
34034 cat >conftest.$ac_ext <<_ACEOF
34037 cat confdefs.h >>conftest.$ac_ext
34038 cat >>conftest.$ac_ext <<_ACEOF
34039 /* end confdefs.h. */
34040 $ac_includes_default
34041 typedef minor_t ac__type_new_;
34045 if ((ac__type_new_ *) 0)
34047 if (sizeof (ac__type_new_))
34053 rm -f conftest.$ac_objext
34054 if { (ac_try="$ac_compile"
34055 case "(($ac_try" in
34056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34057 *) ac_try_echo=$ac_try;;
34059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34060 (eval "$ac_compile") 2>conftest.er1
34062 grep -v '^ *+' conftest.er1 >conftest.err
34064 cat conftest.err >&5
34065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34066 (exit $ac_status); } && {
34067 test -z "$ac_c_werror_flag" ||
34068 test ! -s conftest.err
34069 } && test -s conftest.$ac_objext; then
34070 ac_cv_type_minor_t=yes
34072 echo "$as_me: failed program was:" >&5
34073 sed 's/^/| /' conftest.$ac_ext >&5
34075 ac_cv_type_minor_t=no
34078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34080 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34081 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34082 if test $ac_cv_type_minor_t = yes; then
34086 cat >>confdefs.h <<_ACEOF
34087 #define minor_t int
34092 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34093 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34094 if test "${ac_cv_type_ssize_t+set}" = set; then
34095 echo $ECHO_N "(cached) $ECHO_C" >&6
34097 cat >conftest.$ac_ext <<_ACEOF
34100 cat confdefs.h >>conftest.$ac_ext
34101 cat >>conftest.$ac_ext <<_ACEOF
34102 /* end confdefs.h. */
34103 $ac_includes_default
34104 typedef ssize_t ac__type_new_;
34108 if ((ac__type_new_ *) 0)
34110 if (sizeof (ac__type_new_))
34116 rm -f conftest.$ac_objext
34117 if { (ac_try="$ac_compile"
34118 case "(($ac_try" in
34119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34120 *) ac_try_echo=$ac_try;;
34122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34123 (eval "$ac_compile") 2>conftest.er1
34125 grep -v '^ *+' conftest.er1 >conftest.err
34127 cat conftest.err >&5
34128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34129 (exit $ac_status); } && {
34130 test -z "$ac_c_werror_flag" ||
34131 test ! -s conftest.err
34132 } && test -s conftest.$ac_objext; then
34133 ac_cv_type_ssize_t=yes
34135 echo "$as_me: failed program was:" >&5
34136 sed 's/^/| /' conftest.$ac_ext >&5
34138 ac_cv_type_ssize_t=no
34141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34143 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34144 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34145 if test $ac_cv_type_ssize_t = yes; then
34149 cat >>confdefs.h <<_ACEOF
34150 #define ssize_t int
34155 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34156 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34157 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34158 echo $ECHO_N "(cached) $ECHO_C" >&6
34160 cat >conftest.$ac_ext <<_ACEOF
34163 cat confdefs.h >>conftest.$ac_ext
34164 cat >>conftest.$ac_ext <<_ACEOF
34165 /* end confdefs.h. */
34166 $ac_includes_default
34170 static struct stat ac_aggr;
34171 if (ac_aggr.st_blocks)
34177 rm -f conftest.$ac_objext
34178 if { (ac_try="$ac_compile"
34179 case "(($ac_try" in
34180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34181 *) ac_try_echo=$ac_try;;
34183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34184 (eval "$ac_compile") 2>conftest.er1
34186 grep -v '^ *+' conftest.er1 >conftest.err
34188 cat conftest.err >&5
34189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190 (exit $ac_status); } && {
34191 test -z "$ac_c_werror_flag" ||
34192 test ! -s conftest.err
34193 } && test -s conftest.$ac_objext; then
34194 ac_cv_member_struct_stat_st_blocks=yes
34196 echo "$as_me: failed program was:" >&5
34197 sed 's/^/| /' conftest.$ac_ext >&5
34199 cat >conftest.$ac_ext <<_ACEOF
34202 cat confdefs.h >>conftest.$ac_ext
34203 cat >>conftest.$ac_ext <<_ACEOF
34204 /* end confdefs.h. */
34205 $ac_includes_default
34209 static struct stat ac_aggr;
34210 if (sizeof ac_aggr.st_blocks)
34216 rm -f conftest.$ac_objext
34217 if { (ac_try="$ac_compile"
34218 case "(($ac_try" in
34219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34220 *) ac_try_echo=$ac_try;;
34222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34223 (eval "$ac_compile") 2>conftest.er1
34225 grep -v '^ *+' conftest.er1 >conftest.err
34227 cat conftest.err >&5
34228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34229 (exit $ac_status); } && {
34230 test -z "$ac_c_werror_flag" ||
34231 test ! -s conftest.err
34232 } && test -s conftest.$ac_objext; then
34233 ac_cv_member_struct_stat_st_blocks=yes
34235 echo "$as_me: failed program was:" >&5
34236 sed 's/^/| /' conftest.$ac_ext >&5
34238 ac_cv_member_struct_stat_st_blocks=no
34241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34246 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34247 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34248 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34250 cat >>confdefs.h <<_ACEOF
34251 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34255 cat >>confdefs.h <<\_ACEOF
34256 #define HAVE_ST_BLOCKS 1
34260 case " $LIBOBJS " in
34261 *" fileblocks.$ac_objext "* ) ;;
34262 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34269 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34270 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34271 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34272 echo $ECHO_N "(cached) $ECHO_C" >&6
34274 cat >conftest.$ac_ext <<_ACEOF
34277 cat confdefs.h >>conftest.$ac_ext
34278 cat >>conftest.$ac_ext <<_ACEOF
34279 /* end confdefs.h. */
34280 $ac_includes_default
34284 static struct stat ac_aggr;
34285 if (ac_aggr.st_rdev)
34291 rm -f conftest.$ac_objext
34292 if { (ac_try="$ac_compile"
34293 case "(($ac_try" in
34294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34295 *) ac_try_echo=$ac_try;;
34297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34298 (eval "$ac_compile") 2>conftest.er1
34300 grep -v '^ *+' conftest.er1 >conftest.err
34302 cat conftest.err >&5
34303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34304 (exit $ac_status); } && {
34305 test -z "$ac_c_werror_flag" ||
34306 test ! -s conftest.err
34307 } && test -s conftest.$ac_objext; then
34308 ac_cv_member_struct_stat_st_rdev=yes
34310 echo "$as_me: failed program was:" >&5
34311 sed 's/^/| /' conftest.$ac_ext >&5
34313 cat >conftest.$ac_ext <<_ACEOF
34316 cat confdefs.h >>conftest.$ac_ext
34317 cat >>conftest.$ac_ext <<_ACEOF
34318 /* end confdefs.h. */
34319 $ac_includes_default
34323 static struct stat ac_aggr;
34324 if (sizeof ac_aggr.st_rdev)
34330 rm -f conftest.$ac_objext
34331 if { (ac_try="$ac_compile"
34332 case "(($ac_try" in
34333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34334 *) ac_try_echo=$ac_try;;
34336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34337 (eval "$ac_compile") 2>conftest.er1
34339 grep -v '^ *+' conftest.er1 >conftest.err
34341 cat conftest.err >&5
34342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34343 (exit $ac_status); } && {
34344 test -z "$ac_c_werror_flag" ||
34345 test ! -s conftest.err
34346 } && test -s conftest.$ac_objext; then
34347 ac_cv_member_struct_stat_st_rdev=yes
34349 echo "$as_me: failed program was:" >&5
34350 sed 's/^/| /' conftest.$ac_ext >&5
34352 ac_cv_member_struct_stat_st_rdev=no
34355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34360 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34361 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34362 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34364 cat >>confdefs.h <<_ACEOF
34365 #define HAVE_STRUCT_STAT_ST_RDEV 1
34369 cat >>confdefs.h <<\_ACEOF
34370 #define HAVE_ST_RDEV 1
34376 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34377 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34378 if test "${ac_cv_struct_tm+set}" = set; then
34379 echo $ECHO_N "(cached) $ECHO_C" >&6
34381 cat >conftest.$ac_ext <<_ACEOF
34384 cat confdefs.h >>conftest.$ac_ext
34385 cat >>conftest.$ac_ext <<_ACEOF
34386 /* end confdefs.h. */
34387 #include <sys/types.h>
34394 int *p = &tm.tm_sec;
34400 rm -f conftest.$ac_objext
34401 if { (ac_try="$ac_compile"
34402 case "(($ac_try" in
34403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34404 *) ac_try_echo=$ac_try;;
34406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34407 (eval "$ac_compile") 2>conftest.er1
34409 grep -v '^ *+' conftest.er1 >conftest.err
34411 cat conftest.err >&5
34412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34413 (exit $ac_status); } && {
34414 test -z "$ac_c_werror_flag" ||
34415 test ! -s conftest.err
34416 } && test -s conftest.$ac_objext; then
34417 ac_cv_struct_tm=time.h
34419 echo "$as_me: failed program was:" >&5
34420 sed 's/^/| /' conftest.$ac_ext >&5
34422 ac_cv_struct_tm=sys/time.h
34425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34427 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34428 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34429 if test $ac_cv_struct_tm = sys/time.h; then
34431 cat >>confdefs.h <<\_ACEOF
34432 #define TM_IN_SYS_TIME 1
34437 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34438 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34439 if test "${ac_cv_c_const+set}" = set; then
34440 echo $ECHO_N "(cached) $ECHO_C" >&6
34442 cat >conftest.$ac_ext <<_ACEOF
34445 cat confdefs.h >>conftest.$ac_ext
34446 cat >>conftest.$ac_ext <<_ACEOF
34447 /* end confdefs.h. */
34452 /* FIXME: Include the comments suggested by Paul. */
34453 #ifndef __cplusplus
34454 /* Ultrix mips cc rejects this. */
34455 typedef int charset[2];
34457 /* SunOS 4.1.1 cc rejects this. */
34458 char const *const *pcpcc;
34460 /* NEC SVR4.0.2 mips cc rejects this. */
34461 struct point {int x, y;};
34462 static struct point const zero = {0,0};
34463 /* AIX XL C 1.02.0.0 rejects this.
34464 It does not let you subtract one const X* pointer from another in
34465 an arm of an if-expression whose if-part is not a constant
34467 const char *g = "string";
34468 pcpcc = &g + (g ? g-g : 0);
34469 /* HPUX 7.0 cc rejects these. */
34471 ppc = (char**) pcpcc;
34472 pcpcc = (char const *const *) ppc;
34473 { /* SCO 3.2v4 cc rejects this. */
34475 char const *s = 0 ? (char *) 0 : (char const *) 0;
34480 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34481 int x[] = {25, 17};
34482 const int *foo = &x[0];
34485 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34486 typedef const int *iptr;
34490 { /* AIX XL C 1.02.0.0 rejects this saying
34491 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34492 struct s { int j; const int *ap[3]; };
34493 struct s *b; b->j = 5;
34495 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34496 const int foo = 10;
34497 if (!foo) return 0;
34499 return !cs[0] && !zero.x;
34506 rm -f conftest.$ac_objext
34507 if { (ac_try="$ac_compile"
34508 case "(($ac_try" in
34509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34510 *) ac_try_echo=$ac_try;;
34512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34513 (eval "$ac_compile") 2>conftest.er1
34515 grep -v '^ *+' conftest.er1 >conftest.err
34517 cat conftest.err >&5
34518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519 (exit $ac_status); } && {
34520 test -z "$ac_c_werror_flag" ||
34521 test ! -s conftest.err
34522 } && test -s conftest.$ac_objext; then
34525 echo "$as_me: failed program was:" >&5
34526 sed 's/^/| /' conftest.$ac_ext >&5
34531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34533 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34534 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34535 if test $ac_cv_c_const = no; then
34537 cat >>confdefs.h <<\_ACEOF
34544 { echo "$as_me:$LINENO: checking for char" >&5
34545 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34546 if test "${ac_cv_type_char+set}" = set; then
34547 echo $ECHO_N "(cached) $ECHO_C" >&6
34549 cat >conftest.$ac_ext <<_ACEOF
34552 cat confdefs.h >>conftest.$ac_ext
34553 cat >>conftest.$ac_ext <<_ACEOF
34554 /* end confdefs.h. */
34555 $ac_includes_default
34556 typedef char ac__type_new_;
34560 if ((ac__type_new_ *) 0)
34562 if (sizeof (ac__type_new_))
34568 rm -f conftest.$ac_objext
34569 if { (ac_try="$ac_compile"
34570 case "(($ac_try" in
34571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34572 *) ac_try_echo=$ac_try;;
34574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34575 (eval "$ac_compile") 2>conftest.er1
34577 grep -v '^ *+' conftest.er1 >conftest.err
34579 cat conftest.err >&5
34580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34581 (exit $ac_status); } && {
34582 test -z "$ac_c_werror_flag" ||
34583 test ! -s conftest.err
34584 } && test -s conftest.$ac_objext; then
34585 ac_cv_type_char=yes
34587 echo "$as_me: failed program was:" >&5
34588 sed 's/^/| /' conftest.$ac_ext >&5
34593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34595 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34596 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34598 # The cast to long int works around a bug in the HP C Compiler
34599 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34600 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34601 # This bug is HP SR number 8606223364.
34602 { echo "$as_me:$LINENO: checking size of char" >&5
34603 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34604 if test "${ac_cv_sizeof_char+set}" = set; then
34605 echo $ECHO_N "(cached) $ECHO_C" >&6
34607 if test "$cross_compiling" = yes; then
34608 # Depending upon the size, compute the lo and hi bounds.
34609 cat >conftest.$ac_ext <<_ACEOF
34612 cat confdefs.h >>conftest.$ac_ext
34613 cat >>conftest.$ac_ext <<_ACEOF
34614 /* end confdefs.h. */
34615 $ac_includes_default
34616 typedef char ac__type_sizeof_;
34620 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34627 rm -f conftest.$ac_objext
34628 if { (ac_try="$ac_compile"
34629 case "(($ac_try" in
34630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34631 *) ac_try_echo=$ac_try;;
34633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34634 (eval "$ac_compile") 2>conftest.er1
34636 grep -v '^ *+' conftest.er1 >conftest.err
34638 cat conftest.err >&5
34639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34640 (exit $ac_status); } && {
34641 test -z "$ac_c_werror_flag" ||
34642 test ! -s conftest.err
34643 } && test -s conftest.$ac_objext; then
34646 cat >conftest.$ac_ext <<_ACEOF
34649 cat confdefs.h >>conftest.$ac_ext
34650 cat >>conftest.$ac_ext <<_ACEOF
34651 /* end confdefs.h. */
34652 $ac_includes_default
34653 typedef char ac__type_sizeof_;
34657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34664 rm -f conftest.$ac_objext
34665 if { (ac_try="$ac_compile"
34666 case "(($ac_try" in
34667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34668 *) ac_try_echo=$ac_try;;
34670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34671 (eval "$ac_compile") 2>conftest.er1
34673 grep -v '^ *+' conftest.er1 >conftest.err
34675 cat conftest.err >&5
34676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34677 (exit $ac_status); } && {
34678 test -z "$ac_c_werror_flag" ||
34679 test ! -s conftest.err
34680 } && test -s conftest.$ac_objext; then
34681 ac_hi=$ac_mid; break
34683 echo "$as_me: failed program was:" >&5
34684 sed 's/^/| /' conftest.$ac_ext >&5
34686 ac_lo=`expr $ac_mid + 1`
34687 if test $ac_lo -le $ac_mid; then
34691 ac_mid=`expr 2 '*' $ac_mid + 1`
34694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34697 echo "$as_me: failed program was:" >&5
34698 sed 's/^/| /' conftest.$ac_ext >&5
34700 cat >conftest.$ac_ext <<_ACEOF
34703 cat confdefs.h >>conftest.$ac_ext
34704 cat >>conftest.$ac_ext <<_ACEOF
34705 /* end confdefs.h. */
34706 $ac_includes_default
34707 typedef char ac__type_sizeof_;
34711 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34718 rm -f conftest.$ac_objext
34719 if { (ac_try="$ac_compile"
34720 case "(($ac_try" in
34721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34722 *) ac_try_echo=$ac_try;;
34724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34725 (eval "$ac_compile") 2>conftest.er1
34727 grep -v '^ *+' conftest.er1 >conftest.err
34729 cat conftest.err >&5
34730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34731 (exit $ac_status); } && {
34732 test -z "$ac_c_werror_flag" ||
34733 test ! -s conftest.err
34734 } && test -s conftest.$ac_objext; then
34737 cat >conftest.$ac_ext <<_ACEOF
34740 cat confdefs.h >>conftest.$ac_ext
34741 cat >>conftest.$ac_ext <<_ACEOF
34742 /* end confdefs.h. */
34743 $ac_includes_default
34744 typedef char ac__type_sizeof_;
34748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34755 rm -f conftest.$ac_objext
34756 if { (ac_try="$ac_compile"
34757 case "(($ac_try" in
34758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34759 *) ac_try_echo=$ac_try;;
34761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34762 (eval "$ac_compile") 2>conftest.er1
34764 grep -v '^ *+' conftest.er1 >conftest.err
34766 cat conftest.err >&5
34767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34768 (exit $ac_status); } && {
34769 test -z "$ac_c_werror_flag" ||
34770 test ! -s conftest.err
34771 } && test -s conftest.$ac_objext; then
34772 ac_lo=$ac_mid; break
34774 echo "$as_me: failed program was:" >&5
34775 sed 's/^/| /' conftest.$ac_ext >&5
34777 ac_hi=`expr '(' $ac_mid ')' - 1`
34778 if test $ac_mid -le $ac_hi; then
34782 ac_mid=`expr 2 '*' $ac_mid`
34785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34788 echo "$as_me: failed program was:" >&5
34789 sed 's/^/| /' conftest.$ac_ext >&5
34794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34798 # Binary search between lo and hi bounds.
34799 while test "x$ac_lo" != "x$ac_hi"; do
34800 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34801 cat >conftest.$ac_ext <<_ACEOF
34804 cat confdefs.h >>conftest.$ac_ext
34805 cat >>conftest.$ac_ext <<_ACEOF
34806 /* end confdefs.h. */
34807 $ac_includes_default
34808 typedef char ac__type_sizeof_;
34812 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34819 rm -f conftest.$ac_objext
34820 if { (ac_try="$ac_compile"
34821 case "(($ac_try" in
34822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34823 *) ac_try_echo=$ac_try;;
34825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34826 (eval "$ac_compile") 2>conftest.er1
34828 grep -v '^ *+' conftest.er1 >conftest.err
34830 cat conftest.err >&5
34831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34832 (exit $ac_status); } && {
34833 test -z "$ac_c_werror_flag" ||
34834 test ! -s conftest.err
34835 } && test -s conftest.$ac_objext; then
34838 echo "$as_me: failed program was:" >&5
34839 sed 's/^/| /' conftest.$ac_ext >&5
34841 ac_lo=`expr '(' $ac_mid ')' + 1`
34844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34847 ?*) ac_cv_sizeof_char=$ac_lo;;
34848 '') if test "$ac_cv_type_char" = yes; then
34849 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34850 See \`config.log' for more details." >&5
34851 echo "$as_me: error: cannot compute sizeof (char)
34852 See \`config.log' for more details." >&2;}
34853 { (exit 77); exit 77; }; }
34855 ac_cv_sizeof_char=0
34859 cat >conftest.$ac_ext <<_ACEOF
34862 cat confdefs.h >>conftest.$ac_ext
34863 cat >>conftest.$ac_ext <<_ACEOF
34864 /* end confdefs.h. */
34865 $ac_includes_default
34866 typedef char ac__type_sizeof_;
34867 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34868 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34870 #include <stdlib.h>
34875 FILE *f = fopen ("conftest.val", "w");
34878 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34880 long int i = longval ();
34881 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34883 fprintf (f, "%ld\n", i);
34887 unsigned long int i = ulongval ();
34888 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34890 fprintf (f, "%lu\n", i);
34892 return ferror (f) || fclose (f) != 0;
34898 rm -f conftest$ac_exeext
34899 if { (ac_try="$ac_link"
34900 case "(($ac_try" in
34901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34902 *) ac_try_echo=$ac_try;;
34904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34905 (eval "$ac_link") 2>&5
34907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34909 { (case "(($ac_try" in
34910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34911 *) ac_try_echo=$ac_try;;
34913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34914 (eval "$ac_try") 2>&5
34916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34917 (exit $ac_status); }; }; then
34918 ac_cv_sizeof_char=`cat conftest.val`
34920 echo "$as_me: program exited with status $ac_status" >&5
34921 echo "$as_me: failed program was:" >&5
34922 sed 's/^/| /' conftest.$ac_ext >&5
34924 ( exit $ac_status )
34925 if test "$ac_cv_type_char" = yes; then
34926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34927 See \`config.log' for more details." >&5
34928 echo "$as_me: error: cannot compute sizeof (char)
34929 See \`config.log' for more details." >&2;}
34930 { (exit 77); exit 77; }; }
34932 ac_cv_sizeof_char=0
34935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34939 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34940 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34944 cat >>confdefs.h <<_ACEOF
34945 #define SIZEOF_CHAR $ac_cv_sizeof_char
34949 { echo "$as_me:$LINENO: checking for short int" >&5
34950 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34951 if test "${ac_cv_type_short_int+set}" = set; then
34952 echo $ECHO_N "(cached) $ECHO_C" >&6
34954 cat >conftest.$ac_ext <<_ACEOF
34957 cat confdefs.h >>conftest.$ac_ext
34958 cat >>conftest.$ac_ext <<_ACEOF
34959 /* end confdefs.h. */
34960 $ac_includes_default
34961 typedef short int ac__type_new_;
34965 if ((ac__type_new_ *) 0)
34967 if (sizeof (ac__type_new_))
34973 rm -f conftest.$ac_objext
34974 if { (ac_try="$ac_compile"
34975 case "(($ac_try" in
34976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34977 *) ac_try_echo=$ac_try;;
34979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34980 (eval "$ac_compile") 2>conftest.er1
34982 grep -v '^ *+' conftest.er1 >conftest.err
34984 cat conftest.err >&5
34985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34986 (exit $ac_status); } && {
34987 test -z "$ac_c_werror_flag" ||
34988 test ! -s conftest.err
34989 } && test -s conftest.$ac_objext; then
34990 ac_cv_type_short_int=yes
34992 echo "$as_me: failed program was:" >&5
34993 sed 's/^/| /' conftest.$ac_ext >&5
34995 ac_cv_type_short_int=no
34998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35000 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35001 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35003 # The cast to long int works around a bug in the HP C Compiler
35004 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35005 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35006 # This bug is HP SR number 8606223364.
35007 { echo "$as_me:$LINENO: checking size of short int" >&5
35008 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35009 if test "${ac_cv_sizeof_short_int+set}" = set; then
35010 echo $ECHO_N "(cached) $ECHO_C" >&6
35012 if test "$cross_compiling" = yes; then
35013 # Depending upon the size, compute the lo and hi bounds.
35014 cat >conftest.$ac_ext <<_ACEOF
35017 cat confdefs.h >>conftest.$ac_ext
35018 cat >>conftest.$ac_ext <<_ACEOF
35019 /* end confdefs.h. */
35020 $ac_includes_default
35021 typedef short int ac__type_sizeof_;
35025 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35032 rm -f conftest.$ac_objext
35033 if { (ac_try="$ac_compile"
35034 case "(($ac_try" in
35035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35036 *) ac_try_echo=$ac_try;;
35038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35039 (eval "$ac_compile") 2>conftest.er1
35041 grep -v '^ *+' conftest.er1 >conftest.err
35043 cat conftest.err >&5
35044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35045 (exit $ac_status); } && {
35046 test -z "$ac_c_werror_flag" ||
35047 test ! -s conftest.err
35048 } && test -s conftest.$ac_objext; then
35051 cat >conftest.$ac_ext <<_ACEOF
35054 cat confdefs.h >>conftest.$ac_ext
35055 cat >>conftest.$ac_ext <<_ACEOF
35056 /* end confdefs.h. */
35057 $ac_includes_default
35058 typedef short int ac__type_sizeof_;
35062 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35069 rm -f conftest.$ac_objext
35070 if { (ac_try="$ac_compile"
35071 case "(($ac_try" in
35072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35073 *) ac_try_echo=$ac_try;;
35075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35076 (eval "$ac_compile") 2>conftest.er1
35078 grep -v '^ *+' conftest.er1 >conftest.err
35080 cat conftest.err >&5
35081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35082 (exit $ac_status); } && {
35083 test -z "$ac_c_werror_flag" ||
35084 test ! -s conftest.err
35085 } && test -s conftest.$ac_objext; then
35086 ac_hi=$ac_mid; break
35088 echo "$as_me: failed program was:" >&5
35089 sed 's/^/| /' conftest.$ac_ext >&5
35091 ac_lo=`expr $ac_mid + 1`
35092 if test $ac_lo -le $ac_mid; then
35096 ac_mid=`expr 2 '*' $ac_mid + 1`
35099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35102 echo "$as_me: failed program was:" >&5
35103 sed 's/^/| /' conftest.$ac_ext >&5
35105 cat >conftest.$ac_ext <<_ACEOF
35108 cat confdefs.h >>conftest.$ac_ext
35109 cat >>conftest.$ac_ext <<_ACEOF
35110 /* end confdefs.h. */
35111 $ac_includes_default
35112 typedef short int ac__type_sizeof_;
35116 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35123 rm -f conftest.$ac_objext
35124 if { (ac_try="$ac_compile"
35125 case "(($ac_try" in
35126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35127 *) ac_try_echo=$ac_try;;
35129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35130 (eval "$ac_compile") 2>conftest.er1
35132 grep -v '^ *+' conftest.er1 >conftest.err
35134 cat conftest.err >&5
35135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35136 (exit $ac_status); } && {
35137 test -z "$ac_c_werror_flag" ||
35138 test ! -s conftest.err
35139 } && test -s conftest.$ac_objext; then
35142 cat >conftest.$ac_ext <<_ACEOF
35145 cat confdefs.h >>conftest.$ac_ext
35146 cat >>conftest.$ac_ext <<_ACEOF
35147 /* end confdefs.h. */
35148 $ac_includes_default
35149 typedef short int ac__type_sizeof_;
35153 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35160 rm -f conftest.$ac_objext
35161 if { (ac_try="$ac_compile"
35162 case "(($ac_try" in
35163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35164 *) ac_try_echo=$ac_try;;
35166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35167 (eval "$ac_compile") 2>conftest.er1
35169 grep -v '^ *+' conftest.er1 >conftest.err
35171 cat conftest.err >&5
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); } && {
35174 test -z "$ac_c_werror_flag" ||
35175 test ! -s conftest.err
35176 } && test -s conftest.$ac_objext; then
35177 ac_lo=$ac_mid; break
35179 echo "$as_me: failed program was:" >&5
35180 sed 's/^/| /' conftest.$ac_ext >&5
35182 ac_hi=`expr '(' $ac_mid ')' - 1`
35183 if test $ac_mid -le $ac_hi; then
35187 ac_mid=`expr 2 '*' $ac_mid`
35190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35193 echo "$as_me: failed program was:" >&5
35194 sed 's/^/| /' conftest.$ac_ext >&5
35199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35203 # Binary search between lo and hi bounds.
35204 while test "x$ac_lo" != "x$ac_hi"; do
35205 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35206 cat >conftest.$ac_ext <<_ACEOF
35209 cat confdefs.h >>conftest.$ac_ext
35210 cat >>conftest.$ac_ext <<_ACEOF
35211 /* end confdefs.h. */
35212 $ac_includes_default
35213 typedef short int ac__type_sizeof_;
35217 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35224 rm -f conftest.$ac_objext
35225 if { (ac_try="$ac_compile"
35226 case "(($ac_try" in
35227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35228 *) ac_try_echo=$ac_try;;
35230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35231 (eval "$ac_compile") 2>conftest.er1
35233 grep -v '^ *+' conftest.er1 >conftest.err
35235 cat conftest.err >&5
35236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35237 (exit $ac_status); } && {
35238 test -z "$ac_c_werror_flag" ||
35239 test ! -s conftest.err
35240 } && test -s conftest.$ac_objext; then
35243 echo "$as_me: failed program was:" >&5
35244 sed 's/^/| /' conftest.$ac_ext >&5
35246 ac_lo=`expr '(' $ac_mid ')' + 1`
35249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35252 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35253 '') if test "$ac_cv_type_short_int" = yes; then
35254 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35255 See \`config.log' for more details." >&5
35256 echo "$as_me: error: cannot compute sizeof (short int)
35257 See \`config.log' for more details." >&2;}
35258 { (exit 77); exit 77; }; }
35260 ac_cv_sizeof_short_int=0
35264 cat >conftest.$ac_ext <<_ACEOF
35267 cat confdefs.h >>conftest.$ac_ext
35268 cat >>conftest.$ac_ext <<_ACEOF
35269 /* end confdefs.h. */
35270 $ac_includes_default
35271 typedef short int ac__type_sizeof_;
35272 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35273 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35275 #include <stdlib.h>
35280 FILE *f = fopen ("conftest.val", "w");
35283 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35285 long int i = longval ();
35286 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35288 fprintf (f, "%ld\n", i);
35292 unsigned long int i = ulongval ();
35293 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35295 fprintf (f, "%lu\n", i);
35297 return ferror (f) || fclose (f) != 0;
35303 rm -f conftest$ac_exeext
35304 if { (ac_try="$ac_link"
35305 case "(($ac_try" in
35306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35307 *) ac_try_echo=$ac_try;;
35309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35310 (eval "$ac_link") 2>&5
35312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35314 { (case "(($ac_try" in
35315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35316 *) ac_try_echo=$ac_try;;
35318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35319 (eval "$ac_try") 2>&5
35321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35322 (exit $ac_status); }; }; then
35323 ac_cv_sizeof_short_int=`cat conftest.val`
35325 echo "$as_me: program exited with status $ac_status" >&5
35326 echo "$as_me: failed program was:" >&5
35327 sed 's/^/| /' conftest.$ac_ext >&5
35329 ( exit $ac_status )
35330 if test "$ac_cv_type_short_int" = yes; then
35331 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35332 See \`config.log' for more details." >&5
35333 echo "$as_me: error: cannot compute sizeof (short int)
35334 See \`config.log' for more details." >&2;}
35335 { (exit 77); exit 77; }; }
35337 ac_cv_sizeof_short_int=0
35340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35344 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35345 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35349 cat >>confdefs.h <<_ACEOF
35350 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35354 { echo "$as_me:$LINENO: checking for int" >&5
35355 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35356 if test "${ac_cv_type_int+set}" = set; then
35357 echo $ECHO_N "(cached) $ECHO_C" >&6
35359 cat >conftest.$ac_ext <<_ACEOF
35362 cat confdefs.h >>conftest.$ac_ext
35363 cat >>conftest.$ac_ext <<_ACEOF
35364 /* end confdefs.h. */
35365 $ac_includes_default
35366 typedef int ac__type_new_;
35370 if ((ac__type_new_ *) 0)
35372 if (sizeof (ac__type_new_))
35378 rm -f conftest.$ac_objext
35379 if { (ac_try="$ac_compile"
35380 case "(($ac_try" in
35381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35382 *) ac_try_echo=$ac_try;;
35384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35385 (eval "$ac_compile") 2>conftest.er1
35387 grep -v '^ *+' conftest.er1 >conftest.err
35389 cat conftest.err >&5
35390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391 (exit $ac_status); } && {
35392 test -z "$ac_c_werror_flag" ||
35393 test ! -s conftest.err
35394 } && test -s conftest.$ac_objext; then
35397 echo "$as_me: failed program was:" >&5
35398 sed 's/^/| /' conftest.$ac_ext >&5
35403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35405 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35406 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35408 # The cast to long int works around a bug in the HP C Compiler
35409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35411 # This bug is HP SR number 8606223364.
35412 { echo "$as_me:$LINENO: checking size of int" >&5
35413 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35414 if test "${ac_cv_sizeof_int+set}" = set; then
35415 echo $ECHO_N "(cached) $ECHO_C" >&6
35417 if test "$cross_compiling" = yes; then
35418 # Depending upon the size, compute the lo and hi bounds.
35419 cat >conftest.$ac_ext <<_ACEOF
35422 cat confdefs.h >>conftest.$ac_ext
35423 cat >>conftest.$ac_ext <<_ACEOF
35424 /* end confdefs.h. */
35425 $ac_includes_default
35426 typedef int ac__type_sizeof_;
35430 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35437 rm -f conftest.$ac_objext
35438 if { (ac_try="$ac_compile"
35439 case "(($ac_try" in
35440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35441 *) ac_try_echo=$ac_try;;
35443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35444 (eval "$ac_compile") 2>conftest.er1
35446 grep -v '^ *+' conftest.er1 >conftest.err
35448 cat conftest.err >&5
35449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35450 (exit $ac_status); } && {
35451 test -z "$ac_c_werror_flag" ||
35452 test ! -s conftest.err
35453 } && test -s conftest.$ac_objext; then
35456 cat >conftest.$ac_ext <<_ACEOF
35459 cat confdefs.h >>conftest.$ac_ext
35460 cat >>conftest.$ac_ext <<_ACEOF
35461 /* end confdefs.h. */
35462 $ac_includes_default
35463 typedef int ac__type_sizeof_;
35467 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35474 rm -f conftest.$ac_objext
35475 if { (ac_try="$ac_compile"
35476 case "(($ac_try" in
35477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35478 *) ac_try_echo=$ac_try;;
35480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35481 (eval "$ac_compile") 2>conftest.er1
35483 grep -v '^ *+' conftest.er1 >conftest.err
35485 cat conftest.err >&5
35486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35487 (exit $ac_status); } && {
35488 test -z "$ac_c_werror_flag" ||
35489 test ! -s conftest.err
35490 } && test -s conftest.$ac_objext; then
35491 ac_hi=$ac_mid; break
35493 echo "$as_me: failed program was:" >&5
35494 sed 's/^/| /' conftest.$ac_ext >&5
35496 ac_lo=`expr $ac_mid + 1`
35497 if test $ac_lo -le $ac_mid; then
35501 ac_mid=`expr 2 '*' $ac_mid + 1`
35504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35507 echo "$as_me: failed program was:" >&5
35508 sed 's/^/| /' conftest.$ac_ext >&5
35510 cat >conftest.$ac_ext <<_ACEOF
35513 cat confdefs.h >>conftest.$ac_ext
35514 cat >>conftest.$ac_ext <<_ACEOF
35515 /* end confdefs.h. */
35516 $ac_includes_default
35517 typedef int ac__type_sizeof_;
35521 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35528 rm -f conftest.$ac_objext
35529 if { (ac_try="$ac_compile"
35530 case "(($ac_try" in
35531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35532 *) ac_try_echo=$ac_try;;
35534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35535 (eval "$ac_compile") 2>conftest.er1
35537 grep -v '^ *+' conftest.er1 >conftest.err
35539 cat conftest.err >&5
35540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35541 (exit $ac_status); } && {
35542 test -z "$ac_c_werror_flag" ||
35543 test ! -s conftest.err
35544 } && test -s conftest.$ac_objext; then
35547 cat >conftest.$ac_ext <<_ACEOF
35550 cat confdefs.h >>conftest.$ac_ext
35551 cat >>conftest.$ac_ext <<_ACEOF
35552 /* end confdefs.h. */
35553 $ac_includes_default
35554 typedef int ac__type_sizeof_;
35558 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35565 rm -f conftest.$ac_objext
35566 if { (ac_try="$ac_compile"
35567 case "(($ac_try" in
35568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35569 *) ac_try_echo=$ac_try;;
35571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35572 (eval "$ac_compile") 2>conftest.er1
35574 grep -v '^ *+' conftest.er1 >conftest.err
35576 cat conftest.err >&5
35577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35578 (exit $ac_status); } && {
35579 test -z "$ac_c_werror_flag" ||
35580 test ! -s conftest.err
35581 } && test -s conftest.$ac_objext; then
35582 ac_lo=$ac_mid; break
35584 echo "$as_me: failed program was:" >&5
35585 sed 's/^/| /' conftest.$ac_ext >&5
35587 ac_hi=`expr '(' $ac_mid ')' - 1`
35588 if test $ac_mid -le $ac_hi; then
35592 ac_mid=`expr 2 '*' $ac_mid`
35595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35598 echo "$as_me: failed program was:" >&5
35599 sed 's/^/| /' conftest.$ac_ext >&5
35604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35608 # Binary search between lo and hi bounds.
35609 while test "x$ac_lo" != "x$ac_hi"; do
35610 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35611 cat >conftest.$ac_ext <<_ACEOF
35614 cat confdefs.h >>conftest.$ac_ext
35615 cat >>conftest.$ac_ext <<_ACEOF
35616 /* end confdefs.h. */
35617 $ac_includes_default
35618 typedef int ac__type_sizeof_;
35622 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35629 rm -f conftest.$ac_objext
35630 if { (ac_try="$ac_compile"
35631 case "(($ac_try" in
35632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35633 *) ac_try_echo=$ac_try;;
35635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35636 (eval "$ac_compile") 2>conftest.er1
35638 grep -v '^ *+' conftest.er1 >conftest.err
35640 cat conftest.err >&5
35641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35642 (exit $ac_status); } && {
35643 test -z "$ac_c_werror_flag" ||
35644 test ! -s conftest.err
35645 } && test -s conftest.$ac_objext; then
35648 echo "$as_me: failed program was:" >&5
35649 sed 's/^/| /' conftest.$ac_ext >&5
35651 ac_lo=`expr '(' $ac_mid ')' + 1`
35654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35657 ?*) ac_cv_sizeof_int=$ac_lo;;
35658 '') if test "$ac_cv_type_int" = yes; then
35659 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35660 See \`config.log' for more details." >&5
35661 echo "$as_me: error: cannot compute sizeof (int)
35662 See \`config.log' for more details." >&2;}
35663 { (exit 77); exit 77; }; }
35669 cat >conftest.$ac_ext <<_ACEOF
35672 cat confdefs.h >>conftest.$ac_ext
35673 cat >>conftest.$ac_ext <<_ACEOF
35674 /* end confdefs.h. */
35675 $ac_includes_default
35676 typedef int ac__type_sizeof_;
35677 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35678 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35680 #include <stdlib.h>
35685 FILE *f = fopen ("conftest.val", "w");
35688 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35690 long int i = longval ();
35691 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35693 fprintf (f, "%ld\n", i);
35697 unsigned long int i = ulongval ();
35698 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35700 fprintf (f, "%lu\n", i);
35702 return ferror (f) || fclose (f) != 0;
35708 rm -f conftest$ac_exeext
35709 if { (ac_try="$ac_link"
35710 case "(($ac_try" in
35711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35712 *) ac_try_echo=$ac_try;;
35714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35715 (eval "$ac_link") 2>&5
35717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35718 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35719 { (case "(($ac_try" in
35720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35721 *) ac_try_echo=$ac_try;;
35723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35724 (eval "$ac_try") 2>&5
35726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35727 (exit $ac_status); }; }; then
35728 ac_cv_sizeof_int=`cat conftest.val`
35730 echo "$as_me: program exited with status $ac_status" >&5
35731 echo "$as_me: failed program was:" >&5
35732 sed 's/^/| /' conftest.$ac_ext >&5
35734 ( exit $ac_status )
35735 if test "$ac_cv_type_int" = yes; then
35736 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35737 See \`config.log' for more details." >&5
35738 echo "$as_me: error: cannot compute sizeof (int)
35739 See \`config.log' for more details." >&2;}
35740 { (exit 77); exit 77; }; }
35745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35749 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35750 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35754 cat >>confdefs.h <<_ACEOF
35755 #define SIZEOF_INT $ac_cv_sizeof_int
35759 { echo "$as_me:$LINENO: checking for long int" >&5
35760 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35761 if test "${ac_cv_type_long_int+set}" = set; then
35762 echo $ECHO_N "(cached) $ECHO_C" >&6
35764 cat >conftest.$ac_ext <<_ACEOF
35767 cat confdefs.h >>conftest.$ac_ext
35768 cat >>conftest.$ac_ext <<_ACEOF
35769 /* end confdefs.h. */
35770 $ac_includes_default
35771 typedef long int ac__type_new_;
35775 if ((ac__type_new_ *) 0)
35777 if (sizeof (ac__type_new_))
35783 rm -f conftest.$ac_objext
35784 if { (ac_try="$ac_compile"
35785 case "(($ac_try" in
35786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35787 *) ac_try_echo=$ac_try;;
35789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35790 (eval "$ac_compile") 2>conftest.er1
35792 grep -v '^ *+' conftest.er1 >conftest.err
35794 cat conftest.err >&5
35795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35796 (exit $ac_status); } && {
35797 test -z "$ac_c_werror_flag" ||
35798 test ! -s conftest.err
35799 } && test -s conftest.$ac_objext; then
35800 ac_cv_type_long_int=yes
35802 echo "$as_me: failed program was:" >&5
35803 sed 's/^/| /' conftest.$ac_ext >&5
35805 ac_cv_type_long_int=no
35808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35810 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35811 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35813 # The cast to long int works around a bug in the HP C Compiler
35814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35816 # This bug is HP SR number 8606223364.
35817 { echo "$as_me:$LINENO: checking size of long int" >&5
35818 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35819 if test "${ac_cv_sizeof_long_int+set}" = set; then
35820 echo $ECHO_N "(cached) $ECHO_C" >&6
35822 if test "$cross_compiling" = yes; then
35823 # Depending upon the size, compute the lo and hi bounds.
35824 cat >conftest.$ac_ext <<_ACEOF
35827 cat confdefs.h >>conftest.$ac_ext
35828 cat >>conftest.$ac_ext <<_ACEOF
35829 /* end confdefs.h. */
35830 $ac_includes_default
35831 typedef long int ac__type_sizeof_;
35835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35842 rm -f conftest.$ac_objext
35843 if { (ac_try="$ac_compile"
35844 case "(($ac_try" in
35845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35846 *) ac_try_echo=$ac_try;;
35848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35849 (eval "$ac_compile") 2>conftest.er1
35851 grep -v '^ *+' conftest.er1 >conftest.err
35853 cat conftest.err >&5
35854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35855 (exit $ac_status); } && {
35856 test -z "$ac_c_werror_flag" ||
35857 test ! -s conftest.err
35858 } && test -s conftest.$ac_objext; then
35861 cat >conftest.$ac_ext <<_ACEOF
35864 cat confdefs.h >>conftest.$ac_ext
35865 cat >>conftest.$ac_ext <<_ACEOF
35866 /* end confdefs.h. */
35867 $ac_includes_default
35868 typedef long int ac__type_sizeof_;
35872 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35879 rm -f conftest.$ac_objext
35880 if { (ac_try="$ac_compile"
35881 case "(($ac_try" in
35882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35883 *) ac_try_echo=$ac_try;;
35885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35886 (eval "$ac_compile") 2>conftest.er1
35888 grep -v '^ *+' conftest.er1 >conftest.err
35890 cat conftest.err >&5
35891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 (exit $ac_status); } && {
35893 test -z "$ac_c_werror_flag" ||
35894 test ! -s conftest.err
35895 } && test -s conftest.$ac_objext; then
35896 ac_hi=$ac_mid; break
35898 echo "$as_me: failed program was:" >&5
35899 sed 's/^/| /' conftest.$ac_ext >&5
35901 ac_lo=`expr $ac_mid + 1`
35902 if test $ac_lo -le $ac_mid; then
35906 ac_mid=`expr 2 '*' $ac_mid + 1`
35909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35912 echo "$as_me: failed program was:" >&5
35913 sed 's/^/| /' conftest.$ac_ext >&5
35915 cat >conftest.$ac_ext <<_ACEOF
35918 cat confdefs.h >>conftest.$ac_ext
35919 cat >>conftest.$ac_ext <<_ACEOF
35920 /* end confdefs.h. */
35921 $ac_includes_default
35922 typedef long int ac__type_sizeof_;
35926 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35933 rm -f conftest.$ac_objext
35934 if { (ac_try="$ac_compile"
35935 case "(($ac_try" in
35936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35937 *) ac_try_echo=$ac_try;;
35939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35940 (eval "$ac_compile") 2>conftest.er1
35942 grep -v '^ *+' conftest.er1 >conftest.err
35944 cat conftest.err >&5
35945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35946 (exit $ac_status); } && {
35947 test -z "$ac_c_werror_flag" ||
35948 test ! -s conftest.err
35949 } && test -s conftest.$ac_objext; then
35952 cat >conftest.$ac_ext <<_ACEOF
35955 cat confdefs.h >>conftest.$ac_ext
35956 cat >>conftest.$ac_ext <<_ACEOF
35957 /* end confdefs.h. */
35958 $ac_includes_default
35959 typedef long int ac__type_sizeof_;
35963 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35970 rm -f conftest.$ac_objext
35971 if { (ac_try="$ac_compile"
35972 case "(($ac_try" in
35973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35974 *) ac_try_echo=$ac_try;;
35976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35977 (eval "$ac_compile") 2>conftest.er1
35979 grep -v '^ *+' conftest.er1 >conftest.err
35981 cat conftest.err >&5
35982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983 (exit $ac_status); } && {
35984 test -z "$ac_c_werror_flag" ||
35985 test ! -s conftest.err
35986 } && test -s conftest.$ac_objext; then
35987 ac_lo=$ac_mid; break
35989 echo "$as_me: failed program was:" >&5
35990 sed 's/^/| /' conftest.$ac_ext >&5
35992 ac_hi=`expr '(' $ac_mid ')' - 1`
35993 if test $ac_mid -le $ac_hi; then
35997 ac_mid=`expr 2 '*' $ac_mid`
36000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36003 echo "$as_me: failed program was:" >&5
36004 sed 's/^/| /' conftest.$ac_ext >&5
36009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36013 # Binary search between lo and hi bounds.
36014 while test "x$ac_lo" != "x$ac_hi"; do
36015 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36016 cat >conftest.$ac_ext <<_ACEOF
36019 cat confdefs.h >>conftest.$ac_ext
36020 cat >>conftest.$ac_ext <<_ACEOF
36021 /* end confdefs.h. */
36022 $ac_includes_default
36023 typedef long int ac__type_sizeof_;
36027 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36034 rm -f conftest.$ac_objext
36035 if { (ac_try="$ac_compile"
36036 case "(($ac_try" in
36037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36038 *) ac_try_echo=$ac_try;;
36040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36041 (eval "$ac_compile") 2>conftest.er1
36043 grep -v '^ *+' conftest.er1 >conftest.err
36045 cat conftest.err >&5
36046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36047 (exit $ac_status); } && {
36048 test -z "$ac_c_werror_flag" ||
36049 test ! -s conftest.err
36050 } && test -s conftest.$ac_objext; then
36053 echo "$as_me: failed program was:" >&5
36054 sed 's/^/| /' conftest.$ac_ext >&5
36056 ac_lo=`expr '(' $ac_mid ')' + 1`
36059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36062 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36063 '') if test "$ac_cv_type_long_int" = yes; then
36064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36065 See \`config.log' for more details." >&5
36066 echo "$as_me: error: cannot compute sizeof (long int)
36067 See \`config.log' for more details." >&2;}
36068 { (exit 77); exit 77; }; }
36070 ac_cv_sizeof_long_int=0
36074 cat >conftest.$ac_ext <<_ACEOF
36077 cat confdefs.h >>conftest.$ac_ext
36078 cat >>conftest.$ac_ext <<_ACEOF
36079 /* end confdefs.h. */
36080 $ac_includes_default
36081 typedef long int ac__type_sizeof_;
36082 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36083 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36085 #include <stdlib.h>
36090 FILE *f = fopen ("conftest.val", "w");
36093 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36095 long int i = longval ();
36096 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36098 fprintf (f, "%ld\n", i);
36102 unsigned long int i = ulongval ();
36103 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36105 fprintf (f, "%lu\n", i);
36107 return ferror (f) || fclose (f) != 0;
36113 rm -f conftest$ac_exeext
36114 if { (ac_try="$ac_link"
36115 case "(($ac_try" in
36116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36117 *) ac_try_echo=$ac_try;;
36119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36120 (eval "$ac_link") 2>&5
36122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36124 { (case "(($ac_try" in
36125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36126 *) ac_try_echo=$ac_try;;
36128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36129 (eval "$ac_try") 2>&5
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); }; }; then
36133 ac_cv_sizeof_long_int=`cat conftest.val`
36135 echo "$as_me: program exited with status $ac_status" >&5
36136 echo "$as_me: failed program was:" >&5
36137 sed 's/^/| /' conftest.$ac_ext >&5
36139 ( exit $ac_status )
36140 if test "$ac_cv_type_long_int" = yes; then
36141 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36142 See \`config.log' for more details." >&5
36143 echo "$as_me: error: cannot compute sizeof (long int)
36144 See \`config.log' for more details." >&2;}
36145 { (exit 77); exit 77; }; }
36147 ac_cv_sizeof_long_int=0
36150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36154 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36155 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36159 cat >>confdefs.h <<_ACEOF
36160 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36164 { echo "$as_me:$LINENO: checking for long long int" >&5
36165 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36166 if test "${ac_cv_type_long_long_int+set}" = set; then
36167 echo $ECHO_N "(cached) $ECHO_C" >&6
36169 cat >conftest.$ac_ext <<_ACEOF
36172 cat confdefs.h >>conftest.$ac_ext
36173 cat >>conftest.$ac_ext <<_ACEOF
36174 /* end confdefs.h. */
36175 $ac_includes_default
36176 typedef long long int ac__type_new_;
36180 if ((ac__type_new_ *) 0)
36182 if (sizeof (ac__type_new_))
36188 rm -f conftest.$ac_objext
36189 if { (ac_try="$ac_compile"
36190 case "(($ac_try" in
36191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36192 *) ac_try_echo=$ac_try;;
36194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36195 (eval "$ac_compile") 2>conftest.er1
36197 grep -v '^ *+' conftest.er1 >conftest.err
36199 cat conftest.err >&5
36200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36201 (exit $ac_status); } && {
36202 test -z "$ac_c_werror_flag" ||
36203 test ! -s conftest.err
36204 } && test -s conftest.$ac_objext; then
36205 ac_cv_type_long_long_int=yes
36207 echo "$as_me: failed program was:" >&5
36208 sed 's/^/| /' conftest.$ac_ext >&5
36210 ac_cv_type_long_long_int=no
36213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36215 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36216 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36218 # The cast to long int works around a bug in the HP C Compiler
36219 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36220 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36221 # This bug is HP SR number 8606223364.
36222 { echo "$as_me:$LINENO: checking size of long long int" >&5
36223 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36224 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36225 echo $ECHO_N "(cached) $ECHO_C" >&6
36227 if test "$cross_compiling" = yes; then
36228 # Depending upon the size, compute the lo and hi bounds.
36229 cat >conftest.$ac_ext <<_ACEOF
36232 cat confdefs.h >>conftest.$ac_ext
36233 cat >>conftest.$ac_ext <<_ACEOF
36234 /* end confdefs.h. */
36235 $ac_includes_default
36236 typedef long long int ac__type_sizeof_;
36240 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36247 rm -f conftest.$ac_objext
36248 if { (ac_try="$ac_compile"
36249 case "(($ac_try" in
36250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36251 *) ac_try_echo=$ac_try;;
36253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36254 (eval "$ac_compile") 2>conftest.er1
36256 grep -v '^ *+' conftest.er1 >conftest.err
36258 cat conftest.err >&5
36259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260 (exit $ac_status); } && {
36261 test -z "$ac_c_werror_flag" ||
36262 test ! -s conftest.err
36263 } && test -s conftest.$ac_objext; then
36266 cat >conftest.$ac_ext <<_ACEOF
36269 cat confdefs.h >>conftest.$ac_ext
36270 cat >>conftest.$ac_ext <<_ACEOF
36271 /* end confdefs.h. */
36272 $ac_includes_default
36273 typedef long long int ac__type_sizeof_;
36277 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36284 rm -f conftest.$ac_objext
36285 if { (ac_try="$ac_compile"
36286 case "(($ac_try" in
36287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36288 *) ac_try_echo=$ac_try;;
36290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36291 (eval "$ac_compile") 2>conftest.er1
36293 grep -v '^ *+' conftest.er1 >conftest.err
36295 cat conftest.err >&5
36296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36297 (exit $ac_status); } && {
36298 test -z "$ac_c_werror_flag" ||
36299 test ! -s conftest.err
36300 } && test -s conftest.$ac_objext; then
36301 ac_hi=$ac_mid; break
36303 echo "$as_me: failed program was:" >&5
36304 sed 's/^/| /' conftest.$ac_ext >&5
36306 ac_lo=`expr $ac_mid + 1`
36307 if test $ac_lo -le $ac_mid; then
36311 ac_mid=`expr 2 '*' $ac_mid + 1`
36314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36317 echo "$as_me: failed program was:" >&5
36318 sed 's/^/| /' conftest.$ac_ext >&5
36320 cat >conftest.$ac_ext <<_ACEOF
36323 cat confdefs.h >>conftest.$ac_ext
36324 cat >>conftest.$ac_ext <<_ACEOF
36325 /* end confdefs.h. */
36326 $ac_includes_default
36327 typedef long long int ac__type_sizeof_;
36331 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36338 rm -f conftest.$ac_objext
36339 if { (ac_try="$ac_compile"
36340 case "(($ac_try" in
36341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36342 *) ac_try_echo=$ac_try;;
36344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36345 (eval "$ac_compile") 2>conftest.er1
36347 grep -v '^ *+' conftest.er1 >conftest.err
36349 cat conftest.err >&5
36350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351 (exit $ac_status); } && {
36352 test -z "$ac_c_werror_flag" ||
36353 test ! -s conftest.err
36354 } && test -s conftest.$ac_objext; then
36357 cat >conftest.$ac_ext <<_ACEOF
36360 cat confdefs.h >>conftest.$ac_ext
36361 cat >>conftest.$ac_ext <<_ACEOF
36362 /* end confdefs.h. */
36363 $ac_includes_default
36364 typedef long long int ac__type_sizeof_;
36368 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36375 rm -f conftest.$ac_objext
36376 if { (ac_try="$ac_compile"
36377 case "(($ac_try" in
36378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36379 *) ac_try_echo=$ac_try;;
36381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36382 (eval "$ac_compile") 2>conftest.er1
36384 grep -v '^ *+' conftest.er1 >conftest.err
36386 cat conftest.err >&5
36387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36388 (exit $ac_status); } && {
36389 test -z "$ac_c_werror_flag" ||
36390 test ! -s conftest.err
36391 } && test -s conftest.$ac_objext; then
36392 ac_lo=$ac_mid; break
36394 echo "$as_me: failed program was:" >&5
36395 sed 's/^/| /' conftest.$ac_ext >&5
36397 ac_hi=`expr '(' $ac_mid ')' - 1`
36398 if test $ac_mid -le $ac_hi; then
36402 ac_mid=`expr 2 '*' $ac_mid`
36405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36408 echo "$as_me: failed program was:" >&5
36409 sed 's/^/| /' conftest.$ac_ext >&5
36414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36418 # Binary search between lo and hi bounds.
36419 while test "x$ac_lo" != "x$ac_hi"; do
36420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36421 cat >conftest.$ac_ext <<_ACEOF
36424 cat confdefs.h >>conftest.$ac_ext
36425 cat >>conftest.$ac_ext <<_ACEOF
36426 /* end confdefs.h. */
36427 $ac_includes_default
36428 typedef long long int ac__type_sizeof_;
36432 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36439 rm -f conftest.$ac_objext
36440 if { (ac_try="$ac_compile"
36441 case "(($ac_try" in
36442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36443 *) ac_try_echo=$ac_try;;
36445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36446 (eval "$ac_compile") 2>conftest.er1
36448 grep -v '^ *+' conftest.er1 >conftest.err
36450 cat conftest.err >&5
36451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452 (exit $ac_status); } && {
36453 test -z "$ac_c_werror_flag" ||
36454 test ! -s conftest.err
36455 } && test -s conftest.$ac_objext; then
36458 echo "$as_me: failed program was:" >&5
36459 sed 's/^/| /' conftest.$ac_ext >&5
36461 ac_lo=`expr '(' $ac_mid ')' + 1`
36464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36467 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36468 '') if test "$ac_cv_type_long_long_int" = yes; then
36469 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36470 See \`config.log' for more details." >&5
36471 echo "$as_me: error: cannot compute sizeof (long long int)
36472 See \`config.log' for more details." >&2;}
36473 { (exit 77); exit 77; }; }
36475 ac_cv_sizeof_long_long_int=0
36479 cat >conftest.$ac_ext <<_ACEOF
36482 cat confdefs.h >>conftest.$ac_ext
36483 cat >>conftest.$ac_ext <<_ACEOF
36484 /* end confdefs.h. */
36485 $ac_includes_default
36486 typedef long long int ac__type_sizeof_;
36487 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36488 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36490 #include <stdlib.h>
36495 FILE *f = fopen ("conftest.val", "w");
36498 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36500 long int i = longval ();
36501 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36503 fprintf (f, "%ld\n", i);
36507 unsigned long int i = ulongval ();
36508 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36510 fprintf (f, "%lu\n", i);
36512 return ferror (f) || fclose (f) != 0;
36518 rm -f conftest$ac_exeext
36519 if { (ac_try="$ac_link"
36520 case "(($ac_try" in
36521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36522 *) ac_try_echo=$ac_try;;
36524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36525 (eval "$ac_link") 2>&5
36527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36529 { (case "(($ac_try" in
36530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36531 *) ac_try_echo=$ac_try;;
36533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36534 (eval "$ac_try") 2>&5
36536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36537 (exit $ac_status); }; }; then
36538 ac_cv_sizeof_long_long_int=`cat conftest.val`
36540 echo "$as_me: program exited with status $ac_status" >&5
36541 echo "$as_me: failed program was:" >&5
36542 sed 's/^/| /' conftest.$ac_ext >&5
36544 ( exit $ac_status )
36545 if test "$ac_cv_type_long_long_int" = yes; then
36546 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36547 See \`config.log' for more details." >&5
36548 echo "$as_me: error: cannot compute sizeof (long long int)
36549 See \`config.log' for more details." >&2;}
36550 { (exit 77); exit 77; }; }
36552 ac_cv_sizeof_long_long_int=0
36555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36559 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36560 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36564 cat >>confdefs.h <<_ACEOF
36565 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36569 { echo "$as_me:$LINENO: checking for int *" >&5
36570 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36571 if test "${ac_cv_type_int_p+set}" = set; then
36572 echo $ECHO_N "(cached) $ECHO_C" >&6
36574 cat >conftest.$ac_ext <<_ACEOF
36577 cat confdefs.h >>conftest.$ac_ext
36578 cat >>conftest.$ac_ext <<_ACEOF
36579 /* end confdefs.h. */
36580 $ac_includes_default
36581 typedef int * ac__type_new_;
36585 if ((ac__type_new_ *) 0)
36587 if (sizeof (ac__type_new_))
36593 rm -f conftest.$ac_objext
36594 if { (ac_try="$ac_compile"
36595 case "(($ac_try" in
36596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36597 *) ac_try_echo=$ac_try;;
36599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36600 (eval "$ac_compile") 2>conftest.er1
36602 grep -v '^ *+' conftest.er1 >conftest.err
36604 cat conftest.err >&5
36605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606 (exit $ac_status); } && {
36607 test -z "$ac_c_werror_flag" ||
36608 test ! -s conftest.err
36609 } && test -s conftest.$ac_objext; then
36610 ac_cv_type_int_p=yes
36612 echo "$as_me: failed program was:" >&5
36613 sed 's/^/| /' conftest.$ac_ext >&5
36615 ac_cv_type_int_p=no
36618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36620 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36621 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36623 # The cast to long int works around a bug in the HP C Compiler
36624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36626 # This bug is HP SR number 8606223364.
36627 { echo "$as_me:$LINENO: checking size of int *" >&5
36628 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36629 if test "${ac_cv_sizeof_int_p+set}" = set; then
36630 echo $ECHO_N "(cached) $ECHO_C" >&6
36632 if test "$cross_compiling" = yes; then
36633 # Depending upon the size, compute the lo and hi bounds.
36634 cat >conftest.$ac_ext <<_ACEOF
36637 cat confdefs.h >>conftest.$ac_ext
36638 cat >>conftest.$ac_ext <<_ACEOF
36639 /* end confdefs.h. */
36640 $ac_includes_default
36641 typedef int * ac__type_sizeof_;
36645 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36652 rm -f conftest.$ac_objext
36653 if { (ac_try="$ac_compile"
36654 case "(($ac_try" in
36655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36656 *) ac_try_echo=$ac_try;;
36658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36659 (eval "$ac_compile") 2>conftest.er1
36661 grep -v '^ *+' conftest.er1 >conftest.err
36663 cat conftest.err >&5
36664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36665 (exit $ac_status); } && {
36666 test -z "$ac_c_werror_flag" ||
36667 test ! -s conftest.err
36668 } && test -s conftest.$ac_objext; then
36671 cat >conftest.$ac_ext <<_ACEOF
36674 cat confdefs.h >>conftest.$ac_ext
36675 cat >>conftest.$ac_ext <<_ACEOF
36676 /* end confdefs.h. */
36677 $ac_includes_default
36678 typedef int * ac__type_sizeof_;
36682 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36689 rm -f conftest.$ac_objext
36690 if { (ac_try="$ac_compile"
36691 case "(($ac_try" in
36692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36693 *) ac_try_echo=$ac_try;;
36695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36696 (eval "$ac_compile") 2>conftest.er1
36698 grep -v '^ *+' conftest.er1 >conftest.err
36700 cat conftest.err >&5
36701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36702 (exit $ac_status); } && {
36703 test -z "$ac_c_werror_flag" ||
36704 test ! -s conftest.err
36705 } && test -s conftest.$ac_objext; then
36706 ac_hi=$ac_mid; break
36708 echo "$as_me: failed program was:" >&5
36709 sed 's/^/| /' conftest.$ac_ext >&5
36711 ac_lo=`expr $ac_mid + 1`
36712 if test $ac_lo -le $ac_mid; then
36716 ac_mid=`expr 2 '*' $ac_mid + 1`
36719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36722 echo "$as_me: failed program was:" >&5
36723 sed 's/^/| /' conftest.$ac_ext >&5
36725 cat >conftest.$ac_ext <<_ACEOF
36728 cat confdefs.h >>conftest.$ac_ext
36729 cat >>conftest.$ac_ext <<_ACEOF
36730 /* end confdefs.h. */
36731 $ac_includes_default
36732 typedef int * ac__type_sizeof_;
36736 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36743 rm -f conftest.$ac_objext
36744 if { (ac_try="$ac_compile"
36745 case "(($ac_try" in
36746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36747 *) ac_try_echo=$ac_try;;
36749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36750 (eval "$ac_compile") 2>conftest.er1
36752 grep -v '^ *+' conftest.er1 >conftest.err
36754 cat conftest.err >&5
36755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756 (exit $ac_status); } && {
36757 test -z "$ac_c_werror_flag" ||
36758 test ! -s conftest.err
36759 } && test -s conftest.$ac_objext; then
36762 cat >conftest.$ac_ext <<_ACEOF
36765 cat confdefs.h >>conftest.$ac_ext
36766 cat >>conftest.$ac_ext <<_ACEOF
36767 /* end confdefs.h. */
36768 $ac_includes_default
36769 typedef int * ac__type_sizeof_;
36773 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36780 rm -f conftest.$ac_objext
36781 if { (ac_try="$ac_compile"
36782 case "(($ac_try" in
36783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36784 *) ac_try_echo=$ac_try;;
36786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36787 (eval "$ac_compile") 2>conftest.er1
36789 grep -v '^ *+' conftest.er1 >conftest.err
36791 cat conftest.err >&5
36792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36793 (exit $ac_status); } && {
36794 test -z "$ac_c_werror_flag" ||
36795 test ! -s conftest.err
36796 } && test -s conftest.$ac_objext; then
36797 ac_lo=$ac_mid; break
36799 echo "$as_me: failed program was:" >&5
36800 sed 's/^/| /' conftest.$ac_ext >&5
36802 ac_hi=`expr '(' $ac_mid ')' - 1`
36803 if test $ac_mid -le $ac_hi; then
36807 ac_mid=`expr 2 '*' $ac_mid`
36810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36813 echo "$as_me: failed program was:" >&5
36814 sed 's/^/| /' conftest.$ac_ext >&5
36819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36823 # Binary search between lo and hi bounds.
36824 while test "x$ac_lo" != "x$ac_hi"; do
36825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36826 cat >conftest.$ac_ext <<_ACEOF
36829 cat confdefs.h >>conftest.$ac_ext
36830 cat >>conftest.$ac_ext <<_ACEOF
36831 /* end confdefs.h. */
36832 $ac_includes_default
36833 typedef int * ac__type_sizeof_;
36837 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36844 rm -f conftest.$ac_objext
36845 if { (ac_try="$ac_compile"
36846 case "(($ac_try" in
36847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36848 *) ac_try_echo=$ac_try;;
36850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36851 (eval "$ac_compile") 2>conftest.er1
36853 grep -v '^ *+' conftest.er1 >conftest.err
36855 cat conftest.err >&5
36856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36857 (exit $ac_status); } && {
36858 test -z "$ac_c_werror_flag" ||
36859 test ! -s conftest.err
36860 } && test -s conftest.$ac_objext; then
36863 echo "$as_me: failed program was:" >&5
36864 sed 's/^/| /' conftest.$ac_ext >&5
36866 ac_lo=`expr '(' $ac_mid ')' + 1`
36869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36872 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36873 '') if test "$ac_cv_type_int_p" = yes; then
36874 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36875 See \`config.log' for more details." >&5
36876 echo "$as_me: error: cannot compute sizeof (int *)
36877 See \`config.log' for more details." >&2;}
36878 { (exit 77); exit 77; }; }
36880 ac_cv_sizeof_int_p=0
36884 cat >conftest.$ac_ext <<_ACEOF
36887 cat confdefs.h >>conftest.$ac_ext
36888 cat >>conftest.$ac_ext <<_ACEOF
36889 /* end confdefs.h. */
36890 $ac_includes_default
36891 typedef int * ac__type_sizeof_;
36892 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36893 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36895 #include <stdlib.h>
36900 FILE *f = fopen ("conftest.val", "w");
36903 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36905 long int i = longval ();
36906 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36908 fprintf (f, "%ld\n", i);
36912 unsigned long int i = ulongval ();
36913 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36915 fprintf (f, "%lu\n", i);
36917 return ferror (f) || fclose (f) != 0;
36923 rm -f conftest$ac_exeext
36924 if { (ac_try="$ac_link"
36925 case "(($ac_try" in
36926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36927 *) ac_try_echo=$ac_try;;
36929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36930 (eval "$ac_link") 2>&5
36932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36934 { (case "(($ac_try" in
36935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36936 *) ac_try_echo=$ac_try;;
36938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36939 (eval "$ac_try") 2>&5
36941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36942 (exit $ac_status); }; }; then
36943 ac_cv_sizeof_int_p=`cat conftest.val`
36945 echo "$as_me: program exited with status $ac_status" >&5
36946 echo "$as_me: failed program was:" >&5
36947 sed 's/^/| /' conftest.$ac_ext >&5
36949 ( exit $ac_status )
36950 if test "$ac_cv_type_int_p" = yes; then
36951 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36952 See \`config.log' for more details." >&5
36953 echo "$as_me: error: cannot compute sizeof (int *)
36954 See \`config.log' for more details." >&2;}
36955 { (exit 77); exit 77; }; }
36957 ac_cv_sizeof_int_p=0
36960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36964 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36965 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36969 cat >>confdefs.h <<_ACEOF
36970 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36975 { echo "$as_me:$LINENO: checking for u_int type" >&5
36976 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36977 if test "${ac_cv_have_u_int+set}" = set; then
36978 echo $ECHO_N "(cached) $ECHO_C" >&6
36981 cat >conftest.$ac_ext <<_ACEOF
36984 cat confdefs.h >>conftest.$ac_ext
36985 cat >>conftest.$ac_ext <<_ACEOF
36986 /* end confdefs.h. */
36988 #include <sys/types.h>
37000 rm -f conftest.$ac_objext
37001 if { (ac_try="$ac_compile"
37002 case "(($ac_try" in
37003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37004 *) ac_try_echo=$ac_try;;
37006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37007 (eval "$ac_compile") 2>conftest.er1
37009 grep -v '^ *+' conftest.er1 >conftest.err
37011 cat conftest.err >&5
37012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37013 (exit $ac_status); } && {
37014 test -z "$ac_c_werror_flag" ||
37015 test ! -s conftest.err
37016 } && test -s conftest.$ac_objext; then
37018 ac_cv_have_u_int="yes"
37021 echo "$as_me: failed program was:" >&5
37022 sed 's/^/| /' conftest.$ac_ext >&5
37025 ac_cv_have_u_int="no"
37030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37034 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37035 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37036 if test "x$ac_cv_have_u_int" = "xyes" ; then
37037 cat >>confdefs.h <<\_ACEOF
37038 #define HAVE_U_INT 1
37044 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37045 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37046 if test "${ac_cv_have_intmax_t+set}" = set; then
37047 echo $ECHO_N "(cached) $ECHO_C" >&6
37050 cat >conftest.$ac_ext <<_ACEOF
37053 cat confdefs.h >>conftest.$ac_ext
37054 cat >>conftest.$ac_ext <<_ACEOF
37055 /* end confdefs.h. */
37057 #include <sys/types.h>
37069 rm -f conftest.$ac_objext
37070 if { (ac_try="$ac_compile"
37071 case "(($ac_try" in
37072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37073 *) ac_try_echo=$ac_try;;
37075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37076 (eval "$ac_compile") 2>conftest.er1
37078 grep -v '^ *+' conftest.er1 >conftest.err
37080 cat conftest.err >&5
37081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082 (exit $ac_status); } && {
37083 test -z "$ac_c_werror_flag" ||
37084 test ! -s conftest.err
37085 } && test -s conftest.$ac_objext; then
37087 ac_cv_have_intmax_t="yes"
37090 echo "$as_me: failed program was:" >&5
37091 sed 's/^/| /' conftest.$ac_ext >&5
37094 cat >conftest.$ac_ext <<_ACEOF
37097 cat confdefs.h >>conftest.$ac_ext
37098 cat >>conftest.$ac_ext <<_ACEOF
37099 /* end confdefs.h. */
37101 #include <stdint.h>
37113 rm -f conftest.$ac_objext
37114 if { (ac_try="$ac_compile"
37115 case "(($ac_try" in
37116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37117 *) ac_try_echo=$ac_try;;
37119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37120 (eval "$ac_compile") 2>conftest.er1
37122 grep -v '^ *+' conftest.er1 >conftest.err
37124 cat conftest.err >&5
37125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37126 (exit $ac_status); } && {
37127 test -z "$ac_c_werror_flag" ||
37128 test ! -s conftest.err
37129 } && test -s conftest.$ac_objext; then
37131 ac_cv_have_intmax_t="yes"
37134 echo "$as_me: failed program was:" >&5
37135 sed 's/^/| /' conftest.$ac_ext >&5
37138 ac_cv_have_intmax_t="no"
37143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37152 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37153 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37154 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37155 cat >>confdefs.h <<\_ACEOF
37156 #define HAVE_INTMAX_T 1
37162 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37163 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37164 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37165 echo $ECHO_N "(cached) $ECHO_C" >&6
37168 cat >conftest.$ac_ext <<_ACEOF
37171 cat confdefs.h >>conftest.$ac_ext
37172 cat >>conftest.$ac_ext <<_ACEOF
37173 /* end confdefs.h. */
37175 #include <sys/types.h>
37181 u_intmax_t a; a = 1;
37187 rm -f conftest.$ac_objext
37188 if { (ac_try="$ac_compile"
37189 case "(($ac_try" in
37190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37191 *) ac_try_echo=$ac_try;;
37193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37194 (eval "$ac_compile") 2>conftest.er1
37196 grep -v '^ *+' conftest.er1 >conftest.err
37198 cat conftest.err >&5
37199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37200 (exit $ac_status); } && {
37201 test -z "$ac_c_werror_flag" ||
37202 test ! -s conftest.err
37203 } && test -s conftest.$ac_objext; then
37205 ac_cv_have_u_intmax_t="yes"
37208 echo "$as_me: failed program was:" >&5
37209 sed 's/^/| /' conftest.$ac_ext >&5
37212 cat >conftest.$ac_ext <<_ACEOF
37215 cat confdefs.h >>conftest.$ac_ext
37216 cat >>conftest.$ac_ext <<_ACEOF
37217 /* end confdefs.h. */
37219 #include <stdint.h>
37225 u_intmax_t a; a = 1;
37231 rm -f conftest.$ac_objext
37232 if { (ac_try="$ac_compile"
37233 case "(($ac_try" in
37234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37235 *) ac_try_echo=$ac_try;;
37237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37238 (eval "$ac_compile") 2>conftest.er1
37240 grep -v '^ *+' conftest.er1 >conftest.err
37242 cat conftest.err >&5
37243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37244 (exit $ac_status); } && {
37245 test -z "$ac_c_werror_flag" ||
37246 test ! -s conftest.err
37247 } && test -s conftest.$ac_objext; then
37249 ac_cv_have_u_intmax_t="yes"
37252 echo "$as_me: failed program was:" >&5
37253 sed 's/^/| /' conftest.$ac_ext >&5
37256 ac_cv_have_u_intmax_t="no"
37261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37270 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37271 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37272 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37273 cat >>confdefs.h <<\_ACEOF
37274 #define HAVE_U_INTMAX_T 1
37280 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37281 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37282 if test "${ac_cv_have_intxx_t+set}" = set; then
37283 echo $ECHO_N "(cached) $ECHO_C" >&6
37286 cat >conftest.$ac_ext <<_ACEOF
37289 cat confdefs.h >>conftest.$ac_ext
37290 cat >>conftest.$ac_ext <<_ACEOF
37291 /* end confdefs.h. */
37293 #include <sys/types.h>
37299 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37305 rm -f conftest.$ac_objext
37306 if { (ac_try="$ac_compile"
37307 case "(($ac_try" in
37308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37309 *) ac_try_echo=$ac_try;;
37311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37312 (eval "$ac_compile") 2>conftest.er1
37314 grep -v '^ *+' conftest.er1 >conftest.err
37316 cat conftest.err >&5
37317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37318 (exit $ac_status); } && {
37319 test -z "$ac_c_werror_flag" ||
37320 test ! -s conftest.err
37321 } && test -s conftest.$ac_objext; then
37323 ac_cv_have_intxx_t="yes"
37326 echo "$as_me: failed program was:" >&5
37327 sed 's/^/| /' conftest.$ac_ext >&5
37330 ac_cv_have_intxx_t="no"
37335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37339 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37340 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37341 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37342 cat >>confdefs.h <<\_ACEOF
37343 #define HAVE_INTXX_T 1
37349 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37350 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37351 if test "${ac_cv_have_int64_t+set}" = set; then
37352 echo $ECHO_N "(cached) $ECHO_C" >&6
37355 cat >conftest.$ac_ext <<_ACEOF
37358 cat confdefs.h >>conftest.$ac_ext
37359 cat >>conftest.$ac_ext <<_ACEOF
37360 /* end confdefs.h. */
37362 #include <sys/types.h>
37374 rm -f conftest.$ac_objext
37375 if { (ac_try="$ac_compile"
37376 case "(($ac_try" in
37377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37378 *) ac_try_echo=$ac_try;;
37380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37381 (eval "$ac_compile") 2>conftest.er1
37383 grep -v '^ *+' conftest.er1 >conftest.err
37385 cat conftest.err >&5
37386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37387 (exit $ac_status); } && {
37388 test -z "$ac_c_werror_flag" ||
37389 test ! -s conftest.err
37390 } && test -s conftest.$ac_objext; then
37392 ac_cv_have_int64_t="yes"
37395 echo "$as_me: failed program was:" >&5
37396 sed 's/^/| /' conftest.$ac_ext >&5
37399 ac_cv_have_int64_t="no"
37404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37408 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37409 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37410 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37411 cat >>confdefs.h <<\_ACEOF
37412 #define HAVE_INT64_T 1
37418 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37419 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37420 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37421 echo $ECHO_N "(cached) $ECHO_C" >&6
37424 cat >conftest.$ac_ext <<_ACEOF
37427 cat confdefs.h >>conftest.$ac_ext
37428 cat >>conftest.$ac_ext <<_ACEOF
37429 /* end confdefs.h. */
37431 #include <sys/types.h>
37437 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37443 rm -f conftest.$ac_objext
37444 if { (ac_try="$ac_compile"
37445 case "(($ac_try" in
37446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37447 *) ac_try_echo=$ac_try;;
37449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37450 (eval "$ac_compile") 2>conftest.er1
37452 grep -v '^ *+' conftest.er1 >conftest.err
37454 cat conftest.err >&5
37455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37456 (exit $ac_status); } && {
37457 test -z "$ac_c_werror_flag" ||
37458 test ! -s conftest.err
37459 } && test -s conftest.$ac_objext; then
37461 ac_cv_have_u_intxx_t="yes"
37464 echo "$as_me: failed program was:" >&5
37465 sed 's/^/| /' conftest.$ac_ext >&5
37468 ac_cv_have_u_intxx_t="no"
37473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37477 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37478 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37479 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37480 cat >>confdefs.h <<\_ACEOF
37481 #define HAVE_U_INTXX_T 1
37487 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37488 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37489 if test "${ac_cv_have_u_int64_t+set}" = set; then
37490 echo $ECHO_N "(cached) $ECHO_C" >&6
37493 cat >conftest.$ac_ext <<_ACEOF
37496 cat confdefs.h >>conftest.$ac_ext
37497 cat >>conftest.$ac_ext <<_ACEOF
37498 /* end confdefs.h. */
37500 #include <sys/types.h>
37506 u_int64_t a; a = 1;
37512 rm -f conftest.$ac_objext
37513 if { (ac_try="$ac_compile"
37514 case "(($ac_try" in
37515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37516 *) ac_try_echo=$ac_try;;
37518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37519 (eval "$ac_compile") 2>conftest.er1
37521 grep -v '^ *+' conftest.er1 >conftest.err
37523 cat conftest.err >&5
37524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37525 (exit $ac_status); } && {
37526 test -z "$ac_c_werror_flag" ||
37527 test ! -s conftest.err
37528 } && test -s conftest.$ac_objext; then
37530 ac_cv_have_u_int64_t="yes"
37533 echo "$as_me: failed program was:" >&5
37534 sed 's/^/| /' conftest.$ac_ext >&5
37537 ac_cv_have_u_int64_t="no"
37542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37546 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37547 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37548 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37549 cat >>confdefs.h <<\_ACEOF
37550 #define HAVE_U_INT64_T 1
37556 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37557 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37559 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37560 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37561 cat >conftest.$ac_ext <<_ACEOF
37564 cat confdefs.h >>conftest.$ac_ext
37565 cat >>conftest.$ac_ext <<_ACEOF
37566 /* end confdefs.h. */
37568 #include <sys/bitypes.h>
37574 int8_t a; int16_t b; int32_t c;
37575 u_int8_t e; u_int16_t f; u_int32_t g;
37576 a = b = c = e = f = g = 1;
37582 rm -f conftest.$ac_objext
37583 if { (ac_try="$ac_compile"
37584 case "(($ac_try" in
37585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37586 *) ac_try_echo=$ac_try;;
37588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37589 (eval "$ac_compile") 2>conftest.er1
37591 grep -v '^ *+' conftest.er1 >conftest.err
37593 cat conftest.err >&5
37594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595 (exit $ac_status); } && {
37596 test -z "$ac_c_werror_flag" ||
37597 test ! -s conftest.err
37598 } && test -s conftest.$ac_objext; then
37600 cat >>confdefs.h <<\_ACEOF
37601 #define HAVE_U_INTXX_T 1
37604 cat >>confdefs.h <<\_ACEOF
37605 #define HAVE_INTXX_T 1
37608 cat >>confdefs.h <<\_ACEOF
37609 #define HAVE_SYS_BITYPES_H 1
37612 { echo "$as_me:$LINENO: result: yes" >&5
37613 echo "${ECHO_T}yes" >&6; }
37616 echo "$as_me: failed program was:" >&5
37617 sed 's/^/| /' conftest.$ac_ext >&5
37620 { echo "$as_me:$LINENO: result: no" >&5
37621 echo "${ECHO_T}no" >&6; }
37626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37629 if test -z "$have_u_intxx_t" ; then
37630 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37631 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37632 if test "${ac_cv_have_uintxx_t+set}" = set; then
37633 echo $ECHO_N "(cached) $ECHO_C" >&6
37636 cat >conftest.$ac_ext <<_ACEOF
37639 cat confdefs.h >>conftest.$ac_ext
37640 cat >>conftest.$ac_ext <<_ACEOF
37641 /* end confdefs.h. */
37643 #include <sys/types.h>
37649 uint8_t a; uint16_t b;
37650 uint32_t c; a = b = c = 1;
37656 rm -f conftest.$ac_objext
37657 if { (ac_try="$ac_compile"
37658 case "(($ac_try" in
37659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37660 *) ac_try_echo=$ac_try;;
37662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37663 (eval "$ac_compile") 2>conftest.er1
37665 grep -v '^ *+' conftest.er1 >conftest.err
37667 cat conftest.err >&5
37668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37669 (exit $ac_status); } && {
37670 test -z "$ac_c_werror_flag" ||
37671 test ! -s conftest.err
37672 } && test -s conftest.$ac_objext; then
37674 ac_cv_have_uintxx_t="yes"
37677 echo "$as_me: failed program was:" >&5
37678 sed 's/^/| /' conftest.$ac_ext >&5
37681 ac_cv_have_uintxx_t="no"
37686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37690 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37691 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37692 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37693 cat >>confdefs.h <<\_ACEOF
37694 #define HAVE_UINTXX_T 1
37700 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37701 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37703 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37704 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37705 cat >conftest.$ac_ext <<_ACEOF
37708 cat confdefs.h >>conftest.$ac_ext
37709 cat >>conftest.$ac_ext <<_ACEOF
37710 /* end confdefs.h. */
37712 #include <sys/bitypes.h>
37718 int64_t a; u_int64_t b;
37725 rm -f conftest.$ac_objext
37726 if { (ac_try="$ac_compile"
37727 case "(($ac_try" in
37728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37729 *) ac_try_echo=$ac_try;;
37731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37732 (eval "$ac_compile") 2>conftest.er1
37734 grep -v '^ *+' conftest.er1 >conftest.err
37736 cat conftest.err >&5
37737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37738 (exit $ac_status); } && {
37739 test -z "$ac_c_werror_flag" ||
37740 test ! -s conftest.err
37741 } && test -s conftest.$ac_objext; then
37743 cat >>confdefs.h <<\_ACEOF
37744 #define HAVE_U_INT64_T 1
37747 cat >>confdefs.h <<\_ACEOF
37748 #define HAVE_INT64_T 1
37751 { echo "$as_me:$LINENO: result: yes" >&5
37752 echo "${ECHO_T}yes" >&6; }
37755 echo "$as_me: failed program was:" >&5
37756 sed 's/^/| /' conftest.$ac_ext >&5
37759 { echo "$as_me:$LINENO: result: no" >&5
37760 echo "${ECHO_T}no" >&6; }
37765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37768 if (test -z "$have_uintxx_t" && \
37769 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37771 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37772 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37773 cat >conftest.$ac_ext <<_ACEOF
37776 cat confdefs.h >>conftest.$ac_ext
37777 cat >>conftest.$ac_ext <<_ACEOF
37778 /* end confdefs.h. */
37780 #include <sys/bitypes.h>
37786 uint8_t a; uint16_t b;
37787 uint32_t c; a = b = c = 1;
37793 rm -f conftest.$ac_objext
37794 if { (ac_try="$ac_compile"
37795 case "(($ac_try" in
37796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37797 *) ac_try_echo=$ac_try;;
37799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37800 (eval "$ac_compile") 2>conftest.er1
37802 grep -v '^ *+' conftest.er1 >conftest.err
37804 cat conftest.err >&5
37805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37806 (exit $ac_status); } && {
37807 test -z "$ac_c_werror_flag" ||
37808 test ! -s conftest.err
37809 } && test -s conftest.$ac_objext; then
37811 cat >>confdefs.h <<\_ACEOF
37812 #define HAVE_UINTXX_T 1
37815 { echo "$as_me:$LINENO: result: yes" >&5
37816 echo "${ECHO_T}yes" >&6; }
37819 echo "$as_me: failed program was:" >&5
37820 sed 's/^/| /' conftest.$ac_ext >&5
37823 { echo "$as_me:$LINENO: result: no" >&5
37824 echo "${ECHO_T}no" >&6; }
37829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37865 echo $ECHO_N "(cached) $ECHO_C" >&6
37867 cat >conftest.$ac_ext <<_ACEOF
37870 cat confdefs.h >>conftest.$ac_ext
37871 cat >>conftest.$ac_ext <<_ACEOF
37872 /* end confdefs.h. */
37873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37875 #define $ac_func innocuous_$ac_func
37877 /* System header to define __stub macros and hopefully few prototypes,
37878 which can conflict with char $ac_func (); below.
37879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37880 <limits.h> exists even on freestanding compilers. */
37883 # include <limits.h>
37885 # include <assert.h>
37890 /* Override any GCC internal prototype to avoid an error.
37891 Use char because int might match the return type of a GCC
37892 builtin and then its argument prototype would still apply. */
37897 /* The GNU C library defines this for functions which it implements
37898 to always fail with ENOSYS. Some functions are actually named
37899 something starting with __ and the normal name is an alias. */
37900 #if defined __stub_$ac_func || defined __stub___$ac_func
37907 return $ac_func ();
37912 rm -f conftest.$ac_objext conftest$ac_exeext
37913 if { (ac_try="$ac_link"
37914 case "(($ac_try" in
37915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37916 *) ac_try_echo=$ac_try;;
37918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37919 (eval "$ac_link") 2>conftest.er1
37921 grep -v '^ *+' conftest.er1 >conftest.err
37923 cat conftest.err >&5
37924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37925 (exit $ac_status); } && {
37926 test -z "$ac_c_werror_flag" ||
37927 test ! -s conftest.err
37928 } && test -s conftest$ac_exeext &&
37929 $as_test_x conftest$ac_exeext; then
37930 eval "$as_ac_var=yes"
37932 echo "$as_me: failed program was:" >&5
37933 sed 's/^/| /' conftest.$ac_ext >&5
37935 eval "$as_ac_var=no"
37938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37939 conftest$ac_exeext conftest.$ac_ext
37941 ac_res=`eval echo '${'$as_ac_var'}'`
37942 { echo "$as_me:$LINENO: result: $ac_res" >&5
37943 echo "${ECHO_T}$ac_res" >&6; }
37944 if test `eval echo '${'$as_ac_var'}'` = yes; then
37945 cat >>confdefs.h <<_ACEOF
37946 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37950 echo 'configure: cannot find needed function.'; exit 1
37957 for ac_func in fchdir
37959 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37960 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37961 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37962 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37963 echo $ECHO_N "(cached) $ECHO_C" >&6
37965 cat >conftest.$ac_ext <<_ACEOF
37968 cat confdefs.h >>conftest.$ac_ext
37969 cat >>conftest.$ac_ext <<_ACEOF
37970 /* end confdefs.h. */
37971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37973 #define $ac_func innocuous_$ac_func
37975 /* System header to define __stub macros and hopefully few prototypes,
37976 which can conflict with char $ac_func (); below.
37977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37978 <limits.h> exists even on freestanding compilers. */
37981 # include <limits.h>
37983 # include <assert.h>
37988 /* Override any GCC internal prototype to avoid an error.
37989 Use char because int might match the return type of a GCC
37990 builtin and then its argument prototype would still apply. */
37995 /* The GNU C library defines this for functions which it implements
37996 to always fail with ENOSYS. Some functions are actually named
37997 something starting with __ and the normal name is an alias. */
37998 #if defined __stub_$ac_func || defined __stub___$ac_func
38005 return $ac_func ();
38010 rm -f conftest.$ac_objext conftest$ac_exeext
38011 if { (ac_try="$ac_link"
38012 case "(($ac_try" in
38013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38014 *) ac_try_echo=$ac_try;;
38016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38017 (eval "$ac_link") 2>conftest.er1
38019 grep -v '^ *+' conftest.er1 >conftest.err
38021 cat conftest.err >&5
38022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38023 (exit $ac_status); } && {
38024 test -z "$ac_c_werror_flag" ||
38025 test ! -s conftest.err
38026 } && test -s conftest$ac_exeext &&
38027 $as_test_x conftest$ac_exeext; then
38028 eval "$as_ac_var=yes"
38030 echo "$as_me: failed program was:" >&5
38031 sed 's/^/| /' conftest.$ac_ext >&5
38033 eval "$as_ac_var=no"
38036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38037 conftest$ac_exeext conftest.$ac_ext
38039 ac_res=`eval echo '${'$as_ac_var'}'`
38040 { echo "$as_me:$LINENO: result: $ac_res" >&5
38041 echo "${ECHO_T}$ac_res" >&6; }
38042 if test `eval echo '${'$as_ac_var'}'` = yes; then
38043 cat >>confdefs.h <<_ACEOF
38044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38046 cat >>confdefs.h <<\_ACEOF
38047 #define HAVE_FCHDIR 1
38054 for ac_func in strtoll
38056 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38057 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38058 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38059 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38060 echo $ECHO_N "(cached) $ECHO_C" >&6
38062 cat >conftest.$ac_ext <<_ACEOF
38065 cat confdefs.h >>conftest.$ac_ext
38066 cat >>conftest.$ac_ext <<_ACEOF
38067 /* end confdefs.h. */
38068 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38070 #define $ac_func innocuous_$ac_func
38072 /* System header to define __stub macros and hopefully few prototypes,
38073 which can conflict with char $ac_func (); below.
38074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38075 <limits.h> exists even on freestanding compilers. */
38078 # include <limits.h>
38080 # include <assert.h>
38085 /* Override any GCC internal prototype to avoid an error.
38086 Use char because int might match the return type of a GCC
38087 builtin and then its argument prototype would still apply. */
38092 /* The GNU C library defines this for functions which it implements
38093 to always fail with ENOSYS. Some functions are actually named
38094 something starting with __ and the normal name is an alias. */
38095 #if defined __stub_$ac_func || defined __stub___$ac_func
38102 return $ac_func ();
38107 rm -f conftest.$ac_objext conftest$ac_exeext
38108 if { (ac_try="$ac_link"
38109 case "(($ac_try" in
38110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38111 *) ac_try_echo=$ac_try;;
38113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38114 (eval "$ac_link") 2>conftest.er1
38116 grep -v '^ *+' conftest.er1 >conftest.err
38118 cat conftest.err >&5
38119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38120 (exit $ac_status); } && {
38121 test -z "$ac_c_werror_flag" ||
38122 test ! -s conftest.err
38123 } && test -s conftest$ac_exeext &&
38124 $as_test_x conftest$ac_exeext; then
38125 eval "$as_ac_var=yes"
38127 echo "$as_me: failed program was:" >&5
38128 sed 's/^/| /' conftest.$ac_ext >&5
38130 eval "$as_ac_var=no"
38133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38134 conftest$ac_exeext conftest.$ac_ext
38136 ac_res=`eval echo '${'$as_ac_var'}'`
38137 { echo "$as_me:$LINENO: result: $ac_res" >&5
38138 echo "${ECHO_T}$ac_res" >&6; }
38139 if test `eval echo '${'$as_ac_var'}'` = yes; then
38140 cat >>confdefs.h <<_ACEOF
38141 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38143 cat >>confdefs.h <<\_ACEOF
38144 #define HAVE_STRTOLL 1
38151 for ac_func in posix_fadvise
38153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38157 echo $ECHO_N "(cached) $ECHO_C" >&6
38159 cat >conftest.$ac_ext <<_ACEOF
38162 cat confdefs.h >>conftest.$ac_ext
38163 cat >>conftest.$ac_ext <<_ACEOF
38164 /* end confdefs.h. */
38165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38167 #define $ac_func innocuous_$ac_func
38169 /* System header to define __stub macros and hopefully few prototypes,
38170 which can conflict with char $ac_func (); below.
38171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38172 <limits.h> exists even on freestanding compilers. */
38175 # include <limits.h>
38177 # include <assert.h>
38182 /* Override any GCC internal prototype to avoid an error.
38183 Use char because int might match the return type of a GCC
38184 builtin and then its argument prototype would still apply. */
38189 /* The GNU C library defines this for functions which it implements
38190 to always fail with ENOSYS. Some functions are actually named
38191 something starting with __ and the normal name is an alias. */
38192 #if defined __stub_$ac_func || defined __stub___$ac_func
38199 return $ac_func ();
38204 rm -f conftest.$ac_objext conftest$ac_exeext
38205 if { (ac_try="$ac_link"
38206 case "(($ac_try" in
38207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38208 *) ac_try_echo=$ac_try;;
38210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38211 (eval "$ac_link") 2>conftest.er1
38213 grep -v '^ *+' conftest.er1 >conftest.err
38215 cat conftest.err >&5
38216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217 (exit $ac_status); } && {
38218 test -z "$ac_c_werror_flag" ||
38219 test ! -s conftest.err
38220 } && test -s conftest$ac_exeext &&
38221 $as_test_x conftest$ac_exeext; then
38222 eval "$as_ac_var=yes"
38224 echo "$as_me: failed program was:" >&5
38225 sed 's/^/| /' conftest.$ac_ext >&5
38227 eval "$as_ac_var=no"
38230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38231 conftest$ac_exeext conftest.$ac_ext
38233 ac_res=`eval echo '${'$as_ac_var'}'`
38234 { echo "$as_me:$LINENO: result: $ac_res" >&5
38235 echo "${ECHO_T}$ac_res" >&6; }
38236 if test `eval echo '${'$as_ac_var'}'` = yes; then
38237 cat >>confdefs.h <<_ACEOF
38238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38245 for ac_func in fdatasync
38247 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38248 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38249 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38250 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38251 echo $ECHO_N "(cached) $ECHO_C" >&6
38253 cat >conftest.$ac_ext <<_ACEOF
38256 cat confdefs.h >>conftest.$ac_ext
38257 cat >>conftest.$ac_ext <<_ACEOF
38258 /* end confdefs.h. */
38259 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38261 #define $ac_func innocuous_$ac_func
38263 /* System header to define __stub macros and hopefully few prototypes,
38264 which can conflict with char $ac_func (); below.
38265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38266 <limits.h> exists even on freestanding compilers. */
38269 # include <limits.h>
38271 # include <assert.h>
38276 /* Override any GCC internal prototype to avoid an error.
38277 Use char because int might match the return type of a GCC
38278 builtin and then its argument prototype would still apply. */
38283 /* The GNU C library defines this for functions which it implements
38284 to always fail with ENOSYS. Some functions are actually named
38285 something starting with __ and the normal name is an alias. */
38286 #if defined __stub_$ac_func || defined __stub___$ac_func
38293 return $ac_func ();
38298 rm -f conftest.$ac_objext conftest$ac_exeext
38299 if { (ac_try="$ac_link"
38300 case "(($ac_try" in
38301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38302 *) ac_try_echo=$ac_try;;
38304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38305 (eval "$ac_link") 2>conftest.er1
38307 grep -v '^ *+' conftest.er1 >conftest.err
38309 cat conftest.err >&5
38310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311 (exit $ac_status); } && {
38312 test -z "$ac_c_werror_flag" ||
38313 test ! -s conftest.err
38314 } && test -s conftest$ac_exeext &&
38315 $as_test_x conftest$ac_exeext; then
38316 eval "$as_ac_var=yes"
38318 echo "$as_me: failed program was:" >&5
38319 sed 's/^/| /' conftest.$ac_ext >&5
38321 eval "$as_ac_var=no"
38324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38325 conftest$ac_exeext conftest.$ac_ext
38327 ac_res=`eval echo '${'$as_ac_var'}'`
38328 { echo "$as_me:$LINENO: result: $ac_res" >&5
38329 echo "${ECHO_T}$ac_res" >&6; }
38330 if test `eval echo '${'$as_ac_var'}'` = yes; then
38331 cat >>confdefs.h <<_ACEOF
38332 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38340 for ac_func in chflags
38342 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38343 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38344 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38345 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38346 echo $ECHO_N "(cached) $ECHO_C" >&6
38348 cat >conftest.$ac_ext <<_ACEOF
38351 cat confdefs.h >>conftest.$ac_ext
38352 cat >>conftest.$ac_ext <<_ACEOF
38353 /* end confdefs.h. */
38354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38356 #define $ac_func innocuous_$ac_func
38358 /* System header to define __stub macros and hopefully few prototypes,
38359 which can conflict with char $ac_func (); below.
38360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38361 <limits.h> exists even on freestanding compilers. */
38364 # include <limits.h>
38366 # include <assert.h>
38371 /* Override any GCC internal prototype to avoid an error.
38372 Use char because int might match the return type of a GCC
38373 builtin and then its argument prototype would still apply. */
38378 /* The GNU C library defines this for functions which it implements
38379 to always fail with ENOSYS. Some functions are actually named
38380 something starting with __ and the normal name is an alias. */
38381 #if defined __stub_$ac_func || defined __stub___$ac_func
38388 return $ac_func ();
38393 rm -f conftest.$ac_objext conftest$ac_exeext
38394 if { (ac_try="$ac_link"
38395 case "(($ac_try" in
38396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38397 *) ac_try_echo=$ac_try;;
38399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38400 (eval "$ac_link") 2>conftest.er1
38402 grep -v '^ *+' conftest.er1 >conftest.err
38404 cat conftest.err >&5
38405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38406 (exit $ac_status); } && {
38407 test -z "$ac_c_werror_flag" ||
38408 test ! -s conftest.err
38409 } && test -s conftest$ac_exeext &&
38410 $as_test_x conftest$ac_exeext; then
38411 eval "$as_ac_var=yes"
38413 echo "$as_me: failed program was:" >&5
38414 sed 's/^/| /' conftest.$ac_ext >&5
38416 eval "$as_ac_var=no"
38419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38420 conftest$ac_exeext conftest.$ac_ext
38422 ac_res=`eval echo '${'$as_ac_var'}'`
38423 { echo "$as_me:$LINENO: result: $ac_res" >&5
38424 echo "${ECHO_T}$ac_res" >&6; }
38425 if test `eval echo '${'$as_ac_var'}'` = yes; then
38426 cat >>confdefs.h <<_ACEOF
38427 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38438 for ac_func in snprintf vsnprintf gethostid fseeko
38440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38444 echo $ECHO_N "(cached) $ECHO_C" >&6
38446 cat >conftest.$ac_ext <<_ACEOF
38449 cat confdefs.h >>conftest.$ac_ext
38450 cat >>conftest.$ac_ext <<_ACEOF
38451 /* end confdefs.h. */
38452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38453 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38454 #define $ac_func innocuous_$ac_func
38456 /* System header to define __stub macros and hopefully few prototypes,
38457 which can conflict with char $ac_func (); below.
38458 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38459 <limits.h> exists even on freestanding compilers. */
38462 # include <limits.h>
38464 # include <assert.h>
38469 /* Override any GCC internal prototype to avoid an error.
38470 Use char because int might match the return type of a GCC
38471 builtin and then its argument prototype would still apply. */
38476 /* The GNU C library defines this for functions which it implements
38477 to always fail with ENOSYS. Some functions are actually named
38478 something starting with __ and the normal name is an alias. */
38479 #if defined __stub_$ac_func || defined __stub___$ac_func
38486 return $ac_func ();
38491 rm -f conftest.$ac_objext conftest$ac_exeext
38492 if { (ac_try="$ac_link"
38493 case "(($ac_try" in
38494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38495 *) ac_try_echo=$ac_try;;
38497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38498 (eval "$ac_link") 2>conftest.er1
38500 grep -v '^ *+' conftest.er1 >conftest.err
38502 cat conftest.err >&5
38503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38504 (exit $ac_status); } && {
38505 test -z "$ac_c_werror_flag" ||
38506 test ! -s conftest.err
38507 } && test -s conftest$ac_exeext &&
38508 $as_test_x conftest$ac_exeext; then
38509 eval "$as_ac_var=yes"
38511 echo "$as_me: failed program was:" >&5
38512 sed 's/^/| /' conftest.$ac_ext >&5
38514 eval "$as_ac_var=no"
38517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38518 conftest$ac_exeext conftest.$ac_ext
38520 ac_res=`eval echo '${'$as_ac_var'}'`
38521 { echo "$as_me:$LINENO: result: $ac_res" >&5
38522 echo "${ECHO_T}$ac_res" >&6; }
38523 if test `eval echo '${'$as_ac_var'}'` = yes; then
38524 cat >>confdefs.h <<_ACEOF
38525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38532 { echo "$as_me:$LINENO: checking for va_copy" >&5
38533 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38534 if test "${ba_cv_va_copy+set}" = set; then
38535 echo $ECHO_N "(cached) $ECHO_C" >&6
38538 cat >conftest.$ac_ext <<_ACEOF
38541 cat confdefs.h >>conftest.$ac_ext
38542 cat >>conftest.$ac_ext <<_ACEOF
38543 /* end confdefs.h. */
38545 #include <stdarg.h>
38546 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38547 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38553 call_use_va_copy(1,2,3)
38559 rm -f conftest.$ac_objext conftest$ac_exeext
38560 if { (ac_try="$ac_link"
38561 case "(($ac_try" in
38562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38563 *) ac_try_echo=$ac_try;;
38565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38566 (eval "$ac_link") 2>conftest.er1
38568 grep -v '^ *+' conftest.er1 >conftest.err
38570 cat conftest.err >&5
38571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38572 (exit $ac_status); } && {
38573 test -z "$ac_c_werror_flag" ||
38574 test ! -s conftest.err
38575 } && test -s conftest$ac_exeext &&
38576 $as_test_x conftest$ac_exeext; then
38581 echo "$as_me: failed program was:" >&5
38582 sed 's/^/| /' conftest.$ac_ext >&5
38590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38591 conftest$ac_exeext conftest.$ac_ext
38595 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38596 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38597 test $ba_cv_va_copy = yes &&
38598 cat >>confdefs.h <<\_ACEOF
38599 #define HAVE_VA_COPY 1
38607 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38609 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38613 echo $ECHO_N "(cached) $ECHO_C" >&6
38615 cat >conftest.$ac_ext <<_ACEOF
38618 cat confdefs.h >>conftest.$ac_ext
38619 cat >>conftest.$ac_ext <<_ACEOF
38620 /* end confdefs.h. */
38621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38623 #define $ac_func innocuous_$ac_func
38625 /* System header to define __stub macros and hopefully few prototypes,
38626 which can conflict with char $ac_func (); below.
38627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38628 <limits.h> exists even on freestanding compilers. */
38631 # include <limits.h>
38633 # include <assert.h>
38638 /* Override any GCC internal prototype to avoid an error.
38639 Use char because int might match the return type of a GCC
38640 builtin and then its argument prototype would still apply. */
38645 /* The GNU C library defines this for functions which it implements
38646 to always fail with ENOSYS. Some functions are actually named
38647 something starting with __ and the normal name is an alias. */
38648 #if defined __stub_$ac_func || defined __stub___$ac_func
38655 return $ac_func ();
38660 rm -f conftest.$ac_objext conftest$ac_exeext
38661 if { (ac_try="$ac_link"
38662 case "(($ac_try" in
38663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38664 *) ac_try_echo=$ac_try;;
38666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38667 (eval "$ac_link") 2>conftest.er1
38669 grep -v '^ *+' conftest.er1 >conftest.err
38671 cat conftest.err >&5
38672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38673 (exit $ac_status); } && {
38674 test -z "$ac_c_werror_flag" ||
38675 test ! -s conftest.err
38676 } && test -s conftest$ac_exeext &&
38677 $as_test_x conftest$ac_exeext; then
38678 eval "$as_ac_var=yes"
38680 echo "$as_me: failed program was:" >&5
38681 sed 's/^/| /' conftest.$ac_ext >&5
38683 eval "$as_ac_var=no"
38686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38687 conftest$ac_exeext conftest.$ac_ext
38689 ac_res=`eval echo '${'$as_ac_var'}'`
38690 { echo "$as_me:$LINENO: result: $ac_res" >&5
38691 echo "${ECHO_T}$ac_res" >&6; }
38692 if test `eval echo '${'$as_ac_var'}'` = yes; then
38693 cat >>confdefs.h <<_ACEOF
38694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38701 # If resolver functions are not in libc check for -lnsl or -lresolv.
38702 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38703 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38704 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38705 echo $ECHO_N "(cached) $ECHO_C" >&6
38707 cat >conftest.$ac_ext <<_ACEOF
38710 cat confdefs.h >>conftest.$ac_ext
38711 cat >>conftest.$ac_ext <<_ACEOF
38712 /* end confdefs.h. */
38713 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38715 #define gethostbyname_r innocuous_gethostbyname_r
38717 /* System header to define __stub macros and hopefully few prototypes,
38718 which can conflict with char gethostbyname_r (); below.
38719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38720 <limits.h> exists even on freestanding compilers. */
38723 # include <limits.h>
38725 # include <assert.h>
38728 #undef gethostbyname_r
38730 /* Override any GCC internal prototype to avoid an error.
38731 Use char because int might match the return type of a GCC
38732 builtin and then its argument prototype would still apply. */
38736 char gethostbyname_r ();
38737 /* The GNU C library defines this for functions which it implements
38738 to always fail with ENOSYS. Some functions are actually named
38739 something starting with __ and the normal name is an alias. */
38740 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38747 return gethostbyname_r ();
38752 rm -f conftest.$ac_objext conftest$ac_exeext
38753 if { (ac_try="$ac_link"
38754 case "(($ac_try" in
38755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38756 *) ac_try_echo=$ac_try;;
38758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38759 (eval "$ac_link") 2>conftest.er1
38761 grep -v '^ *+' conftest.er1 >conftest.err
38763 cat conftest.err >&5
38764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38765 (exit $ac_status); } && {
38766 test -z "$ac_c_werror_flag" ||
38767 test ! -s conftest.err
38768 } && test -s conftest$ac_exeext &&
38769 $as_test_x conftest$ac_exeext; then
38770 ac_cv_func_gethostbyname_r=yes
38772 echo "$as_me: failed program was:" >&5
38773 sed 's/^/| /' conftest.$ac_ext >&5
38775 ac_cv_func_gethostbyname_r=no
38778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38779 conftest$ac_exeext conftest.$ac_ext
38781 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38782 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38783 if test $ac_cv_func_gethostbyname_r = yes; then
38784 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38785 echo "${ECHO_T}using libc's resolver" >&6; }
38788 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38789 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38790 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38791 echo $ECHO_N "(cached) $ECHO_C" >&6
38793 ac_check_lib_save_LIBS=$LIBS
38795 cat >conftest.$ac_ext <<_ACEOF
38798 cat confdefs.h >>conftest.$ac_ext
38799 cat >>conftest.$ac_ext <<_ACEOF
38800 /* end confdefs.h. */
38802 /* Override any GCC internal prototype to avoid an error.
38803 Use char because int might match the return type of a GCC
38804 builtin and then its argument prototype would still apply. */
38808 char gethostbyname_r ();
38812 return gethostbyname_r ();
38817 rm -f conftest.$ac_objext conftest$ac_exeext
38818 if { (ac_try="$ac_link"
38819 case "(($ac_try" in
38820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38821 *) ac_try_echo=$ac_try;;
38823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38824 (eval "$ac_link") 2>conftest.er1
38826 grep -v '^ *+' conftest.er1 >conftest.err
38828 cat conftest.err >&5
38829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38830 (exit $ac_status); } && {
38831 test -z "$ac_c_werror_flag" ||
38832 test ! -s conftest.err
38833 } && test -s conftest$ac_exeext &&
38834 $as_test_x conftest$ac_exeext; then
38835 ac_cv_lib_nsl_gethostbyname_r=yes
38837 echo "$as_me: failed program was:" >&5
38838 sed 's/^/| /' conftest.$ac_ext >&5
38840 ac_cv_lib_nsl_gethostbyname_r=no
38843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38844 conftest$ac_exeext conftest.$ac_ext
38845 LIBS=$ac_check_lib_save_LIBS
38847 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38848 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38849 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38850 cat >>confdefs.h <<_ACEOF
38851 #define HAVE_LIBNSL 1
38859 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38860 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38861 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38862 echo $ECHO_N "(cached) $ECHO_C" >&6
38864 ac_check_lib_save_LIBS=$LIBS
38865 LIBS="-lresolv $LIBS"
38866 cat >conftest.$ac_ext <<_ACEOF
38869 cat confdefs.h >>conftest.$ac_ext
38870 cat >>conftest.$ac_ext <<_ACEOF
38871 /* end confdefs.h. */
38873 /* Override any GCC internal prototype to avoid an error.
38874 Use char because int might match the return type of a GCC
38875 builtin and then its argument prototype would still apply. */
38879 char gethostbyname_r ();
38883 return gethostbyname_r ();
38888 rm -f conftest.$ac_objext conftest$ac_exeext
38889 if { (ac_try="$ac_link"
38890 case "(($ac_try" in
38891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38892 *) ac_try_echo=$ac_try;;
38894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38895 (eval "$ac_link") 2>conftest.er1
38897 grep -v '^ *+' conftest.er1 >conftest.err
38899 cat conftest.err >&5
38900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901 (exit $ac_status); } && {
38902 test -z "$ac_c_werror_flag" ||
38903 test ! -s conftest.err
38904 } && test -s conftest$ac_exeext &&
38905 $as_test_x conftest$ac_exeext; then
38906 ac_cv_lib_resolv_gethostbyname_r=yes
38908 echo "$as_me: failed program was:" >&5
38909 sed 's/^/| /' conftest.$ac_ext >&5
38911 ac_cv_lib_resolv_gethostbyname_r=no
38914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38915 conftest$ac_exeext conftest.$ac_ext
38916 LIBS=$ac_check_lib_save_LIBS
38918 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38919 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38920 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38921 cat >>confdefs.h <<_ACEOF
38922 #define HAVE_LIBRESOLV 1
38925 LIBS="-lresolv $LIBS"
38933 for ac_func in inet_pton
38935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38939 echo $ECHO_N "(cached) $ECHO_C" >&6
38941 cat >conftest.$ac_ext <<_ACEOF
38944 cat confdefs.h >>conftest.$ac_ext
38945 cat >>conftest.$ac_ext <<_ACEOF
38946 /* end confdefs.h. */
38947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38949 #define $ac_func innocuous_$ac_func
38951 /* System header to define __stub macros and hopefully few prototypes,
38952 which can conflict with char $ac_func (); below.
38953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38954 <limits.h> exists even on freestanding compilers. */
38957 # include <limits.h>
38959 # include <assert.h>
38964 /* Override any GCC internal prototype to avoid an error.
38965 Use char because int might match the return type of a GCC
38966 builtin and then its argument prototype would still apply. */
38971 /* The GNU C library defines this for functions which it implements
38972 to always fail with ENOSYS. Some functions are actually named
38973 something starting with __ and the normal name is an alias. */
38974 #if defined __stub_$ac_func || defined __stub___$ac_func
38981 return $ac_func ();
38986 rm -f conftest.$ac_objext conftest$ac_exeext
38987 if { (ac_try="$ac_link"
38988 case "(($ac_try" in
38989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38990 *) ac_try_echo=$ac_try;;
38992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38993 (eval "$ac_link") 2>conftest.er1
38995 grep -v '^ *+' conftest.er1 >conftest.err
38997 cat conftest.err >&5
38998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38999 (exit $ac_status); } && {
39000 test -z "$ac_c_werror_flag" ||
39001 test ! -s conftest.err
39002 } && test -s conftest$ac_exeext &&
39003 $as_test_x conftest$ac_exeext; then
39004 eval "$as_ac_var=yes"
39006 echo "$as_me: failed program was:" >&5
39007 sed 's/^/| /' conftest.$ac_ext >&5
39009 eval "$as_ac_var=no"
39012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39013 conftest$ac_exeext conftest.$ac_ext
39015 ac_res=`eval echo '${'$as_ac_var'}'`
39016 { echo "$as_me:$LINENO: result: $ac_res" >&5
39017 echo "${ECHO_T}$ac_res" >&6; }
39018 if test `eval echo '${'$as_ac_var'}'` = yes; then
39019 cat >>confdefs.h <<_ACEOF
39020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39022 cat >>confdefs.h <<\_ACEOF
39023 #define HAVE_INET_PTON 1
39030 for ac_func in inet_ntop
39032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39036 echo $ECHO_N "(cached) $ECHO_C" >&6
39038 cat >conftest.$ac_ext <<_ACEOF
39041 cat confdefs.h >>conftest.$ac_ext
39042 cat >>conftest.$ac_ext <<_ACEOF
39043 /* end confdefs.h. */
39044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39046 #define $ac_func innocuous_$ac_func
39048 /* System header to define __stub macros and hopefully few prototypes,
39049 which can conflict with char $ac_func (); below.
39050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39051 <limits.h> exists even on freestanding compilers. */
39054 # include <limits.h>
39056 # include <assert.h>
39061 /* Override any GCC internal prototype to avoid an error.
39062 Use char because int might match the return type of a GCC
39063 builtin and then its argument prototype would still apply. */
39068 /* The GNU C library defines this for functions which it implements
39069 to always fail with ENOSYS. Some functions are actually named
39070 something starting with __ and the normal name is an alias. */
39071 #if defined __stub_$ac_func || defined __stub___$ac_func
39078 return $ac_func ();
39083 rm -f conftest.$ac_objext conftest$ac_exeext
39084 if { (ac_try="$ac_link"
39085 case "(($ac_try" in
39086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39087 *) ac_try_echo=$ac_try;;
39089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39090 (eval "$ac_link") 2>conftest.er1
39092 grep -v '^ *+' conftest.er1 >conftest.err
39094 cat conftest.err >&5
39095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39096 (exit $ac_status); } && {
39097 test -z "$ac_c_werror_flag" ||
39098 test ! -s conftest.err
39099 } && test -s conftest$ac_exeext &&
39100 $as_test_x conftest$ac_exeext; then
39101 eval "$as_ac_var=yes"
39103 echo "$as_me: failed program was:" >&5
39104 sed 's/^/| /' conftest.$ac_ext >&5
39106 eval "$as_ac_var=no"
39109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39110 conftest$ac_exeext conftest.$ac_ext
39112 ac_res=`eval echo '${'$as_ac_var'}'`
39113 { echo "$as_me:$LINENO: result: $ac_res" >&5
39114 echo "${ECHO_T}$ac_res" >&6; }
39115 if test `eval echo '${'$as_ac_var'}'` = yes; then
39116 cat >>confdefs.h <<_ACEOF
39117 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39119 cat >>confdefs.h <<\_ACEOF
39120 #define HAVE_INET_NTOP 1
39127 for ac_func in gethostbyname2
39129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39133 echo $ECHO_N "(cached) $ECHO_C" >&6
39135 cat >conftest.$ac_ext <<_ACEOF
39138 cat confdefs.h >>conftest.$ac_ext
39139 cat >>conftest.$ac_ext <<_ACEOF
39140 /* end confdefs.h. */
39141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39143 #define $ac_func innocuous_$ac_func
39145 /* System header to define __stub macros and hopefully few prototypes,
39146 which can conflict with char $ac_func (); below.
39147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39148 <limits.h> exists even on freestanding compilers. */
39151 # include <limits.h>
39153 # include <assert.h>
39158 /* Override any GCC internal prototype to avoid an error.
39159 Use char because int might match the return type of a GCC
39160 builtin and then its argument prototype would still apply. */
39165 /* The GNU C library defines this for functions which it implements
39166 to always fail with ENOSYS. Some functions are actually named
39167 something starting with __ and the normal name is an alias. */
39168 #if defined __stub_$ac_func || defined __stub___$ac_func
39175 return $ac_func ();
39180 rm -f conftest.$ac_objext conftest$ac_exeext
39181 if { (ac_try="$ac_link"
39182 case "(($ac_try" in
39183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39184 *) ac_try_echo=$ac_try;;
39186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39187 (eval "$ac_link") 2>conftest.er1
39189 grep -v '^ *+' conftest.er1 >conftest.err
39191 cat conftest.err >&5
39192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193 (exit $ac_status); } && {
39194 test -z "$ac_c_werror_flag" ||
39195 test ! -s conftest.err
39196 } && test -s conftest$ac_exeext &&
39197 $as_test_x conftest$ac_exeext; then
39198 eval "$as_ac_var=yes"
39200 echo "$as_me: failed program was:" >&5
39201 sed 's/^/| /' conftest.$ac_ext >&5
39203 eval "$as_ac_var=no"
39206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39207 conftest$ac_exeext conftest.$ac_ext
39209 ac_res=`eval echo '${'$as_ac_var'}'`
39210 { echo "$as_me:$LINENO: result: $ac_res" >&5
39211 echo "${ECHO_T}$ac_res" >&6; }
39212 if test `eval echo '${'$as_ac_var'}'` = yes; then
39213 cat >>confdefs.h <<_ACEOF
39214 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39216 cat >>confdefs.h <<\_ACEOF
39217 #define HAVE_GETHOSTBYNAME2 1
39224 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39225 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39226 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39227 echo $ECHO_N "(cached) $ECHO_C" >&6
39230 cat >conftest.$ac_ext <<_ACEOF
39233 cat confdefs.h >>conftest.$ac_ext
39234 cat >>conftest.$ac_ext <<_ACEOF
39235 /* end confdefs.h. */
39237 #include <sys/socket.h>
39243 struct sockaddr s; s.sa_len;
39249 rm -f conftest.$ac_objext
39250 if { (ac_try="$ac_compile"
39251 case "(($ac_try" in
39252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39253 *) ac_try_echo=$ac_try;;
39255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39256 (eval "$ac_compile") 2>conftest.er1
39258 grep -v '^ *+' conftest.er1 >conftest.err
39260 cat conftest.err >&5
39261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39262 (exit $ac_status); } && {
39263 test -z "$ac_c_werror_flag" ||
39264 test ! -s conftest.err
39265 } && test -s conftest.$ac_objext; then
39267 ac_cv_struct_sockaddr_sa_len=yes
39270 echo "$as_me: failed program was:" >&5
39271 sed 's/^/| /' conftest.$ac_ext >&5
39273 ac_cv_struct_sockaddr_sa_len=no
39278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39282 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39283 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39285 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39287 cat >>confdefs.h <<\_ACEOF
39288 #define HAVE_SA_LEN 1
39294 for ac_func in strftime
39296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39300 echo $ECHO_N "(cached) $ECHO_C" >&6
39302 cat >conftest.$ac_ext <<_ACEOF
39305 cat confdefs.h >>conftest.$ac_ext
39306 cat >>conftest.$ac_ext <<_ACEOF
39307 /* end confdefs.h. */
39308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39310 #define $ac_func innocuous_$ac_func
39312 /* System header to define __stub macros and hopefully few prototypes,
39313 which can conflict with char $ac_func (); below.
39314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39315 <limits.h> exists even on freestanding compilers. */
39318 # include <limits.h>
39320 # include <assert.h>
39325 /* Override any GCC internal prototype to avoid an error.
39326 Use char because int might match the return type of a GCC
39327 builtin and then its argument prototype would still apply. */
39332 /* The GNU C library defines this for functions which it implements
39333 to always fail with ENOSYS. Some functions are actually named
39334 something starting with __ and the normal name is an alias. */
39335 #if defined __stub_$ac_func || defined __stub___$ac_func
39342 return $ac_func ();
39347 rm -f conftest.$ac_objext conftest$ac_exeext
39348 if { (ac_try="$ac_link"
39349 case "(($ac_try" in
39350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39351 *) ac_try_echo=$ac_try;;
39353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39354 (eval "$ac_link") 2>conftest.er1
39356 grep -v '^ *+' conftest.er1 >conftest.err
39358 cat conftest.err >&5
39359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39360 (exit $ac_status); } && {
39361 test -z "$ac_c_werror_flag" ||
39362 test ! -s conftest.err
39363 } && test -s conftest$ac_exeext &&
39364 $as_test_x conftest$ac_exeext; then
39365 eval "$as_ac_var=yes"
39367 echo "$as_me: failed program was:" >&5
39368 sed 's/^/| /' conftest.$ac_ext >&5
39370 eval "$as_ac_var=no"
39373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39374 conftest$ac_exeext conftest.$ac_ext
39376 ac_res=`eval echo '${'$as_ac_var'}'`
39377 { echo "$as_me:$LINENO: result: $ac_res" >&5
39378 echo "${ECHO_T}$ac_res" >&6; }
39379 if test `eval echo '${'$as_ac_var'}'` = yes; then
39380 cat >>confdefs.h <<_ACEOF
39381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39385 # strftime is in -lintl on SCO UNIX.
39386 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39387 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39388 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39389 echo $ECHO_N "(cached) $ECHO_C" >&6
39391 ac_check_lib_save_LIBS=$LIBS
39392 LIBS="-lintl $LIBS"
39393 cat >conftest.$ac_ext <<_ACEOF
39396 cat confdefs.h >>conftest.$ac_ext
39397 cat >>conftest.$ac_ext <<_ACEOF
39398 /* end confdefs.h. */
39400 /* Override any GCC internal prototype to avoid an error.
39401 Use char because int might match the return type of a GCC
39402 builtin and then its argument prototype would still apply. */
39410 return strftime ();
39415 rm -f conftest.$ac_objext conftest$ac_exeext
39416 if { (ac_try="$ac_link"
39417 case "(($ac_try" in
39418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39419 *) ac_try_echo=$ac_try;;
39421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39422 (eval "$ac_link") 2>conftest.er1
39424 grep -v '^ *+' conftest.er1 >conftest.err
39426 cat conftest.err >&5
39427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39428 (exit $ac_status); } && {
39429 test -z "$ac_c_werror_flag" ||
39430 test ! -s conftest.err
39431 } && test -s conftest$ac_exeext &&
39432 $as_test_x conftest$ac_exeext; then
39433 ac_cv_lib_intl_strftime=yes
39435 echo "$as_me: failed program was:" >&5
39436 sed 's/^/| /' conftest.$ac_ext >&5
39438 ac_cv_lib_intl_strftime=no
39441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39442 conftest$ac_exeext conftest.$ac_ext
39443 LIBS=$ac_check_lib_save_LIBS
39445 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39446 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39447 if test $ac_cv_lib_intl_strftime = yes; then
39448 cat >>confdefs.h <<\_ACEOF
39449 #define HAVE_STRFTIME 1
39452 LIBS="-lintl $LIBS"
39459 for ac_func in vprintf
39461 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39462 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39463 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39464 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39465 echo $ECHO_N "(cached) $ECHO_C" >&6
39467 cat >conftest.$ac_ext <<_ACEOF
39470 cat confdefs.h >>conftest.$ac_ext
39471 cat >>conftest.$ac_ext <<_ACEOF
39472 /* end confdefs.h. */
39473 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39474 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39475 #define $ac_func innocuous_$ac_func
39477 /* System header to define __stub macros and hopefully few prototypes,
39478 which can conflict with char $ac_func (); below.
39479 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39480 <limits.h> exists even on freestanding compilers. */
39483 # include <limits.h>
39485 # include <assert.h>
39490 /* Override any GCC internal prototype to avoid an error.
39491 Use char because int might match the return type of a GCC
39492 builtin and then its argument prototype would still apply. */
39497 /* The GNU C library defines this for functions which it implements
39498 to always fail with ENOSYS. Some functions are actually named
39499 something starting with __ and the normal name is an alias. */
39500 #if defined __stub_$ac_func || defined __stub___$ac_func
39507 return $ac_func ();
39512 rm -f conftest.$ac_objext conftest$ac_exeext
39513 if { (ac_try="$ac_link"
39514 case "(($ac_try" in
39515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39516 *) ac_try_echo=$ac_try;;
39518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39519 (eval "$ac_link") 2>conftest.er1
39521 grep -v '^ *+' conftest.er1 >conftest.err
39523 cat conftest.err >&5
39524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39525 (exit $ac_status); } && {
39526 test -z "$ac_c_werror_flag" ||
39527 test ! -s conftest.err
39528 } && test -s conftest$ac_exeext &&
39529 $as_test_x conftest$ac_exeext; then
39530 eval "$as_ac_var=yes"
39532 echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.$ac_ext >&5
39535 eval "$as_ac_var=no"
39538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39539 conftest$ac_exeext conftest.$ac_ext
39541 ac_res=`eval echo '${'$as_ac_var'}'`
39542 { echo "$as_me:$LINENO: result: $ac_res" >&5
39543 echo "${ECHO_T}$ac_res" >&6; }
39544 if test `eval echo '${'$as_ac_var'}'` = yes; then
39545 cat >>confdefs.h <<_ACEOF
39546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39549 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39550 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39551 if test "${ac_cv_func__doprnt+set}" = set; then
39552 echo $ECHO_N "(cached) $ECHO_C" >&6
39554 cat >conftest.$ac_ext <<_ACEOF
39557 cat confdefs.h >>conftest.$ac_ext
39558 cat >>conftest.$ac_ext <<_ACEOF
39559 /* end confdefs.h. */
39560 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39562 #define _doprnt innocuous__doprnt
39564 /* System header to define __stub macros and hopefully few prototypes,
39565 which can conflict with char _doprnt (); below.
39566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39567 <limits.h> exists even on freestanding compilers. */
39570 # include <limits.h>
39572 # include <assert.h>
39577 /* Override any GCC internal prototype to avoid an error.
39578 Use char because int might match the return type of a GCC
39579 builtin and then its argument prototype would still apply. */
39584 /* The GNU C library defines this for functions which it implements
39585 to always fail with ENOSYS. Some functions are actually named
39586 something starting with __ and the normal name is an alias. */
39587 #if defined __stub__doprnt || defined __stub____doprnt
39599 rm -f conftest.$ac_objext conftest$ac_exeext
39600 if { (ac_try="$ac_link"
39601 case "(($ac_try" in
39602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39603 *) ac_try_echo=$ac_try;;
39605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39606 (eval "$ac_link") 2>conftest.er1
39608 grep -v '^ *+' conftest.er1 >conftest.err
39610 cat conftest.err >&5
39611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612 (exit $ac_status); } && {
39613 test -z "$ac_c_werror_flag" ||
39614 test ! -s conftest.err
39615 } && test -s conftest$ac_exeext &&
39616 $as_test_x conftest$ac_exeext; then
39617 ac_cv_func__doprnt=yes
39619 echo "$as_me: failed program was:" >&5
39620 sed 's/^/| /' conftest.$ac_ext >&5
39622 ac_cv_func__doprnt=no
39625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39626 conftest$ac_exeext conftest.$ac_ext
39628 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39629 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39630 if test $ac_cv_func__doprnt = yes; then
39632 cat >>confdefs.h <<\_ACEOF
39633 #define HAVE_DOPRNT 1
39642 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39643 # for constant arguments. Useless!
39644 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39645 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39646 if test "${ac_cv_working_alloca_h+set}" = set; then
39647 echo $ECHO_N "(cached) $ECHO_C" >&6
39649 cat >conftest.$ac_ext <<_ACEOF
39652 cat confdefs.h >>conftest.$ac_ext
39653 cat >>conftest.$ac_ext <<_ACEOF
39654 /* end confdefs.h. */
39655 #include <alloca.h>
39659 char *p = (char *) alloca (2 * sizeof (int));
39665 rm -f conftest.$ac_objext conftest$ac_exeext
39666 if { (ac_try="$ac_link"
39667 case "(($ac_try" in
39668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39669 *) ac_try_echo=$ac_try;;
39671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39672 (eval "$ac_link") 2>conftest.er1
39674 grep -v '^ *+' conftest.er1 >conftest.err
39676 cat conftest.err >&5
39677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39678 (exit $ac_status); } && {
39679 test -z "$ac_c_werror_flag" ||
39680 test ! -s conftest.err
39681 } && test -s conftest$ac_exeext &&
39682 $as_test_x conftest$ac_exeext; then
39683 ac_cv_working_alloca_h=yes
39685 echo "$as_me: failed program was:" >&5
39686 sed 's/^/| /' conftest.$ac_ext >&5
39688 ac_cv_working_alloca_h=no
39691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39692 conftest$ac_exeext conftest.$ac_ext
39694 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39695 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39696 if test $ac_cv_working_alloca_h = yes; then
39698 cat >>confdefs.h <<\_ACEOF
39699 #define HAVE_ALLOCA_H 1
39704 { echo "$as_me:$LINENO: checking for alloca" >&5
39705 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39706 if test "${ac_cv_func_alloca_works+set}" = set; then
39707 echo $ECHO_N "(cached) $ECHO_C" >&6
39709 cat >conftest.$ac_ext <<_ACEOF
39712 cat confdefs.h >>conftest.$ac_ext
39713 cat >>conftest.$ac_ext <<_ACEOF
39714 /* end confdefs.h. */
39716 # define alloca __builtin_alloca
39719 # include <malloc.h>
39720 # define alloca _alloca
39722 # ifdef HAVE_ALLOCA_H
39723 # include <alloca.h>
39728 # ifndef alloca /* predefined by HP cc +Olibcalls */
39739 char *p = (char *) alloca (1);
39745 rm -f conftest.$ac_objext conftest$ac_exeext
39746 if { (ac_try="$ac_link"
39747 case "(($ac_try" in
39748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39749 *) ac_try_echo=$ac_try;;
39751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39752 (eval "$ac_link") 2>conftest.er1
39754 grep -v '^ *+' conftest.er1 >conftest.err
39756 cat conftest.err >&5
39757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758 (exit $ac_status); } && {
39759 test -z "$ac_c_werror_flag" ||
39760 test ! -s conftest.err
39761 } && test -s conftest$ac_exeext &&
39762 $as_test_x conftest$ac_exeext; then
39763 ac_cv_func_alloca_works=yes
39765 echo "$as_me: failed program was:" >&5
39766 sed 's/^/| /' conftest.$ac_ext >&5
39768 ac_cv_func_alloca_works=no
39771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39772 conftest$ac_exeext conftest.$ac_ext
39774 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39775 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39777 if test $ac_cv_func_alloca_works = yes; then
39779 cat >>confdefs.h <<\_ACEOF
39780 #define HAVE_ALLOCA 1
39784 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39785 # that cause trouble. Some versions do not even contain alloca or
39786 # contain a buggy version. If you still want to use their alloca,
39787 # use ar to extract alloca.o from them instead of compiling alloca.c.
39789 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39791 cat >>confdefs.h <<\_ACEOF
39796 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39797 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39798 if test "${ac_cv_os_cray+set}" = set; then
39799 echo $ECHO_N "(cached) $ECHO_C" >&6
39801 cat >conftest.$ac_ext <<_ACEOF
39804 cat confdefs.h >>conftest.$ac_ext
39805 cat >>conftest.$ac_ext <<_ACEOF
39806 /* end confdefs.h. */
39807 #if defined CRAY && ! defined CRAY2
39814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39815 $EGREP "webecray" >/dev/null 2>&1; then
39823 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39824 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39825 if test $ac_cv_os_cray = yes; then
39826 for ac_func in _getb67 GETB67 getb67; do
39827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39831 echo $ECHO_N "(cached) $ECHO_C" >&6
39833 cat >conftest.$ac_ext <<_ACEOF
39836 cat confdefs.h >>conftest.$ac_ext
39837 cat >>conftest.$ac_ext <<_ACEOF
39838 /* end confdefs.h. */
39839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39841 #define $ac_func innocuous_$ac_func
39843 /* System header to define __stub macros and hopefully few prototypes,
39844 which can conflict with char $ac_func (); below.
39845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39846 <limits.h> exists even on freestanding compilers. */
39849 # include <limits.h>
39851 # include <assert.h>
39856 /* Override any GCC internal prototype to avoid an error.
39857 Use char because int might match the return type of a GCC
39858 builtin and then its argument prototype would still apply. */
39863 /* The GNU C library defines this for functions which it implements
39864 to always fail with ENOSYS. Some functions are actually named
39865 something starting with __ and the normal name is an alias. */
39866 #if defined __stub_$ac_func || defined __stub___$ac_func
39873 return $ac_func ();
39878 rm -f conftest.$ac_objext conftest$ac_exeext
39879 if { (ac_try="$ac_link"
39880 case "(($ac_try" in
39881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39882 *) ac_try_echo=$ac_try;;
39884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39885 (eval "$ac_link") 2>conftest.er1
39887 grep -v '^ *+' conftest.er1 >conftest.err
39889 cat conftest.err >&5
39890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39891 (exit $ac_status); } && {
39892 test -z "$ac_c_werror_flag" ||
39893 test ! -s conftest.err
39894 } && test -s conftest$ac_exeext &&
39895 $as_test_x conftest$ac_exeext; then
39896 eval "$as_ac_var=yes"
39898 echo "$as_me: failed program was:" >&5
39899 sed 's/^/| /' conftest.$ac_ext >&5
39901 eval "$as_ac_var=no"
39904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39905 conftest$ac_exeext conftest.$ac_ext
39907 ac_res=`eval echo '${'$as_ac_var'}'`
39908 { echo "$as_me:$LINENO: result: $ac_res" >&5
39909 echo "${ECHO_T}$ac_res" >&6; }
39910 if test `eval echo '${'$as_ac_var'}'` = yes; then
39912 cat >>confdefs.h <<_ACEOF
39913 #define CRAY_STACKSEG_END $ac_func
39922 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39923 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39924 if test "${ac_cv_c_stack_direction+set}" = set; then
39925 echo $ECHO_N "(cached) $ECHO_C" >&6
39927 if test "$cross_compiling" = yes; then
39928 ac_cv_c_stack_direction=0
39930 cat >conftest.$ac_ext <<_ACEOF
39933 cat confdefs.h >>conftest.$ac_ext
39934 cat >>conftest.$ac_ext <<_ACEOF
39935 /* end confdefs.h. */
39936 $ac_includes_default
39938 find_stack_direction ()
39940 static char *addr = 0;
39945 return find_stack_direction ();
39948 return (&dummy > addr) ? 1 : -1;
39954 return find_stack_direction () < 0;
39957 rm -f conftest$ac_exeext
39958 if { (ac_try="$ac_link"
39959 case "(($ac_try" in
39960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39961 *) ac_try_echo=$ac_try;;
39963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39964 (eval "$ac_link") 2>&5
39966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39968 { (case "(($ac_try" in
39969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39970 *) ac_try_echo=$ac_try;;
39972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39973 (eval "$ac_try") 2>&5
39975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39976 (exit $ac_status); }; }; then
39977 ac_cv_c_stack_direction=1
39979 echo "$as_me: program exited with status $ac_status" >&5
39980 echo "$as_me: failed program was:" >&5
39981 sed 's/^/| /' conftest.$ac_ext >&5
39983 ( exit $ac_status )
39984 ac_cv_c_stack_direction=-1
39986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39991 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
39992 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
39994 cat >>confdefs.h <<_ACEOF
39995 #define STACK_DIRECTION $ac_cv_c_stack_direction
40001 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40002 # -lseq on Dynix/PTX, -lgen on Unixware.
40003 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40004 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40005 if test "${ac_cv_search_getmntent+set}" = set; then
40006 echo $ECHO_N "(cached) $ECHO_C" >&6
40008 ac_func_search_save_LIBS=$LIBS
40009 cat >conftest.$ac_ext <<_ACEOF
40012 cat confdefs.h >>conftest.$ac_ext
40013 cat >>conftest.$ac_ext <<_ACEOF
40014 /* end confdefs.h. */
40016 /* Override any GCC internal prototype to avoid an error.
40017 Use char because int might match the return type of a GCC
40018 builtin and then its argument prototype would still apply. */
40026 return getmntent ();
40031 for ac_lib in '' sun seq gen; do
40032 if test -z "$ac_lib"; then
40033 ac_res="none required"
40036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40038 rm -f conftest.$ac_objext conftest$ac_exeext
40039 if { (ac_try="$ac_link"
40040 case "(($ac_try" in
40041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40042 *) ac_try_echo=$ac_try;;
40044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40045 (eval "$ac_link") 2>conftest.er1
40047 grep -v '^ *+' conftest.er1 >conftest.err
40049 cat conftest.err >&5
40050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40051 (exit $ac_status); } && {
40052 test -z "$ac_c_werror_flag" ||
40053 test ! -s conftest.err
40054 } && test -s conftest$ac_exeext &&
40055 $as_test_x conftest$ac_exeext; then
40056 ac_cv_search_getmntent=$ac_res
40058 echo "$as_me: failed program was:" >&5
40059 sed 's/^/| /' conftest.$ac_ext >&5
40064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40066 if test "${ac_cv_search_getmntent+set}" = set; then
40070 if test "${ac_cv_search_getmntent+set}" = set; then
40073 ac_cv_search_getmntent=no
40075 rm conftest.$ac_ext
40076 LIBS=$ac_func_search_save_LIBS
40078 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40079 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40080 ac_res=$ac_cv_search_getmntent
40081 if test "$ac_res" != no; then
40082 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40083 ac_cv_func_getmntent=yes
40085 cat >>confdefs.h <<\_ACEOF
40086 #define HAVE_GETMNTENT 1
40090 ac_cv_func_getmntent=no
40094 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40095 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40096 if test "${ac_cv_func_closedir_void+set}" = set; then
40097 echo $ECHO_N "(cached) $ECHO_C" >&6
40099 if test "$cross_compiling" = yes; then
40100 ac_cv_func_closedir_void=yes
40102 cat >conftest.$ac_ext <<_ACEOF
40105 cat confdefs.h >>conftest.$ac_ext
40106 cat >>conftest.$ac_ext <<_ACEOF
40107 /* end confdefs.h. */
40108 $ac_includes_default
40109 #include <$ac_header_dirent>
40110 #ifndef __cplusplus
40117 return closedir (opendir (".")) != 0;
40122 rm -f conftest$ac_exeext
40123 if { (ac_try="$ac_link"
40124 case "(($ac_try" in
40125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40126 *) ac_try_echo=$ac_try;;
40128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40129 (eval "$ac_link") 2>&5
40131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40133 { (case "(($ac_try" in
40134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40135 *) ac_try_echo=$ac_try;;
40137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40138 (eval "$ac_try") 2>&5
40140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40141 (exit $ac_status); }; }; then
40142 ac_cv_func_closedir_void=no
40144 echo "$as_me: program exited with status $ac_status" >&5
40145 echo "$as_me: failed program was:" >&5
40146 sed 's/^/| /' conftest.$ac_ext >&5
40148 ( exit $ac_status )
40149 ac_cv_func_closedir_void=yes
40151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40156 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40157 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40158 if test $ac_cv_func_closedir_void = yes; then
40160 cat >>confdefs.h <<\_ACEOF
40161 #define CLOSEDIR_VOID 1
40166 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40167 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40168 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40169 echo $ECHO_N "(cached) $ECHO_C" >&6
40171 if test "$cross_compiling" = yes; then
40172 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40173 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40174 { (exit 1); exit 1; }; }
40176 cat >conftest.$ac_ext <<_ACEOF
40179 cat confdefs.h >>conftest.$ac_ext
40180 cat >>conftest.$ac_ext <<_ACEOF
40181 /* end confdefs.h. */
40182 $ac_includes_default
40186 /* If this system has a BSD-style setpgrp which takes arguments,
40187 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40188 exit successfully. */
40189 return setpgrp (1,1) != -1;
40194 rm -f conftest$ac_exeext
40195 if { (ac_try="$ac_link"
40196 case "(($ac_try" in
40197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40198 *) ac_try_echo=$ac_try;;
40200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40201 (eval "$ac_link") 2>&5
40203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40205 { (case "(($ac_try" in
40206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40207 *) ac_try_echo=$ac_try;;
40209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40210 (eval "$ac_try") 2>&5
40212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40213 (exit $ac_status); }; }; then
40214 ac_cv_func_setpgrp_void=no
40216 echo "$as_me: program exited with status $ac_status" >&5
40217 echo "$as_me: failed program was:" >&5
40218 sed 's/^/| /' conftest.$ac_ext >&5
40220 ( exit $ac_status )
40221 ac_cv_func_setpgrp_void=yes
40223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40228 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40229 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40230 if test $ac_cv_func_setpgrp_void = yes; then
40232 cat >>confdefs.h <<\_ACEOF
40233 #define SETPGRP_VOID 1
40237 # AC_FUNC_FNMATCH dnl use local version
40239 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40240 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40241 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40242 echo $ECHO_N "(cached) $ECHO_C" >&6
40244 ac_check_lib_save_LIBS=$LIBS
40245 LIBS="-lintl $LIBS"
40246 cat >conftest.$ac_ext <<_ACEOF
40249 cat confdefs.h >>conftest.$ac_ext
40250 cat >>conftest.$ac_ext <<_ACEOF
40251 /* end confdefs.h. */
40253 /* Override any GCC internal prototype to avoid an error.
40254 Use char because int might match the return type of a GCC
40255 builtin and then its argument prototype would still apply. */
40268 rm -f conftest.$ac_objext conftest$ac_exeext
40269 if { (ac_try="$ac_link"
40270 case "(($ac_try" in
40271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40272 *) ac_try_echo=$ac_try;;
40274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40275 (eval "$ac_link") 2>conftest.er1
40277 grep -v '^ *+' conftest.er1 >conftest.err
40279 cat conftest.err >&5
40280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40281 (exit $ac_status); } && {
40282 test -z "$ac_c_werror_flag" ||
40283 test ! -s conftest.err
40284 } && test -s conftest$ac_exeext &&
40285 $as_test_x conftest$ac_exeext; then
40286 ac_cv_lib_intl_gettext=yes
40288 echo "$as_me: failed program was:" >&5
40289 sed 's/^/| /' conftest.$ac_ext >&5
40291 ac_cv_lib_intl_gettext=no
40294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40295 conftest$ac_exeext conftest.$ac_ext
40296 LIBS=$ac_check_lib_save_LIBS
40298 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40299 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40300 if test $ac_cv_lib_intl_gettext = yes; then
40301 LIBS="$LIBS -lintl"
40306 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40307 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40308 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40309 echo $ECHO_N "(cached) $ECHO_C" >&6
40311 ac_check_lib_save_LIBS=$LIBS
40313 cat >conftest.$ac_ext <<_ACEOF
40316 cat confdefs.h >>conftest.$ac_ext
40317 cat >>conftest.$ac_ext <<_ACEOF
40318 /* end confdefs.h. */
40320 /* Override any GCC internal prototype to avoid an error.
40321 Use char because int might match the return type of a GCC
40322 builtin and then its argument prototype would still apply. */
40330 return getpwnam ();
40335 rm -f conftest.$ac_objext conftest$ac_exeext
40336 if { (ac_try="$ac_link"
40337 case "(($ac_try" in
40338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40339 *) ac_try_echo=$ac_try;;
40341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40342 (eval "$ac_link") 2>conftest.er1
40344 grep -v '^ *+' conftest.er1 >conftest.err
40346 cat conftest.err >&5
40347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40348 (exit $ac_status); } && {
40349 test -z "$ac_c_werror_flag" ||
40350 test ! -s conftest.err
40351 } && test -s conftest$ac_exeext &&
40352 $as_test_x conftest$ac_exeext; then
40353 ac_cv_lib_sun_getpwnam=yes
40355 echo "$as_me: failed program was:" >&5
40356 sed 's/^/| /' conftest.$ac_ext >&5
40358 ac_cv_lib_sun_getpwnam=no
40361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40362 conftest$ac_exeext conftest.$ac_ext
40363 LIBS=$ac_check_lib_save_LIBS
40365 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40366 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40367 if test $ac_cv_lib_sun_getpwnam = yes; then
40368 cat >>confdefs.h <<_ACEOF
40369 #define HAVE_LIBSUN 1
40378 for ac_header in zlib.h
40380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40385 echo $ECHO_N "(cached) $ECHO_C" >&6
40387 ac_res=`eval echo '${'$as_ac_Header'}'`
40388 { echo "$as_me:$LINENO: result: $ac_res" >&5
40389 echo "${ECHO_T}$ac_res" >&6; }
40391 # Is the header compilable?
40392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40394 cat >conftest.$ac_ext <<_ACEOF
40397 cat confdefs.h >>conftest.$ac_ext
40398 cat >>conftest.$ac_ext <<_ACEOF
40399 /* end confdefs.h. */
40400 $ac_includes_default
40401 #include <$ac_header>
40403 rm -f conftest.$ac_objext
40404 if { (ac_try="$ac_compile"
40405 case "(($ac_try" in
40406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40407 *) ac_try_echo=$ac_try;;
40409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40410 (eval "$ac_compile") 2>conftest.er1
40412 grep -v '^ *+' conftest.er1 >conftest.err
40414 cat conftest.err >&5
40415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40416 (exit $ac_status); } && {
40417 test -z "$ac_c_werror_flag" ||
40418 test ! -s conftest.err
40419 } && test -s conftest.$ac_objext; then
40420 ac_header_compiler=yes
40422 echo "$as_me: failed program was:" >&5
40423 sed 's/^/| /' conftest.$ac_ext >&5
40425 ac_header_compiler=no
40428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40430 echo "${ECHO_T}$ac_header_compiler" >&6; }
40432 # Is the header present?
40433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40435 cat >conftest.$ac_ext <<_ACEOF
40438 cat confdefs.h >>conftest.$ac_ext
40439 cat >>conftest.$ac_ext <<_ACEOF
40440 /* end confdefs.h. */
40441 #include <$ac_header>
40443 if { (ac_try="$ac_cpp conftest.$ac_ext"
40444 case "(($ac_try" in
40445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40446 *) ac_try_echo=$ac_try;;
40448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40451 grep -v '^ *+' conftest.er1 >conftest.err
40453 cat conftest.err >&5
40454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40455 (exit $ac_status); } >/dev/null && {
40456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40457 test ! -s conftest.err
40459 ac_header_preproc=yes
40461 echo "$as_me: failed program was:" >&5
40462 sed 's/^/| /' conftest.$ac_ext >&5
40464 ac_header_preproc=no
40467 rm -f conftest.err conftest.$ac_ext
40468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40469 echo "${ECHO_T}$ac_header_preproc" >&6; }
40471 # So? What about this header?
40472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40478 ac_header_preproc=yes
40481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40499 echo $ECHO_N "(cached) $ECHO_C" >&6
40501 eval "$as_ac_Header=\$ac_header_preproc"
40503 ac_res=`eval echo '${'$as_ac_Header'}'`
40504 { echo "$as_me:$LINENO: result: $ac_res" >&5
40505 echo "${ECHO_T}$ac_res" >&6; }
40508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40509 cat >>confdefs.h <<_ACEOF
40510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40517 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40518 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40519 if test "${ac_cv_lib_z_deflate+set}" = set; then
40520 echo $ECHO_N "(cached) $ECHO_C" >&6
40522 ac_check_lib_save_LIBS=$LIBS
40524 cat >conftest.$ac_ext <<_ACEOF
40527 cat confdefs.h >>conftest.$ac_ext
40528 cat >>conftest.$ac_ext <<_ACEOF
40529 /* end confdefs.h. */
40531 /* Override any GCC internal prototype to avoid an error.
40532 Use char because int might match the return type of a GCC
40533 builtin and then its argument prototype would still apply. */
40546 rm -f conftest.$ac_objext conftest$ac_exeext
40547 if { (ac_try="$ac_link"
40548 case "(($ac_try" in
40549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40550 *) ac_try_echo=$ac_try;;
40552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40553 (eval "$ac_link") 2>conftest.er1
40555 grep -v '^ *+' conftest.er1 >conftest.err
40557 cat conftest.err >&5
40558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40559 (exit $ac_status); } && {
40560 test -z "$ac_c_werror_flag" ||
40561 test ! -s conftest.err
40562 } && test -s conftest$ac_exeext &&
40563 $as_test_x conftest$ac_exeext; then
40564 ac_cv_lib_z_deflate=yes
40566 echo "$as_me: failed program was:" >&5
40567 sed 's/^/| /' conftest.$ac_ext >&5
40569 ac_cv_lib_z_deflate=no
40572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40573 conftest$ac_exeext conftest.$ac_ext
40574 LIBS=$ac_check_lib_save_LIBS
40576 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40577 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40578 if test $ac_cv_lib_z_deflate = yes; then
40583 if test x$FDLIBS = x-lz; then
40584 cat >>confdefs.h <<\_ACEOF
40585 #define HAVE_LIBZ 1
40592 # Check whether --enable-acl was given.
40593 if test "${enable_acl+set}" = set; then
40594 enableval=$enable_acl;
40595 if test x$enableval = xyes; then
40597 elif test x$enableval = xno; then
40606 have_extended_acl=no
40607 if test x$support_acl = xyes -o x$support_acl = xauto; then
40608 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40609 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40610 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40611 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40612 echo $ECHO_N "(cached) $ECHO_C" >&6
40614 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40615 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40617 # Is the header compilable?
40618 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40619 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40620 cat >conftest.$ac_ext <<_ACEOF
40623 cat confdefs.h >>conftest.$ac_ext
40624 cat >>conftest.$ac_ext <<_ACEOF
40625 /* end confdefs.h. */
40626 $ac_includes_default
40627 #include <sys/acl.h>
40629 rm -f conftest.$ac_objext
40630 if { (ac_try="$ac_compile"
40631 case "(($ac_try" in
40632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40633 *) ac_try_echo=$ac_try;;
40635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40636 (eval "$ac_compile") 2>conftest.er1
40638 grep -v '^ *+' conftest.er1 >conftest.err
40640 cat conftest.err >&5
40641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40642 (exit $ac_status); } && {
40643 test -z "$ac_c_werror_flag" ||
40644 test ! -s conftest.err
40645 } && test -s conftest.$ac_objext; then
40646 ac_header_compiler=yes
40648 echo "$as_me: failed program was:" >&5
40649 sed 's/^/| /' conftest.$ac_ext >&5
40651 ac_header_compiler=no
40654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40656 echo "${ECHO_T}$ac_header_compiler" >&6; }
40658 # Is the header present?
40659 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40660 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40661 cat >conftest.$ac_ext <<_ACEOF
40664 cat confdefs.h >>conftest.$ac_ext
40665 cat >>conftest.$ac_ext <<_ACEOF
40666 /* end confdefs.h. */
40667 #include <sys/acl.h>
40669 if { (ac_try="$ac_cpp conftest.$ac_ext"
40670 case "(($ac_try" in
40671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40672 *) ac_try_echo=$ac_try;;
40674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40677 grep -v '^ *+' conftest.er1 >conftest.err
40679 cat conftest.err >&5
40680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40681 (exit $ac_status); } >/dev/null && {
40682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40683 test ! -s conftest.err
40685 ac_header_preproc=yes
40687 echo "$as_me: failed program was:" >&5
40688 sed 's/^/| /' conftest.$ac_ext >&5
40690 ac_header_preproc=no
40693 rm -f conftest.err conftest.$ac_ext
40694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40695 echo "${ECHO_T}$ac_header_preproc" >&6; }
40697 # So? What about this header?
40698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40700 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40701 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40702 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40703 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40704 ac_header_preproc=yes
40707 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40708 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40709 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40710 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40711 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40712 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40713 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40714 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40715 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40716 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40717 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40718 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40722 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40723 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40724 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40725 echo $ECHO_N "(cached) $ECHO_C" >&6
40727 ac_cv_header_sys_acl_h=$ac_header_preproc
40729 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40730 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40733 if test $ac_cv_header_sys_acl_h = yes; then
40735 cat >>confdefs.h <<\_ACEOF
40736 #define HAVE_SYS_ACL_H 1
40742 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40743 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40744 if test "${ac_cv_func_acl_get_file+set}" = set; then
40745 echo $ECHO_N "(cached) $ECHO_C" >&6
40747 cat >conftest.$ac_ext <<_ACEOF
40750 cat confdefs.h >>conftest.$ac_ext
40751 cat >>conftest.$ac_ext <<_ACEOF
40752 /* end confdefs.h. */
40753 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40755 #define acl_get_file innocuous_acl_get_file
40757 /* System header to define __stub macros and hopefully few prototypes,
40758 which can conflict with char acl_get_file (); below.
40759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40760 <limits.h> exists even on freestanding compilers. */
40763 # include <limits.h>
40765 # include <assert.h>
40768 #undef acl_get_file
40770 /* Override any GCC internal prototype to avoid an error.
40771 Use char because int might match the return type of a GCC
40772 builtin and then its argument prototype would still apply. */
40776 char acl_get_file ();
40777 /* The GNU C library defines this for functions which it implements
40778 to always fail with ENOSYS. Some functions are actually named
40779 something starting with __ and the normal name is an alias. */
40780 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40787 return acl_get_file ();
40792 rm -f conftest.$ac_objext conftest$ac_exeext
40793 if { (ac_try="$ac_link"
40794 case "(($ac_try" in
40795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40796 *) ac_try_echo=$ac_try;;
40798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40799 (eval "$ac_link") 2>conftest.er1
40801 grep -v '^ *+' conftest.er1 >conftest.err
40803 cat conftest.err >&5
40804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40805 (exit $ac_status); } && {
40806 test -z "$ac_c_werror_flag" ||
40807 test ! -s conftest.err
40808 } && test -s conftest$ac_exeext &&
40809 $as_test_x conftest$ac_exeext; then
40810 ac_cv_func_acl_get_file=yes
40812 echo "$as_me: failed program was:" >&5
40813 sed 's/^/| /' conftest.$ac_ext >&5
40815 ac_cv_func_acl_get_file=no
40818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40819 conftest$ac_exeext conftest.$ac_ext
40821 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40822 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40823 if test $ac_cv_func_acl_get_file = yes; then
40829 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40830 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40831 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40832 echo $ECHO_N "(cached) $ECHO_C" >&6
40834 ac_check_lib_save_LIBS=$LIBS
40836 cat >conftest.$ac_ext <<_ACEOF
40839 cat confdefs.h >>conftest.$ac_ext
40840 cat >>conftest.$ac_ext <<_ACEOF
40841 /* end confdefs.h. */
40843 /* Override any GCC internal prototype to avoid an error.
40844 Use char because int might match the return type of a GCC
40845 builtin and then its argument prototype would still apply. */
40849 char acl_get_file ();
40853 return acl_get_file ();
40858 rm -f conftest.$ac_objext conftest$ac_exeext
40859 if { (ac_try="$ac_link"
40860 case "(($ac_try" in
40861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40862 *) ac_try_echo=$ac_try;;
40864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40865 (eval "$ac_link") 2>conftest.er1
40867 grep -v '^ *+' conftest.er1 >conftest.err
40869 cat conftest.err >&5
40870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40871 (exit $ac_status); } && {
40872 test -z "$ac_c_werror_flag" ||
40873 test ! -s conftest.err
40874 } && test -s conftest$ac_exeext &&
40875 $as_test_x conftest$ac_exeext; then
40876 ac_cv_lib_acl_acl_get_file=yes
40878 echo "$as_me: failed program was:" >&5
40879 sed 's/^/| /' conftest.$ac_ext >&5
40881 ac_cv_lib_acl_acl_get_file=no
40884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40885 conftest$ac_exeext conftest.$ac_ext
40886 LIBS=$ac_check_lib_save_LIBS
40888 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40889 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40890 if test $ac_cv_lib_acl_acl_get_file = yes; then
40893 FDLIBS="-lacl $FDLIBS"
40897 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40898 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40899 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40900 echo $ECHO_N "(cached) $ECHO_C" >&6
40902 ac_check_lib_save_LIBS=$LIBS
40903 LIBS="-lpacl $LIBS"
40904 cat >conftest.$ac_ext <<_ACEOF
40907 cat confdefs.h >>conftest.$ac_ext
40908 cat >>conftest.$ac_ext <<_ACEOF
40909 /* end confdefs.h. */
40911 /* Override any GCC internal prototype to avoid an error.
40912 Use char because int might match the return type of a GCC
40913 builtin and then its argument prototype would still apply. */
40917 char acl_get_file ();
40921 return acl_get_file ();
40926 rm -f conftest.$ac_objext conftest$ac_exeext
40927 if { (ac_try="$ac_link"
40928 case "(($ac_try" in
40929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40930 *) ac_try_echo=$ac_try;;
40932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40933 (eval "$ac_link") 2>conftest.er1
40935 grep -v '^ *+' conftest.er1 >conftest.err
40937 cat conftest.err >&5
40938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40939 (exit $ac_status); } && {
40940 test -z "$ac_c_werror_flag" ||
40941 test ! -s conftest.err
40942 } && test -s conftest$ac_exeext &&
40943 $as_test_x conftest$ac_exeext; then
40944 ac_cv_lib_pacl_acl_get_file=yes
40946 echo "$as_me: failed program was:" >&5
40947 sed 's/^/| /' conftest.$ac_ext >&5
40949 ac_cv_lib_pacl_acl_get_file=no
40952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40953 conftest$ac_exeext conftest.$ac_ext
40954 LIBS=$ac_check_lib_save_LIBS
40956 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40957 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40958 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40961 FDLIBS="-lpacl $FDLIBS"
40965 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40966 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40967 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40968 echo $ECHO_N "(cached) $ECHO_C" >&6
40970 ac_check_lib_save_LIBS=$LIBS
40972 cat >conftest.$ac_ext <<_ACEOF
40975 cat confdefs.h >>conftest.$ac_ext
40976 cat >>conftest.$ac_ext <<_ACEOF
40977 /* end confdefs.h. */
40979 /* Override any GCC internal prototype to avoid an error.
40980 Use char because int might match the return type of a GCC
40981 builtin and then its argument prototype would still apply. */
40989 return acltotext ();
40994 rm -f conftest.$ac_objext conftest$ac_exeext
40995 if { (ac_try="$ac_link"
40996 case "(($ac_try" in
40997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40998 *) ac_try_echo=$ac_try;;
41000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41001 (eval "$ac_link") 2>conftest.er1
41003 grep -v '^ *+' conftest.er1 >conftest.err
41005 cat conftest.err >&5
41006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41007 (exit $ac_status); } && {
41008 test -z "$ac_c_werror_flag" ||
41009 test ! -s conftest.err
41010 } && test -s conftest$ac_exeext &&
41011 $as_test_x conftest$ac_exeext; then
41012 ac_cv_lib_sec_acltotext=yes
41014 echo "$as_me: failed program was:" >&5
41015 sed 's/^/| /' conftest.$ac_ext >&5
41017 ac_cv_lib_sec_acltotext=no
41020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41021 conftest$ac_exeext conftest.$ac_ext
41022 LIBS=$ac_check_lib_save_LIBS
41024 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41025 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41026 if test $ac_cv_lib_sec_acltotext = yes; then
41029 FDLIBS="-lsec $FDLIBS"
41031 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41032 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41033 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41034 echo $ECHO_N "(cached) $ECHO_C" >&6
41036 ac_check_lib_save_LIBS=$LIBS
41038 cat >conftest.$ac_ext <<_ACEOF
41041 cat confdefs.h >>conftest.$ac_ext
41042 cat >>conftest.$ac_ext <<_ACEOF
41043 /* end confdefs.h. */
41045 /* Override any GCC internal prototype to avoid an error.
41046 Use char because int might match the return type of a GCC
41047 builtin and then its argument prototype would still apply. */
41051 char acl_totext ();
41055 return acl_totext ();
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_lib_sec_acl_totext=yes
41080 echo "$as_me: failed program was:" >&5
41081 sed 's/^/| /' conftest.$ac_ext >&5
41083 ac_cv_lib_sec_acl_totext=no
41086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41087 conftest$ac_exeext conftest.$ac_ext
41088 LIBS=$ac_check_lib_save_LIBS
41090 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41091 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41092 if test $ac_cv_lib_sec_acl_totext = yes; then
41094 have_extended_acl=yes
41116 if test x$support_acl = xyes -a $have_acl != yes; then
41117 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41118 please either load the acl libraries or rerun configure without --enable-acl" >&5
41119 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41120 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41121 { (exit 1); exit 1; }; }
41123 if test $have_acl = yes; then
41125 cat >>confdefs.h <<\_ACEOF
41131 if test $have_extended_acl = yes; then
41133 cat >>confdefs.h <<\_ACEOF
41134 #define HAVE_EXTENDED_ACL
41142 # Check whether --enable-xattr was given.
41143 if test "${enable_xattr+set}" = set; then
41144 enableval=$enable_xattr;
41145 if test x$enableval = xyes; then
41147 elif test x$enableval = xno; then
41156 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41157 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41158 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41159 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41160 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41161 echo $ECHO_N "(cached) $ECHO_C" >&6
41163 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41164 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41166 # Is the header compilable?
41167 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41168 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41169 cat >conftest.$ac_ext <<_ACEOF
41172 cat confdefs.h >>conftest.$ac_ext
41173 cat >>conftest.$ac_ext <<_ACEOF
41174 /* end confdefs.h. */
41175 $ac_includes_default
41176 #include <sys/xattr.h>
41178 rm -f conftest.$ac_objext
41179 if { (ac_try="$ac_compile"
41180 case "(($ac_try" in
41181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41182 *) ac_try_echo=$ac_try;;
41184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41185 (eval "$ac_compile") 2>conftest.er1
41187 grep -v '^ *+' conftest.er1 >conftest.err
41189 cat conftest.err >&5
41190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41191 (exit $ac_status); } && {
41192 test -z "$ac_c_werror_flag" ||
41193 test ! -s conftest.err
41194 } && test -s conftest.$ac_objext; then
41195 ac_header_compiler=yes
41197 echo "$as_me: failed program was:" >&5
41198 sed 's/^/| /' conftest.$ac_ext >&5
41200 ac_header_compiler=no
41203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41205 echo "${ECHO_T}$ac_header_compiler" >&6; }
41207 # Is the header present?
41208 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41209 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41210 cat >conftest.$ac_ext <<_ACEOF
41213 cat confdefs.h >>conftest.$ac_ext
41214 cat >>conftest.$ac_ext <<_ACEOF
41215 /* end confdefs.h. */
41216 #include <sys/xattr.h>
41218 if { (ac_try="$ac_cpp conftest.$ac_ext"
41219 case "(($ac_try" in
41220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41221 *) ac_try_echo=$ac_try;;
41223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41226 grep -v '^ *+' conftest.er1 >conftest.err
41228 cat conftest.err >&5
41229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41230 (exit $ac_status); } >/dev/null && {
41231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41232 test ! -s conftest.err
41234 ac_header_preproc=yes
41236 echo "$as_me: failed program was:" >&5
41237 sed 's/^/| /' conftest.$ac_ext >&5
41239 ac_header_preproc=no
41242 rm -f conftest.err conftest.$ac_ext
41243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41244 echo "${ECHO_T}$ac_header_preproc" >&6; }
41246 # So? What about this header?
41247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41249 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41250 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41251 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41252 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41253 ac_header_preproc=yes
41256 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41257 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41258 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
41259 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
41260 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41261 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41262 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
41263 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41264 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41265 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41266 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41267 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41271 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41272 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41273 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41274 echo $ECHO_N "(cached) $ECHO_C" >&6
41276 ac_cv_header_sys_xattr_h=$ac_header_preproc
41278 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41279 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41282 if test $ac_cv_header_sys_xattr_h = yes; then
41284 cat >>confdefs.h <<\_ACEOF
41285 #define HAVE_SYS_XATTR_H 1
41294 for ac_func in llistxattr lgetxattr lsetxattr
41296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41300 echo $ECHO_N "(cached) $ECHO_C" >&6
41302 cat >conftest.$ac_ext <<_ACEOF
41305 cat confdefs.h >>conftest.$ac_ext
41306 cat >>conftest.$ac_ext <<_ACEOF
41307 /* end confdefs.h. */
41308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41310 #define $ac_func innocuous_$ac_func
41312 /* System header to define __stub macros and hopefully few prototypes,
41313 which can conflict with char $ac_func (); below.
41314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41315 <limits.h> exists even on freestanding compilers. */
41318 # include <limits.h>
41320 # include <assert.h>
41325 /* Override any GCC internal prototype to avoid an error.
41326 Use char because int might match the return type of a GCC
41327 builtin and then its argument prototype would still apply. */
41332 /* The GNU C library defines this for functions which it implements
41333 to always fail with ENOSYS. Some functions are actually named
41334 something starting with __ and the normal name is an alias. */
41335 #if defined __stub_$ac_func || defined __stub___$ac_func
41342 return $ac_func ();
41347 rm -f conftest.$ac_objext conftest$ac_exeext
41348 if { (ac_try="$ac_link"
41349 case "(($ac_try" in
41350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41351 *) ac_try_echo=$ac_try;;
41353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41354 (eval "$ac_link") 2>conftest.er1
41356 grep -v '^ *+' conftest.er1 >conftest.err
41358 cat conftest.err >&5
41359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41360 (exit $ac_status); } && {
41361 test -z "$ac_c_werror_flag" ||
41362 test ! -s conftest.err
41363 } && test -s conftest$ac_exeext &&
41364 $as_test_x conftest$ac_exeext; then
41365 eval "$as_ac_var=yes"
41367 echo "$as_me: failed program was:" >&5
41368 sed 's/^/| /' conftest.$ac_ext >&5
41370 eval "$as_ac_var=no"
41373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41374 conftest$ac_exeext conftest.$ac_ext
41376 ac_res=`eval echo '${'$as_ac_var'}'`
41377 { echo "$as_me:$LINENO: result: $ac_res" >&5
41378 echo "${ECHO_T}$ac_res" >&6; }
41379 if test `eval echo '${'$as_ac_var'}'` = yes; then
41380 cat >>confdefs.h <<_ACEOF
41381 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41386 cat >>confdefs.h <<\_ACEOF
41387 #define HAVE_LLISTXATTR
41391 cat >>confdefs.h <<\_ACEOF
41392 #define HAVE_LGETXATTR
41396 cat >>confdefs.h <<\_ACEOF
41397 #define HAVE_LSETXATTR
41409 if test $have_xattr = no; then
41413 for ac_func in listxattr getxattr setxattr
41415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41419 echo $ECHO_N "(cached) $ECHO_C" >&6
41421 cat >conftest.$ac_ext <<_ACEOF
41424 cat confdefs.h >>conftest.$ac_ext
41425 cat >>conftest.$ac_ext <<_ACEOF
41426 /* end confdefs.h. */
41427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41429 #define $ac_func innocuous_$ac_func
41431 /* System header to define __stub macros and hopefully few prototypes,
41432 which can conflict with char $ac_func (); below.
41433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41434 <limits.h> exists even on freestanding compilers. */
41437 # include <limits.h>
41439 # include <assert.h>
41444 /* Override any GCC internal prototype to avoid an error.
41445 Use char because int might match the return type of a GCC
41446 builtin and then its argument prototype would still apply. */
41451 /* The GNU C library defines this for functions which it implements
41452 to always fail with ENOSYS. Some functions are actually named
41453 something starting with __ and the normal name is an alias. */
41454 #if defined __stub_$ac_func || defined __stub___$ac_func
41461 return $ac_func ();
41466 rm -f conftest.$ac_objext conftest$ac_exeext
41467 if { (ac_try="$ac_link"
41468 case "(($ac_try" in
41469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41470 *) ac_try_echo=$ac_try;;
41472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41473 (eval "$ac_link") 2>conftest.er1
41475 grep -v '^ *+' conftest.er1 >conftest.err
41477 cat conftest.err >&5
41478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41479 (exit $ac_status); } && {
41480 test -z "$ac_c_werror_flag" ||
41481 test ! -s conftest.err
41482 } && test -s conftest$ac_exeext &&
41483 $as_test_x conftest$ac_exeext; then
41484 eval "$as_ac_var=yes"
41486 echo "$as_me: failed program was:" >&5
41487 sed 's/^/| /' conftest.$ac_ext >&5
41489 eval "$as_ac_var=no"
41492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41493 conftest$ac_exeext conftest.$ac_ext
41495 ac_res=`eval echo '${'$as_ac_var'}'`
41496 { echo "$as_me:$LINENO: result: $ac_res" >&5
41497 echo "${ECHO_T}$ac_res" >&6; }
41498 if test `eval echo '${'$as_ac_var'}'` = yes; then
41499 cat >>confdefs.h <<_ACEOF
41500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41505 cat >>confdefs.h <<\_ACEOF
41506 #define HAVE_LLISTXATTR
41510 cat >>confdefs.h <<\_ACEOF
41511 #define HAVE_LGETXATTR
41515 cat >>confdefs.h <<\_ACEOF
41516 #define HAVE_LSETXATTR
41529 if test $have_xattr = no; then
41530 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41531 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41532 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41533 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41534 echo $ECHO_N "(cached) $ECHO_C" >&6
41536 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41537 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41539 # Is the header compilable?
41540 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41541 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41542 cat >conftest.$ac_ext <<_ACEOF
41545 cat confdefs.h >>conftest.$ac_ext
41546 cat >>conftest.$ac_ext <<_ACEOF
41547 /* end confdefs.h. */
41548 $ac_includes_default
41549 #include <sys/attr.h>
41551 rm -f conftest.$ac_objext
41552 if { (ac_try="$ac_compile"
41553 case "(($ac_try" in
41554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41555 *) ac_try_echo=$ac_try;;
41557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41558 (eval "$ac_compile") 2>conftest.er1
41560 grep -v '^ *+' conftest.er1 >conftest.err
41562 cat conftest.err >&5
41563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41564 (exit $ac_status); } && {
41565 test -z "$ac_c_werror_flag" ||
41566 test ! -s conftest.err
41567 } && test -s conftest.$ac_objext; then
41568 ac_header_compiler=yes
41570 echo "$as_me: failed program was:" >&5
41571 sed 's/^/| /' conftest.$ac_ext >&5
41573 ac_header_compiler=no
41576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41578 echo "${ECHO_T}$ac_header_compiler" >&6; }
41580 # Is the header present?
41581 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41582 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41583 cat >conftest.$ac_ext <<_ACEOF
41586 cat confdefs.h >>conftest.$ac_ext
41587 cat >>conftest.$ac_ext <<_ACEOF
41588 /* end confdefs.h. */
41589 #include <sys/attr.h>
41591 if { (ac_try="$ac_cpp conftest.$ac_ext"
41592 case "(($ac_try" in
41593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41594 *) ac_try_echo=$ac_try;;
41596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41599 grep -v '^ *+' conftest.er1 >conftest.err
41601 cat conftest.err >&5
41602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41603 (exit $ac_status); } >/dev/null && {
41604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41605 test ! -s conftest.err
41607 ac_header_preproc=yes
41609 echo "$as_me: failed program was:" >&5
41610 sed 's/^/| /' conftest.$ac_ext >&5
41612 ac_header_preproc=no
41615 rm -f conftest.err conftest.$ac_ext
41616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41617 echo "${ECHO_T}$ac_header_preproc" >&6; }
41619 # So? What about this header?
41620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41622 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41623 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41624 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41625 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41626 ac_header_preproc=yes
41629 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41630 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41631 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
41632 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
41633 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41634 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41635 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
41636 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41637 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41638 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41639 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41640 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41644 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41645 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41646 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41647 echo $ECHO_N "(cached) $ECHO_C" >&6
41649 ac_cv_header_sys_attr_h=$ac_header_preproc
41651 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41652 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41655 if test $ac_cv_header_sys_attr_h = yes; then
41657 cat >>confdefs.h <<\_ACEOF
41658 #define HAVE_SYS_ATTR_H 1
41664 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41665 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41666 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41667 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41668 echo $ECHO_N "(cached) $ECHO_C" >&6
41670 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41671 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41673 # Is the header compilable?
41674 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41675 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41676 cat >conftest.$ac_ext <<_ACEOF
41679 cat confdefs.h >>conftest.$ac_ext
41680 cat >>conftest.$ac_ext <<_ACEOF
41681 /* end confdefs.h. */
41682 $ac_includes_default
41683 #include <sys/nvpair.h>
41685 rm -f conftest.$ac_objext
41686 if { (ac_try="$ac_compile"
41687 case "(($ac_try" in
41688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41689 *) ac_try_echo=$ac_try;;
41691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41692 (eval "$ac_compile") 2>conftest.er1
41694 grep -v '^ *+' conftest.er1 >conftest.err
41696 cat conftest.err >&5
41697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41698 (exit $ac_status); } && {
41699 test -z "$ac_c_werror_flag" ||
41700 test ! -s conftest.err
41701 } && test -s conftest.$ac_objext; then
41702 ac_header_compiler=yes
41704 echo "$as_me: failed program was:" >&5
41705 sed 's/^/| /' conftest.$ac_ext >&5
41707 ac_header_compiler=no
41710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41712 echo "${ECHO_T}$ac_header_compiler" >&6; }
41714 # Is the header present?
41715 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41716 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41717 cat >conftest.$ac_ext <<_ACEOF
41720 cat confdefs.h >>conftest.$ac_ext
41721 cat >>conftest.$ac_ext <<_ACEOF
41722 /* end confdefs.h. */
41723 #include <sys/nvpair.h>
41725 if { (ac_try="$ac_cpp conftest.$ac_ext"
41726 case "(($ac_try" in
41727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41728 *) ac_try_echo=$ac_try;;
41730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41733 grep -v '^ *+' conftest.er1 >conftest.err
41735 cat conftest.err >&5
41736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41737 (exit $ac_status); } >/dev/null && {
41738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41739 test ! -s conftest.err
41741 ac_header_preproc=yes
41743 echo "$as_me: failed program was:" >&5
41744 sed 's/^/| /' conftest.$ac_ext >&5
41746 ac_header_preproc=no
41749 rm -f conftest.err conftest.$ac_ext
41750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41751 echo "${ECHO_T}$ac_header_preproc" >&6; }
41753 # So? What about this header?
41754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41756 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41757 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41758 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41759 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41760 ac_header_preproc=yes
41763 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41764 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41765 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
41766 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
41767 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41768 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41769 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
41770 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
41771 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41772 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41773 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41774 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41778 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41779 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41780 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41781 echo $ECHO_N "(cached) $ECHO_C" >&6
41783 ac_cv_header_sys_nvpair_h=$ac_header_preproc
41785 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41786 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41789 if test $ac_cv_header_sys_nvpair_h = yes; then
41791 cat >>confdefs.h <<\_ACEOF
41792 #define HAVE_SYS_NVPAIR_H 1
41798 if test "${ac_cv_header_attr_h+set}" = set; then
41799 { echo "$as_me:$LINENO: checking for attr.h" >&5
41800 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41801 if test "${ac_cv_header_attr_h+set}" = set; then
41802 echo $ECHO_N "(cached) $ECHO_C" >&6
41804 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41805 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41807 # Is the header compilable?
41808 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41809 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41810 cat >conftest.$ac_ext <<_ACEOF
41813 cat confdefs.h >>conftest.$ac_ext
41814 cat >>conftest.$ac_ext <<_ACEOF
41815 /* end confdefs.h. */
41816 $ac_includes_default
41819 rm -f conftest.$ac_objext
41820 if { (ac_try="$ac_compile"
41821 case "(($ac_try" in
41822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41823 *) ac_try_echo=$ac_try;;
41825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41826 (eval "$ac_compile") 2>conftest.er1
41828 grep -v '^ *+' conftest.er1 >conftest.err
41830 cat conftest.err >&5
41831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41832 (exit $ac_status); } && {
41833 test -z "$ac_c_werror_flag" ||
41834 test ! -s conftest.err
41835 } && test -s conftest.$ac_objext; then
41836 ac_header_compiler=yes
41838 echo "$as_me: failed program was:" >&5
41839 sed 's/^/| /' conftest.$ac_ext >&5
41841 ac_header_compiler=no
41844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41845 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41846 echo "${ECHO_T}$ac_header_compiler" >&6; }
41848 # Is the header present?
41849 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41850 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41851 cat >conftest.$ac_ext <<_ACEOF
41854 cat confdefs.h >>conftest.$ac_ext
41855 cat >>conftest.$ac_ext <<_ACEOF
41856 /* end confdefs.h. */
41859 if { (ac_try="$ac_cpp conftest.$ac_ext"
41860 case "(($ac_try" in
41861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41862 *) ac_try_echo=$ac_try;;
41864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41865 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41867 grep -v '^ *+' conftest.er1 >conftest.err
41869 cat conftest.err >&5
41870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41871 (exit $ac_status); } >/dev/null && {
41872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41873 test ! -s conftest.err
41875 ac_header_preproc=yes
41877 echo "$as_me: failed program was:" >&5
41878 sed 's/^/| /' conftest.$ac_ext >&5
41880 ac_header_preproc=no
41883 rm -f conftest.err conftest.$ac_ext
41884 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41885 echo "${ECHO_T}$ac_header_preproc" >&6; }
41887 # So? What about this header?
41888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41890 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41891 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41892 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41893 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41894 ac_header_preproc=yes
41897 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41898 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41899 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
41900 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
41901 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41902 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41903 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
41904 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41905 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41906 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41907 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41908 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41912 { echo "$as_me:$LINENO: checking for attr.h" >&5
41913 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41914 if test "${ac_cv_header_attr_h+set}" = set; then
41915 echo $ECHO_N "(cached) $ECHO_C" >&6
41917 ac_cv_header_attr_h=$ac_header_preproc
41919 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41920 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41923 if test $ac_cv_header_attr_h = yes; then
41925 cat >>confdefs.h <<\_ACEOF
41926 #define HAVE_ATTR_H 1
41938 for ac_func in openat fstatat unlinkat fchownat futimesat
41940 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41944 echo $ECHO_N "(cached) $ECHO_C" >&6
41946 cat >conftest.$ac_ext <<_ACEOF
41949 cat confdefs.h >>conftest.$ac_ext
41950 cat >>conftest.$ac_ext <<_ACEOF
41951 /* end confdefs.h. */
41952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41954 #define $ac_func innocuous_$ac_func
41956 /* System header to define __stub macros and hopefully few prototypes,
41957 which can conflict with char $ac_func (); below.
41958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41959 <limits.h> exists even on freestanding compilers. */
41962 # include <limits.h>
41964 # include <assert.h>
41969 /* Override any GCC internal prototype to avoid an error.
41970 Use char because int might match the return type of a GCC
41971 builtin and then its argument prototype would still apply. */
41976 /* The GNU C library defines this for functions which it implements
41977 to always fail with ENOSYS. Some functions are actually named
41978 something starting with __ and the normal name is an alias. */
41979 #if defined __stub_$ac_func || defined __stub___$ac_func
41986 return $ac_func ();
41991 rm -f conftest.$ac_objext conftest$ac_exeext
41992 if { (ac_try="$ac_link"
41993 case "(($ac_try" in
41994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41995 *) ac_try_echo=$ac_try;;
41997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41998 (eval "$ac_link") 2>conftest.er1
42000 grep -v '^ *+' conftest.er1 >conftest.err
42002 cat conftest.err >&5
42003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42004 (exit $ac_status); } && {
42005 test -z "$ac_c_werror_flag" ||
42006 test ! -s conftest.err
42007 } && test -s conftest$ac_exeext &&
42008 $as_test_x conftest$ac_exeext; then
42009 eval "$as_ac_var=yes"
42011 echo "$as_me: failed program was:" >&5
42012 sed 's/^/| /' conftest.$ac_ext >&5
42014 eval "$as_ac_var=no"
42017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42018 conftest$ac_exeext conftest.$ac_ext
42020 ac_res=`eval echo '${'$as_ac_var'}'`
42021 { echo "$as_me:$LINENO: result: $ac_res" >&5
42022 echo "${ECHO_T}$ac_res" >&6; }
42023 if test `eval echo '${'$as_ac_var'}'` = yes; then
42024 cat >>confdefs.h <<_ACEOF
42025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42030 cat >>confdefs.h <<\_ACEOF
42031 #define HAVE_OPENAT
42035 cat >>confdefs.h <<\_ACEOF
42036 #define HAVE_FSTATAT
42040 cat >>confdefs.h <<\_ACEOF
42041 #define HAVE_UNLINKAT
42045 cat >>confdefs.h <<\_ACEOF
42046 #define HAVE_FCHOWNAT
42050 cat >>confdefs.h <<\_ACEOF
42051 #define HAVE_FUTIMESAT
42060 if test $have_xattr = yes; then
42061 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42062 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42063 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42064 echo $ECHO_N "(cached) $ECHO_C" >&6
42066 ac_check_lib_save_LIBS=$LIBS
42067 LIBS="-lnvpair $LIBS"
42068 cat >conftest.$ac_ext <<_ACEOF
42071 cat confdefs.h >>conftest.$ac_ext
42072 cat >>conftest.$ac_ext <<_ACEOF
42073 /* end confdefs.h. */
42075 /* Override any GCC internal prototype to avoid an error.
42076 Use char because int might match the return type of a GCC
42077 builtin and then its argument prototype would still apply. */
42081 char nvlist_next_nvpair ();
42085 return nvlist_next_nvpair ();
42090 rm -f conftest.$ac_objext conftest$ac_exeext
42091 if { (ac_try="$ac_link"
42092 case "(($ac_try" in
42093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42094 *) ac_try_echo=$ac_try;;
42096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42097 (eval "$ac_link") 2>conftest.er1
42099 grep -v '^ *+' conftest.er1 >conftest.err
42101 cat conftest.err >&5
42102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42103 (exit $ac_status); } && {
42104 test -z "$ac_c_werror_flag" ||
42105 test ! -s conftest.err
42106 } && test -s conftest$ac_exeext &&
42107 $as_test_x conftest$ac_exeext; then
42108 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42110 echo "$as_me: failed program was:" >&5
42111 sed 's/^/| /' conftest.$ac_ext >&5
42113 ac_cv_lib_nvpair_nvlist_next_nvpair=no
42116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42117 conftest$ac_exeext conftest.$ac_ext
42118 LIBS=$ac_check_lib_save_LIBS
42120 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42121 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42122 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42124 FDLIBS="-lnvpair $FDLIBS"
42132 if test x$support_xattr = xyes -a $have_xattr != yes; then
42133 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42134 please either load the xattr libraries or rerun configure without --enable-xatt" >&5
42135 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42136 please either load the xattr libraries or rerun configure without --enable-xatt" >&2;}
42137 { (exit 1); exit 1; }; }
42139 if test $have_xattr = yes; then
42141 cat >>confdefs.h <<\_ACEOF
42150 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42151 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42152 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42153 echo $ECHO_N "(cached) $ECHO_C" >&6
42155 ac_check_lib_save_LIBS=$LIBS
42156 LIBS="-lpthread $LIBS"
42157 cat >conftest.$ac_ext <<_ACEOF
42160 cat confdefs.h >>conftest.$ac_ext
42161 cat >>conftest.$ac_ext <<_ACEOF
42162 /* end confdefs.h. */
42164 /* Override any GCC internal prototype to avoid an error.
42165 Use char because int might match the return type of a GCC
42166 builtin and then its argument prototype would still apply. */
42170 char pthread_create ();
42174 return pthread_create ();
42179 rm -f conftest.$ac_objext conftest$ac_exeext
42180 if { (ac_try="$ac_link"
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_link") 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); } && {
42193 test -z "$ac_c_werror_flag" ||
42194 test ! -s conftest.err
42195 } && test -s conftest$ac_exeext &&
42196 $as_test_x conftest$ac_exeext; then
42197 ac_cv_lib_pthread_pthread_create=yes
42199 echo "$as_me: failed program was:" >&5
42200 sed 's/^/| /' conftest.$ac_ext >&5
42202 ac_cv_lib_pthread_pthread_create=no
42205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42206 conftest$ac_exeext conftest.$ac_ext
42207 LIBS=$ac_check_lib_save_LIBS
42209 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42210 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42211 if test $ac_cv_lib_pthread_pthread_create = yes; then
42212 PTHREAD_LIB="-lpthread"
42215 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42216 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42217 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42218 echo $ECHO_N "(cached) $ECHO_C" >&6
42220 ac_check_lib_save_LIBS=$LIBS
42221 LIBS="-lpthreads $LIBS"
42222 cat >conftest.$ac_ext <<_ACEOF
42225 cat confdefs.h >>conftest.$ac_ext
42226 cat >>conftest.$ac_ext <<_ACEOF
42227 /* end confdefs.h. */
42229 /* Override any GCC internal prototype to avoid an error.
42230 Use char because int might match the return type of a GCC
42231 builtin and then its argument prototype would still apply. */
42235 char pthread_create ();
42239 return pthread_create ();
42244 rm -f conftest.$ac_objext conftest$ac_exeext
42245 if { (ac_try="$ac_link"
42246 case "(($ac_try" in
42247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42248 *) ac_try_echo=$ac_try;;
42250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42251 (eval "$ac_link") 2>conftest.er1
42253 grep -v '^ *+' conftest.er1 >conftest.err
42255 cat conftest.err >&5
42256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42257 (exit $ac_status); } && {
42258 test -z "$ac_c_werror_flag" ||
42259 test ! -s conftest.err
42260 } && test -s conftest$ac_exeext &&
42261 $as_test_x conftest$ac_exeext; then
42262 ac_cv_lib_pthreads_pthread_create=yes
42264 echo "$as_me: failed program was:" >&5
42265 sed 's/^/| /' conftest.$ac_ext >&5
42267 ac_cv_lib_pthreads_pthread_create=no
42270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42271 conftest$ac_exeext conftest.$ac_ext
42272 LIBS=$ac_check_lib_save_LIBS
42274 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42275 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42276 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42277 PTHREAD_LIB="-lpthreads"
42280 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42281 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42282 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42283 echo $ECHO_N "(cached) $ECHO_C" >&6
42285 ac_check_lib_save_LIBS=$LIBS
42287 cat >conftest.$ac_ext <<_ACEOF
42290 cat confdefs.h >>conftest.$ac_ext
42291 cat >>conftest.$ac_ext <<_ACEOF
42292 /* end confdefs.h. */
42294 /* Override any GCC internal prototype to avoid an error.
42295 Use char because int might match the return type of a GCC
42296 builtin and then its argument prototype would still apply. */
42300 char pthread_create ();
42304 return pthread_create ();
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 ac_cv_lib_c_r_pthread_create=yes
42329 echo "$as_me: failed program was:" >&5
42330 sed 's/^/| /' conftest.$ac_ext >&5
42332 ac_cv_lib_c_r_pthread_create=no
42335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42336 conftest$ac_exeext conftest.$ac_ext
42337 LIBS=$ac_check_lib_save_LIBS
42339 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42340 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42341 if test $ac_cv_lib_c_r_pthread_create = yes; then
42342 PTHREAD_LIB="-lc_r"
42345 { echo "$as_me:$LINENO: checking for pthread_create" >&5
42346 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42347 if test "${ac_cv_func_pthread_create+set}" = set; then
42348 echo $ECHO_N "(cached) $ECHO_C" >&6
42350 cat >conftest.$ac_ext <<_ACEOF
42353 cat confdefs.h >>conftest.$ac_ext
42354 cat >>conftest.$ac_ext <<_ACEOF
42355 /* end confdefs.h. */
42356 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42358 #define pthread_create innocuous_pthread_create
42360 /* System header to define __stub macros and hopefully few prototypes,
42361 which can conflict with char pthread_create (); below.
42362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42363 <limits.h> exists even on freestanding compilers. */
42366 # include <limits.h>
42368 # include <assert.h>
42371 #undef pthread_create
42373 /* Override any GCC internal prototype to avoid an error.
42374 Use char because int might match the return type of a GCC
42375 builtin and then its argument prototype would still apply. */
42379 char pthread_create ();
42380 /* The GNU C library defines this for functions which it implements
42381 to always fail with ENOSYS. Some functions are actually named
42382 something starting with __ and the normal name is an alias. */
42383 #if defined __stub_pthread_create || defined __stub___pthread_create
42390 return pthread_create ();
42395 rm -f conftest.$ac_objext conftest$ac_exeext
42396 if { (ac_try="$ac_link"
42397 case "(($ac_try" in
42398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42399 *) ac_try_echo=$ac_try;;
42401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42402 (eval "$ac_link") 2>conftest.er1
42404 grep -v '^ *+' conftest.er1 >conftest.err
42406 cat conftest.err >&5
42407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42408 (exit $ac_status); } && {
42409 test -z "$ac_c_werror_flag" ||
42410 test ! -s conftest.err
42411 } && test -s conftest$ac_exeext &&
42412 $as_test_x conftest$ac_exeext; then
42413 ac_cv_func_pthread_create=yes
42415 echo "$as_me: failed program was:" >&5
42416 sed 's/^/| /' conftest.$ac_ext >&5
42418 ac_cv_func_pthread_create=no
42421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42422 conftest$ac_exeext conftest.$ac_ext
42424 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42425 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42442 for ac_header in sys/prctl.h sys/capability.h
42444 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42449 echo $ECHO_N "(cached) $ECHO_C" >&6
42451 ac_res=`eval echo '${'$as_ac_Header'}'`
42452 { echo "$as_me:$LINENO: result: $ac_res" >&5
42453 echo "${ECHO_T}$ac_res" >&6; }
42455 # Is the header compilable?
42456 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
42457 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
42458 cat >conftest.$ac_ext <<_ACEOF
42461 cat confdefs.h >>conftest.$ac_ext
42462 cat >>conftest.$ac_ext <<_ACEOF
42463 /* end confdefs.h. */
42464 $ac_includes_default
42465 #include <$ac_header>
42467 rm -f conftest.$ac_objext
42468 if { (ac_try="$ac_compile"
42469 case "(($ac_try" in
42470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42471 *) ac_try_echo=$ac_try;;
42473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42474 (eval "$ac_compile") 2>conftest.er1
42476 grep -v '^ *+' conftest.er1 >conftest.err
42478 cat conftest.err >&5
42479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42480 (exit $ac_status); } && {
42481 test -z "$ac_c_werror_flag" ||
42482 test ! -s conftest.err
42483 } && test -s conftest.$ac_objext; then
42484 ac_header_compiler=yes
42486 echo "$as_me: failed program was:" >&5
42487 sed 's/^/| /' conftest.$ac_ext >&5
42489 ac_header_compiler=no
42492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42493 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42494 echo "${ECHO_T}$ac_header_compiler" >&6; }
42496 # Is the header present?
42497 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
42498 echo $ECHO_N "checking $ac_header presence... $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 #include <$ac_header>
42507 if { (ac_try="$ac_cpp conftest.$ac_ext"
42508 case "(($ac_try" in
42509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42510 *) ac_try_echo=$ac_try;;
42512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42513 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42515 grep -v '^ *+' conftest.er1 >conftest.err
42517 cat conftest.err >&5
42518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42519 (exit $ac_status); } >/dev/null && {
42520 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42521 test ! -s conftest.err
42523 ac_header_preproc=yes
42525 echo "$as_me: failed program was:" >&5
42526 sed 's/^/| /' conftest.$ac_ext >&5
42528 ac_header_preproc=no
42531 rm -f conftest.err conftest.$ac_ext
42532 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42533 echo "${ECHO_T}$ac_header_preproc" >&6; }
42535 # So? What about this header?
42536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42542 ac_header_preproc=yes
42545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42563 echo $ECHO_N "(cached) $ECHO_C" >&6
42565 eval "$as_ac_Header=\$ac_header_preproc"
42567 ac_res=`eval echo '${'$as_ac_Header'}'`
42568 { echo "$as_me:$LINENO: result: $ac_res" >&5
42569 echo "${ECHO_T}$ac_res" >&6; }
42572 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42573 cat >>confdefs.h <<_ACEOF
42574 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42583 for ac_func in prctl setreuid
42585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42589 echo $ECHO_N "(cached) $ECHO_C" >&6
42591 cat >conftest.$ac_ext <<_ACEOF
42594 cat confdefs.h >>conftest.$ac_ext
42595 cat >>conftest.$ac_ext <<_ACEOF
42596 /* end confdefs.h. */
42597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42599 #define $ac_func innocuous_$ac_func
42601 /* System header to define __stub macros and hopefully few prototypes,
42602 which can conflict with char $ac_func (); below.
42603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42604 <limits.h> exists even on freestanding compilers. */
42607 # include <limits.h>
42609 # include <assert.h>
42614 /* Override any GCC internal prototype to avoid an error.
42615 Use char because int might match the return type of a GCC
42616 builtin and then its argument prototype would still apply. */
42621 /* The GNU C library defines this for functions which it implements
42622 to always fail with ENOSYS. Some functions are actually named
42623 something starting with __ and the normal name is an alias. */
42624 #if defined __stub_$ac_func || defined __stub___$ac_func
42631 return $ac_func ();
42636 rm -f conftest.$ac_objext conftest$ac_exeext
42637 if { (ac_try="$ac_link"
42638 case "(($ac_try" in
42639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42640 *) ac_try_echo=$ac_try;;
42642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42643 (eval "$ac_link") 2>conftest.er1
42645 grep -v '^ *+' conftest.er1 >conftest.err
42647 cat conftest.err >&5
42648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42649 (exit $ac_status); } && {
42650 test -z "$ac_c_werror_flag" ||
42651 test ! -s conftest.err
42652 } && test -s conftest$ac_exeext &&
42653 $as_test_x conftest$ac_exeext; then
42654 eval "$as_ac_var=yes"
42656 echo "$as_me: failed program was:" >&5
42657 sed 's/^/| /' conftest.$ac_ext >&5
42659 eval "$as_ac_var=no"
42662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42663 conftest$ac_exeext conftest.$ac_ext
42665 ac_res=`eval echo '${'$as_ac_var'}'`
42666 { echo "$as_me:$LINENO: result: $ac_res" >&5
42667 echo "${ECHO_T}$ac_res" >&6; }
42668 if test `eval echo '${'$as_ac_var'}'` = yes; then
42669 cat >>confdefs.h <<_ACEOF
42670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42676 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
42677 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
42678 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
42679 echo $ECHO_N "(cached) $ECHO_C" >&6
42681 ac_check_lib_save_LIBS=$LIBS
42683 cat >conftest.$ac_ext <<_ACEOF
42686 cat confdefs.h >>conftest.$ac_ext
42687 cat >>conftest.$ac_ext <<_ACEOF
42688 /* end confdefs.h. */
42690 /* Override any GCC internal prototype to avoid an error.
42691 Use char because int might match the return type of a GCC
42692 builtin and then its argument prototype would still apply. */
42696 char cap_set_proc ();
42700 return cap_set_proc ();
42705 rm -f conftest.$ac_objext conftest$ac_exeext
42706 if { (ac_try="$ac_link"
42707 case "(($ac_try" in
42708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42709 *) ac_try_echo=$ac_try;;
42711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42712 (eval "$ac_link") 2>conftest.er1
42714 grep -v '^ *+' conftest.er1 >conftest.err
42716 cat conftest.err >&5
42717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42718 (exit $ac_status); } && {
42719 test -z "$ac_c_werror_flag" ||
42720 test ! -s conftest.err
42721 } && test -s conftest$ac_exeext &&
42722 $as_test_x conftest$ac_exeext; then
42723 ac_cv_lib_cap_cap_set_proc=yes
42725 echo "$as_me: failed program was:" >&5
42726 sed 's/^/| /' conftest.$ac_ext >&5
42728 ac_cv_lib_cap_cap_set_proc=no
42731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42732 conftest$ac_exeext conftest.$ac_ext
42733 LIBS=$ac_check_lib_save_LIBS
42735 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
42736 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
42737 if test $ac_cv_lib_cap_cap_set_proc = yes; then
42743 if test x$CAP_LIBS = x-lcap; then
42745 cat >>confdefs.h <<\_ACEOF
42746 #define HAVE_LIBCAP 1
42753 cat >>confdefs.h <<\_ACEOF
42758 CFLAGS=${CFLAGS--O}
42760 if test x$have_gcc = xyes ; then
42761 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42762 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42764 LDFLAGS=${LDFLAGS--O}
42765 DB_LIBS="${SQL_LFLAGS}"
42766 CPPFLAGS="$CPPFLAGS"
42793 PFILES="platforms/Makefile"
42798 hostname=`uname -n | cut -d '.' -f 1`
42799 if test x${hostname} = x ; then
42800 hostname="localhost"
42802 ping -c 1 $hostname 2>/dev/null 1>/dev/null
42803 if test ! $? = 0; then
42804 hostname="localhost"
42807 case "$DISTNAME" in
42810 PSCMD="ps -e -o pid,comm"
42811 PFILES="${PFILES} \
42812 platforms/aix/Makefile"
42813 TAPEDRIVE="/dev/rmt0.1"
42817 PTHREAD_LIB="-lpthread -lexc"
42818 if test "${CC}" = "gcc" ; then
42825 TAPEDRIVE="/dev/nrmt0"
42828 DISTVER=`uname -a |awk '{print $3}'`
42829 TAPEDRIVE="/dev/nrmt0"
42830 PTHREAD_LIB="-pthread"
42831 CFLAGS="${CFLAGS} -pthread"
42832 PSCMD="ps -ax -o pid,command"
42835 PFILES="${PFILES} \
42836 platforms/bsdi/Makefile \
42837 platforms/bsdi/bacula-fd \
42838 platforms/bsdi/bacula-sd \
42839 platforms/bsdi/bacula-dir"
42840 largefile_support="yes"
42843 DISTVER=`uname -a |awk '{print $3}'`
42844 TAPEDRIVE="/dev/nrst0"
42846 WCFLAGS="-mwindows"
42847 WLDFLAGS="-mwindows"
42851 TAPEDRIVE="/dev/nst0"
42852 PSCMD="ps -e -o pid,command"
42854 PFILES="${PFILES} \
42855 platforms/darwin/Makefile"
42859 TAPEDRIVE="/dev/nst0"
42860 PSCMD="ps -e -o pid,command"
42862 PFILES="${PFILES} \
42863 platforms/osx/Makefile"
42866 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42869 DISTVER=`cat /etc/debian_version`
42870 if test -f /etc/lsb-release ; then
42872 if test "x$DISTRIB_ID" != "x" ; then
42873 DISTNAME=$DISTRIB_ID
42875 if test "x$DISTRIB_RELEASE" != "x" ; then
42876 DISTVER=$DISTRIB_RELEASE
42879 if test "$DISTNAME" = "Ubuntu" ; then
42882 TAPEDRIVE="/dev/nst0"
42883 PSCMD="ps -e -o pid,command"
42884 if test "$DISTNAME" = "ubuntu" ; then
42885 PFILES="${PFILES} \
42886 platforms/ubuntu/Makefile \
42887 platforms/ubuntu/bacula-fd \
42888 platforms/ubuntu/bacula-sd \
42889 platforms/ubuntu/bacula-dir"
42891 PFILES="${PFILES} \
42892 platforms/debian/Makefile \
42893 platforms/debian/bacula-fd \
42894 platforms/debian/bacula-sd \
42895 platforms/debian/bacula-dir"
42899 DISTVER=`uname -a |awk '{print $3}'`
42900 VER=`echo $DISTVER | cut -c 1`
42901 if test x$VER = x4 ; then
42902 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42903 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42907 TAPEDRIVE="/dev/nrsa0"
42908 PSCMD="ps -ax -o pid,command"
42909 PFILES="${PFILES} \
42910 platforms/freebsd/Makefile \
42911 platforms/freebsd/bacula-fd \
42912 platforms/freebsd/bacula-sd \
42913 platforms/freebsd/bacula-dir"
42914 largefile_support="yes"
42917 PSCMD="UNIX95=1; ps -e -o pid,comm"
42918 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42920 TAPEDRIVE="/dev/rmt/0hnb"
42921 PTHREAD_LIB="-lpthread"
42922 cat >>confdefs.h <<\_ACEOF
42923 #define _INCLUDE_LONGLONG 1
42929 TAPEDRIVE="/dev/rmt/0cbn"
42930 PSCMD="ps -e -o pid,comm"
42931 PFILES="${PFILES} \
42932 platforms/irix/Makefile \
42933 platforms/irix/bacula-fd \
42934 platforms/irix/bacula-sd \
42935 platforms/irix/bacula-dir"
42938 DISTVER=`uname -a |awk '{print $3}'`
42941 TAPEDRIVE="/dev/nrst0"
42942 PSCMD="ps -ax -o pid,command"
42943 PTHREAD_LIB="-pthread"
42944 CFLAGS="${CFLAGS} -pthread"
42947 DISTVER=`uname -a |awk '{print $3}'`
42950 TAPEDRIVE="/dev/nrst0"
42951 PSCMD="ps -ax -o pid,command"
42952 PTHREAD_LIB="-pthread"
42953 CFLAGS="${CFLAGS} -pthread"
42954 PFILES="${PFILES} \
42955 platforms/openbsd/Makefile \
42956 platforms/openbsd/bacula-fd \
42957 platforms/openbsd/bacula-sd \
42958 platforms/openbsd/bacula-dir"
42961 if test -f /etc/whitebox-release ; then
42962 f=/etc/whitebox-release
42964 f=/etc/redhat-release
42966 if test `cat $f | grep release |\
42967 cut -f 3 -d ' '`x = "Enterprise"x ; then
42968 DISTVER="Enterprise "`cat $f | grep release |\
42971 DISTVER=`cat /etc/redhat-release | grep release |\
42974 TAPEDRIVE="/dev/nst0"
42975 PSCMD="ps -e -o pid,command"
42976 PFILES="${PFILES} \
42977 platforms/redhat/Makefile \
42978 platforms/redhat/bacula-fd \
42979 platforms/redhat/bacula-sd \
42980 platforms/redhat/bacula-dir
42984 DISTVER=`cat /etc/mandrake-release | grep release |\
42986 TAPEDRIVE="/dev/nst0"
42987 PSCMD="ps -e -o pid,command"
42988 PFILES="${PFILES} \
42989 platforms/mandrake/Makefile \
42990 platforms/mandrake/bacula-fd \
42991 platforms/mandrake/bacula-sd \
42992 platforms/mandrake/bacula-dir \
42993 platforms/mandrake/bacula.spec \
42997 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42998 TAPEDRIVE="/dev/nst0"
42999 PSCMD="ps -e -o pid,command"
43000 PFILES="${PFILES} \
43001 platforms/gentoo/Makefile \
43002 platforms/gentoo/bacula-init \
43003 platforms/gentoo/bacula-fd \
43004 platforms/gentoo/bacula-sd \
43005 platforms/gentoo/bacula-dir"
43008 DISTVER=`cat /etc/slackware-version`
43009 TAPEDRIVE="/dev/nst0"
43010 PSCMD="ps -e -o pid,command"
43011 PFILES="${PFILES} \
43012 platforms/slackware/Makefile \
43013 platforms/slackware/rc.bacula-fd \
43014 platforms/slackware/rc.bacula-sd \
43015 platforms/slackware/rc.bacula-dir\
43016 platforms/slackware/functions.bacula"
43020 TAPEDRIVE="/dev/rmt/0cbn"
43021 PSCMD="ps -e -o pid,comm"
43022 PFILES="${PFILES} \
43023 platforms/solaris/Makefile \
43024 platforms/solaris/bacula-fd \
43025 platforms/solaris/bacula-sd \
43026 platforms/solaris/bacula-dir"
43027 if test x$DISTVER = x5.6 ; then
43028 cat >>confdefs.h <<\_ACEOF
43029 #define HAVE_OLD_SOCKOPT 1
43033 LIBS="$LIBS -lresolv"
43036 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
43038 TAPEDRIVE="/dev/nst0"
43039 PSCMD="ps -e -o pid,command"
43040 PFILES="${PFILES} \
43041 platforms/suse/Makefile \
43042 platforms/suse/bacula-fd \
43043 platforms/suse/bacula-sd \
43044 platforms/suse/bacula-dir \
43045 platforms/suse/bacula \
43046 platforms/suse/bacula.spec"
43051 TAPEDRIVE="/dev/nst0"
43052 PSCMD="ps -e -o pid,command"
43053 PFILES="${PFILES} \
43054 platforms/suse/Makefile \
43055 platforms/suse/bacula-fd \
43056 platforms/suse/bacula-sd \
43057 platforms/suse/bacula-dir"
43061 TAPEDRIVE="/dev/nst0"
43064 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
43070 LIBS="$PTHREAD_LIB $LIBS"
43072 cat >>confdefs.h <<_ACEOF
43076 cat >>confdefs.h <<_ACEOF
43087 MCOMMON=./autoconf/Make.common
43090 if test "x${subsysdir}" = "x${sbindir}" ; then
43093 echo "You have set both --sbindir and --with-subsys-dir"
43094 echo " equal to: ${subsysdir} "
43095 echo "This is not permitted. Please reconfigure."
43097 echo "Aborting configuration ..."
43103 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 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_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_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/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_sqlite_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 updatedb/update_sqlite_tables_10_to_11 $PFILES"
43105 ac_config_commands="$ac_config_commands default"
43107 cat >confcache <<\_ACEOF
43108 # This file is a shell script that caches the results of configure
43109 # tests run on this system so they can be shared between configure
43110 # scripts and configure runs, see configure's option --config-cache.
43111 # It is not useful on other systems. If it contains results you don't
43112 # want to keep, you may remove or edit it.
43114 # config.status only pays attention to the cache file if you give it
43115 # the --recheck option to rerun configure.
43117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43119 # following values.
43123 # The following way of writing the cache mishandles newlines in values,
43124 # but we know of no workaround that is simple, portable, and efficient.
43125 # So, we kill variables containing newlines.
43126 # Ultrix sh set writes to stderr and can't be redirected directly,
43127 # and sets the high bit in the cache file unless we assign to the vars.
43129 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43130 eval ac_val=\$$ac_var
43134 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43135 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43138 _ | IFS | as_nl) ;; #(
43139 *) $as_unset $ac_var ;;
43145 case $as_nl`(ac_space=' '; set) 2>&1` in #(
43146 *${as_nl}ac_space=\ *)
43147 # `set' does not quote correctly, so add quotes (double-quote
43148 # substitution turns \\\\ into \\, and sed turns \\ into \).
43151 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43154 # `set' quotes correctly as required by POSIX, so do not add quotes.
43155 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43164 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43166 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43168 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43169 if test -w "$cache_file"; then
43170 test "x$cache_file" != "x/dev/null" &&
43171 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43172 echo "$as_me: updating cache $cache_file" >&6;}
43173 cat confcache >$cache_file
43175 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43176 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43181 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43182 # Let make expand exec_prefix.
43183 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43185 DEFS=-DHAVE_CONFIG_H
43189 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43190 # 1. Remove the extension, and $U if already installed.
43191 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43192 ac_i=`echo "$ac_i" | sed "$ac_script"`
43193 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
43194 # will be set to the directory where LIBOBJS objects are built.
43195 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43196 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43198 LIBOBJS=$ac_libobjs
43200 LTLIBOBJS=$ac_ltlibobjs
43204 : ${CONFIG_STATUS=./config.status}
43205 ac_clean_files_save=$ac_clean_files
43206 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43207 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43208 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43209 cat >$CONFIG_STATUS <<_ACEOF
43211 # Generated by $as_me.
43212 # Run this file to recreate the current configuration.
43213 # Compiler output produced by configure, useful for debugging
43214 # configure, is in config.log if it exists.
43217 ac_cs_recheck=false
43219 SHELL=\${CONFIG_SHELL-$SHELL}
43222 cat >>$CONFIG_STATUS <<\_ACEOF
43223 ## --------------------- ##
43224 ## M4sh Initialization. ##
43225 ## --------------------- ##
43227 # Be more Bourne compatible
43228 DUALCASE=1; export DUALCASE # for MKS sh
43229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43232 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43233 # is contrary to our usage. Disable this feature.
43234 alias -g '${1+"$@"}'='"$@"'
43235 setopt NO_GLOB_SUBST
43237 case `(set -o) 2>/dev/null` in
43238 *posix*) set -o posix ;;
43247 # Avoid depending upon Character Ranges.
43248 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43249 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43250 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43251 as_cr_digits='0123456789'
43252 as_cr_alnum=$as_cr_Letters$as_cr_digits
43254 # The user is always right.
43255 if test "${PATH_SEPARATOR+set}" != set; then
43256 echo "#! /bin/sh" >conf$$.sh
43257 echo "exit 0" >>conf$$.sh
43259 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43267 # Support unset when possible.
43268 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43276 # We need space, tab and new line, in precisely that order. Quoting is
43277 # there to prevent editors from complaining about space-tab.
43278 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43279 # splitting by setting IFS to empty value.)
43284 # Find who we are. Look in the path if we contain no directory separator.
43286 *[\\/]* ) as_myself=$0 ;;
43287 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43288 for as_dir in $PATH
43291 test -z "$as_dir" && as_dir=.
43292 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43298 # We did not find ourselves, most probably we were run as `sh COMMAND'
43299 # in which case we are not to be found in the path.
43300 if test "x$as_myself" = x; then
43303 if test ! -f "$as_myself"; then
43304 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43305 { (exit 1); exit 1; }
43308 # Work around bugs in pre-3.0 UWIN ksh.
43309 for as_var in ENV MAIL MAILPATH
43310 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43318 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43319 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43320 LC_TELEPHONE LC_TIME
43322 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43323 eval $as_var=C; export $as_var
43325 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43329 # Required to use basename.
43330 if expr a : '\(a\)' >/dev/null 2>&1 &&
43331 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43337 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43338 as_basename=basename
43344 # Name of the executable.
43345 as_me=`$as_basename -- "$0" ||
43346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43347 X"$0" : 'X\(//\)$' \| \
43348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43350 sed '/^.*\/\([^/][^/]*\)\/*$/{
43369 as_lineno_1=$LINENO
43370 as_lineno_2=$LINENO
43371 test "x$as_lineno_1" != "x$as_lineno_2" &&
43372 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43374 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43375 # uniformly replaced by the line number. The first 'sed' inserts a
43376 # line-number line after each line using $LINENO; the second 'sed'
43377 # does the real work. The second script uses 'N' to pair each
43378 # line-number line with the line containing $LINENO, and appends
43379 # trailing '-' during substitution so that $LINENO is not a special
43380 # case at line end.
43381 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43382 # scripts with optimization help from Paolo Bonzini. Blame Lee
43383 # E. McMahon (1931-1989) for sed's syntax. :-)
43395 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43398 ' >$as_me.lineno &&
43399 chmod +x "$as_me.lineno" ||
43400 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43401 { (exit 1); exit 1; }; }
43403 # Don't try to exec as it changes $[0], causing all sort of problems
43404 # (the dirname of $[0] is not the place where we might find the
43405 # original and so on. Autoconf is especially sensitive to this).
43406 . "./$as_me.lineno"
43407 # Exit status is that of the last command.
43412 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43418 ECHO_C= ECHO_N= ECHO_T=
43419 case `echo -n x` in
43421 case `echo 'x\c'` in
43422 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
43429 if expr a : '\(a\)' >/dev/null 2>&1 &&
43430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43436 rm -f conf$$ conf$$.exe conf$$.file
43437 if test -d conf$$.dir; then
43438 rm -f conf$$.dir/conf$$.file
43444 if ln -s conf$$.file conf$$ 2>/dev/null; then
43446 # ... but there are two gotchas:
43447 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43448 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43449 # In both cases, we have to default to `cp -p'.
43450 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43452 elif ln conf$$.file conf$$ 2>/dev/null; then
43457 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43458 rmdir conf$$.dir 2>/dev/null
43460 if mkdir -p . 2>/dev/null; then
43463 test -d ./-p && rmdir ./-p
43467 if test -x / >/dev/null 2>&1; then
43468 as_test_x='test -x'
43470 if ls -dL / >/dev/null 2>&1; then
43477 if test -d "$1"; then
43483 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43484 ???[sx]*):;;*)false;;esac;fi
43488 as_executable_p=$as_test_x
43490 # Sed expression to map a string onto a valid CPP name.
43491 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43493 # Sed expression to map a string onto a valid variable name.
43494 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43499 # Save the log message, to keep $[0] and so on meaningful, and to
43500 # report actual input values of CONFIG_FILES etc. instead of their
43501 # values after options handling.
43503 This file was extended by $as_me, which was
43504 generated by GNU Autoconf 2.61. Invocation command line was
43506 CONFIG_FILES = $CONFIG_FILES
43507 CONFIG_HEADERS = $CONFIG_HEADERS
43508 CONFIG_LINKS = $CONFIG_LINKS
43509 CONFIG_COMMANDS = $CONFIG_COMMANDS
43512 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43517 cat >>$CONFIG_STATUS <<_ACEOF
43518 # Files that config.status was made for.
43519 config_files="$ac_config_files"
43520 config_headers="$ac_config_headers"
43521 config_commands="$ac_config_commands"
43525 cat >>$CONFIG_STATUS <<\_ACEOF
43527 \`$as_me' instantiates files from templates according to the
43528 current configuration.
43530 Usage: $0 [OPTIONS] [FILE]...
43532 -h, --help print this help, then exit
43533 -V, --version print version number and configuration settings, then exit
43534 -q, --quiet do not print progress messages
43535 -d, --debug don't remove temporary files
43536 --recheck update $as_me by reconfiguring in the same conditions
43537 --file=FILE[:TEMPLATE]
43538 instantiate the configuration file FILE
43539 --header=FILE[:TEMPLATE]
43540 instantiate the configuration header FILE
43542 Configuration files:
43545 Configuration headers:
43548 Configuration commands:
43551 Report bugs to <bug-autoconf@gnu.org>."
43554 cat >>$CONFIG_STATUS <<_ACEOF
43557 configured by $0, generated by GNU Autoconf 2.61,
43558 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43560 Copyright (C) 2006 Free Software Foundation, Inc.
43561 This config.status script is free software; the Free Software Foundation
43562 gives unlimited permission to copy, distribute and modify it."
43569 cat >>$CONFIG_STATUS <<\_ACEOF
43570 # If no file are specified by the user, then we need to provide default
43571 # value. By we need to know if files were specified by the user.
43577 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43578 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43589 # Handling of the options.
43590 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43592 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43593 echo "$ac_cs_version"; exit ;;
43594 --debug | --debu | --deb | --de | --d | -d )
43596 --file | --fil | --fi | --f )
43598 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43599 ac_need_defaults=false;;
43600 --header | --heade | --head | --hea )
43602 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43603 ac_need_defaults=false;;
43605 # Conflict between --help and --header
43606 { echo "$as_me: error: ambiguous option: $1
43607 Try \`$0 --help' for more information." >&2
43608 { (exit 1); exit 1; }; };;
43609 --help | --hel | -h )
43610 echo "$ac_cs_usage"; exit ;;
43611 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43612 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43615 # This is an error.
43616 -*) { echo "$as_me: error: unrecognized option: $1
43617 Try \`$0 --help' for more information." >&2
43618 { (exit 1); exit 1; }; } ;;
43620 *) ac_config_targets="$ac_config_targets $1"
43621 ac_need_defaults=false ;;
43627 ac_configure_extra_args=
43629 if $ac_cs_silent; then
43631 ac_configure_extra_args="$ac_configure_extra_args --silent"
43635 cat >>$CONFIG_STATUS <<_ACEOF
43636 if \$ac_cs_recheck; then
43637 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43638 CONFIG_SHELL=$SHELL
43639 export CONFIG_SHELL
43640 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43644 cat >>$CONFIG_STATUS <<\_ACEOF
43648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43649 ## Running $as_me. ##
43655 cat >>$CONFIG_STATUS <<_ACEOF
43661 # The HP-UX ksh and POSIX shell print the target directory to stdout
43662 # if CDPATH is set.
43663 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43665 sed_quote_subst='$sed_quote_subst'
43666 double_quote_subst='$double_quote_subst'
43667 delay_variable_subst='$delay_variable_subst'
43668 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43669 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43670 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43671 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43672 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43673 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43674 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43675 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43676 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43677 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43678 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43679 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43680 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43681 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43682 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43683 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43684 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43685 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43686 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43687 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43688 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43689 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43690 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43691 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43692 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43693 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43694 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43695 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43696 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43697 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43698 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43699 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43700 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43701 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43702 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43703 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43704 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43705 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43706 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43707 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43708 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43709 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43710 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43711 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43712 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"`'
43713 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"`'
43714 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43715 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43716 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43717 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43718 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43719 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43720 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43721 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43722 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43723 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43724 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43725 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43726 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43727 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43728 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43729 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43730 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43731 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43732 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43733 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43734 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43735 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43736 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43737 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43738 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43739 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43740 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43741 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43742 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43743 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43744 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43745 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43746 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43747 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43748 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43749 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43750 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43751 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43752 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43753 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43754 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43755 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43756 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43757 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43758 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43759 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43760 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43761 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43762 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43763 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43764 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43765 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43766 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43767 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43768 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43769 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43770 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43771 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43772 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43773 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43774 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43775 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43776 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43777 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43778 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43779 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43780 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43781 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43782 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43783 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43784 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43785 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43786 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43787 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43788 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43789 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43790 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43791 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43792 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43793 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43794 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43795 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43796 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43797 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43798 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43799 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43800 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43801 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43802 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43803 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43804 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43805 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43806 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43807 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43808 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43809 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43810 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43811 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43812 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43813 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43814 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43815 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43816 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43817 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43818 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43819 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43820 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43821 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43822 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43823 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43824 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43825 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43826 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43827 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43828 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43829 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43830 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43831 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43832 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43833 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43834 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43835 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43836 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43837 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43838 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43841 LTCFLAGS='$LTCFLAGS'
43842 compiler='$compiler_DEFAULT'
43844 # Quote evaled strings.
43856 deplibs_check_method \
43865 lt_cv_sys_global_symbol_pipe \
43866 lt_cv_sys_global_symbol_to_cdecl \
43867 lt_cv_sys_global_symbol_to_c_name_address \
43868 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43871 lt_prog_compiler_no_builtin_flag \
43872 lt_prog_compiler_wl \
43873 lt_prog_compiler_pic \
43874 lt_prog_compiler_static \
43875 lt_cv_prog_compiler_c_o \
43883 export_dynamic_flag_spec \
43884 whole_archive_flag_spec \
43885 compiler_needs_object \
43887 allow_undefined_flag \
43888 no_undefined_flag \
43889 hardcode_libdir_flag_spec \
43890 hardcode_libdir_flag_spec_ld \
43891 hardcode_libdir_separator \
43896 variables_saved_for_relink \
43898 library_names_spec \
43903 compiler_lib_search_dirs \
43908 compiler_lib_search_path \
43911 lt_prog_compiler_no_builtin_flag_CXX \
43912 lt_prog_compiler_wl_CXX \
43913 lt_prog_compiler_pic_CXX \
43914 lt_prog_compiler_static_CXX \
43915 lt_cv_prog_compiler_c_o_CXX \
43916 export_dynamic_flag_spec_CXX \
43917 whole_archive_flag_spec_CXX \
43918 compiler_needs_object_CXX \
43920 allow_undefined_flag_CXX \
43921 no_undefined_flag_CXX \
43922 hardcode_libdir_flag_spec_CXX \
43923 hardcode_libdir_flag_spec_ld_CXX \
43924 hardcode_libdir_separator_CXX \
43925 fix_srcfile_path_CXX \
43926 exclude_expsyms_CXX \
43927 include_expsyms_CXX \
43928 file_list_spec_CXX \
43929 compiler_lib_search_dirs_CXX \
43930 predep_objects_CXX \
43931 postdep_objects_CXX \
43934 compiler_lib_search_path_CXX; do
43935 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43936 *[\\\\\\\`\\"\\\$]*)
43937 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43940 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43945 # Double-quote double-evaled strings.
43946 for var in reload_cmds \
43947 old_postinstall_cmds \
43948 old_postuninstall_cmds \
43950 extract_expsyms_cmds \
43951 old_archive_from_new_cmds \
43952 old_archive_from_expsyms_cmds \
43954 archive_expsym_cmds \
43956 module_expsym_cmds \
43957 export_symbols_cmds \
43960 postuninstall_cmds \
43962 sys_lib_search_path_spec \
43963 sys_lib_dlsearch_path_spec \
43964 old_archive_cmds_CXX \
43965 old_archive_from_new_cmds_CXX \
43966 old_archive_from_expsyms_cmds_CXX \
43968 archive_expsym_cmds_CXX \
43970 module_expsym_cmds_CXX \
43971 export_symbols_cmds_CXX \
43972 prelink_cmds_CXX; do
43973 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43974 *[\\\\\\\`\\"\\\$]*)
43975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43983 # Fix-up fallback echo if it was mangled by the above quoting rules.
43985 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43989 ac_aux_dir='$ac_aux_dir'
43990 xsi_shell='$xsi_shell'
43991 lt_shell_append='$lt_shell_append'
43993 # See if we are running on zsh, and set the options which allow our
43994 # commands through without removal of \ escapes INIT.
43995 if test -n "\${ZSH_VERSION+set}" ; then
43996 setopt NO_GLOB_SUBST
44002 TIMESTAMP='$TIMESTAMP'
44010 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44011 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44013 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44014 # Capture the value of LINGUAS because we need it to compute CATALOGS.
44015 LINGUAS="${LINGUAS-%UNSET%}"
44020 cat >>$CONFIG_STATUS <<\_ACEOF
44022 # Handling of arguments.
44023 for ac_config_target in $ac_config_targets
44025 case $ac_config_target in
44026 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
44027 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44028 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
44029 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
44030 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44031 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
44032 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
44033 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
44034 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
44035 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
44036 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
44037 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
44038 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
44039 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
44040 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
44041 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
44042 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
44043 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
44044 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
44045 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
44046 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
44047 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
44048 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
44049 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
44050 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
44051 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
44052 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
44053 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
44054 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
44055 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
44056 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
44057 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
44058 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
44059 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
44060 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
44061 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
44062 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
44063 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
44064 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
44065 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
44066 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
44067 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
44068 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
44069 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
44070 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
44071 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
44072 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
44073 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
44074 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
44075 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
44076 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
44077 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
44078 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
44079 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
44080 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
44081 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
44082 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
44083 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
44084 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
44085 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
44086 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
44087 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
44088 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
44089 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
44090 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
44091 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
44092 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
44093 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
44094 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
44095 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
44096 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
44097 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
44098 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
44099 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
44100 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
44101 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
44102 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
44103 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
44104 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
44105 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
44106 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
44107 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
44108 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
44109 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
44110 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
44111 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
44112 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
44113 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
44114 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
44115 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
44116 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
44117 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
44118 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
44119 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
44120 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
44121 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
44122 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
44123 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
44124 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
44125 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
44126 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
44127 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
44128 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
44129 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
44130 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
44131 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
44132 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
44133 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
44134 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
44135 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
44136 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
44137 "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
44138 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
44139 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
44140 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
44141 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
44142 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
44143 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
44145 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44146 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44147 { (exit 1); exit 1; }; };;
44152 # If the user did not use the arguments to specify the items to instantiate,
44153 # then the envvar interface is used. Set only those that are not.
44154 # We use the long form for the default assignment because of an extremely
44155 # bizarre bug on SunOS 4.1.3.
44156 if $ac_need_defaults; then
44157 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44158 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44159 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44162 # Have a temporary directory for convenience. Make it in the build tree
44163 # simply because there is no reason against having it here, and in addition,
44164 # creating and moving files from /tmp can sometimes cause problems.
44165 # Hook for its removal unless debugging.
44166 # Note that there is a small window in which the directory will not be cleaned:
44167 # after its creation but before its name has been assigned to `$tmp'.
44171 trap 'exit_status=$?
44172 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
44174 trap '{ (exit 1); exit 1; }' 1 2 13 15
44176 # Create a (secure) tmp directory for tmp files.
44179 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
44180 test -n "$tmp" && test -d "$tmp"
44183 tmp=./conf$$-$RANDOM
44184 (umask 077 && mkdir "$tmp")
44187 echo "$me: cannot create a temporary directory in ." >&2
44188 { (exit 1); exit 1; }
44192 # Set up the sed scripts for CONFIG_FILES section.
44195 # No need to generate the scripts if there are no CONFIG_FILES.
44196 # This happens for instance when ./config.status config.h
44197 if test -n "$CONFIG_FILES"; then
44201 # Create sed commands to just substitute file output variables.
44203 # Remaining file output variables are in a fragment that also has non-file
44209 for ac_last_try in false false false false false :; do
44210 cat >conf$$subs.sed <<_ACEOF
44211 SHELL!$SHELL$ac_delim
44212 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
44213 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
44214 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
44215 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
44216 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
44217 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
44218 exec_prefix!$exec_prefix$ac_delim
44219 prefix!$prefix$ac_delim
44220 program_transform_name!$program_transform_name$ac_delim
44221 bindir!$bindir$ac_delim
44222 sbindir!$sbindir$ac_delim
44223 libexecdir!$libexecdir$ac_delim
44224 datarootdir!$datarootdir$ac_delim
44225 datadir!$datadir$ac_delim
44226 sysconfdir!$sysconfdir$ac_delim
44227 sharedstatedir!$sharedstatedir$ac_delim
44228 localstatedir!$localstatedir$ac_delim
44229 includedir!$includedir$ac_delim
44230 oldincludedir!$oldincludedir$ac_delim
44231 docdir!$docdir$ac_delim
44232 infodir!$infodir$ac_delim
44233 htmldir!$htmldir$ac_delim
44234 dvidir!$dvidir$ac_delim
44235 pdfdir!$pdfdir$ac_delim
44236 psdir!$psdir$ac_delim
44237 libdir!$libdir$ac_delim
44238 localedir!$localedir$ac_delim
44239 mandir!$mandir$ac_delim
44240 DEFS!$DEFS$ac_delim
44241 ECHO_C!$ECHO_C$ac_delim
44242 ECHO_N!$ECHO_N$ac_delim
44243 ECHO_T!$ECHO_T$ac_delim
44244 LIBS!$LIBS$ac_delim
44245 build_alias!$build_alias$ac_delim
44246 host_alias!$host_alias$ac_delim
44247 target_alias!$target_alias$ac_delim
44248 BUILD_DIR!$BUILD_DIR$ac_delim
44249 TOP_DIR!$TOP_DIR$ac_delim
44250 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44251 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44252 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44253 TRUEPRG!$TRUEPRG$ac_delim
44254 FALSEPRG!$FALSEPRG$ac_delim
44255 VERSION!$VERSION$ac_delim
44256 DATE!$DATE$ac_delim
44257 LSMDATE!$LSMDATE$ac_delim
44258 BACULA!$BACULA$ac_delim
44259 post_host!$post_host$ac_delim
44261 CFLAGS!$CFLAGS$ac_delim
44262 LDFLAGS!$LDFLAGS$ac_delim
44263 CPPFLAGS!$CPPFLAGS$ac_delim
44264 ac_ct_CC!$ac_ct_CC$ac_delim
44265 EXEEXT!$EXEEXT$ac_delim
44266 OBJEXT!$OBJEXT$ac_delim
44268 CXXFLAGS!$CXXFLAGS$ac_delim
44269 ac_ct_CXX!$ac_ct_CXX$ac_delim
44271 GREP!$GREP$ac_delim
44272 EGREP!$EGREP$ac_delim
44273 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44274 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44275 INSTALL_DATA!$INSTALL_DATA$ac_delim
44277 REMOVE!$REMOVE$ac_delim
44280 ECHO!$ECHO$ac_delim
44284 OPENSSL!$OPENSSL$ac_delim
44287 MKISOFS!$MKISOFS$ac_delim
44288 PYTHON!$PYTHON$ac_delim
44289 GROWISOFS!$GROWISOFS$ac_delim
44290 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
44291 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
44292 PKGCONFIG!$PKGCONFIG$ac_delim
44293 QMAKE!$QMAKE$ac_delim
44294 QMAKEQT4!$QMAKEQT4$ac_delim
44295 GMAKE!$GMAKE$ac_delim
44296 WXCONFIG!$WXCONFIG$ac_delim
44297 WXFLAGS!$WXFLAGS$ac_delim
44298 CDRECORD!$CDRECORD$ac_delim
44299 PIDOF!$PIDOF$ac_delim
44301 ARFLAGS!$ARFLAGS$ac_delim
44302 MAKE_SHELL!$MAKE_SHELL$ac_delim
44303 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44304 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44307 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44309 elif $ac_last_try; then
44310 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44311 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44312 { (exit 1); exit 1; }; }
44314 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44318 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44319 if test -n "$ac_eof"; then
44320 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44321 ac_eof=`expr $ac_eof + 1`
44324 cat >>$CONFIG_STATUS <<_ACEOF
44325 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44326 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44327 /^[ ]*@MCOMMON@[ ]*$/{
44333 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44334 s/^/s,@/; s/!/@,|#_!!_#|/
44337 s/'"$ac_delim"'$/,g/; t
44339 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44340 ' >>$CONFIG_STATUS <conf$$subs.sed
44341 rm -f conf$$subs.sed
44342 cat >>$CONFIG_STATUS <<_ACEOF
44348 for ac_last_try in false false false false false :; do
44349 cat >conf$$subs.sed <<_ACEOF
44350 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44351 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44352 LIBTOOL!$LIBTOOL$ac_delim
44353 build!$build$ac_delim
44354 build_cpu!$build_cpu$ac_delim
44355 build_vendor!$build_vendor$ac_delim
44356 build_os!$build_os$ac_delim
44357 host!$host$ac_delim
44358 host_cpu!$host_cpu$ac_delim
44359 host_vendor!$host_vendor$ac_delim
44360 host_os!$host_os$ac_delim
44361 FGREP!$FGREP$ac_delim
44363 DUMPBIN!$DUMPBIN$ac_delim
44364 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44366 LN_S!$LN_S$ac_delim
44367 OBJDUMP!$OBJDUMP$ac_delim
44368 STRIP!$STRIP$ac_delim
44369 RANLIB!$RANLIB$ac_delim
44370 lt_ECHO!$lt_ECHO$ac_delim
44371 DSYMUTIL!$DSYMUTIL$ac_delim
44372 NMEDIT!$NMEDIT$ac_delim
44373 LIPO!$LIPO$ac_delim
44374 OTOOL!$OTOOL$ac_delim
44375 OTOOL64!$OTOOL64$ac_delim
44376 CXXCPP!$CXXCPP$ac_delim
44377 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44378 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44379 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44380 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44381 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44382 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44383 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44384 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44385 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44386 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44387 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44388 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44389 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44390 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44391 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44392 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44393 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44394 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44395 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44396 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44397 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44398 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44399 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44400 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44401 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44402 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44403 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44404 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44405 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44406 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44407 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44408 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44409 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44410 SET_MAKE!$SET_MAKE$ac_delim
44411 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44412 USE_NLS!$USE_NLS$ac_delim
44413 MSGFMT!$MSGFMT$ac_delim
44414 GMSGFMT!$GMSGFMT$ac_delim
44415 XGETTEXT!$XGETTEXT$ac_delim
44416 MSGMERGE!$MSGMERGE$ac_delim
44417 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44418 LIBICONV!$LIBICONV$ac_delim
44419 LTLIBICONV!$LTLIBICONV$ac_delim
44420 INTLLIBS!$INTLLIBS$ac_delim
44421 LIBINTL!$LIBINTL$ac_delim
44422 LTLIBINTL!$LTLIBINTL$ac_delim
44423 POSUB!$POSUB$ac_delim
44424 GLIBC2!$GLIBC2$ac_delim
44425 ALLOCA!$ALLOCA$ac_delim
44426 GLIBC21!$GLIBC21$ac_delim
44427 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44428 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44429 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44430 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44431 INTLBISON!$INTLBISON$ac_delim
44432 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44433 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44434 CATOBJEXT!$CATOBJEXT$ac_delim
44435 DATADIRNAME!$DATADIRNAME$ac_delim
44436 INSTOBJEXT!$INSTOBJEXT$ac_delim
44437 GENCAT!$GENCAT$ac_delim
44438 INTLOBJS!$INTLOBJS$ac_delim
44439 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44440 BAT_DIR!$BAT_DIR$ac_delim
44441 QWT_INC!$QWT_INC$ac_delim
44442 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44443 QWT_LIB!$QWT_LIB$ac_delim
44445 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44446 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44449 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44451 elif $ac_last_try; then
44452 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44453 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44454 { (exit 1); exit 1; }; }
44456 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44460 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44461 if test -n "$ac_eof"; then
44462 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44463 ac_eof=`expr $ac_eof + 1`
44466 cat >>$CONFIG_STATUS <<_ACEOF
44467 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44468 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44471 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44472 s/^/s,@/; s/!/@,|#_!!_#|/
44475 s/'"$ac_delim"'$/,g/; t
44477 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44478 ' >>$CONFIG_STATUS <conf$$subs.sed
44479 rm -f conf$$subs.sed
44480 cat >>$CONFIG_STATUS <<_ACEOF
44486 for ac_last_try in false false false false false :; do
44487 cat >conf$$subs.sed <<_ACEOF
44488 WX_DIR!$WX_DIR$ac_delim
44489 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44490 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44491 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44492 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44493 STATIC_FD!$STATIC_FD$ac_delim
44494 STATIC_SD!$STATIC_SD$ac_delim
44495 STATIC_DIR!$STATIC_DIR$ac_delim
44496 STATIC_CONS!$STATIC_CONS$ac_delim
44497 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44498 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44499 ALL_DIRS!$ALL_DIRS$ac_delim
44500 DIRD_DIR!$DIRD_DIR$ac_delim
44501 DIR_TOOLS!$DIR_TOOLS$ac_delim
44502 STORED_DIR!$STORED_DIR$ac_delim
44503 CONS_INC!$CONS_INC$ac_delim
44504 CONS_OBJ!$CONS_OBJ$ac_delim
44505 CONS_SRC!$CONS_SRC$ac_delim
44506 CONS_LIBS!$CONS_LIBS$ac_delim
44507 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44508 READLINE_SRC!$READLINE_SRC$ac_delim
44509 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44510 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44511 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44512 OPENSSL_INC!$OPENSSL_INC$ac_delim
44513 working_dir!$working_dir$ac_delim
44514 archivedir!$archivedir$ac_delim
44515 basename!$basename$ac_delim
44516 hostname!$hostname$ac_delim
44517 scriptdir!$scriptdir$ac_delim
44518 bsrdir!$bsrdir$ac_delim
44519 logdir!$logdir$ac_delim
44520 plugindir!$plugindir$ac_delim
44521 dump_email!$dump_email$ac_delim
44522 job_email!$job_email$ac_delim
44523 smtp_host!$smtp_host$ac_delim
44524 piddir!$piddir$ac_delim
44525 subsysdir!$subsysdir$ac_delim
44526 baseport!$baseport$ac_delim
44527 dir_port!$dir_port$ac_delim
44528 fd_port!$fd_port$ac_delim
44529 sd_port!$sd_port$ac_delim
44530 dir_password!$dir_password$ac_delim
44531 fd_password!$fd_password$ac_delim
44532 sd_password!$sd_password$ac_delim
44533 mon_dir_password!$mon_dir_password$ac_delim
44534 mon_fd_password!$mon_fd_password$ac_delim
44535 mon_sd_password!$mon_sd_password$ac_delim
44536 db_name!$db_name$ac_delim
44537 db_user!$db_user$ac_delim
44538 db_password!$db_password$ac_delim
44539 db_port!$db_port$ac_delim
44540 dir_user!$dir_user$ac_delim
44541 dir_group!$dir_group$ac_delim
44542 sd_user!$sd_user$ac_delim
44543 sd_group!$sd_group$ac_delim
44544 fd_user!$fd_user$ac_delim
44545 fd_group!$fd_group$ac_delim
44546 SBINPERM!$SBINPERM$ac_delim
44547 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44548 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44549 SQL_BINDIR!$SQL_BINDIR$ac_delim
44550 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44551 uncomment_dbi!$uncomment_dbi$ac_delim
44552 DB_PROG!$DB_PROG$ac_delim
44553 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44554 cats!$cats$ac_delim
44555 DB_TYPE!$DB_TYPE$ac_delim
44556 GETCONF!$GETCONF$ac_delim
44557 XMKMF!$XMKMF$ac_delim
44558 X_CFLAGS!$X_CFLAGS$ac_delim
44559 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44560 X_LIBS!$X_LIBS$ac_delim
44561 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44562 LIBOBJS!$LIBOBJS$ac_delim
44563 CAP_LIBS!$CAP_LIBS$ac_delim
44564 FDLIBS!$FDLIBS$ac_delim
44565 DEBUG!$DEBUG$ac_delim
44566 DINCLUDE!$DINCLUDE$ac_delim
44567 DLIB!$DLIB$ac_delim
44568 DB_LIBS!$DB_LIBS$ac_delim
44569 WCFLAGS!$WCFLAGS$ac_delim
44570 WLDFLAGS!$WLDFLAGS$ac_delim
44571 WRAPLIBS!$WRAPLIBS$ac_delim
44572 OBJLIST!$OBJLIST$ac_delim
44573 TAPEDRIVE!$TAPEDRIVE$ac_delim
44574 PSCMD!$PSCMD$ac_delim
44575 WIN32!$WIN32$ac_delim
44576 MACOSX!$MACOSX$ac_delim
44577 DISTNAME!$DISTNAME$ac_delim
44578 DISTVER!$DISTVER$ac_delim
44579 LTLIBOBJS!$LTLIBOBJS$ac_delim
44582 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
44584 elif $ac_last_try; then
44585 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44586 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44587 { (exit 1); exit 1; }; }
44589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44593 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44594 if test -n "$ac_eof"; then
44595 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44596 ac_eof=`expr $ac_eof + 1`
44599 cat >>$CONFIG_STATUS <<_ACEOF
44600 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44601 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
44604 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44605 s/^/s,@/; s/!/@,|#_!!_#|/
44608 s/'"$ac_delim"'$/,g/; t
44610 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44611 ' >>$CONFIG_STATUS <conf$$subs.sed
44612 rm -f conf$$subs.sed
44613 cat >>$CONFIG_STATUS <<_ACEOF
44620 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44621 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44622 # trailing colons and then remove the whole line if VPATH becomes empty
44623 # (actually we leave an empty line to preserve line numbers).
44624 if test "x$srcdir" = x.; then
44625 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44626 s/:*\$(srcdir):*/:/
44627 s/:*\${srcdir}:*/:/
44629 s/^\([^=]*=[ ]*\):*/\1/
44635 cat >>$CONFIG_STATUS <<\_ACEOF
44636 fi # test -n "$CONFIG_FILES"
44639 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
44642 :[FHLC]) ac_mode=$ac_tag; continue;;
44644 case $ac_mode$ac_tag in
44646 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44647 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44648 { (exit 1); exit 1; }; };;
44649 :[FH]-) ac_tag=-:-;;
44650 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44667 -) ac_f="$tmp/stdin";;
44668 *) # Look for the file first in the build tree, then in the source tree
44669 # (if the path is not absolute). The absolute path cannot be DOS-style,
44670 # because $ac_f cannot contain `:'.
44674 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44676 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44677 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44678 { (exit 1); exit 1; }; };;
44680 ac_file_inputs="$ac_file_inputs $ac_f"
44683 # Let's still pretend it is `configure' which instantiates (i.e., don't
44684 # use $as_me), people would be surprised to read:
44685 # /* config.h. Generated by config.status. */
44686 configure_input="Generated from "`IFS=:
44687 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44688 if test x"$ac_file" != x-; then
44689 configure_input="$ac_file. $configure_input"
44690 { echo "$as_me:$LINENO: creating $ac_file" >&5
44691 echo "$as_me: creating $ac_file" >&6;}
44695 *:-:* | *:-) cat >"$tmp/stdin";;
44700 ac_dir=`$as_dirname -- "$ac_file" ||
44701 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44702 X"$ac_file" : 'X\(//\)[^/]' \| \
44703 X"$ac_file" : 'X\(//\)$' \| \
44704 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44706 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44710 /^X\(\/\/\)[^/].*/{
44725 -*) as_dir=./$as_dir;;
44727 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44731 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44732 *) as_qdir=$as_dir;;
44734 as_dirs="'$as_qdir' $as_dirs"
44735 as_dir=`$as_dirname -- "$as_dir" ||
44736 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44737 X"$as_dir" : 'X\(//\)[^/]' \| \
44738 X"$as_dir" : 'X\(//\)$' \| \
44739 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44741 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44745 /^X\(\/\/\)[^/].*/{
44758 test -d "$as_dir" && break
44760 test -z "$as_dirs" || eval "mkdir $as_dirs"
44761 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44762 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44763 { (exit 1); exit 1; }; }; }
44767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44769 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44770 # A ".." for each directory in $ac_dir_suffix.
44771 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44772 case $ac_top_builddir_sub in
44773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44777 ac_abs_top_builddir=$ac_pwd
44778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44779 # for backward compatibility:
44780 ac_top_builddir=$ac_top_build_prefix
44783 .) # We are building in place.
44785 ac_top_srcdir=$ac_top_builddir_sub
44786 ac_abs_top_srcdir=$ac_pwd ;;
44787 [\\/]* | ?:[\\/]* ) # Absolute name.
44788 ac_srcdir=$srcdir$ac_dir_suffix;
44789 ac_top_srcdir=$srcdir
44790 ac_abs_top_srcdir=$srcdir ;;
44791 *) # Relative name.
44792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44793 ac_top_srcdir=$ac_top_build_prefix$srcdir
44794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44806 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44807 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44811 cat >>$CONFIG_STATUS <<\_ACEOF
44812 # If the template does not know about datarootdir, expand it.
44813 # FIXME: This hack should be removed a few years after 2.60.
44814 ac_datarootdir_hack=; ac_datarootdir_seen=
44816 case `sed -n '/datarootdir/ {
44825 ' $ac_file_inputs` in
44826 *datarootdir*) ac_datarootdir_seen=yes;;
44827 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44828 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44829 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44831 cat >>$CONFIG_STATUS <<_ACEOF
44832 ac_datarootdir_hack='
44833 s&@datadir@&$datadir&g
44834 s&@docdir@&$docdir&g
44835 s&@infodir@&$infodir&g
44836 s&@localedir@&$localedir&g
44837 s&@mandir@&$mandir&g
44838 s&\\\${datarootdir}&$datarootdir&g' ;;
44842 # Neutralize VPATH when `$srcdir' = `.'.
44843 # Shell code in configure.ac might set extrasub.
44844 # FIXME: do we really want to maintain this feature?
44845 cat >>$CONFIG_STATUS <<_ACEOF
44849 cat >>$CONFIG_STATUS <<\_ACEOF
44851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44852 s&@configure_input@&$configure_input&;t t
44853 s&@top_builddir@&$ac_top_builddir_sub&;t t
44854 s&@srcdir@&$ac_srcdir&;t t
44855 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44856 s&@top_srcdir@&$ac_top_srcdir&;t t
44857 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44858 s&@builddir@&$ac_builddir&;t t
44859 s&@abs_builddir@&$ac_abs_builddir&;t t
44860 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44861 s&@INSTALL@&$ac_INSTALL&;t t
44862 $ac_datarootdir_hack
44863 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
44865 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44866 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44867 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44868 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44869 which seems to be undefined. Please make sure it is defined." >&5
44870 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44871 which seems to be undefined. Please make sure it is defined." >&2;}
44875 -) cat "$tmp/out"; rm -f "$tmp/out";;
44876 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44885 # Transform confdefs.h into a sed script `conftest.defines', that
44886 # substitutes the proper values into config.h.in to produce config.h.
44887 rm -f conftest.defines conftest.tail
44888 # First, append a space to every undef/define line, to ease matching.
44889 echo 's/$/ /' >conftest.defines
44890 # Then, protect against being on the right side of a sed subst, or in
44891 # an unquoted here document, in config.status. If some macros were
44892 # called several times there might be several #defines for the same
44893 # symbol, which is useless. But do not sort them, since the last
44894 # AC_DEFINE must be honored.
44895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44896 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44897 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44898 # PARAMS is the parameter list in the macro definition--in most cases, it's
44899 # just an empty string.
44900 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
44901 ac_dB='\\)[ (].*,\\1define\\2'
44909 s/^[ ]*#[ ]*define[ ][ ]*//
44914 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44915 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44916 ' >>conftest.defines
44918 # Remove the space that was appended to ease matching.
44919 # Then replace #undef with comments. This is necessary, for
44920 # example, in the case of _POSIX_SOURCE, which is predefined and required
44921 # on some systems where configure will not decide to define it.
44922 # (The regexp can be short, since the line contains either #define or #undef.)
44924 s,^[ #]*u.*,/* & */,' >>conftest.defines
44926 # Break up conftest.defines:
44927 ac_max_sed_lines=50
44929 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44930 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44931 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44933 ac_in='$ac_file_inputs'
44934 ac_out='"$tmp/out1"'
44935 ac_nxt='"$tmp/out2"'
44939 # Write a here document:
44940 cat >>$CONFIG_STATUS <<_ACEOF
44941 # First, check the format of the line:
44942 cat >"\$tmp/defines.sed" <<\\CEOF
44943 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
44944 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
44948 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44950 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44951 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44952 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44953 grep . conftest.tail >/dev/null || break
44954 rm -f conftest.defines
44955 mv conftest.tail conftest.defines
44957 rm -f conftest.defines conftest.tail
44959 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44960 cat >>$CONFIG_STATUS <<\_ACEOF
44961 if test x"$ac_file" != x-; then
44962 echo "/* $configure_input */" >"$tmp/config.h"
44963 cat "$ac_result" >>"$tmp/config.h"
44964 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44965 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44966 echo "$as_me: $ac_file is unchanged" >&6;}
44969 mv "$tmp/config.h" $ac_file
44972 echo "/* $configure_input */"
44978 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44979 echo "$as_me: executing $ac_file commands" >&6;}
44984 case $ac_file$ac_mode in
44987 # See if we are running on zsh, and set the options which allow our
44988 # commands through without removal of \ escapes.
44989 if test -n "${ZSH_VERSION+set}" ; then
44990 setopt NO_GLOB_SUBST
44993 cfgfile="${ofile}T"
44994 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44997 cat <<_LT_EOF >> "$cfgfile"
45000 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45001 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45002 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45003 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45005 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45006 # 2006, 2007, 2008 Free Software Foundation, Inc.
45007 # Written by Gordon Matzigkeit, 1996
45009 # This file is part of GNU Libtool.
45011 # GNU Libtool is free software; you can redistribute it and/or
45012 # modify it under the terms of the GNU General Public License as
45013 # published by the Free Software Foundation; either version 2 of
45014 # the License, or (at your option) any later version.
45016 # As a special exception to the GNU General Public License,
45017 # if you distribute this file as part of a program or library that
45018 # is built using GNU Libtool, you may include this file under the
45019 # same distribution terms that you use for the rest of that program.
45021 # GNU Libtool is distributed in the hope that it will be useful,
45022 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45023 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45024 # GNU General Public License for more details.
45026 # You should have received a copy of the GNU General Public License
45027 # along with GNU Libtool; see the file COPYING. If not, a copy
45028 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
45029 # obtained by writing to the Free Software Foundation, Inc.,
45030 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45033 # The names of the tagged configurations supported by this script.
45034 available_tags="CXX "
45036 # ### BEGIN LIBTOOL CONFIG
45038 # Which release of libtool.m4 was used?
45039 macro_version=$macro_version
45040 macro_revision=$macro_revision
45042 # Whether or not to build shared libraries.
45043 build_libtool_libs=$enable_shared
45045 # Whether or not to build static libraries.
45046 build_old_libs=$enable_static
45048 # What type of objects to build.
45051 # Whether or not to optimize for fast installation.
45052 fast_install=$enable_fast_install
45055 host_alias=$host_alias
45059 # The build system.
45060 build_alias=$build_alias
45064 # A sed program that does not truncate output.
45067 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
45068 Xsed="\$SED -e 1s/^X//"
45070 # A grep program that handles long lines.
45076 # A literal string matcher.
45079 # A BSD- or MS-compatible name lister.
45082 # Whether we need soft or hard links.
45085 # What is the maximum length of a command?
45086 max_cmd_len=$max_cmd_len
45088 # Object file suffix (normally "o").
45091 # Executable file suffix (normally "").
45094 # whether the shell understands "unset".
45097 # turn spaces into newlines.
45100 # turn newlines into spaces.
45103 # How to create reloadable object files.
45104 reload_flag=$lt_reload_flag
45105 reload_cmds=$lt_reload_cmds
45107 # An object symbol dumper.
45108 OBJDUMP=$lt_OBJDUMP
45110 # Method to check whether dependent libraries are shared objects.
45111 deplibs_check_method=$lt_deplibs_check_method
45113 # Command to use when deplibs_check_method == "file_magic".
45114 file_magic_cmd=$lt_file_magic_cmd
45118 AR_FLAGS=$lt_AR_FLAGS
45120 # A symbol stripping program.
45123 # Commands used to install an old-style archive.
45125 old_postinstall_cmds=$lt_old_postinstall_cmds
45126 old_postuninstall_cmds=$lt_old_postuninstall_cmds
45131 # LTCC compiler flags.
45132 LTCFLAGS=$lt_CFLAGS
45134 # Take the output of nm and produce a listing of raw symbols and C names.
45135 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
45137 # Transform the output of nm in a proper C declaration.
45138 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
45140 # Transform the output of nm in a C name address pair.
45141 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
45143 # Transform the output of nm in a C name address pair when lib prefix is needed.
45144 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
45146 # The name of the directory that contains temporary libtool files.
45149 # Shell to use when invoking shell scripts.
45152 # An echo program that does not interpret backslashes.
45155 # Used to examine libraries when file_magic_cmd begins with "file".
45156 MAGIC_CMD=$MAGIC_CMD
45158 # Must we lock files when doing compilation?
45159 need_locks=$lt_need_locks
45161 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
45162 DSYMUTIL=$lt_DSYMUTIL
45164 # Tool to change global to local symbols on Mac OS X.
45167 # Tool to manipulate fat objects and archives on Mac OS X.
45170 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
45173 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
45174 OTOOL64=$lt_OTOOL64
45176 # Old archive suffix (normally "a").
45179 # Shared library suffix (normally ".so").
45180 shrext_cmds=$lt_shrext_cmds
45182 # The commands to extract the exported symbol list from a shared archive.
45183 extract_expsyms_cmds=$lt_extract_expsyms_cmds
45185 # Variables whose values should be saved in libtool wrapper scripts and
45186 # restored at link time.
45187 variables_saved_for_relink=$lt_variables_saved_for_relink
45189 # Do we need the "lib" prefix for modules?
45190 need_lib_prefix=$need_lib_prefix
45192 # Do we need a version for libraries?
45193 need_version=$need_version
45195 # Library versioning type.
45196 version_type=$version_type
45198 # Shared library runtime path variable.
45199 runpath_var=$runpath_var
45201 # Shared library path variable.
45202 shlibpath_var=$shlibpath_var
45204 # Is shlibpath searched before the hard-coded library search path?
45205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
45207 # Format of library name prefix.
45208 libname_spec=$lt_libname_spec
45210 # List of archive names. First name is the real one, the rest are links.
45211 # The last name is the one that the linker finds with -lNAME
45212 library_names_spec=$lt_library_names_spec
45214 # The coded name of the library, if different from the real name.
45215 soname_spec=$lt_soname_spec
45217 # Command to use after installation of a shared archive.
45218 postinstall_cmds=$lt_postinstall_cmds
45220 # Command to use after uninstallation of a shared archive.
45221 postuninstall_cmds=$lt_postuninstall_cmds
45223 # Commands used to finish a libtool library installation in a directory.
45224 finish_cmds=$lt_finish_cmds
45226 # As "finish_cmds", except a single script fragment to be evaled but
45228 finish_eval=$lt_finish_eval
45230 # Whether we should hardcode library paths into libraries.
45231 hardcode_into_libs=$hardcode_into_libs
45233 # Compile-time system search path for libraries.
45234 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45236 # Run-time system search path for libraries.
45237 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45239 # Whether dlopen is supported.
45240 dlopen_support=$enable_dlopen
45242 # Whether dlopen of programs is supported.
45243 dlopen_self=$enable_dlopen_self
45245 # Whether dlopen of statically linked programs is supported.
45246 dlopen_self_static=$enable_dlopen_self_static
45248 # Commands to strip libraries.
45249 old_striplib=$lt_old_striplib
45250 striplib=$lt_striplib
45253 # The linker used to build libraries.
45256 # Commands used to build an old-style archive.
45257 old_archive_cmds=$lt_old_archive_cmds
45259 # A language specific compiler.
45262 # Is the compiler the GNU compiler?
45265 # Compiler flag to turn off builtin functions.
45266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45268 # How to pass a linker flag through the compiler.
45269 wl=$lt_lt_prog_compiler_wl
45271 # Additional compiler flags for building library objects.
45272 pic_flag=$lt_lt_prog_compiler_pic
45274 # Compiler flag to prevent dynamic linking.
45275 link_static_flag=$lt_lt_prog_compiler_static
45277 # Does compiler simultaneously support -c and -o options?
45278 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45280 # Whether or not to add -lc for building shared libraries.
45281 build_libtool_need_lc=$archive_cmds_need_lc
45283 # Whether or not to disallow shared libs when runtime libs are static.
45284 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45286 # Compiler flag to allow reflexive dlopens.
45287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45289 # Compiler flag to generate shared objects directly from archives.
45290 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45292 # Whether the compiler copes with passing no objects directly.
45293 compiler_needs_object=$lt_compiler_needs_object
45295 # Create an old-style archive from a shared archive.
45296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45298 # Create a temporary old-style archive to link instead of a shared archive.
45299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45301 # Commands used to build a shared archive.
45302 archive_cmds=$lt_archive_cmds
45303 archive_expsym_cmds=$lt_archive_expsym_cmds
45305 # Commands used to build a loadable module if different from building
45306 # a shared archive.
45307 module_cmds=$lt_module_cmds
45308 module_expsym_cmds=$lt_module_expsym_cmds
45310 # Whether we are building with GNU ld or not.
45311 with_gnu_ld=$lt_with_gnu_ld
45313 # Flag that allows shared libraries with undefined symbols to be built.
45314 allow_undefined_flag=$lt_allow_undefined_flag
45316 # Flag that enforces no undefined symbols.
45317 no_undefined_flag=$lt_no_undefined_flag
45319 # Flag to hardcode \$libdir into a binary during linking.
45320 # This must work even if \$libdir does not exist
45321 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45323 # If ld is used when linking, flag to hardcode \$libdir into a binary
45324 # during linking. This must work even if \$libdir does not exist.
45325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45327 # Whether we need a single "-rpath" flag with a separated argument.
45328 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45331 # DIR into the resulting binary.
45332 hardcode_direct=$hardcode_direct
45334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45335 # DIR into the resulting binary and the resulting library dependency is
45336 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45337 # library is relocated.
45338 hardcode_direct_absolute=$hardcode_direct_absolute
45340 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45341 # into the resulting binary.
45342 hardcode_minus_L=$hardcode_minus_L
45344 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45345 # into the resulting binary.
45346 hardcode_shlibpath_var=$hardcode_shlibpath_var
45348 # Set to "yes" if building a shared library automatically hardcodes DIR
45349 # into the library and all subsequent libraries and executables linked
45351 hardcode_automatic=$hardcode_automatic
45353 # Set to yes if linker adds runtime paths of dependent libraries
45354 # to runtime path list.
45355 inherit_rpath=$inherit_rpath
45357 # Whether libtool must link a program against all its dependency libraries.
45358 link_all_deplibs=$link_all_deplibs
45360 # Fix the shell variable \$srcfile for the compiler.
45361 fix_srcfile_path=$lt_fix_srcfile_path
45363 # Set to "yes" if exported symbols are required.
45364 always_export_symbols=$always_export_symbols
45366 # The commands to list exported symbols.
45367 export_symbols_cmds=$lt_export_symbols_cmds
45369 # Symbols that should not be listed in the preloaded symbols.
45370 exclude_expsyms=$lt_exclude_expsyms
45372 # Symbols that must always be exported.
45373 include_expsyms=$lt_include_expsyms
45375 # Commands necessary for linking programs (against libraries) with templates.
45376 prelink_cmds=$lt_prelink_cmds
45378 # Specify filename containing input files.
45379 file_list_spec=$lt_file_list_spec
45381 # How to hardcode a shared library path into an executable.
45382 hardcode_action=$hardcode_action
45384 # The directories searched by this compiler when creating a shared library.
45385 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45387 # Dependencies to place before and after the objects being linked to
45388 # create a shared library.
45389 predep_objects=$lt_predep_objects
45390 postdep_objects=$lt_postdep_objects
45391 predeps=$lt_predeps
45392 postdeps=$lt_postdeps
45394 # The library search path used internally by the compiler when linking
45395 # a shared library.
45396 compiler_lib_search_path=$lt_compiler_lib_search_path
45398 # ### END LIBTOOL CONFIG
45404 cat <<\_LT_EOF >> "$cfgfile"
45405 # AIX sometimes has problems with the GCC collect2 program. For some
45406 # reason, if we set the COLLECT_NAMES environment variable, the problems
45407 # vanish in a puff of smoke.
45408 if test "X${COLLECT_NAMES+set}" != Xset; then
45410 export COLLECT_NAMES
45417 ltmain="$ac_aux_dir/ltmain.sh"
45420 # We use sed instead of cat because bash on DJGPP gets confused if
45421 # if finds mixed CR/LF and LF-only lines. Since sed operates in
45422 # text mode, it properly converts lines to CR/LF. This bash problem
45423 # is reportedly fixed, but why not run on old versions too?
45424 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45425 || (rm -f "$cfgfile"; exit 1)
45429 cat << \_LT_EOF >> "$cfgfile"
45431 # func_dirname file append nondir_replacement
45432 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45433 # otherwise set result to NONDIR_REPLACEMENT.
45437 */*) func_dirname_result="${1%/*}${2}" ;;
45438 * ) func_dirname_result="${3}" ;;
45442 # func_basename file
45445 func_basename_result="${1##*/}"
45448 # func_dirname_and_basename file append nondir_replacement
45449 # perform func_basename and func_dirname in a single function
45451 # dirname: Compute the dirname of FILE. If nonempty,
45452 # add APPEND to the result, otherwise set result
45453 # to NONDIR_REPLACEMENT.
45454 # value returned in "$func_dirname_result"
45455 # basename: Compute filename of FILE.
45456 # value retuned in "$func_basename_result"
45457 # Implementation must be kept synchronized with func_dirname
45458 # and func_basename. For efficiency, we do not delegate to
45459 # those functions but instead duplicate the functionality here.
45460 func_dirname_and_basename ()
45463 */*) func_dirname_result="${1%/*}${2}" ;;
45464 * ) func_dirname_result="${3}" ;;
45466 func_basename_result="${1##*/}"
45469 # func_stripname prefix suffix name
45470 # strip PREFIX and SUFFIX off of NAME.
45471 # PREFIX and SUFFIX must not contain globbing or regex special
45472 # characters, hashes, percent signs, but SUFFIX may contain a leading
45473 # dot (in which case that matches only a dot).
45476 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45477 # positional parameters, so assign one to ordinary parameter first.
45478 func_stripname_result=${3}
45479 func_stripname_result=${func_stripname_result#"${1}"}
45480 func_stripname_result=${func_stripname_result%"${2}"}
45486 func_opt_split_opt=${1%%=*}
45487 func_opt_split_arg=${1#*=}
45494 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45495 *) func_lo2o_result=${1} ;;
45499 # func_xform libobj-or-source
45502 func_xform_result=${1%.*}.lo
45505 # func_arith arithmetic-term...
45508 func_arith_result=$(( $* ))
45512 # STRING may not start with a hyphen.
45515 func_len_result=${#1}
45520 *) # Bourne compatible functions.
45521 cat << \_LT_EOF >> "$cfgfile"
45523 # func_dirname file append nondir_replacement
45524 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45525 # otherwise set result to NONDIR_REPLACEMENT.
45528 # Extract subdirectory from the argument.
45529 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45530 if test "X$func_dirname_result" = "X${1}"; then
45531 func_dirname_result="${3}"
45533 func_dirname_result="$func_dirname_result${2}"
45537 # func_basename file
45540 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45544 # func_stripname prefix suffix name
45545 # strip PREFIX and SUFFIX off of NAME.
45546 # PREFIX and SUFFIX must not contain globbing or regex special
45547 # characters, hashes, percent signs, but SUFFIX may contain a leading
45548 # dot (in which case that matches only a dot).
45549 # func_strip_suffix prefix name
45553 .*) func_stripname_result=`$ECHO "X${3}" \
45554 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45555 *) func_stripname_result=`$ECHO "X${3}" \
45556 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45561 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45562 my_sed_long_arg='1s/^-[^=]*=//'
45567 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45568 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45574 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45577 # func_xform libobj-or-source
45580 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45583 # func_arith arithmetic-term...
45586 func_arith_result=`expr "$@"`
45590 # STRING may not start with a hyphen.
45593 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45599 case $lt_shell_append in
45601 cat << \_LT_EOF >> "$cfgfile"
45603 # func_append var value
45604 # Append VALUE to the end of shell variable VAR.
45612 cat << \_LT_EOF >> "$cfgfile"
45614 # func_append var value
45615 # Append VALUE to the end of shell variable VAR.
45626 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45627 || (rm -f "$cfgfile"; exit 1)
45629 mv -f "$cfgfile" "$ofile" ||
45630 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45634 cat <<_LT_EOF >> "$ofile"
45636 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45638 # The linker used to build libraries.
45641 # Commands used to build an old-style archive.
45642 old_archive_cmds=$lt_old_archive_cmds_CXX
45644 # A language specific compiler.
45645 CC=$lt_compiler_CXX
45647 # Is the compiler the GNU compiler?
45650 # Compiler flag to turn off builtin functions.
45651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45653 # How to pass a linker flag through the compiler.
45654 wl=$lt_lt_prog_compiler_wl_CXX
45656 # Additional compiler flags for building library objects.
45657 pic_flag=$lt_lt_prog_compiler_pic_CXX
45659 # Compiler flag to prevent dynamic linking.
45660 link_static_flag=$lt_lt_prog_compiler_static_CXX
45662 # Does compiler simultaneously support -c and -o options?
45663 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45665 # Whether or not to add -lc for building shared libraries.
45666 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45668 # Whether or not to disallow shared libs when runtime libs are static.
45669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45671 # Compiler flag to allow reflexive dlopens.
45672 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45674 # Compiler flag to generate shared objects directly from archives.
45675 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45677 # Whether the compiler copes with passing no objects directly.
45678 compiler_needs_object=$lt_compiler_needs_object_CXX
45680 # Create an old-style archive from a shared archive.
45681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45683 # Create a temporary old-style archive to link instead of a shared archive.
45684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45686 # Commands used to build a shared archive.
45687 archive_cmds=$lt_archive_cmds_CXX
45688 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45690 # Commands used to build a loadable module if different from building
45691 # a shared archive.
45692 module_cmds=$lt_module_cmds_CXX
45693 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45695 # Whether we are building with GNU ld or not.
45696 with_gnu_ld=$lt_with_gnu_ld_CXX
45698 # Flag that allows shared libraries with undefined symbols to be built.
45699 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45701 # Flag that enforces no undefined symbols.
45702 no_undefined_flag=$lt_no_undefined_flag_CXX
45704 # Flag to hardcode \$libdir into a binary during linking.
45705 # This must work even if \$libdir does not exist
45706 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45708 # If ld is used when linking, flag to hardcode \$libdir into a binary
45709 # during linking. This must work even if \$libdir does not exist.
45710 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45712 # Whether we need a single "-rpath" flag with a separated argument.
45713 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45715 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45716 # DIR into the resulting binary.
45717 hardcode_direct=$hardcode_direct_CXX
45719 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45720 # DIR into the resulting binary and the resulting library dependency is
45721 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45722 # library is relocated.
45723 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45725 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45726 # into the resulting binary.
45727 hardcode_minus_L=$hardcode_minus_L_CXX
45729 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45730 # into the resulting binary.
45731 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45733 # Set to "yes" if building a shared library automatically hardcodes DIR
45734 # into the library and all subsequent libraries and executables linked
45736 hardcode_automatic=$hardcode_automatic_CXX
45738 # Set to yes if linker adds runtime paths of dependent libraries
45739 # to runtime path list.
45740 inherit_rpath=$inherit_rpath_CXX
45742 # Whether libtool must link a program against all its dependency libraries.
45743 link_all_deplibs=$link_all_deplibs_CXX
45745 # Fix the shell variable \$srcfile for the compiler.
45746 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45748 # Set to "yes" if exported symbols are required.
45749 always_export_symbols=$always_export_symbols_CXX
45751 # The commands to list exported symbols.
45752 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45754 # Symbols that should not be listed in the preloaded symbols.
45755 exclude_expsyms=$lt_exclude_expsyms_CXX
45757 # Symbols that must always be exported.
45758 include_expsyms=$lt_include_expsyms_CXX
45760 # Commands necessary for linking programs (against libraries) with templates.
45761 prelink_cmds=$lt_prelink_cmds_CXX
45763 # Specify filename containing input files.
45764 file_list_spec=$lt_file_list_spec_CXX
45766 # How to hardcode a shared library path into an executable.
45767 hardcode_action=$hardcode_action_CXX
45769 # The directories searched by this compiler when creating a shared library.
45770 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45772 # Dependencies to place before and after the objects being linked to
45773 # create a shared library.
45774 predep_objects=$lt_predep_objects_CXX
45775 postdep_objects=$lt_postdep_objects_CXX
45776 predeps=$lt_predeps_CXX
45777 postdeps=$lt_postdeps_CXX
45779 # The library search path used internally by the compiler when linking
45780 # a shared library.
45781 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45783 # ### END LIBTOOL TAG CONFIG: CXX
45788 for ac_file in $CONFIG_FILES; do
45789 # Support "outfile[:infile[:infile...]]"
45791 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45793 # PO directories have a Makefile.in generated from Makefile.in.in.
45794 case "$ac_file" in */Makefile.in)
45795 # Adjust a relative srcdir.
45796 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45797 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45798 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45799 # In autoconf-2.13 it is called $ac_given_srcdir.
45800 # In autoconf-2.50 it is called $srcdir.
45801 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45802 case "$ac_given_srcdir" in
45803 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45804 /*) top_srcdir="$ac_given_srcdir" ;;
45805 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
45807 # Treat a directory as a PO directory if and only if it has a
45808 # POTFILES.in file. This allows packages to have multiple PO
45809 # directories under different names or in different locations.
45810 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45811 rm -f "$ac_dir/POTFILES"
45812 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45813 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45814 POMAKEFILEDEPS="POTFILES.in"
45815 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45816 # on $ac_dir but don't depend on user-specified configuration
45818 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45819 # The LINGUAS file contains the set of available languages.
45820 if test -n "$OBSOLETE_ALL_LINGUAS"; then
45821 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45823 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45824 # Hide the ALL_LINGUAS assigment from automake.
45825 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45826 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45828 # The set of available languages was given in configure.in.
45829 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45832 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45833 # Compute UPDATEPOFILES
45834 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45835 # Compute DUMMYPOFILES
45836 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45838 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45839 case "$ac_given_srcdir" in
45841 *) srcdirpre='$(srcdir)/' ;;
45847 for lang in $ALL_LINGUAS; do
45848 POFILES="$POFILES $srcdirpre$lang.po"
45849 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45850 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45851 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45853 # CATALOGS depends on both $ac_dir and the user's LINGUAS
45854 # environment variable.
45856 if test -n "$ALL_LINGUAS"; then
45857 for presentlang in $ALL_LINGUAS; do
45859 if test "%UNSET%" != "$LINGUAS"; then
45860 desiredlanguages="$LINGUAS"
45862 desiredlanguages="$ALL_LINGUAS"
45864 for desiredlang in $desiredlanguages; do
45865 # Use the presentlang catalog if desiredlang is
45866 # a. equal to presentlang, or
45867 # b. a variant of presentlang (because in this case,
45868 # presentlang can be used as a fallback for messages
45869 # which are not translated in the desiredlang catalog).
45870 case "$desiredlang" in
45871 "$presentlang"*) useit=yes;;
45874 if test $useit = yes; then
45875 INST_LINGUAS="$INST_LINGUAS $presentlang"
45880 if test -n "$INST_LINGUAS"; then
45881 for lang in $INST_LINGUAS; do
45882 CATALOGS="$CATALOGS $lang.gmo"
45885 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45886 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"
45887 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45888 if test -f "$f"; then
45890 *.orig | *.bak | *~) ;;
45891 *) cat "$f" >> "$ac_dir/Makefile" ;;
45906 { (exit 0); exit 0; }
45908 chmod +x $CONFIG_STATUS
45909 ac_clean_files=$ac_clean_files_save
45912 # configure is writing to config.log, and then calls config.status.
45913 # config.status does its own redirection, appending to config.log.
45914 # Unfortunately, on DOS this fails, as config.log is still kept open
45915 # by configure, so config.status won't be able to write to it; its
45916 # output is simply discarded. So we exec the FD to /dev/null,
45917 # effectively closing config.log, so it can be properly (re)opened and
45918 # appended to by config.status. When coming back to configure, we
45919 # need to make the FD available again.
45920 if test "$no_create" != yes; then
45922 ac_config_status_args=
45923 test "$silent" = yes &&
45924 ac_config_status_args="$ac_config_status_args --quiet"
45926 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45928 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45929 # would make configure fail if this is the last instruction.
45930 $ac_cs_success || { (exit 1); exit 1; }
45934 if test "${support_bat}" = "yes" ; then
45935 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45936 { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
45937 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
45938 { (exit 1); exit 1; }; }
45943 if test "x$QMAKEQT4" != "xnone"; then
45948 echo "Creating bat Makefile"
45952 ${MAKE:-make} clean
45956 if test X"$GCC" = "Xyes" ; then
45957 echo "Doing make of dependencies"
45958 ${MAKE:-make} depend
45962 chmod 755 install_conf_file build-depkgs-qt-console
45966 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45967 chmod 755 dvd-handler dvd-simulator
45968 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45972 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
45973 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
45977 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
45978 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
45980 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
45981 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
45983 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
45984 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
45986 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
45987 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
45989 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
45990 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
45992 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
45993 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
45995 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45996 chmod 755 $c/sqlite
45999 chmod 755 src/win32/build-depkgs-mingw32
46001 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46002 largefile_support="yes"
46005 if test X"$GCC" = "Xyes" ; then
46006 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46007 if test "x${CCVERSION}" = "x" ; then
46008 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46010 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46011 if test x"${CXXVERSION}" = x ; then
46012 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46016 # clean up any old junk
46020 ${MAKE:-make} clean
46022 if test "x${db_type}" = "xInternal" ; then
46025 echo "You have not specified either --enable-client-only or one of the"
46026 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
46027 echo " This is not permitted. Please reconfigure."
46029 echo "Aborting the configuration ..."
46036 Configuration on `date`:
46038 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
46039 Bacula version: ${BACULA} ${VERSION} (${DATE})
46040 Source code location: ${srcdir}
46041 Install binaries: ${sbindir}
46042 Install libraries: ${libdir}
46043 Install config files: ${sysconfdir}
46044 Scripts directory: ${scriptdir}
46045 Archive directory: ${archivedir}
46046 Working directory: ${working_dir}
46047 PID directory: ${piddir}
46048 Subsys directory: ${subsysdir}
46049 Man directory: ${mandir}
46050 Data directory: ${datarootdir}
46051 Plugin directory: ${plugindir}
46052 C Compiler: ${CC} ${CCVERSION}
46053 C++ Compiler: ${CXX} ${CXXVERSION}
46054 Compiler flags: ${WCFLAGS} ${CFLAGS}
46055 Linker flags: ${WLDFLAGS} ${LDFLAGS}
46057 Statically Linked Tools: ${support_static_tools}
46058 Statically Linked FD: ${support_static_fd}
46059 Statically Linked SD: ${support_static_sd}
46060 Statically Linked DIR: ${support_static_dir}
46061 Statically Linked CONS: ${support_static_cons}
46062 Database type: ${db_type}
46063 Database port: ${db_port}
46064 Database lib: ${DB_LIBS}
46065 Database name: ${db_name}
46066 Database user: ${db_user}
46068 Job Output Email: ${job_email}
46069 Traceback Email: ${dump_email}
46070 SMTP Host Address: ${smtp_host}
46072 Director Port: ${dir_port}
46073 File daemon Port: ${fd_port}
46074 Storage daemon Port: ${sd_port}
46076 Director User: ${dir_user}
46077 Director Group: ${dir_group}
46078 Storage Daemon User: ${sd_user}
46079 Storage DaemonGroup: ${sd_group}
46080 File Daemon User: ${fd_user}
46081 File Daemon Group: ${fd_group}
46083 SQL binaries Directory ${SQL_BINDIR}
46085 Large file support: $largefile_support
46086 Bacula conio support: ${got_conio} ${CONS_LIBS}
46087 readline support: ${got_readline} ${PRTREADLINE_SRC}
46088 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
46089 TLS support: ${support_tls}
46090 Encryption support: ${support_crypto}
46091 ZLIB support: ${have_zlib}
46092 enable-smartalloc: ${support_smartalloc}
46093 enable-lockmgr: ${support_lockmgr}
46094 bat support: ${support_bat} ${QWT_LDFLAGS}
46095 enable-gnome: ${support_gnome} ${gnome_version}
46096 enable-bwx-console: ${support_wx_console} ${wx_version}
46097 enable-tray-monitor: ${support_tray_monitor}
46098 client-only: ${build_client_only}
46099 build-dird: ${build_dird}
46100 build-stored: ${build_stored}
46101 ACL support: ${have_acl}
46102 XATTR support: ${have_xattr}
46103 Python support: ${support_python} ${PYTHON_LIBS}
46104 Batch insert enabled: ${support_batch_insert}