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
962 TRAY_MONITOR_CPPFLAGS
1052 ac_subst_files='MCOMMON'
1053 ac_precious_vars='build_alias
1071 # Initialize some variables set by options.
1073 ac_init_version=false
1074 # The variables have the same names as the options, with
1075 # dashes changed to underlines.
1076 cache_file=/dev/null
1083 program_transform_name=s,x,x,
1091 # Installation directory options.
1092 # These are left unexpanded so users can "make install exec_prefix=/foo"
1093 # and all the variables that are supposed to be based on exec_prefix
1094 # by default will actually change.
1095 # Use braces instead of parens because sh, perl, etc. also accept them.
1096 # (The list follows the same order as the GNU Coding Standards.)
1097 bindir='${exec_prefix}/bin'
1098 sbindir='${exec_prefix}/sbin'
1099 libexecdir='${exec_prefix}/libexec'
1100 datarootdir='${prefix}/share'
1101 datadir='${datarootdir}'
1102 sysconfdir='${prefix}/etc'
1103 sharedstatedir='${prefix}/com'
1104 localstatedir='${prefix}/var'
1105 includedir='${prefix}/include'
1106 oldincludedir='/usr/include'
1107 docdir='${datarootdir}/doc/${PACKAGE}'
1108 infodir='${datarootdir}/info'
1113 libdir='${exec_prefix}/lib'
1114 localedir='${datarootdir}/locale'
1115 mandir='${datarootdir}/man'
1121 # If the previous option needs an argument, assign it.
1122 if test -n "$ac_prev"; then
1123 eval $ac_prev=\$ac_option
1129 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1133 # Accept the important Cygnus configure options, so we can diagnose typos.
1135 case $ac_dashdash$ac_option in
1139 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1141 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1142 bindir=$ac_optarg ;;
1144 -build | --build | --buil | --bui | --bu)
1145 ac_prev=build_alias ;;
1146 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1147 build_alias=$ac_optarg ;;
1149 -cache-file | --cache-file | --cache-fil | --cache-fi \
1150 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1151 ac_prev=cache_file ;;
1152 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1153 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1154 cache_file=$ac_optarg ;;
1156 --config-cache | -C)
1157 cache_file=config.cache ;;
1159 -datadir | --datadir | --datadi | --datad)
1161 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1162 datadir=$ac_optarg ;;
1164 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1165 | --dataroo | --dataro | --datar)
1166 ac_prev=datarootdir ;;
1167 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1168 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1169 datarootdir=$ac_optarg ;;
1171 -disable-* | --disable-*)
1172 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1176 { (exit 1); exit 1; }; }
1177 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1178 eval enable_$ac_feature=no ;;
1180 -docdir | --docdir | --docdi | --doc | --do)
1182 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1183 docdir=$ac_optarg ;;
1185 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1187 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1188 dvidir=$ac_optarg ;;
1190 -enable-* | --enable-*)
1191 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1195 { (exit 1); exit 1; }; }
1196 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1197 eval enable_$ac_feature=\$ac_optarg ;;
1199 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1200 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1201 | --exec | --exe | --ex)
1202 ac_prev=exec_prefix ;;
1203 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1204 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1205 | --exec=* | --exe=* | --ex=*)
1206 exec_prefix=$ac_optarg ;;
1208 -gas | --gas | --ga | --g)
1209 # Obsolete; use --with-gas.
1212 -help | --help | --hel | --he | -h)
1213 ac_init_help=long ;;
1214 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1215 ac_init_help=recursive ;;
1216 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1217 ac_init_help=short ;;
1219 -host | --host | --hos | --ho)
1220 ac_prev=host_alias ;;
1221 -host=* | --host=* | --hos=* | --ho=*)
1222 host_alias=$ac_optarg ;;
1224 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1226 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1228 htmldir=$ac_optarg ;;
1230 -includedir | --includedir | --includedi | --included | --include \
1231 | --includ | --inclu | --incl | --inc)
1232 ac_prev=includedir ;;
1233 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1234 | --includ=* | --inclu=* | --incl=* | --inc=*)
1235 includedir=$ac_optarg ;;
1237 -infodir | --infodir | --infodi | --infod | --info | --inf)
1239 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1240 infodir=$ac_optarg ;;
1242 -libdir | --libdir | --libdi | --libd)
1244 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1245 libdir=$ac_optarg ;;
1247 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1248 | --libexe | --libex | --libe)
1249 ac_prev=libexecdir ;;
1250 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1251 | --libexe=* | --libex=* | --libe=*)
1252 libexecdir=$ac_optarg ;;
1254 -localedir | --localedir | --localedi | --localed | --locale)
1255 ac_prev=localedir ;;
1256 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1257 localedir=$ac_optarg ;;
1259 -localstatedir | --localstatedir | --localstatedi | --localstated \
1260 | --localstate | --localstat | --localsta | --localst | --locals)
1261 ac_prev=localstatedir ;;
1262 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1263 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1264 localstatedir=$ac_optarg ;;
1266 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1268 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1269 mandir=$ac_optarg ;;
1271 -nfp | --nfp | --nf)
1272 # Obsolete; use --without-fp.
1275 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1276 | --no-cr | --no-c | -n)
1279 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1280 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1283 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1284 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1285 | --oldin | --oldi | --old | --ol | --o)
1286 ac_prev=oldincludedir ;;
1287 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1288 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1289 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1290 oldincludedir=$ac_optarg ;;
1292 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1294 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1295 prefix=$ac_optarg ;;
1297 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1298 | --program-pre | --program-pr | --program-p)
1299 ac_prev=program_prefix ;;
1300 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1301 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1302 program_prefix=$ac_optarg ;;
1304 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1305 | --program-suf | --program-su | --program-s)
1306 ac_prev=program_suffix ;;
1307 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1308 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1309 program_suffix=$ac_optarg ;;
1311 -program-transform-name | --program-transform-name \
1312 | --program-transform-nam | --program-transform-na \
1313 | --program-transform-n | --program-transform- \
1314 | --program-transform | --program-transfor \
1315 | --program-transfo | --program-transf \
1316 | --program-trans | --program-tran \
1317 | --progr-tra | --program-tr | --program-t)
1318 ac_prev=program_transform_name ;;
1319 -program-transform-name=* | --program-transform-name=* \
1320 | --program-transform-nam=* | --program-transform-na=* \
1321 | --program-transform-n=* | --program-transform-=* \
1322 | --program-transform=* | --program-transfor=* \
1323 | --program-transfo=* | --program-transf=* \
1324 | --program-trans=* | --program-tran=* \
1325 | --progr-tra=* | --program-tr=* | --program-t=*)
1326 program_transform_name=$ac_optarg ;;
1328 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1330 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1331 pdfdir=$ac_optarg ;;
1333 -psdir | --psdir | --psdi | --psd | --ps)
1335 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1339 | -silent | --silent | --silen | --sile | --sil)
1342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1346 sbindir=$ac_optarg ;;
1348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1350 | --sharedst | --shareds | --shared | --share | --shar \
1352 ac_prev=sharedstatedir ;;
1353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1357 sharedstatedir=$ac_optarg ;;
1359 -site | --site | --sit)
1361 -site=* | --site=* | --sit=*)
1364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1367 srcdir=$ac_optarg ;;
1369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1370 | --syscon | --sysco | --sysc | --sys | --sy)
1371 ac_prev=sysconfdir ;;
1372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1374 sysconfdir=$ac_optarg ;;
1376 -target | --target | --targe | --targ | --tar | --ta | --t)
1377 ac_prev=target_alias ;;
1378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1379 target_alias=$ac_optarg ;;
1381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1384 -version | --version | --versio | --versi | --vers | -V)
1385 ac_init_version=: ;;
1388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1391 { echo "$as_me: error: invalid package name: $ac_package" >&2
1392 { (exit 1); exit 1; }; }
1393 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1394 eval with_$ac_package=\$ac_optarg ;;
1396 -without-* | --without-*)
1397 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1398 # Reject names that are not valid shell variable names.
1399 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1400 { echo "$as_me: error: invalid package name: $ac_package" >&2
1401 { (exit 1); exit 1; }; }
1402 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1403 eval with_$ac_package=no ;;
1406 # Obsolete; use --with-x.
1409 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410 | --x-incl | --x-inc | --x-in | --x-i)
1411 ac_prev=x_includes ;;
1412 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414 x_includes=$ac_optarg ;;
1416 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418 ac_prev=x_libraries ;;
1419 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421 x_libraries=$ac_optarg ;;
1423 -*) { echo "$as_me: error: unrecognized option: $ac_option
1424 Try \`$0 --help' for more information." >&2
1425 { (exit 1); exit 1; }; }
1429 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1430 # Reject names that are not valid shell variable names.
1431 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1432 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1433 { (exit 1); exit 1; }; }
1434 eval $ac_envvar=\$ac_optarg
1435 export $ac_envvar ;;
1438 # FIXME: should be removed in autoconf 3.0.
1439 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1448 if test -n "$ac_prev"; then
1449 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450 { echo "$as_me: error: missing argument to $ac_option" >&2
1451 { (exit 1); exit 1; }; }
1454 # Be sure to have absolute directory names.
1455 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1456 datadir sysconfdir sharedstatedir localstatedir includedir \
1457 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1458 libdir localedir mandir
1460 eval ac_val=\$$ac_var
1462 [\\/$]* | ?:[\\/]* ) continue;;
1463 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1465 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1466 { (exit 1); exit 1; }; }
1469 # There might be people who depend on the old broken behavior: `$host'
1470 # used to hold the argument of --host etc.
1471 # FIXME: To remove some day.
1474 target=$target_alias
1476 # FIXME: To remove some day.
1477 if test "x$host_alias" != x; then
1478 if test "x$build_alias" = x; then
1479 cross_compiling=maybe
1480 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1481 If a cross compiler is detected then cross compile mode will be used." >&2
1482 elif test "x$build_alias" != "x$host_alias"; then
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1490 test "$silent" = yes && exec 6>/dev/null
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496 { echo "$as_me: error: Working directory cannot be determined" >&2
1497 { (exit 1); exit 1; }; }
1498 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1499 { echo "$as_me: error: pwd does not report name of working directory" >&2
1500 { (exit 1); exit 1; }; }
1503 # Find the source files, if location was not specified.
1504 if test -z "$srcdir"; then
1505 ac_srcdir_defaulted=yes
1506 # Try the directory containing this script, then the parent directory.
1507 ac_confdir=`$as_dirname -- "$0" ||
1508 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1509 X"$0" : 'X\(//\)[^/]' \| \
1510 X"$0" : 'X\(//\)$' \| \
1511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1535 ac_srcdir_defaulted=no
1537 if test ! -r "$srcdir/$ac_unique_file"; then
1538 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1539 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1540 { (exit 1); exit 1; }; }
1542 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1544 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1545 { (exit 1); exit 1; }; }
1547 # When building in place, set srcdir=.
1548 if test "$ac_abs_confdir" = "$ac_pwd"; then
1551 # Remove unnecessary trailing slashes from srcdir.
1552 # Double slashes in file names in object file debugging info
1553 # mess up M-x gdb in Emacs.
1555 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1557 for ac_var in $ac_precious_vars; do
1558 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1559 eval ac_env_${ac_var}_value=\$${ac_var}
1560 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1561 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1565 # Report the --help message.
1567 if test "$ac_init_help" = "long"; then
1568 # Omit some internal or obsolete options to make the list less imposing.
1569 # This message is too long to be a string in the A/UX 3.1 sh.
1571 \`configure' configures this package to adapt to many kinds of systems.
1573 Usage: $0 [OPTION]... [VAR=VALUE]...
1575 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1576 VAR=VALUE. See below for descriptions of some of the useful variables.
1578 Defaults for the options are specified in brackets.
1581 -h, --help display this help and exit
1582 --help=short display options specific to this package
1583 --help=recursive display the short help of all the included packages
1584 -V, --version display version information and exit
1585 -q, --quiet, --silent do not print \`checking...' messages
1586 --cache-file=FILE cache test results in FILE [disabled]
1587 -C, --config-cache alias for \`--cache-file=config.cache'
1588 -n, --no-create do not create output files
1589 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1591 Installation directories:
1592 --prefix=PREFIX install architecture-independent files in PREFIX
1593 [$ac_default_prefix]
1594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1597 By default, \`make install' will install all the files in
1598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1600 for instance \`--prefix=\$HOME'.
1602 For better control, use the options below.
1604 Fine tuning of the installation directories:
1605 --bindir=DIR user executables [EPREFIX/bin]
1606 --sbindir=DIR system admin executables [EPREFIX/sbin]
1607 --libexecdir=DIR program executables [EPREFIX/libexec]
1608 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1609 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1610 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1611 --libdir=DIR object code libraries [EPREFIX/lib]
1612 --includedir=DIR C header files [PREFIX/include]
1613 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1614 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1615 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1616 --infodir=DIR info documentation [DATAROOTDIR/info]
1617 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1618 --mandir=DIR man documentation [DATAROOTDIR/man]
1619 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1620 --htmldir=DIR html documentation [DOCDIR]
1621 --dvidir=DIR dvi documentation [DOCDIR]
1622 --pdfdir=DIR pdf documentation [DOCDIR]
1623 --psdir=DIR ps documentation [DOCDIR]
1629 --x-includes=DIR X include files are in DIR
1630 --x-libraries=DIR X library files are in DIR
1633 --build=BUILD configure for building on BUILD [guessed]
1634 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1638 if test -n "$ac_init_help"; then
1643 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1644 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1645 --enable-libtool enable building using GNU libtool [default=yes]
1646 --enable-shared[=PKGS] build shared libraries [default=yes]
1647 --enable-static[=PKGS] build static libraries [default=no]
1648 --enable-fast-install[=PKGS]
1649 optimize for fast installation [default=yes]
1650 --disable-libtool-lock avoid locking (might break parallel builds)
1651 --enable-includes enable installing of include files [default=no]
1652 --disable-nls do not use Native Language Support
1653 --disable-rpath do not hardcode runtime library paths
1654 --enable-gnome enable build of bgnome-console GUI [default=no]
1655 --enable-bat enable build of bat Qt4 GUI [default=no]
1656 --enable-bwx-console enable build of wxWidgets console [default=no]
1657 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1659 --enable-smartalloc enable smartalloc debugging support [default=no]
1660 --enable-lockmgr enable lock manager support [default=no]
1661 --enable-static-tools enable static tape tools [default=no]
1662 --enable-static-fd enable static File daemon [default=no]
1663 --enable-static-sd enable static Storage daemon [default=no]
1664 --enable-static-dir enable static Director [default=no]
1665 --enable-static-cons enable static Console [default=no]
1666 --enable-client-only build client (File daemon) only [default=no]
1667 --enable-build-dird enable building of dird (Director) [default=yes]
1668 --enable-build-stored enable building of stored (Storage daemon)
1670 --disable-conio disable conio support [default=no]
1671 --enable-ipv6 enable ipv6 support [default=yes]
1672 --disable-readline disable readline support [default=yes]
1673 --enable-batch-insert enable the DB batch insert code [default=no]
1674 --disable-largefile omit support for large files
1675 --disable-acl disable acl support [default=auto]
1676 --disable-xattr disable xattr support [default=auto]
1679 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1680 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1681 --with-pic try to use only PIC/non-PIC objects [default=use
1683 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1684 --with-gnu-ld assume the C compiler uses GNU ld default=no
1685 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1686 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1687 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1688 --without-libintl-prefix don't search for libintl in includedir and libdir
1689 --with-included-gettext use the GNU gettext library included here
1690 --with-qwt[=DIR] specify qwt library directory
1691 --with-readline[=DIR] specify readline library directory
1692 --with-python[=DIR] Include Python support. DIR is the Python base
1693 install directory, default is to search through a
1694 number of common places for the Python files.
1695 --with-tcp-wrappers[=DIR]
1696 enable tcpwrappers support
1697 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1698 --with-working-dir=PATH specify path of Bacula working directory
1699 --with-archivedir=PATH specify path of SD archive directory
1700 --with-basename=RESNAME specify base resource name for daemons
1701 --with-hostname=RESNAME specify host name for daemons
1702 --with-scriptdir=PATH specify path of Bacula scripts directory
1703 --with-bsrdir=PATH specify path of Bacula bsrs directory
1704 --with-logdir=PATH specify path of Bacula logs directory
1705 --with-plugindir=PATH specify path of Bacula plugins directory
1706 --with-dump-email=EMAIL dump email address
1707 --with-job-email=EMAIL job output email address
1708 --with-smtp-host=HOST SMTP mail host address
1709 --with-pid-dir=PATH specify location of Bacula pid files
1710 --with-subsys-dir=PATH specify location of Bacula subsys file
1711 --with-baseport=PORT specify base port address for daemons
1712 --with-dir-password=PASSWORD
1713 specify Director's password
1714 --with-fd-password=PASSWORD
1715 specify Client's password
1716 --with-sd-password=PASSWORD
1717 specify Storage daemon's password
1718 --with-mon-dir-password=PASSWORD
1719 specify Director's password used by the monitor
1720 --with-mon-fd-password=PASSWORD
1721 specify Client's password used by the monitor
1722 --with-mon-sd-password=PASSWORD
1723 specify Storage daemon's password used by the
1725 --with-db-name=DBNAME specify database name [default=bacula]
1726 --with-db-user=UNAME specify database user [default=bacula]
1727 --with-db-password=PWD specify database password [default=*none*]
1728 --with-db-port=DBPORT specify a database port [default=null]
1729 --with-dir-user=USER specify user for Director daemon
1730 --with-dir-group=GROUP specify group for Director daemon
1731 --with-sd-user=USER specify user for Storage daemon
1732 --with-sd-group=GROUP specify group for Storage daemon
1733 --with-fd-user=USER specify user for File daemon
1734 --with-fd-group=GROUP specify group for File daemon
1735 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1736 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1737 base install directory, [default=/usr/local/pgsql]
1738 --with-mysql[=DIR] 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-embedded-mysql[=DIR]
1742 Include MySQL support. DIR is the MySQL base install
1743 directory, default is to search through a number of
1744 common places for the MySQL files.
1745 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1746 install directory, default is to search through a
1747 number of common places for the SQLite3 files.
1748 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1749 install directory, default is to search through a
1750 number of common places for the SQLite files.
1751 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1752 directory, default is to search through a number of
1753 common places for the DBI files.
1754 --with-dbi-driver[=DRIVER]
1755 Suport for DBI driver. DRIVER is the one DBI driver
1756 like Mysql, Postgresql, others. Default is to not
1757 configure any driver.
1758 --with-x use the X Window System
1760 Some influential environment variables:
1761 CC C compiler command
1762 CFLAGS C compiler flags
1763 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1764 nonstandard directory <lib dir>
1765 LIBS libraries to pass to the linker, e.g. -l<library>
1766 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1767 you have headers in a nonstandard directory <include dir>
1768 CXX C++ compiler command
1769 CXXFLAGS C++ compiler flags
1771 WXCONFIG wx-config command. On some systems, you must set it to
1772 wx-config-2.6 to use wxWidgets 2.6.
1773 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1774 CXXCPP C++ preprocessor
1775 XMKMF Path to xmkmf, Makefile generator for X Window System
1777 Use these variables to override the choices made by `configure' or to help
1778 it to find libraries and programs with nonstandard names/locations.
1784 if test "$ac_init_help" = "recursive"; then
1785 # If there are subdirs, report their specific --help.
1786 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1787 test -d "$ac_dir" || continue
1791 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1793 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1794 # A ".." for each directory in $ac_dir_suffix.
1795 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1796 case $ac_top_builddir_sub in
1797 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1798 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1801 ac_abs_top_builddir=$ac_pwd
1802 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1803 # for backward compatibility:
1804 ac_top_builddir=$ac_top_build_prefix
1807 .) # We are building in place.
1809 ac_top_srcdir=$ac_top_builddir_sub
1810 ac_abs_top_srcdir=$ac_pwd ;;
1811 [\\/]* | ?:[\\/]* ) # Absolute name.
1812 ac_srcdir=$srcdir$ac_dir_suffix;
1813 ac_top_srcdir=$srcdir
1814 ac_abs_top_srcdir=$srcdir ;;
1816 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1817 ac_top_srcdir=$ac_top_build_prefix$srcdir
1818 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1820 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1822 cd "$ac_dir" || { ac_status=$?; continue; }
1823 # Check for guested configure.
1824 if test -f "$ac_srcdir/configure.gnu"; then
1826 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1827 elif test -f "$ac_srcdir/configure"; then
1829 $SHELL "$ac_srcdir/configure" --help=recursive
1831 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1833 cd "$ac_pwd" || { ac_status=$?; break; }
1837 test -n "$ac_init_help" && exit $ac_status
1838 if $ac_init_version; then
1841 generated by GNU Autoconf 2.61
1843 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1844 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1845 This configure script is free software; the Free Software Foundation
1846 gives unlimited permission to copy, distribute and modify it.
1850 cat >config.log <<_ACEOF
1851 This file contains any messages produced by compilers while
1852 running configure, to aid debugging if configure makes a mistake.
1854 It was created by $as_me, which was
1855 generated by GNU Autoconf 2.61. Invocation command line was
1867 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1868 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1869 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1870 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1871 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1873 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1874 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1876 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1877 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1878 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1879 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1880 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1881 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1882 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 test -z "$as_dir" && as_dir=.
1891 echo "PATH: $as_dir"
1907 # Keep a trace of the command line.
1908 # Strip out --no-create and --no-recursion so they do not pile up.
1909 # Strip out --silent because we don't want to record it for future runs.
1910 # Also quote any args containing shell meta-characters.
1911 # Make two passes to allow for proper duplicate-argument suppression.
1915 ac_must_keep_next=false
1921 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1926 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1929 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1931 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1932 if test $ac_must_keep_next = true; then
1933 ac_must_keep_next=false # Got value, back to normal.
1936 *=* | --config-cache | -C | -disable-* | --disable-* \
1937 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1938 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1939 | -with-* | --with-* | -without-* | --without-* | --x)
1940 case "$ac_configure_args0 " in
1941 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1944 -* ) ac_must_keep_next=true ;;
1947 ac_configure_args="$ac_configure_args '$ac_arg'"
1952 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1953 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1955 # When interrupted or exit'd, cleanup temporary files, and complete
1956 # config.log. We remove comments because anyway the quotes in there
1957 # would cause problems or look ugly.
1958 # WARNING: Use '\'' to represent an apostrophe within the trap.
1959 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1960 trap 'exit_status=$?
1961 # Save into config.log some information that might help in debugging.
1966 ## ---------------- ##
1967 ## Cache variables. ##
1968 ## ---------------- ##
1971 # The following way of writing the cache mishandles newlines in values,
1973 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1974 eval ac_val=\$$ac_var
1978 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1979 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1982 _ | IFS | as_nl) ;; #(
1983 *) $as_unset $ac_var ;;
1988 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1989 *${as_nl}ac_space=\ *)
1991 "s/'\''/'\''\\\\'\'''\''/g;
1992 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1995 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2003 ## ----------------- ##
2004 ## Output variables. ##
2005 ## ----------------- ##
2008 for ac_var in $ac_subst_vars
2010 eval ac_val=\$$ac_var
2012 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2014 echo "$ac_var='\''$ac_val'\''"
2018 if test -n "$ac_subst_files"; then
2020 ## ------------------- ##
2021 ## File substitutions. ##
2022 ## ------------------- ##
2025 for ac_var in $ac_subst_files
2027 eval ac_val=\$$ac_var
2029 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2031 echo "$ac_var='\''$ac_val'\''"
2036 if test -s confdefs.h; then
2046 test "$ac_signal" != 0 &&
2047 echo "$as_me: caught signal $ac_signal"
2048 echo "$as_me: exit $exit_status"
2050 rm -f core *.core core.conftest.* &&
2051 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2054 for ac_signal in 1 2 13 15; do
2055 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2059 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2060 rm -f -r conftest* confdefs.h
2062 # Predefined preprocessor variables.
2064 cat >>confdefs.h <<_ACEOF
2065 #define PACKAGE_NAME "$PACKAGE_NAME"
2069 cat >>confdefs.h <<_ACEOF
2070 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_STRING "$PACKAGE_STRING"
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2089 # Let the site file select an alternate cache file if it wants to.
2090 # Prefer explicitly selected file to automatically selected ones.
2091 if test -n "$CONFIG_SITE"; then
2092 set x "$CONFIG_SITE"
2093 elif test "x$prefix" != xNONE; then
2094 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2096 set x "$ac_default_prefix/share/config.site" \
2097 "$ac_default_prefix/etc/config.site"
2102 if test -r "$ac_site_file"; then
2103 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2104 echo "$as_me: loading site script $ac_site_file" >&6;}
2105 sed 's/^/| /' "$ac_site_file" >&5
2110 if test -r "$cache_file"; then
2111 # Some versions of bash will fail to source /dev/null (special
2112 # files actually), so we avoid doing that.
2113 if test -f "$cache_file"; then
2114 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2115 echo "$as_me: loading cache $cache_file" >&6;}
2117 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2118 *) . "./$cache_file";;
2122 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2123 echo "$as_me: creating cache $cache_file" >&6;}
2127 # Check that the precious variables saved in the cache have kept the same
2129 ac_cache_corrupted=false
2130 for ac_var in $ac_precious_vars; do
2131 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2132 eval ac_new_set=\$ac_env_${ac_var}_set
2133 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2134 eval ac_new_val=\$ac_env_${ac_var}_value
2135 case $ac_old_set,$ac_new_set in
2137 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2138 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2139 ac_cache_corrupted=: ;;
2141 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2142 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2143 ac_cache_corrupted=: ;;
2146 if test "x$ac_old_val" != "x$ac_new_val"; then
2147 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2148 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2149 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2150 echo "$as_me: former value: $ac_old_val" >&2;}
2151 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2152 echo "$as_me: current value: $ac_new_val" >&2;}
2153 ac_cache_corrupted=:
2156 # Pass precious variables to config.status.
2157 if test "$ac_new_set" = set; then
2159 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2160 *) ac_arg=$ac_var=$ac_new_val ;;
2162 case " $ac_configure_args " in
2163 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2164 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2168 if $ac_cache_corrupted; then
2169 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2170 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2171 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2172 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2173 { (exit 1); exit 1; }; }
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2206 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2207 if test -f "$ac_dir/install-sh"; then
2209 ac_install_sh="$ac_aux_dir/install-sh -c"
2211 elif test -f "$ac_dir/install.sh"; then
2213 ac_install_sh="$ac_aux_dir/install.sh -c"
2215 elif test -f "$ac_dir/shtool"; then
2217 ac_install_sh="$ac_aux_dir/shtool install -c"
2221 if test -z "$ac_aux_dir"; then
2222 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2223 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2224 { (exit 1); exit 1; }; }
2227 # These three variables are undocumented and unsupported,
2228 # and are intended to be withdrawn in a future Autoconf release.
2229 # They can cause serious problems if a builder's source tree is in a directory
2230 # whose full name contains unusual characters.
2231 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2232 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2233 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2236 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2239 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2240 WIN32MAINDIR=${BUILD_DIR}
2241 WIN32TOPDIR=${TOP_DIR}
2251 # Extract the first word of "$ac_prog", so it can be a program name with args.
2252 set dummy $ac_prog; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2267 test -z "$as_dir" && as_dir=.
2268 for ac_exec_ext in '' $ac_executable_extensions; do
2269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2270 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 TRUEPRG=$ac_cv_path_TRUEPRG
2282 if test -n "$TRUEPRG"; then
2283 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2284 echo "${ECHO_T}$TRUEPRG" >&6; }
2286 { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2291 test -n "$TRUEPRG" && break
2293 test -n "$TRUEPRG" || TRUEPRG=":"
2295 for ac_prog in false
2297 # Extract the first word of "$ac_prog", so it can be a program name with args.
2298 set dummy $ac_prog; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 test -z "$as_dir" && as_dir=.
2314 for ac_exec_ext in '' $ac_executable_extensions; do
2315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2316 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2327 FALSEPRG=$ac_cv_path_FALSEPRG
2328 if test -n "$FALSEPRG"; then
2329 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2330 echo "${ECHO_T}$FALSEPRG" >&6; }
2332 { echo "$as_me:$LINENO: result: no" >&5
2333 echo "${ECHO_T}no" >&6; }
2337 test -n "$FALSEPRG" && break
2339 test -n "$FALSEPRG" || FALSEPRG=":"
2344 if test "x$BACULA" != x; then
2345 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2347 BACULA=${BACULA:-Bacula}
2348 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2349 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2350 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2351 echo "configuring for ${BACULA} $VERSION ($DATE)"
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 if test -n "$ac_tool_prefix"; then
2360 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2361 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2364 if test "${ac_cv_prog_CC+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 if test -n "$CC"; then
2368 ac_cv_prog_CC="$CC" # Let the user override the test.
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2374 test -z "$as_dir" && as_dir=.
2375 for ac_exec_ext in '' $ac_executable_extensions; do
2376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2388 if test -n "$CC"; then
2389 { echo "$as_me:$LINENO: result: $CC" >&5
2390 echo "${ECHO_T}$CC" >&6; }
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2398 if test -z "$ac_cv_prog_CC"; then
2400 # Extract the first word of "gcc", so it can be a program name with args.
2401 set dummy gcc; ac_word=$2
2402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$ac_ct_CC"; then
2408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417 ac_cv_prog_ac_ct_CC="gcc"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2428 if test -n "$ac_ct_CC"; then
2429 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2430 echo "${ECHO_T}$ac_ct_CC" >&6; }
2432 { echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6; }
2436 if test "x$ac_ct_CC" = x; then
2439 case $cross_compiling:$ac_tool_warned in
2441 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet. If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&5
2444 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2445 whose name does not start with the host triplet. If you think this
2446 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2447 ac_tool_warned=yes ;;
2455 if test -z "$CC"; then
2456 if test -n "$ac_tool_prefix"; then
2457 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2458 set dummy ${ac_tool_prefix}cc; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$CC"; then
2465 ac_cv_prog_CC="$CC" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474 ac_cv_prog_CC="${ac_tool_prefix}cc"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2485 if test -n "$CC"; then
2486 { echo "$as_me:$LINENO: result: $CC" >&5
2487 echo "${ECHO_T}$CC" >&6; }
2489 { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2496 if test -z "$CC"; then
2497 # Extract the first word of "cc", so it can be a program name with args.
2498 set dummy cc; ac_word=$2
2499 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2501 if test "${ac_cv_prog_CC+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 if test -n "$CC"; then
2505 ac_cv_prog_CC="$CC" # Let the user override the test.
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512 test -z "$as_dir" && as_dir=.
2513 for ac_exec_ext in '' $ac_executable_extensions; do
2514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2516 ac_prog_rejected=yes
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 if test $ac_prog_rejected = yes; then
2528 # We found a bogon in the path, so make sure we never use it.
2529 set dummy $ac_cv_prog_CC
2531 if test $# != 0; then
2532 # We chose a different compiler from the bogus one.
2533 # However, it has the same basename, so the bogon will be chosen
2534 # first if we set CC to just the basename; use the full file name.
2536 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2542 if test -n "$CC"; then
2543 { echo "$as_me:$LINENO: result: $CC" >&5
2544 echo "${ECHO_T}$CC" >&6; }
2546 { echo "$as_me:$LINENO: result: no" >&5
2547 echo "${ECHO_T}no" >&6; }
2552 if test -z "$CC"; then
2553 if test -n "$ac_tool_prefix"; then
2554 for ac_prog in cl.exe
2556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2560 if test "${ac_cv_prog_CC+set}" = set; then
2561 echo $ECHO_N "(cached) $ECHO_C" >&6
2563 if test -n "$CC"; then
2564 ac_cv_prog_CC="$CC" # Let the user override the test.
2566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2570 test -z "$as_dir" && as_dir=.
2571 for ac_exec_ext in '' $ac_executable_extensions; do
2572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 if test -n "$CC"; then
2585 { echo "$as_me:$LINENO: result: $CC" >&5
2586 echo "${ECHO_T}$CC" >&6; }
2588 { echo "$as_me:$LINENO: result: no" >&5
2589 echo "${ECHO_T}no" >&6; }
2593 test -n "$CC" && break
2596 if test -z "$CC"; then
2598 for ac_prog in cl.exe
2600 # Extract the first word of "$ac_prog", so it can be a program name with args.
2601 set dummy $ac_prog; ac_word=$2
2602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2604 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2605 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 if test -n "$ac_ct_CC"; then
2608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2617 ac_cv_prog_ac_ct_CC="$ac_prog"
2618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2628 if test -n "$ac_ct_CC"; then
2629 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2630 echo "${ECHO_T}$ac_ct_CC" >&6; }
2632 { echo "$as_me:$LINENO: result: no" >&5
2633 echo "${ECHO_T}no" >&6; }
2637 test -n "$ac_ct_CC" && break
2640 if test "x$ac_ct_CC" = x; then
2643 case $cross_compiling:$ac_tool_warned in
2645 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet. If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&5
2648 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2649 whose name does not start with the host triplet. If you think this
2650 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2651 ac_tool_warned=yes ;;
2660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2661 See \`config.log' for more details." >&5
2662 echo "$as_me: error: no acceptable C compiler found in \$PATH
2663 See \`config.log' for more details." >&2;}
2664 { (exit 1); exit 1; }; }
2666 # Provide some information about the compiler.
2667 echo "$as_me:$LINENO: checking for C compiler version" >&5
2668 ac_compiler=`set X $ac_compile; echo $2`
2669 { (ac_try="$ac_compiler --version >&5"
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compiler --version >&5") 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }
2679 { (ac_try="$ac_compiler -v >&5"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compiler -v >&5") 2>&5
2687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688 (exit $ac_status); }
2689 { (ac_try="$ac_compiler -V >&5"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler -V >&5") 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2715 ac_clean_files_save=$ac_clean_files
2716 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2717 # Try to create an executable without -o first, disregard a.out.
2718 # It will help us diagnose broken compilers, and finding out an intuition
2720 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2721 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2722 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2724 # List of possible output files, starting from the most likely.
2725 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2726 # only as a last resort. b.out is created by i960 compilers.
2727 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2729 # The IRIX 6 linker writes into existing files which may not be
2730 # executable, retaining their permissions. Remove them first so a
2731 # subsequent execution test works.
2733 for ac_file in $ac_files
2736 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2737 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2742 if { (ac_try="$ac_link_default"
2744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2745 *) ac_try_echo=$ac_try;;
2747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2748 (eval "$ac_link_default") 2>&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; then
2752 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2753 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2754 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2755 # so that the user can short-circuit this test for compilers unknown to
2757 for ac_file in $ac_files ''
2759 test -f "$ac_file" || continue
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2764 # We found the default executable, but exeext='' is most
2768 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2770 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2772 # We set ac_cv_exeext here because the later test for it is not
2773 # safe: cross compilers may not add the suffix if given an `-o'
2774 # argument, so we may need to know it at that point already.
2775 # Even if this section looks crufty: it has the advantage of
2782 test "$ac_cv_exeext" = no && ac_cv_exeext=
2788 { echo "$as_me:$LINENO: result: $ac_file" >&5
2789 echo "${ECHO_T}$ac_file" >&6; }
2790 if test -z "$ac_file"; then
2791 echo "$as_me: failed program was:" >&5
2792 sed 's/^/| /' conftest.$ac_ext >&5
2794 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2795 See \`config.log' for more details." >&5
2796 echo "$as_me: error: C compiler cannot create executables
2797 See \`config.log' for more details." >&2;}
2798 { (exit 77); exit 77; }; }
2801 ac_exeext=$ac_cv_exeext
2803 # Check that the compiler produces executables we can run. If not, either
2804 # the compiler is broken, or we cross compile.
2805 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2806 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2807 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2808 # If not cross compiling, check that we can run a simple program.
2809 if test "$cross_compiling" != yes; then
2810 if { ac_try='./$ac_file'
2811 { (case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_try") 2>&5
2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2819 (exit $ac_status); }; }; then
2822 if test "$cross_compiling" = maybe; then
2825 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2826 If you meant to cross compile, use \`--host'.
2827 See \`config.log' for more details." >&5
2828 echo "$as_me: error: cannot run C compiled programs.
2829 If you meant to cross compile, use \`--host'.
2830 See \`config.log' for more details." >&2;}
2831 { (exit 1); exit 1; }; }
2835 { echo "$as_me:$LINENO: result: yes" >&5
2836 echo "${ECHO_T}yes" >&6; }
2838 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2839 ac_clean_files=$ac_clean_files_save
2840 # Check that the compiler produces executables we can run. If not, either
2841 # the compiler is broken, or we cross compile.
2842 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2843 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2844 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2845 echo "${ECHO_T}$cross_compiling" >&6; }
2847 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2848 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2849 if { (ac_try="$ac_link"
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_link") 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; then
2859 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2860 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2861 # work properly (i.e., refer to `conftest.exe'), while it won't with
2863 for ac_file in conftest.exe conftest conftest.*; do
2864 test -f "$ac_file" || continue
2866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2873 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2874 See \`config.log' for more details." >&5
2875 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2876 See \`config.log' for more details." >&2;}
2877 { (exit 1); exit 1; }; }
2880 rm -f conftest$ac_cv_exeext
2881 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2882 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2884 rm -f conftest.$ac_ext
2885 EXEEXT=$ac_cv_exeext
2887 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2888 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2889 if test "${ac_cv_objext+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 cat >conftest.$ac_ext <<_ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2907 rm -f conftest.o conftest.obj
2908 if { (ac_try="$ac_compile"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compile") 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; then
2918 for ac_file in conftest.o conftest.obj conftest.*; do
2919 test -f "$ac_file" || continue;
2921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2922 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2927 echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2930 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2931 See \`config.log' for more details." >&5
2932 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2933 See \`config.log' for more details." >&2;}
2934 { (exit 1); exit 1; }; }
2937 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2939 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2940 echo "${ECHO_T}$ac_cv_objext" >&6; }
2941 OBJEXT=$ac_cv_objext
2943 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2944 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2945 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2946 echo $ECHO_N "(cached) $ECHO_C" >&6
2948 cat >conftest.$ac_ext <<_ACEOF
2951 cat confdefs.h >>conftest.$ac_ext
2952 cat >>conftest.$ac_ext <<_ACEOF
2953 /* end confdefs.h. */
2966 rm -f conftest.$ac_objext
2967 if { (ac_try="$ac_compile"
2969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2970 *) ac_try_echo=$ac_try;;
2972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2973 (eval "$ac_compile") 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } && {
2980 test -z "$ac_c_werror_flag" ||
2981 test ! -s conftest.err
2982 } && test -s conftest.$ac_objext; then
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2992 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2995 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2996 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2997 GCC=`test $ac_compiler_gnu = yes && echo yes`
2998 ac_test_CFLAGS=${CFLAGS+set}
2999 ac_save_CFLAGS=$CFLAGS
3000 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3001 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3002 if test "${ac_cv_prog_cc_g+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3005 ac_save_c_werror_flag=$ac_c_werror_flag
3006 ac_c_werror_flag=yes
3009 cat >conftest.$ac_ext <<_ACEOF
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3024 rm -f conftest.$ac_objext
3025 if { (ac_try="$ac_compile"
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compile") 2>conftest.er1
3033 grep -v '^ *+' conftest.er1 >conftest.err
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } && {
3038 test -z "$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 } && test -s conftest.$ac_objext; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3062 rm -f conftest.$ac_objext
3063 if { (ac_try="$ac_compile"
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3069 (eval "$ac_compile") 2>conftest.er1
3071 grep -v '^ *+' conftest.er1 >conftest.err
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } && {
3076 test -z "$ac_c_werror_flag" ||
3077 test ! -s conftest.err
3078 } && test -s conftest.$ac_objext; then
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 ac_c_werror_flag=$ac_save_c_werror_flag
3086 cat >conftest.$ac_ext <<_ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3101 rm -f conftest.$ac_objext
3102 if { (ac_try="$ac_compile"
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3108 (eval "$ac_compile") 2>conftest.er1
3110 grep -v '^ *+' conftest.er1 >conftest.err
3112 cat conftest.err >&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); } && {
3115 test -z "$ac_c_werror_flag" ||
3116 test ! -s conftest.err
3117 } && test -s conftest.$ac_objext; then
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3133 ac_c_werror_flag=$ac_save_c_werror_flag
3135 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3136 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3137 if test "$ac_test_CFLAGS" = set; then
3138 CFLAGS=$ac_save_CFLAGS
3139 elif test $ac_cv_prog_cc_g = yes; then
3140 if test "$GCC" = yes; then
3146 if test "$GCC" = yes; then
3152 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3153 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3154 if test "${ac_cv_prog_cc_c89+set}" = set; then
3155 echo $ECHO_N "(cached) $ECHO_C" >&6
3157 ac_cv_prog_cc_c89=no
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3167 #include <sys/types.h>
3168 #include <sys/stat.h>
3169 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3170 struct buf { int x; };
3171 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3172 static char *e (p, i)
3178 static char *f (char * (*g) (char **, int), char **p, ...)
3183 s = g (p, va_arg (v,int));
3188 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3189 function prototypes and stuff, but not '\xHH' hex character constants.
3190 These don't provoke an error unfortunately, instead are silently treated
3191 as 'x'. The following induces an error, until -std is added to get
3192 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3193 array size at least. It's necessary to write '\x00'==0 to get something
3194 that's true only with -std. */
3195 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3197 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3198 inside strings and character constants. */
3200 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3202 int test (int i, double x);
3203 struct s1 {int (*f) (int a);};
3204 struct s2 {int (*f) (double a);};
3205 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3211 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3216 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3217 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3219 CC="$ac_save_CC $ac_arg"
3220 rm -f conftest.$ac_objext
3221 if { (ac_try="$ac_compile"
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3227 (eval "$ac_compile") 2>conftest.er1
3229 grep -v '^ *+' conftest.er1 >conftest.err
3231 cat conftest.err >&5
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); } && {
3234 test -z "$ac_c_werror_flag" ||
3235 test ! -s conftest.err
3236 } && test -s conftest.$ac_objext; then
3237 ac_cv_prog_cc_c89=$ac_arg
3239 echo "$as_me: failed program was:" >&5
3240 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f core conftest.err conftest.$ac_objext
3246 test "x$ac_cv_prog_cc_c89" != "xno" && break
3248 rm -f conftest.$ac_ext
3253 case "x$ac_cv_prog_cc_c89" in
3255 { echo "$as_me:$LINENO: result: none needed" >&5
3256 echo "${ECHO_T}none needed" >&6; } ;;
3258 { echo "$as_me:$LINENO: result: unsupported" >&5
3259 echo "${ECHO_T}unsupported" >&6; } ;;
3261 CC="$CC $ac_cv_prog_cc_c89"
3262 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3263 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3268 ac_cpp='$CPP $CPPFLAGS'
3269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274 ac_cpp='$CXXCPP $CPPFLAGS'
3275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3278 if test -z "$CXX"; then
3279 if test -n "$CCC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_CXX+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3292 if test -n "$CXX"; then
3293 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test -n "$CXX"; then
3314 { echo "$as_me:$LINENO: result: $CXX" >&5
3315 echo "${ECHO_T}$CXX" >&6; }
3317 { echo "$as_me:$LINENO: result: no" >&5
3318 echo "${ECHO_T}no" >&6; }
3322 test -n "$CXX" && break
3325 if test -z "$CXX"; then
3327 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3333 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 if test -n "$ac_ct_CXX"; then
3337 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346 ac_cv_prog_ac_ct_CXX="$ac_prog"
3347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3357 if test -n "$ac_ct_CXX"; then
3358 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3359 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3361 { echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6; }
3366 test -n "$ac_ct_CXX" && break
3369 if test "x$ac_ct_CXX" = x; then
3372 case $cross_compiling:$ac_tool_warned in
3374 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3375 whose name does not start with the host triplet. If you think this
3376 configuration is useful to you, please write to autoconf@gnu.org." >&5
3377 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3378 whose name does not start with the host triplet. If you think this
3379 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3380 ac_tool_warned=yes ;;
3388 # Provide some information about the compiler.
3389 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3390 ac_compiler=`set X $ac_compile; echo $2`
3391 { (ac_try="$ac_compiler --version >&5"
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3397 (eval "$ac_compiler --version >&5") 2>&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); }
3401 { (ac_try="$ac_compiler -v >&5"
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_compiler -v >&5") 2>&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }
3411 { (ac_try="$ac_compiler -V >&5"
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_compiler -V >&5") 2>&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }
3422 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3423 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3424 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3445 rm -f conftest.$ac_objext
3446 if { (ac_try="$ac_compile"
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_compile") 2>conftest.er1
3454 grep -v '^ *+' conftest.er1 >conftest.err
3456 cat conftest.err >&5
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); } && {
3459 test -z "$ac_cxx_werror_flag" ||
3460 test ! -s conftest.err
3461 } && test -s conftest.$ac_objext; then
3464 echo "$as_me: failed program was:" >&5
3465 sed 's/^/| /' conftest.$ac_ext >&5
3470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3471 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3474 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3475 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3476 GXX=`test $ac_compiler_gnu = yes && echo yes`
3477 ac_test_CXXFLAGS=${CXXFLAGS+set}
3478 ac_save_CXXFLAGS=$CXXFLAGS
3479 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3480 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3481 if test "${ac_cv_prog_cxx_g+set}" = set; then
3482 echo $ECHO_N "(cached) $ECHO_C" >&6
3484 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3485 ac_cxx_werror_flag=yes
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_compile") 2>conftest.er1
3512 grep -v '^ *+' conftest.er1 >conftest.err
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } && {
3517 test -z "$ac_cxx_werror_flag" ||
3518 test ! -s conftest.err
3519 } && test -s conftest.$ac_objext; then
3520 ac_cv_prog_cxx_g=yes
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3526 cat >conftest.$ac_ext <<_ACEOF
3529 cat confdefs.h >>conftest.$ac_ext
3530 cat >>conftest.$ac_ext <<_ACEOF
3531 /* end confdefs.h. */
3541 rm -f conftest.$ac_objext
3542 if { (ac_try="$ac_compile"
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_compile") 2>conftest.er1
3550 grep -v '^ *+' conftest.er1 >conftest.err
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } && {
3555 test -z "$ac_cxx_werror_flag" ||
3556 test ! -s conftest.err
3557 } && test -s conftest.$ac_objext; then
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3565 cat >conftest.$ac_ext <<_ACEOF
3568 cat confdefs.h >>conftest.$ac_ext
3569 cat >>conftest.$ac_ext <<_ACEOF
3570 /* end confdefs.h. */
3580 rm -f conftest.$ac_objext
3581 if { (ac_try="$ac_compile"
3583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584 *) ac_try_echo=$ac_try;;
3586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3587 (eval "$ac_compile") 2>conftest.er1
3589 grep -v '^ *+' conftest.er1 >conftest.err
3591 cat conftest.err >&5
3592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593 (exit $ac_status); } && {
3594 test -z "$ac_cxx_werror_flag" ||
3595 test ! -s conftest.err
3596 } && test -s conftest.$ac_objext; then
3597 ac_cv_prog_cxx_g=yes
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3612 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3614 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3615 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3616 if test "$ac_test_CXXFLAGS" = set; then
3617 CXXFLAGS=$ac_save_CXXFLAGS
3618 elif test $ac_cv_prog_cxx_g = yes; then
3619 if test "$GXX" = yes; then
3625 if test "$GXX" = yes; then
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 if test "x$CC" != xcc; then
3638 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3639 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3641 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3642 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3644 set dummy $CC; ac_cc=`echo $2 |
3645 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3646 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 cat >conftest.$ac_ext <<_ACEOF
3652 cat confdefs.h >>conftest.$ac_ext
3653 cat >>conftest.$ac_ext <<_ACEOF
3654 /* end confdefs.h. */
3664 # Make sure it works both with $CC and with simple cc.
3665 # We do the test twice because some compilers refuse to overwrite an
3666 # existing .o file with -o, though they will create one.
3667 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3669 if { (case "(($ac_try" in
3670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671 *) ac_try_echo=$ac_try;;
3673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3674 (eval "$ac_try") 2>&5
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } &&
3678 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_try") 2>&5
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); };
3688 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3689 if test "x$CC" != xcc; then
3690 # Test first that cc exists at all.
3691 if { ac_try='cc -c conftest.$ac_ext >&5'
3692 { (case "(($ac_try" in
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3697 (eval "$ac_try") 2>&5
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3703 if { (case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_try") 2>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3714 *) ac_try_echo=$ac_try;;
3716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3717 (eval "$ac_try") 2>&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); };
3725 # cc exists but doesn't like -o.
3726 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3731 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3733 rm -f core conftest*
3736 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3737 { echo "$as_me:$LINENO: result: yes" >&5
3738 echo "${ECHO_T}yes" >&6; }
3740 { echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6; }
3743 cat >>confdefs.h <<\_ACEOF
3744 #define NO_MINUS_C_MINUS_O 1
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3755 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3756 # On Suns, sometimes $CPP names a directory.
3757 if test -n "$CPP" && test -d "$CPP"; then
3760 if test -z "$CPP"; then
3761 if test "${ac_cv_prog_CPP+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 # Double quotes because CPP needs to be expanded
3765 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3768 for ac_c_preproc_warn_flag in '' yes
3770 # Use a header file that comes with gcc, so configuring glibc
3771 # with a fresh cross-compiler works.
3772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3773 # <limits.h> exists even on freestanding compilers.
3774 # On the NeXT, cc -E runs the code through the compiler's parser,
3775 # not just through cpp. "Syntax error" is here to catch this case.
3776 cat >conftest.$ac_ext <<_ACEOF
3779 cat confdefs.h >>conftest.$ac_ext
3780 cat >>conftest.$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3783 # include <limits.h>
3785 # include <assert.h>
3789 if { (ac_try="$ac_cpp conftest.$ac_ext"
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3797 grep -v '^ *+' conftest.er1 >conftest.err
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } >/dev/null && {
3802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3810 # Broken: fails on valid input.
3814 rm -f conftest.err conftest.$ac_ext
3816 # OK, works on sane cases. Now check whether nonexistent headers
3817 # can be detected and how.
3818 cat >conftest.$ac_ext <<_ACEOF
3821 cat confdefs.h >>conftest.$ac_ext
3822 cat >>conftest.$ac_ext <<_ACEOF
3823 /* end confdefs.h. */
3824 #include <ac_nonexistent.h>
3826 if { (ac_try="$ac_cpp conftest.$ac_ext"
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3834 grep -v '^ *+' conftest.er1 >conftest.err
3836 cat conftest.err >&5
3837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3838 (exit $ac_status); } >/dev/null && {
3839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3840 test ! -s conftest.err
3842 # Broken: success on invalid input.
3845 echo "$as_me: failed program was:" >&5
3846 sed 's/^/| /' conftest.$ac_ext >&5
3848 # Passes both tests.
3853 rm -f conftest.err conftest.$ac_ext
3856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3857 rm -f conftest.err conftest.$ac_ext
3858 if $ac_preproc_ok; then
3870 { echo "$as_me:$LINENO: result: $CPP" >&5
3871 echo "${ECHO_T}$CPP" >&6; }
3873 for ac_c_preproc_warn_flag in '' yes
3875 # Use a header file that comes with gcc, so configuring glibc
3876 # with a fresh cross-compiler works.
3877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3878 # <limits.h> exists even on freestanding compilers.
3879 # On the NeXT, cc -E runs the code through the compiler's parser,
3880 # not just through cpp. "Syntax error" is here to catch this case.
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3888 # include <limits.h>
3890 # include <assert.h>
3894 if { (ac_try="$ac_cpp conftest.$ac_ext"
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3902 grep -v '^ *+' conftest.er1 >conftest.err
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } >/dev/null && {
3907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3908 test ! -s conftest.err
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 # Broken: fails on valid input.
3919 rm -f conftest.err conftest.$ac_ext
3921 # OK, works on sane cases. Now check whether nonexistent headers
3922 # can be detected and how.
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3929 #include <ac_nonexistent.h>
3931 if { (ac_try="$ac_cpp conftest.$ac_ext"
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3939 grep -v '^ *+' conftest.er1 >conftest.err
3941 cat conftest.err >&5
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); } >/dev/null && {
3944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3945 test ! -s conftest.err
3947 # Broken: success on invalid input.
3950 echo "$as_me: failed program was:" >&5
3951 sed 's/^/| /' conftest.$ac_ext >&5
3953 # Passes both tests.
3958 rm -f conftest.err conftest.$ac_ext
3961 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3962 rm -f conftest.err conftest.$ac_ext
3963 if $ac_preproc_ok; then
3966 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3967 See \`config.log' for more details." >&5
3968 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3969 See \`config.log' for more details." >&2;}
3970 { (exit 1); exit 1; }; }
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3981 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3982 if test "${ac_cv_path_GREP+set}" = set; then
3983 echo $ECHO_N "(cached) $ECHO_C" >&6
3985 # Extract the first word of "grep ggrep" to use in msg output
3986 if test -z "$GREP"; then
3987 set dummy grep ggrep; ac_prog_name=$2
3988 if test "${ac_cv_path_GREP+set}" = set; then
3989 echo $ECHO_N "(cached) $ECHO_C" >&6
3991 ac_path_GREP_found=false
3992 # Loop through the user's path and test for each of PROGNAME-LIST
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3997 test -z "$as_dir" && as_dir=.
3998 for ac_prog in grep ggrep; do
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4001 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4002 # Check for GNU ac_path_GREP and select it if it is found.
4003 # Check for GNU $ac_path_GREP
4004 case `"$ac_path_GREP" --version 2>&1` in
4006 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4009 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4012 cat "conftest.in" "conftest.in" >"conftest.tmp"
4013 mv "conftest.tmp" "conftest.in"
4014 cp "conftest.in" "conftest.nl"
4015 echo 'GREP' >> "conftest.nl"
4016 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4018 ac_count=`expr $ac_count + 1`
4019 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4020 # Best one so far, save it but keep looking for a better one
4021 ac_cv_path_GREP="$ac_path_GREP"
4022 ac_path_GREP_max=$ac_count
4024 # 10*(2^10) chars as input seems more than enough
4025 test $ac_count -gt 10 && break
4027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4031 $ac_path_GREP_found && break 3
4041 GREP="$ac_cv_path_GREP"
4042 if test -z "$GREP"; then
4043 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4044 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4045 { (exit 1); exit 1; }; }
4049 ac_cv_path_GREP=$GREP
4054 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4055 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4056 GREP="$ac_cv_path_GREP"
4059 { echo "$as_me:$LINENO: checking for egrep" >&5
4060 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4061 if test "${ac_cv_path_EGREP+set}" = set; then
4062 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4065 then ac_cv_path_EGREP="$GREP -E"
4067 # Extract the first word of "egrep" to use in msg output
4068 if test -z "$EGREP"; then
4069 set dummy egrep; ac_prog_name=$2
4070 if test "${ac_cv_path_EGREP+set}" = set; then
4071 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 ac_path_EGREP_found=false
4074 # Loop through the user's path and test for each of PROGNAME-LIST
4075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079 test -z "$as_dir" && as_dir=.
4080 for ac_prog in egrep; do
4081 for ac_exec_ext in '' $ac_executable_extensions; do
4082 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4083 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4084 # Check for GNU ac_path_EGREP and select it if it is found.
4085 # Check for GNU $ac_path_EGREP
4086 case `"$ac_path_EGREP" --version 2>&1` in
4088 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4091 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4094 cat "conftest.in" "conftest.in" >"conftest.tmp"
4095 mv "conftest.tmp" "conftest.in"
4096 cp "conftest.in" "conftest.nl"
4097 echo 'EGREP' >> "conftest.nl"
4098 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4100 ac_count=`expr $ac_count + 1`
4101 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4102 # Best one so far, save it but keep looking for a better one
4103 ac_cv_path_EGREP="$ac_path_EGREP"
4104 ac_path_EGREP_max=$ac_count
4106 # 10*(2^10) chars as input seems more than enough
4107 test $ac_count -gt 10 && break
4109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113 $ac_path_EGREP_found && break 3
4123 EGREP="$ac_cv_path_EGREP"
4124 if test -z "$EGREP"; then
4125 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4126 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4127 { (exit 1); exit 1; }; }
4131 ac_cv_path_EGREP=$EGREP
4137 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4138 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4139 EGREP="$ac_cv_path_EGREP"
4142 if test $ac_cv_c_compiler_gnu = yes; then
4143 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4144 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4145 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 ac_pattern="Autoconf.*'x'"
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4159 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4160 ac_cv_prog_gcc_traditional=yes
4162 ac_cv_prog_gcc_traditional=no
4167 if test $ac_cv_prog_gcc_traditional = no; then
4168 cat >conftest.$ac_ext <<_ACEOF
4171 cat confdefs.h >>conftest.$ac_ext
4172 cat >>conftest.$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4178 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4179 ac_cv_prog_gcc_traditional=yes
4185 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4186 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4187 if test $ac_cv_prog_gcc_traditional = yes; then
4188 CC="$CC -traditional"
4192 BASECC=`basename $CC`
4194 if test "x$BASECC" = xgcc; then
4195 cat >>confdefs.h <<\_ACEOF
4201 # Extract the first word of "$CXX", so it can be a program name with args.
4202 set dummy $CXX; ac_word=$2
4203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4205 if test "${ac_cv_path_CXX+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 test -z "$as_dir" && as_dir=.
4218 for ac_exec_ext in '' $ac_executable_extensions; do
4219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4220 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4233 if test -n "$CXX"; then
4234 { echo "$as_me:$LINENO: result: $CXX" >&5
4235 echo "${ECHO_T}$CXX" >&6; }
4237 { echo "$as_me:$LINENO: result: no" >&5
4238 echo "${ECHO_T}no" >&6; }
4242 if test ! -e $CXX; then
4243 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4244 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4245 { (exit 1); exit 1; }; }
4248 # Find a good install program. We prefer a C program (faster),
4249 # so one script is as good as another. But avoid the broken or
4250 # incompatible versions:
4251 # SysV /etc/install, /usr/sbin/install
4252 # SunOS /usr/etc/install
4253 # IRIX /sbin/install
4255 # AmigaOS /C/install, which installs bootblocks on floppy discs
4256 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4257 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4258 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4259 # OS/2's system install, which has a completely different semantic
4260 # ./install, which can be erroneously created by make from ./install.sh.
4261 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4262 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4263 if test -z "$INSTALL"; then
4264 if test "${ac_cv_path_install+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4271 test -z "$as_dir" && as_dir=.
4272 # Account for people who put trailing slashes in PATH elements.
4274 ./ | .// | /cC/* | \
4275 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4276 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4279 # OSF1 and SCO ODT 3.0 have their own names for install.
4280 # Don't use installbsd from OSF since it installs stuff as root
4282 for ac_prog in ginstall scoinst install; do
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4285 if test $ac_prog = install &&
4286 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287 # AIX install. It has an incompatible calling convention.
4289 elif test $ac_prog = install &&
4290 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4291 # program-specific install script used by HP pwplus--don't use.
4294 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4307 if test "${ac_cv_path_install+set}" = set; then
4308 INSTALL=$ac_cv_path_install
4310 # As a last resort, use the slow shell script. Don't cache a
4311 # value for INSTALL within a source directory, because that will
4312 # break other packages using the cache if that directory is
4313 # removed, or if the value is a relative name.
4314 INSTALL=$ac_install_sh
4317 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4318 echo "${ECHO_T}$INSTALL" >&6; }
4320 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4321 # It thinks the first close brace ends the variable substitution.
4322 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4324 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4328 # Extract the first word of "mv", so it can be a program name with args.
4329 set dummy mv; ac_word=$2
4330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4332 if test "${ac_cv_path_MV+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4337 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4347 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4355 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4360 if test -n "$MV"; then
4361 { echo "$as_me:$LINENO: result: $MV" >&5
4362 echo "${ECHO_T}$MV" >&6; }
4364 { echo "$as_me:$LINENO: result: no" >&5
4365 echo "${ECHO_T}no" >&6; }
4369 # Extract the first word of "rm", so it can be a program name with args.
4370 set dummy rm; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_path_REMOVE+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4385 test -z "$as_dir" && as_dir=.
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4388 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4400 REMOVE=$ac_cv_path_REMOVE
4401 if test -n "$REMOVE"; then
4402 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4403 echo "${ECHO_T}$REMOVE" >&6; }
4405 { echo "$as_me:$LINENO: result: no" >&5
4406 echo "${ECHO_T}no" >&6; }
4410 # Extract the first word of "cp", so it can be a program name with args.
4411 set dummy cp; ac_word=$2
4412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414 if test "${ac_cv_path_CP+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426 test -z "$as_dir" && as_dir=.
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4442 if test -n "$CP"; then
4443 { echo "$as_me:$LINENO: result: $CP" >&5
4444 echo "${ECHO_T}$CP" >&6; }
4446 { echo "$as_me:$LINENO: result: no" >&5
4447 echo "${ECHO_T}no" >&6; }
4451 # Extract the first word of "sed", so it can be a program name with args.
4452 set dummy sed; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_path_SED+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4460 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4483 if test -n "$SED"; then
4484 { echo "$as_me:$LINENO: result: $SED" >&5
4485 echo "${ECHO_T}$SED" >&6; }
4487 { echo "$as_me:$LINENO: result: no" >&5
4488 echo "${ECHO_T}no" >&6; }
4492 # Extract the first word of "echo", so it can be a program name with args.
4493 set dummy echo; ac_word=$2
4494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4496 if test "${ac_cv_path_ECHO+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4519 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4523 ECHO=$ac_cv_path_ECHO
4524 if test -n "$ECHO"; then
4525 { echo "$as_me:$LINENO: result: $ECHO" >&5
4526 echo "${ECHO_T}$ECHO" >&6; }
4528 { echo "$as_me:$LINENO: result: no" >&5
4529 echo "${ECHO_T}no" >&6; }
4533 # Extract the first word of "cmp", so it can be a program name with args.
4534 set dummy cmp; ac_word=$2
4535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4537 if test "${ac_cv_path_CMP+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4542 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4560 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4565 if test -n "$CMP"; then
4566 { echo "$as_me:$LINENO: result: $CMP" >&5
4567 echo "${ECHO_T}$CMP" >&6; }
4569 { echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6; }
4574 # Extract the first word of "tbl", so it can be a program name with args.
4575 set dummy tbl; ac_word=$2
4576 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4578 if test "${ac_cv_path_TBL+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4606 if test -n "$TBL"; then
4607 { echo "$as_me:$LINENO: result: $TBL" >&5
4608 echo "${ECHO_T}$TBL" >&6; }
4610 { echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6; }
4615 # Extract the first word of "ar", so it can be a program name with args.
4616 set dummy ar; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_path_AR+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4624 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4634 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4647 if test -n "$AR"; then
4648 { echo "$as_me:$LINENO: result: $AR" >&5
4649 echo "${ECHO_T}$AR" >&6; }
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4656 # Extract the first word of "openssl", so it can be a program name with args.
4657 set dummy openssl; ac_word=$2
4658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4660 if test "${ac_cv_path_OPENSSL+set}" = set; then
4661 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4675 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4687 OPENSSL=$ac_cv_path_OPENSSL
4688 if test -n "$OPENSSL"; then
4689 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4690 echo "${ECHO_T}$OPENSSL" >&6; }
4692 { echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6; }
4697 # Extract the first word of "mtx", so it can be a program name with args.
4698 set dummy mtx; ac_word=$2
4699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4701 if test "${ac_cv_path_MTX+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4706 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4729 if test -n "$MTX"; then
4730 { echo "$as_me:$LINENO: result: $MTX" >&5
4731 echo "${ECHO_T}$MTX" >&6; }
4733 { echo "$as_me:$LINENO: result: no" >&5
4734 echo "${ECHO_T}no" >&6; }
4738 # Extract the first word of "dd", so it can be a program name with args.
4739 set dummy dd; ac_word=$2
4740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4742 if test "${ac_cv_path_DD+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4765 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4770 if test -n "$DD"; then
4771 { echo "$as_me:$LINENO: result: $DD" >&5
4772 echo "${ECHO_T}$DD" >&6; }
4774 { echo "$as_me:$LINENO: result: no" >&5
4775 echo "${ECHO_T}no" >&6; }
4779 # Extract the first word of "mkisofs", so it can be a program name with args.
4780 set dummy mkisofs; ac_word=$2
4781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4783 if test "${ac_cv_path_MKISOFS+set}" = set; then
4784 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 test -z "$as_dir" && as_dir=.
4796 for ac_exec_ext in '' $ac_executable_extensions; do
4797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4798 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4810 MKISOFS=$ac_cv_path_MKISOFS
4811 if test -n "$MKISOFS"; then
4812 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4813 echo "${ECHO_T}$MKISOFS" >&6; }
4815 { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4820 # Extract the first word of "python", so it can be a program name with args.
4821 set dummy python; ac_word=$2
4822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4824 if test "${ac_cv_path_PYTHON+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 test -z "$as_dir" && as_dir=.
4837 for ac_exec_ext in '' $ac_executable_extensions; do
4838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4839 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4851 PYTHON=$ac_cv_path_PYTHON
4852 if test -n "$PYTHON"; then
4853 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4854 echo "${ECHO_T}$PYTHON" >&6; }
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4861 # Extract the first word of "growisofs", so it can be a program name with args.
4862 set dummy growisofs; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4870 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4892 GROWISOFS=$ac_cv_path_GROWISOFS
4893 if test -n "$GROWISOFS"; then
4894 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4895 echo "${ECHO_T}$GROWISOFS" >&6; }
4897 { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4902 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4903 set dummy dvd+rw-mediainfo; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 case $DVDRWMEDIAINFO in
4911 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4933 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4934 if test -n "$DVDRWMEDIAINFO"; then
4935 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4936 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4938 { echo "$as_me:$LINENO: result: no" >&5
4939 echo "${ECHO_T}no" >&6; }
4943 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4944 set dummy dvd+rw-format; ac_word=$2
4945 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4947 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4948 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 case $DVDRWFORMAT in
4952 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4974 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4975 if test -n "$DVDRWFORMAT"; then
4976 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4977 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4979 { echo "$as_me:$LINENO: result: no" >&5
4980 echo "${ECHO_T}no" >&6; }
4984 # Extract the first word of "pkg-config", so it can be a program name with args.
4985 set dummy pkg-config; ac_word=$2
4986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4988 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 test -z "$as_dir" && as_dir=.
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5015 PKGCONFIG=$ac_cv_path_PKGCONFIG
5016 if test -n "$PKGCONFIG"; then
5017 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5018 echo "${ECHO_T}$PKGCONFIG" >&6; }
5020 { echo "$as_me:$LINENO: result: no" >&5
5021 echo "${ECHO_T}no" >&6; }
5025 # Extract the first word of "qmake", so it can be a program name with args.
5026 set dummy qmake; ac_word=$2
5027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5029 if test "${ac_cv_path_QMAKE+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5052 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5056 QMAKE=$ac_cv_path_QMAKE
5057 if test -n "$QMAKE"; then
5058 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5059 echo "${ECHO_T}$QMAKE" >&6; }
5061 { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5066 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5067 set dummy qmake-qt4; ac_word=$2
5068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5070 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5085 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5086 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5097 QMAKEQT4=$ac_cv_path_QMAKEQT4
5098 if test -n "$QMAKEQT4"; then
5099 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5100 echo "${ECHO_T}$QMAKEQT4" >&6; }
5102 { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5107 # Extract the first word of "gmake", so it can be a program name with args.
5108 set dummy gmake; ac_word=$2
5109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5111 if test "${ac_cv_path_GMAKE+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5116 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 test -z "$as_dir" && as_dir=.
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5126 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5138 GMAKE=$ac_cv_path_GMAKE
5139 if test -n "$GMAKE"; then
5140 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5141 echo "${ECHO_T}$GMAKE" >&6; }
5143 { echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6; }
5149 if test "x$WXCONFIG" = x; then
5152 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5153 set dummy ${WXCONFIG}; ac_word=$2
5154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5156 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5183 WXCONFIG=$ac_cv_path_WXCONFIG
5184 if test -n "$WXCONFIG"; then
5185 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5186 echo "${ECHO_T}$WXCONFIG" >&6; }
5188 { echo "$as_me:$LINENO: result: no" >&5
5189 echo "${ECHO_T}no" >&6; }
5194 # Extract the first word of "cdrecord", so it can be a program name with args.
5195 set dummy cdrecord; ac_word=$2
5196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5198 if test "${ac_cv_path_CDRECORD+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5203 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5225 CDRECORD=$ac_cv_path_CDRECORD
5226 if test -n "$CDRECORD"; then
5227 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5228 echo "${ECHO_T}$CDRECORD" >&6; }
5230 { echo "$as_me:$LINENO: result: no" >&5
5231 echo "${ECHO_T}no" >&6; }
5235 # Extract the first word of "pidof", so it can be a program name with args.
5236 set dummy pidof; ac_word=$2
5237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5239 if test "${ac_cv_path_PIDOF+set}" = set; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5251 test -z "$as_dir" && as_dir=.
5252 for ac_exec_ext in '' $ac_executable_extensions; do
5253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5254 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5262 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5266 PIDOF=$ac_cv_path_PIDOF
5267 if test -n "$PIDOF"; then
5268 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5269 echo "${ECHO_T}$PIDOF" >&6; }
5271 { echo "$as_me:$LINENO: result: no" >&5
5272 echo "${ECHO_T}no" >&6; }
5276 for ac_prog in gawk mawk nawk awk
5278 # Extract the first word of "$ac_prog", so it can be a program name with args.
5279 set dummy $ac_prog; ac_word=$2
5280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5282 if test "${ac_cv_prog_AWK+set}" = set; then
5283 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 if test -n "$AWK"; then
5286 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_prog_AWK="$ac_prog"
5296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 if test -n "$AWK"; then
5307 { echo "$as_me:$LINENO: result: $AWK" >&5
5308 echo "${ECHO_T}$AWK" >&6; }
5310 { echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6; }
5315 test -n "$AWK" && break
5318 # Some AWK programs fail, so test it and warn the user
5319 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5320 { if ((prog == $2) || (("(" prog ")") == $2) ||
5321 (("" prog "") == $2) ||
5322 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5324 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5325 The regex engine of $AWK is too broken to be used you
5326 might want to install GNU AWK.
5327 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5328 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5329 The regex engine of $AWK is too broken to be used you
5330 might want to install GNU AWK.
5331 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5332 { (exit 1); exit 1; }; }
5335 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5336 set dummy $THE_AWK; ac_word=$2
5337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5339 if test "${ac_cv_path_AWK+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5344 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5367 if test -n "$AWK"; then
5368 { echo "$as_me:$LINENO: result: $AWK" >&5
5369 echo "${ECHO_T}$AWK" >&6; }
5371 { echo "$as_me:$LINENO: result: no" >&5
5372 echo "${ECHO_T}no" >&6; }
5378 test -n "$ARFLAG" || ARFLAGS="cr"
5389 # Check whether --enable-libtool was given.
5390 if test "${enable_libtool+set}" = set; then
5391 enableval=$enable_libtool;
5392 if test x$enableval = xno; then
5401 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5402 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5407 macro_version='2.2.6'
5408 macro_revision='1.3012'
5422 ltmain="$ac_aux_dir/ltmain.sh"
5424 # Make sure we can run config.sub.
5425 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5426 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5427 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5428 { (exit 1); exit 1; }; }
5430 { echo "$as_me:$LINENO: checking build system type" >&5
5431 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5432 if test "${ac_cv_build+set}" = set; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 ac_build_alias=$build_alias
5436 test "x$ac_build_alias" = x &&
5437 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5438 test "x$ac_build_alias" = x &&
5439 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5440 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5441 { (exit 1); exit 1; }; }
5442 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5443 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5444 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5445 { (exit 1); exit 1; }; }
5448 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5449 echo "${ECHO_T}$ac_cv_build" >&6; }
5450 case $ac_cv_build in
5452 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5453 echo "$as_me: error: invalid value of canonical build" >&2;}
5454 { (exit 1); exit 1; }; };;
5457 ac_save_IFS=$IFS; IFS='-'
5463 # Remember, the first character of IFS is used to create $*,
5464 # except with old shells:
5467 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5470 { echo "$as_me:$LINENO: checking host system type" >&5
5471 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5472 if test "${ac_cv_host+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 if test "x$host_alias" = x; then
5476 ac_cv_host=$ac_cv_build
5478 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5479 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5480 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5481 { (exit 1); exit 1; }; }
5485 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5486 echo "${ECHO_T}$ac_cv_host" >&6; }
5489 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5490 echo "$as_me: error: invalid value of canonical host" >&2;}
5491 { (exit 1); exit 1; }; };;
5494 ac_save_IFS=$IFS; IFS='-'
5500 # Remember, the first character of IFS is used to create $*,
5501 # except with old shells:
5504 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5507 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5508 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5509 if test "${ac_cv_path_SED+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5513 for ac_i in 1 2 3 4 5 6 7; do
5514 ac_script="$ac_script$as_nl$ac_script"
5516 echo "$ac_script" | sed 99q >conftest.sed
5517 $as_unset ac_script || ac_script=
5518 # Extract the first word of "sed gsed" to use in msg output
5519 if test -z "$SED"; then
5520 set dummy sed gsed; ac_prog_name=$2
5521 if test "${ac_cv_path_SED+set}" = set; then
5522 echo $ECHO_N "(cached) $ECHO_C" >&6
5524 ac_path_SED_found=false
5525 # Loop through the user's path and test for each of PROGNAME-LIST
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir=.
5531 for ac_prog in sed gsed; do
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5534 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5535 # Check for GNU ac_path_SED and select it if it is found.
5536 # Check for GNU $ac_path_SED
5537 case `"$ac_path_SED" --version 2>&1` in
5539 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5542 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5545 cat "conftest.in" "conftest.in" >"conftest.tmp"
5546 mv "conftest.tmp" "conftest.in"
5547 cp "conftest.in" "conftest.nl"
5548 echo '' >> "conftest.nl"
5549 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5551 ac_count=`expr $ac_count + 1`
5552 if test $ac_count -gt ${ac_path_SED_max-0}; then
5553 # Best one so far, save it but keep looking for a better one
5554 ac_cv_path_SED="$ac_path_SED"
5555 ac_path_SED_max=$ac_count
5557 # 10*(2^10) chars as input seems more than enough
5558 test $ac_count -gt 10 && break
5560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5564 $ac_path_SED_found && break 3
5574 SED="$ac_cv_path_SED"
5575 if test -z "$SED"; then
5576 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5577 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5578 { (exit 1); exit 1; }; }
5586 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5587 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5588 SED="$ac_cv_path_SED"
5591 test -z "$SED" && SED=sed
5592 Xsed="$SED -e 1s/^X//"
5604 { echo "$as_me:$LINENO: checking for fgrep" >&5
5605 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5606 if test "${ac_cv_path_FGREP+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5610 then ac_cv_path_FGREP="$GREP -F"
5612 # Extract the first word of "fgrep" to use in msg output
5613 if test -z "$FGREP"; then
5614 set dummy fgrep; ac_prog_name=$2
5615 if test "${ac_cv_path_FGREP+set}" = set; then
5616 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 ac_path_FGREP_found=false
5619 # Loop through the user's path and test for each of PROGNAME-LIST
5620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5624 test -z "$as_dir" && as_dir=.
5625 for ac_prog in fgrep; do
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5628 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5629 # Check for GNU ac_path_FGREP and select it if it is found.
5630 # Check for GNU $ac_path_FGREP
5631 case `"$ac_path_FGREP" --version 2>&1` in
5633 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5636 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5639 cat "conftest.in" "conftest.in" >"conftest.tmp"
5640 mv "conftest.tmp" "conftest.in"
5641 cp "conftest.in" "conftest.nl"
5642 echo 'FGREP' >> "conftest.nl"
5643 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5645 ac_count=`expr $ac_count + 1`
5646 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5647 # Best one so far, save it but keep looking for a better one
5648 ac_cv_path_FGREP="$ac_path_FGREP"
5649 ac_path_FGREP_max=$ac_count
5651 # 10*(2^10) chars as input seems more than enough
5652 test $ac_count -gt 10 && break
5654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5658 $ac_path_FGREP_found && break 3
5668 FGREP="$ac_cv_path_FGREP"
5669 if test -z "$FGREP"; then
5670 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5671 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5672 { (exit 1); exit 1; }; }
5676 ac_cv_path_FGREP=$FGREP
5682 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5683 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5684 FGREP="$ac_cv_path_FGREP"
5687 test -z "$GREP" && GREP=grep
5707 # Check whether --with-gnu-ld was given.
5708 if test "${with_gnu_ld+set}" = set; then
5709 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5715 if test "$GCC" = yes; then
5716 # Check if gcc -print-prog-name=ld gives a path.
5717 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5718 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5721 # gcc leaves a trailing carriage return which upsets mingw
5722 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5724 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5727 # Accept absolute paths.
5729 re_direlt='/[^/][^/]*/\.\./'
5730 # Canonicalize the pathname of ld
5731 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5732 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5733 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5735 test -z "$LD" && LD="$ac_prog"
5738 # If it fails, then pretend we aren't using GCC.
5742 # If it is relative, then search for the first ld in PATH.
5746 elif test "$with_gnu_ld" = yes; then
5747 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5748 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5750 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5751 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5753 if test "${lt_cv_path_LD+set}" = set; then
5754 echo $ECHO_N "(cached) $ECHO_C" >&6
5756 if test -z "$LD"; then
5757 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5758 for ac_dir in $PATH; do
5760 test -z "$ac_dir" && ac_dir=.
5761 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5762 lt_cv_path_LD="$ac_dir/$ac_prog"
5763 # Check to see if the program is GNU ld. I'd rather use --version,
5764 # but apparently some variants of GNU ld only accept -v.
5765 # Break only if it was the GNU/non-GNU ld that we prefer.
5766 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5767 *GNU* | *'with BFD'*)
5768 test "$with_gnu_ld" != no && break
5771 test "$with_gnu_ld" != yes && break
5778 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5783 if test -n "$LD"; then
5784 { echo "$as_me:$LINENO: result: $LD" >&5
5785 echo "${ECHO_T}$LD" >&6; }
5787 { echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6; }
5790 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5791 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5792 { (exit 1); exit 1; }; }
5793 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5794 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5795 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
5798 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5799 case `$LD -v 2>&1 </dev/null` in
5800 *GNU* | *'with BFD'*)
5801 lt_cv_prog_gnu_ld=yes
5804 lt_cv_prog_gnu_ld=no
5808 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5809 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5810 with_gnu_ld=$lt_cv_prog_gnu_ld
5820 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5821 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5822 if test "${lt_cv_path_NM+set}" = set; then
5823 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 if test -n "$NM"; then
5826 # Let the user override the test.
5829 lt_nm_to_check="${ac_tool_prefix}nm"
5830 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5831 lt_nm_to_check="$lt_nm_to_check nm"
5833 for lt_tmp_nm in $lt_nm_to_check; do
5834 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5835 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5837 test -z "$ac_dir" && ac_dir=.
5838 tmp_nm="$ac_dir/$lt_tmp_nm"
5839 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5840 # Check to see if the nm accepts a BSD-compat flag.
5841 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5842 # nm: unknown option "B" ignored
5843 # Tru64's nm complains that /dev/null is an invalid object file
5844 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5845 */dev/null* | *'Invalid file or object type'*)
5846 lt_cv_path_NM="$tmp_nm -B"
5850 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5852 lt_cv_path_NM="$tmp_nm -p"
5856 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5857 continue # so that we can try to find one that supports BSD flags
5866 : ${lt_cv_path_NM=no}
5869 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5870 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5871 if test "$lt_cv_path_NM" != "no"; then
5874 # Didn't find any BSD compatible name lister, look for dumpbin.
5875 if test -n "$ac_tool_prefix"; then
5876 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5882 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 if test -n "$DUMPBIN"; then
5886 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5895 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905 DUMPBIN=$ac_cv_prog_DUMPBIN
5906 if test -n "$DUMPBIN"; then
5907 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5908 echo "${ECHO_T}$DUMPBIN" >&6; }
5910 { echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6; }
5915 test -n "$DUMPBIN" && break
5918 if test -z "$DUMPBIN"; then
5919 ac_ct_DUMPBIN=$DUMPBIN
5920 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5922 # Extract the first word of "$ac_prog", so it can be a program name with args.
5923 set dummy $ac_prog; ac_word=$2
5924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5926 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 if test -n "$ac_ct_DUMPBIN"; then
5930 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5939 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5949 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5950 if test -n "$ac_ct_DUMPBIN"; then
5951 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5952 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5954 { echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6; }
5959 test -n "$ac_ct_DUMPBIN" && break
5962 if test "x$ac_ct_DUMPBIN" = x; then
5965 case $cross_compiling:$ac_tool_warned in
5967 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5968 whose name does not start with the host triplet. If you think this
5969 configuration is useful to you, please write to autoconf@gnu.org." >&5
5970 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5971 whose name does not start with the host triplet. If you think this
5972 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5973 ac_tool_warned=yes ;;
5975 DUMPBIN=$ac_ct_DUMPBIN
5980 if test "$DUMPBIN" != ":"; then
5984 test -z "$NM" && NM=nm
5991 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5992 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5993 if test "${lt_cv_nm_interface+set}" = set; then
5994 echo $ECHO_N "(cached) $ECHO_C" >&6
5996 lt_cv_nm_interface="BSD nm"
5997 echo "int some_variable = 0;" > conftest.$ac_ext
5998 (eval echo "\"\$as_me:5998: $ac_compile\"" >&5)
5999 (eval "$ac_compile" 2>conftest.err)
6000 cat conftest.err >&5
6001 (eval echo "\"\$as_me:6001: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6002 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6003 cat conftest.err >&5
6004 (eval echo "\"\$as_me:6004: output\"" >&5)
6005 cat conftest.out >&5
6006 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6007 lt_cv_nm_interface="MS dumpbin"
6011 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6012 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6014 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6015 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6017 if test "$LN_S" = "ln -s"; then
6018 { echo "$as_me:$LINENO: result: yes" >&5
6019 echo "${ECHO_T}yes" >&6; }
6021 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6022 echo "${ECHO_T}no, using $LN_S" >&6; }
6025 # find the maximum length of command line arguments
6026 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6027 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6028 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6029 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 # On DJGPP, this test can blow up pretty badly due to problems in libc
6037 # (any single argument exceeding 2000 bytes causes a buffer overrun
6038 # during glob expansion). Even if it were fixed, the result of this
6039 # check would be larger than it should be.
6040 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6044 # Under GNU Hurd, this test is not required because there is
6045 # no limit to the length of command line arguments.
6046 # Libtool will interpret -1 as no limit whatsoever
6047 lt_cv_sys_max_cmd_len=-1;
6050 cygwin* | mingw* | cegcc*)
6051 # On Win9x/ME, this test blows up -- it succeeds, but takes
6052 # about 5 minutes as the teststring grows exponentially.
6053 # Worse, since 9x/ME are not pre-emptively multitasking,
6054 # you end up with a "frozen" computer, even though with patience
6055 # the test eventually succeeds (with a max line length of 256k).
6056 # Instead, let's just punt: use the minimum linelength reported by
6057 # all of the supported platforms: 8192 (on NT/2K/XP).
6058 lt_cv_sys_max_cmd_len=8192;
6062 # On AmigaOS with pdksh, this test takes hours, literally.
6063 # So we just punt and use a minimum line length of 8192.
6064 lt_cv_sys_max_cmd_len=8192;
6067 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6068 # This has been around since 386BSD, at least. Likely further.
6069 if test -x /sbin/sysctl; then
6070 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6071 elif test -x /usr/sbin/sysctl; then
6072 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6074 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6076 # And add a safety zone
6077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6082 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6083 lt_cv_sys_max_cmd_len=196608
6087 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6088 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6089 # nice to cause kernel panics so lets avoid the loop below.
6090 # First set a reasonable default.
6091 lt_cv_sys_max_cmd_len=16384
6093 if test -x /sbin/sysconfig; then
6094 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6095 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6100 lt_cv_sys_max_cmd_len=102400
6102 sysv5* | sco5v6* | sysv4.2uw2*)
6103 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6104 if test -n "$kargmax"; then
6105 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6107 lt_cv_sys_max_cmd_len=32768
6111 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6112 if test -n "$lt_cv_sys_max_cmd_len"; then
6113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6114 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6116 # Make teststring a little bigger before we do anything with it.
6117 # a 1K string should be a reasonable start.
6118 for i in 1 2 3 4 5 6 7 8 ; do
6119 teststring=$teststring$teststring
6121 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6122 # If test is not a shell built-in, we'll probably end up computing a
6123 # maximum length that is only half of the actual maximum length, but
6125 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6126 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6127 test $i != 17 # 1/2 MB should be enough
6130 teststring=$teststring$teststring
6132 # Only check the string length outside the loop.
6133 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6135 # Add a significant safety factor because C++ compilers can tack on
6136 # massive amounts of additional arguments before passing them to the
6137 # linker. It appears as though 1/2 is a usable value.
6138 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6145 if test -n $lt_cv_sys_max_cmd_len ; then
6146 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6147 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6149 { echo "$as_me:$LINENO: result: none" >&5
6150 echo "${ECHO_T}none" >&6; }
6152 max_cmd_len=$lt_cv_sys_max_cmd_len
6163 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6164 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6165 # Try some XSI features
6168 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6170 && eval 'test $(( 1 + 1 )) -eq 2 \
6171 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6173 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6174 echo "${ECHO_T}$xsi_shell" >&6; }
6177 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6178 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6180 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6182 && lt_shell_append=yes
6183 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6184 echo "${ECHO_T}$lt_shell_append" >&6; }
6187 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6197 # test EBCDIC or ASCII
6198 case `echo X|tr X '\101'` in
6199 A) # ASCII based system
6200 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6201 lt_SP2NL='tr \040 \012'
6202 lt_NL2SP='tr \015\012 \040\040'
6204 *) # EBCDIC based system
6205 lt_SP2NL='tr \100 \n'
6206 lt_NL2SP='tr \r\n \100\100'
6218 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6219 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6220 if test "${lt_cv_ld_reload_flag+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 lt_cv_ld_reload_flag='-r'
6225 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6226 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6227 reload_flag=$lt_cv_ld_reload_flag
6228 case $reload_flag in
6230 *) reload_flag=" $reload_flag" ;;
6232 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6235 if test "$GCC" = yes; then
6236 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6238 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6251 if test -n "$ac_tool_prefix"; then
6252 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6253 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6256 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6259 if test -n "$OBJDUMP"; then
6260 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir=.
6267 for ac_exec_ext in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 OBJDUMP=$ac_cv_prog_OBJDUMP
6280 if test -n "$OBJDUMP"; then
6281 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6282 echo "${ECHO_T}$OBJDUMP" >&6; }
6284 { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6290 if test -z "$ac_cv_prog_OBJDUMP"; then
6291 ac_ct_OBJDUMP=$OBJDUMP
6292 # Extract the first word of "objdump", so it can be a program name with args.
6293 set dummy objdump; ac_word=$2
6294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 if test -n "$ac_ct_OBJDUMP"; then
6300 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 test -z "$as_dir" && as_dir=.
6307 for ac_exec_ext in '' $ac_executable_extensions; do
6308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6309 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6320 if test -n "$ac_ct_OBJDUMP"; then
6321 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6322 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6324 { echo "$as_me:$LINENO: result: no" >&5
6325 echo "${ECHO_T}no" >&6; }
6328 if test "x$ac_ct_OBJDUMP" = x; then
6331 case $cross_compiling:$ac_tool_warned in
6333 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet. If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&5
6336 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6337 whose name does not start with the host triplet. If you think this
6338 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6339 ac_tool_warned=yes ;;
6341 OBJDUMP=$ac_ct_OBJDUMP
6344 OBJDUMP="$ac_cv_prog_OBJDUMP"
6347 test -z "$OBJDUMP" && OBJDUMP=objdump
6357 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6358 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6359 if test "${lt_cv_deplibs_check_method+set}" = set; then
6360 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 lt_cv_file_magic_cmd='$MAGIC_CMD'
6363 lt_cv_file_magic_test_file=
6364 lt_cv_deplibs_check_method='unknown'
6365 # Need to set the preceding variable on all platforms that support
6366 # interlibrary dependencies.
6367 # 'none' -- dependencies not supported.
6368 # `unknown' -- same as none, but documents that we really don't know.
6369 # 'pass_all' -- all dependencies passed with no checks.
6370 # 'test_compile' -- check by making test program.
6371 # 'file_magic [[regex]]' -- check by looking for files in library path
6372 # which responds to the $file_magic_cmd with a given extended regex.
6373 # If you have `file' or equivalent on your system and you're not sure
6374 # whether `pass_all' will *always* work, you probably want this one.
6378 lt_cv_deplibs_check_method=pass_all
6382 lt_cv_deplibs_check_method=pass_all
6386 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6387 lt_cv_file_magic_cmd='/usr/bin/file -L'
6388 lt_cv_file_magic_test_file=/shlib/libc.so
6392 # func_win32_libid is a shell function defined in ltmain.sh
6393 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6394 lt_cv_file_magic_cmd='func_win32_libid'
6398 # Base MSYS/MinGW do not provide the 'file' command needed by
6399 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6400 # unless we find 'file', for example because we are cross-compiling.
6401 if ( file / ) >/dev/null 2>&1; then
6402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6403 lt_cv_file_magic_cmd='func_win32_libid'
6405 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6406 lt_cv_file_magic_cmd='$OBJDUMP -f'
6411 # use the weaker test based on 'objdump'. See mingw*.
6412 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6413 lt_cv_file_magic_cmd='$OBJDUMP -f'
6416 darwin* | rhapsody*)
6417 lt_cv_deplibs_check_method=pass_all
6420 freebsd* | dragonfly*)
6421 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6424 # Not sure whether the presence of OpenBSD here was a mistake.
6425 # Let's accept both of them until this is cleared up.
6426 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6427 lt_cv_file_magic_cmd=/usr/bin/file
6428 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6432 lt_cv_deplibs_check_method=pass_all
6437 lt_cv_deplibs_check_method=pass_all
6440 hpux10.20* | hpux11*)
6441 lt_cv_file_magic_cmd=/usr/bin/file
6444 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6445 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6448 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]'
6449 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6452 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6453 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6459 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6460 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6463 irix5* | irix6* | nonstopux*)
6465 *-32|*"-32 ") libmagic=32-bit;;
6466 *-n32|*"-n32 ") libmagic=N32;;
6467 *-64|*"-64 ") libmagic=64-bit;;
6468 *) libmagic=never-match;;
6470 lt_cv_deplibs_check_method=pass_all
6473 # This must be Linux ELF.
6474 linux* | k*bsd*-gnu)
6475 lt_cv_deplibs_check_method=pass_all
6479 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6480 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6482 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6488 lt_cv_file_magic_cmd=/usr/bin/file
6489 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6493 lt_cv_deplibs_check_method=pass_all
6497 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6498 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6504 osf3* | osf4* | osf5*)
6505 lt_cv_deplibs_check_method=pass_all
6509 lt_cv_deplibs_check_method=pass_all
6513 lt_cv_deplibs_check_method=pass_all
6516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6517 lt_cv_deplibs_check_method=pass_all
6521 case $host_vendor in
6523 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]'
6524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6527 lt_cv_deplibs_check_method=pass_all
6530 lt_cv_file_magic_cmd='/bin/file'
6531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6534 lt_cv_file_magic_cmd='/bin/file'
6535 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6536 lt_cv_file_magic_test_file=/lib/libc.so
6539 lt_cv_deplibs_check_method=pass_all
6542 lt_cv_deplibs_check_method=pass_all
6548 lt_cv_deplibs_check_method=pass_all
6553 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6554 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6555 file_magic_cmd=$lt_cv_file_magic_cmd
6556 deplibs_check_method=$lt_cv_deplibs_check_method
6557 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}ar; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_prog_AR+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 if test -n "$AR"; then
6579 ac_cv_prog_AR="$AR" # Let the user override the test.
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_AR="${ac_tool_prefix}ar"
6589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 if test -n "$AR"; then
6600 { echo "$as_me:$LINENO: result: $AR" >&5
6601 echo "${ECHO_T}$AR" >&6; }
6603 { echo "$as_me:$LINENO: result: no" >&5
6604 echo "${ECHO_T}no" >&6; }
6609 if test -z "$ac_cv_prog_AR"; then
6611 # Extract the first word of "ar", so it can be a program name with args.
6612 set dummy ar; ac_word=$2
6613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6615 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 if test -n "$ac_ct_AR"; then
6619 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628 ac_cv_prog_ac_ct_AR="ar"
6629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6638 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6639 if test -n "$ac_ct_AR"; then
6640 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6641 echo "${ECHO_T}$ac_ct_AR" >&6; }
6643 { echo "$as_me:$LINENO: result: no" >&5
6644 echo "${ECHO_T}no" >&6; }
6647 if test "x$ac_ct_AR" = x; then
6650 case $cross_compiling:$ac_tool_warned in
6652 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6653 whose name does not start with the host triplet. If you think this
6654 configuration is useful to you, please write to autoconf@gnu.org." >&5
6655 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6656 whose name does not start with the host triplet. If you think this
6657 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6658 ac_tool_warned=yes ;;
6666 test -z "$AR" && AR=ar
6667 test -z "$AR_FLAGS" && AR_FLAGS=cru
6679 if test -n "$ac_tool_prefix"; then
6680 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6681 set dummy ${ac_tool_prefix}strip; ac_word=$2
6682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6684 if test "${ac_cv_prog_STRIP+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 if test -n "$STRIP"; then
6688 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6694 test -z "$as_dir" && as_dir=.
6695 for ac_exec_ext in '' $ac_executable_extensions; do
6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6697 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 STRIP=$ac_cv_prog_STRIP
6708 if test -n "$STRIP"; then
6709 { echo "$as_me:$LINENO: result: $STRIP" >&5
6710 echo "${ECHO_T}$STRIP" >&6; }
6712 { echo "$as_me:$LINENO: result: no" >&5
6713 echo "${ECHO_T}no" >&6; }
6718 if test -z "$ac_cv_prog_STRIP"; then
6720 # Extract the first word of "strip", so it can be a program name with args.
6721 set dummy strip; ac_word=$2
6722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6724 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6727 if test -n "$ac_ct_STRIP"; then
6728 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 test -z "$as_dir" && as_dir=.
6735 for ac_exec_ext in '' $ac_executable_extensions; do
6736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737 ac_cv_prog_ac_ct_STRIP="strip"
6738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6747 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6748 if test -n "$ac_ct_STRIP"; then
6749 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6750 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6752 { echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6; }
6756 if test "x$ac_ct_STRIP" = x; then
6759 case $cross_compiling:$ac_tool_warned in
6761 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6762 whose name does not start with the host triplet. If you think this
6763 configuration is useful to you, please write to autoconf@gnu.org." >&5
6764 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6765 whose name does not start with the host triplet. If you think this
6766 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6767 ac_tool_warned=yes ;;
6772 STRIP="$ac_cv_prog_STRIP"
6775 test -z "$STRIP" && STRIP=:
6782 if test -n "$ac_tool_prefix"; then
6783 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6784 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_prog_RANLIB+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 if test -n "$RANLIB"; then
6791 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6797 test -z "$as_dir" && as_dir=.
6798 for ac_exec_ext in '' $ac_executable_extensions; do
6799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6800 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6810 RANLIB=$ac_cv_prog_RANLIB
6811 if test -n "$RANLIB"; then
6812 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6813 echo "${ECHO_T}$RANLIB" >&6; }
6815 { echo "$as_me:$LINENO: result: no" >&5
6816 echo "${ECHO_T}no" >&6; }
6821 if test -z "$ac_cv_prog_RANLIB"; then
6822 ac_ct_RANLIB=$RANLIB
6823 # Extract the first word of "ranlib", so it can be a program name with args.
6824 set dummy ranlib; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 if test -n "$ac_ct_RANLIB"; then
6831 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_ac_ct_RANLIB="ranlib"
6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6851 if test -n "$ac_ct_RANLIB"; then
6852 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6853 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6855 { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6859 if test "x$ac_ct_RANLIB" = x; then
6862 case $cross_compiling:$ac_tool_warned in
6864 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6865 whose name does not start with the host triplet. If you think this
6866 configuration is useful to you, please write to autoconf@gnu.org." >&5
6867 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6868 whose name does not start with the host triplet. If you think this
6869 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6870 ac_tool_warned=yes ;;
6872 RANLIB=$ac_ct_RANLIB
6875 RANLIB="$ac_cv_prog_RANLIB"
6878 test -z "$RANLIB" && RANLIB=:
6885 # Determine commands to create old-style static archives.
6886 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6887 old_postinstall_cmds='chmod 644 $oldlib'
6888 old_postuninstall_cmds=
6890 if test -n "$RANLIB"; then
6893 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6896 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6899 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6935 # If no C compiler was specified, use CC.
6938 # If no C compiler flags were specified, use CFLAGS.
6939 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6941 # Allow CC to be a program name with arguments.
6945 # Check for command to grab the raw symbol name followed by C symbol from nm.
6946 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6947 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6948 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6952 # These are sane defaults that work on at least a few old systems.
6953 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6955 # Character class describing NM global symbol codes.
6956 symcode='[BCDEGRST]'
6958 # Regexp to match symbols that can be accessed directly from C.
6959 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6961 # Define system-specific variables.
6966 cygwin* | mingw* | pw32* | cegcc*)
6967 symcode='[ABCDGISTW]'
6970 if test "$host_cpu" = ia64; then
6971 symcode='[ABCDEGRST]'
6975 symcode='[BCDEGRST]'
6978 symcode='[BCDEGQRST]'
6989 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6997 # If we're using GNU nm, then use its standard symbol codes.
6998 case `$NM -V 2>&1` in
6999 *GNU* | *'with BFD'*)
7000 symcode='[ABCDGIRSTW]' ;;
7003 # Transform an extracted symbol line into a proper C declaration.
7004 # Some systems (esp. on ia64) link data and code symbols differently,
7005 # so use this general approach.
7006 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7008 # Transform an extracted symbol line into symbol name and symbol address
7009 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7010 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'"
7012 # Handle CRLF in mingw tool chain
7016 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7020 # Try without a prefix underscore, then with it.
7021 for ac_symprfx in "" "_"; do
7023 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7024 symxfrm="\\1 $ac_symprfx\\2 \\2"
7026 # Write the raw and C identifiers.
7027 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7028 # Fake it for dumpbin and say T for any non-static function
7029 # and D for any global variable.
7030 # Also find C++ and __fastcall symbols from MSVC++,
7031 # which start with @ or ?.
7032 lt_cv_sys_global_symbol_pipe="$AWK '"\
7033 " {last_section=section; section=\$ 3};"\
7034 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7035 " \$ 0!~/External *\|/{next};"\
7036 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7037 " {if(hide[section]) next};"\
7038 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7039 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7040 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7041 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7042 " ' prfx=^$ac_symprfx"
7044 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7047 # Check to see that the pipe works correctly.
7051 cat > conftest.$ac_ext <<_LT_EOF
7056 void nm_test_func(void);
7057 void nm_test_func(void){}
7061 int main(){nm_test_var='a';nm_test_func();return(0);}
7064 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7065 (eval $ac_compile) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); }; then
7069 # Now try to grab the symbols.
7071 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7072 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7075 (exit $ac_status); } && test -s "$nlist"; then
7076 # Try sorting and uniquifying the output.
7077 if sort "$nlist" | uniq > "$nlist"T; then
7078 mv -f "$nlist"T "$nlist"
7083 # Make sure that we snagged all the symbols we need.
7084 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7085 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7086 cat <<_LT_EOF > conftest.$ac_ext
7092 # Now generate the symbol file.
7093 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7095 cat <<_LT_EOF >> conftest.$ac_ext
7097 /* The mapping between symbol names and symbols. */
7102 lt__PROGRAM__LTX_preloaded_symbols[] =
7104 { "@PROGRAM@", (void *) 0 },
7106 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7107 cat <<\_LT_EOF >> conftest.$ac_ext
7111 /* This works around a problem in FreeBSD linker */
7112 #ifdef FREEBSD_WORKAROUND
7113 static const void *lt_preloaded_setup() {
7114 return lt__PROGRAM__LTX_preloaded_symbols;
7122 # Now try linking the two files.
7123 mv conftest.$ac_objext conftstm.$ac_objext
7124 lt_save_LIBS="$LIBS"
7125 lt_save_CFLAGS="$CFLAGS"
7126 LIBS="conftstm.$ac_objext"
7127 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7129 (eval $ac_link) 2>&5
7131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7135 LIBS="$lt_save_LIBS"
7136 CFLAGS="$lt_save_CFLAGS"
7138 echo "cannot find nm_test_func in $nlist" >&5
7141 echo "cannot find nm_test_var in $nlist" >&5
7144 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7147 echo "$progname: failed program was:" >&5
7148 cat conftest.$ac_ext >&5
7150 rm -rf conftest* conftst*
7152 # Do not use the global_symbol_pipe unless it works.
7153 if test "$pipe_works" = yes; then
7156 lt_cv_sys_global_symbol_pipe=
7162 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7163 lt_cv_sys_global_symbol_to_cdecl=
7165 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7166 { echo "$as_me:$LINENO: result: failed" >&5
7167 echo "${ECHO_T}failed" >&6; }
7169 { echo "$as_me:$LINENO: result: ok" >&5
7170 echo "${ECHO_T}ok" >&6; }
7194 # Check whether --enable-libtool-lock was given.
7195 if test "${enable_libtool_lock+set}" = set; then
7196 enableval=$enable_libtool_lock;
7199 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7201 # Some flags need to be propagated to the compiler or linker for good
7205 # Find out which ABI we are using.
7206 echo 'int i;' > conftest.$ac_ext
7207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7208 (eval $ac_compile) 2>&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); }; then
7212 case `/usr/bin/file conftest.$ac_objext` in
7224 # Find out which ABI we are using.
7225 echo '#line 7225 "configure"' > conftest.$ac_ext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7227 (eval $ac_compile) 2>&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }; then
7231 if test "$lt_cv_prog_gnu_ld" = yes; then
7232 case `/usr/bin/file conftest.$ac_objext` in
7234 LD="${LD-ld} -melf32bsmip"
7237 LD="${LD-ld} -melf32bmipn32"
7240 LD="${LD-ld} -melf64bmip"
7244 case `/usr/bin/file conftest.$ac_objext` in
7260 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7261 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7262 # Find out which ABI we are using.
7263 echo 'int i;' > conftest.$ac_ext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265 (eval $ac_compile) 2>&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); }; then
7269 case `/usr/bin/file conftest.o` in
7272 x86_64-*kfreebsd*-gnu)
7273 LD="${LD-ld} -m elf_i386_fbsd"
7276 LD="${LD-ld} -m elf_i386"
7278 ppc64-*linux*|powerpc64-*linux*)
7279 LD="${LD-ld} -m elf32ppclinux"
7282 LD="${LD-ld} -m elf_s390"
7285 LD="${LD-ld} -m elf32_sparc"
7291 x86_64-*kfreebsd*-gnu)
7292 LD="${LD-ld} -m elf_x86_64_fbsd"
7295 LD="${LD-ld} -m elf_x86_64"
7297 ppc*-*linux*|powerpc*-*linux*)
7298 LD="${LD-ld} -m elf64ppc"
7300 s390*-*linux*|s390*-*tpf*)
7301 LD="${LD-ld} -m elf64_s390"
7304 LD="${LD-ld} -m elf64_sparc"
7314 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7315 SAVE_CFLAGS="$CFLAGS"
7316 CFLAGS="$CFLAGS -belf"
7317 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7318 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7319 if test "${lt_cv_cc_needs_belf+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 ac_cpp='$CPP $CPPFLAGS'
7324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7328 cat >conftest.$ac_ext <<_ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h. */
7343 rm -f conftest.$ac_objext conftest$ac_exeext
7344 if { (ac_try="$ac_link"
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7350 (eval "$ac_link") 2>conftest.er1
7352 grep -v '^ *+' conftest.er1 >conftest.err
7354 cat conftest.err >&5
7355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); } && {
7357 test -z "$ac_c_werror_flag" ||
7358 test ! -s conftest.err
7359 } && test -s conftest$ac_exeext &&
7360 $as_test_x conftest$ac_exeext; then
7361 lt_cv_cc_needs_belf=yes
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.$ac_ext >&5
7366 lt_cv_cc_needs_belf=no
7369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7370 conftest$ac_exeext conftest.$ac_ext
7372 ac_cpp='$CPP $CPPFLAGS'
7373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7378 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7379 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7380 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7381 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7382 CFLAGS="$SAVE_CFLAGS"
7386 # Find out which ABI we are using.
7387 echo 'int i;' > conftest.$ac_ext
7388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7389 (eval $ac_compile) 2>&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); }; then
7393 case `/usr/bin/file conftest.o` in
7395 case $lt_cv_prog_gnu_ld in
7396 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7398 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7410 need_locks="$enable_libtool_lock"
7414 rhapsody* | darwin*)
7415 if test -n "$ac_tool_prefix"; then
7416 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7417 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7420 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 if test -n "$DSYMUTIL"; then
7424 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7430 test -z "$as_dir" && as_dir=.
7431 for ac_exec_ext in '' $ac_executable_extensions; do
7432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7433 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7443 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7444 if test -n "$DSYMUTIL"; then
7445 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7446 echo "${ECHO_T}$DSYMUTIL" >&6; }
7448 { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7454 if test -z "$ac_cv_prog_DSYMUTIL"; then
7455 ac_ct_DSYMUTIL=$DSYMUTIL
7456 # Extract the first word of "dsymutil", so it can be a program name with args.
7457 set dummy dsymutil; ac_word=$2
7458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7460 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7461 echo $ECHO_N "(cached) $ECHO_C" >&6
7463 if test -n "$ac_ct_DSYMUTIL"; then
7464 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 test -z "$as_dir" && as_dir=.
7471 for ac_exec_ext in '' $ac_executable_extensions; do
7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7473 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7484 if test -n "$ac_ct_DSYMUTIL"; then
7485 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7486 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7488 { echo "$as_me:$LINENO: result: no" >&5
7489 echo "${ECHO_T}no" >&6; }
7492 if test "x$ac_ct_DSYMUTIL" = x; then
7495 case $cross_compiling:$ac_tool_warned in
7497 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7498 whose name does not start with the host triplet. If you think this
7499 configuration is useful to you, please write to autoconf@gnu.org." >&5
7500 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7501 whose name does not start with the host triplet. If you think this
7502 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7503 ac_tool_warned=yes ;;
7505 DSYMUTIL=$ac_ct_DSYMUTIL
7508 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7511 if test -n "$ac_tool_prefix"; then
7512 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7516 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7517 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 if test -n "$NMEDIT"; then
7520 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 test -z "$as_dir" && as_dir=.
7527 for ac_exec_ext in '' $ac_executable_extensions; do
7528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7529 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7539 NMEDIT=$ac_cv_prog_NMEDIT
7540 if test -n "$NMEDIT"; then
7541 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7542 echo "${ECHO_T}$NMEDIT" >&6; }
7544 { echo "$as_me:$LINENO: result: no" >&5
7545 echo "${ECHO_T}no" >&6; }
7550 if test -z "$ac_cv_prog_NMEDIT"; then
7551 ac_ct_NMEDIT=$NMEDIT
7552 # Extract the first word of "nmedit", so it can be a program name with args.
7553 set dummy nmedit; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7557 echo $ECHO_N "(cached) $ECHO_C" >&6
7559 if test -n "$ac_ct_NMEDIT"; then
7560 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7580 if test -n "$ac_ct_NMEDIT"; then
7581 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7582 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7584 { echo "$as_me:$LINENO: result: no" >&5
7585 echo "${ECHO_T}no" >&6; }
7588 if test "x$ac_ct_NMEDIT" = x; then
7591 case $cross_compiling:$ac_tool_warned in
7593 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7594 whose name does not start with the host triplet. If you think this
7595 configuration is useful to you, please write to autoconf@gnu.org." >&5
7596 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7597 whose name does not start with the host triplet. If you think this
7598 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7599 ac_tool_warned=yes ;;
7601 NMEDIT=$ac_ct_NMEDIT
7604 NMEDIT="$ac_cv_prog_NMEDIT"
7607 if test -n "$ac_tool_prefix"; then
7608 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_prog_LIPO+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7615 if test -n "$LIPO"; then
7616 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 LIPO=$ac_cv_prog_LIPO
7636 if test -n "$LIPO"; then
7637 { echo "$as_me:$LINENO: result: $LIPO" >&5
7638 echo "${ECHO_T}$LIPO" >&6; }
7640 { echo "$as_me:$LINENO: result: no" >&5
7641 echo "${ECHO_T}no" >&6; }
7646 if test -z "$ac_cv_prog_LIPO"; then
7648 # Extract the first word of "lipo", so it can be a program name with args.
7649 set dummy lipo; ac_word=$2
7650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 if test -n "$ac_ct_LIPO"; then
7656 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665 ac_cv_prog_ac_ct_LIPO="lipo"
7666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7676 if test -n "$ac_ct_LIPO"; then
7677 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7678 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7680 { echo "$as_me:$LINENO: result: no" >&5
7681 echo "${ECHO_T}no" >&6; }
7684 if test "x$ac_ct_LIPO" = x; then
7687 case $cross_compiling:$ac_tool_warned in
7689 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7690 whose name does not start with the host triplet. If you think this
7691 configuration is useful to you, please write to autoconf@gnu.org." >&5
7692 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7693 whose name does not start with the host triplet. If you think this
7694 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7695 ac_tool_warned=yes ;;
7700 LIPO="$ac_cv_prog_LIPO"
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}otool; ac_word=$2
7706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7708 if test "${ac_cv_prog_OTOOL+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 if test -n "$OTOOL"; then
7712 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7721 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7731 OTOOL=$ac_cv_prog_OTOOL
7732 if test -n "$OTOOL"; then
7733 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7734 echo "${ECHO_T}$OTOOL" >&6; }
7736 { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7742 if test -z "$ac_cv_prog_OTOOL"; then
7744 # Extract the first word of "otool", so it can be a program name with args.
7745 set dummy otool; ac_word=$2
7746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7748 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7749 echo $ECHO_N "(cached) $ECHO_C" >&6
7751 if test -n "$ac_ct_OTOOL"; then
7752 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_ac_ct_OTOOL="otool"
7762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7772 if test -n "$ac_ct_OTOOL"; then
7773 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7774 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7776 { echo "$as_me:$LINENO: result: no" >&5
7777 echo "${ECHO_T}no" >&6; }
7780 if test "x$ac_ct_OTOOL" = x; then
7783 case $cross_compiling:$ac_tool_warned in
7785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7786 whose name does not start with the host triplet. If you think this
7787 configuration is useful to you, please write to autoconf@gnu.org." >&5
7788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7789 whose name does not start with the host triplet. If you think this
7790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7791 ac_tool_warned=yes ;;
7796 OTOOL="$ac_cv_prog_OTOOL"
7799 if test -n "$ac_tool_prefix"; then
7800 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7801 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7804 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 if test -n "$OTOOL64"; then
7808 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir=.
7815 for ac_exec_ext in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7827 OTOOL64=$ac_cv_prog_OTOOL64
7828 if test -n "$OTOOL64"; then
7829 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7830 echo "${ECHO_T}$OTOOL64" >&6; }
7832 { echo "$as_me:$LINENO: result: no" >&5
7833 echo "${ECHO_T}no" >&6; }
7838 if test -z "$ac_cv_prog_OTOOL64"; then
7839 ac_ct_OTOOL64=$OTOOL64
7840 # Extract the first word of "otool64", so it can be a program name with args.
7841 set dummy otool64; ac_word=$2
7842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7844 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 if test -n "$ac_ct_OTOOL64"; then
7848 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7854 test -z "$as_dir" && as_dir=.
7855 for ac_exec_ext in '' $ac_executable_extensions; do
7856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7857 ac_cv_prog_ac_ct_OTOOL64="otool64"
7858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7867 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7868 if test -n "$ac_ct_OTOOL64"; then
7869 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7870 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7872 { echo "$as_me:$LINENO: result: no" >&5
7873 echo "${ECHO_T}no" >&6; }
7876 if test "x$ac_ct_OTOOL64" = x; then
7879 case $cross_compiling:$ac_tool_warned in
7881 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7882 whose name does not start with the host triplet. If you think this
7883 configuration is useful to you, please write to autoconf@gnu.org." >&5
7884 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7885 whose name does not start with the host triplet. If you think this
7886 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7887 ac_tool_warned=yes ;;
7889 OTOOL64=$ac_ct_OTOOL64
7892 OTOOL64="$ac_cv_prog_OTOOL64"
7921 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7922 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7923 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 lt_cv_apple_cc_single_mod=no
7927 if test -z "${LT_MULTI_MODULE}"; then
7928 # By default we will add the -single_module flag. You can override
7929 # by either setting the environment variable LT_MULTI_MODULE
7930 # non-empty at configure time, or by adding -multi_module to the
7932 rm -rf libconftest.dylib*
7933 echo "int foo(void){return 1;}" > conftest.c
7934 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7935 -dynamiclib -Wl,-single_module conftest.c" >&5
7936 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7937 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7939 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7940 lt_cv_apple_cc_single_mod=yes
7942 cat conftest.err >&5
7944 rm -rf libconftest.dylib*
7948 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7949 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7950 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7951 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7952 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 lt_cv_ld_exported_symbols_list=no
7956 save_LDFLAGS=$LDFLAGS
7957 echo "_main" > conftest.sym
7958 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7959 cat >conftest.$ac_ext <<_ACEOF
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7974 rm -f conftest.$ac_objext conftest$ac_exeext
7975 if { (ac_try="$ac_link"
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_link") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest$ac_exeext &&
7991 $as_test_x conftest$ac_exeext; then
7992 lt_cv_ld_exported_symbols_list=yes
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 lt_cv_ld_exported_symbols_list=no
8000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8001 conftest$ac_exeext conftest.$ac_ext
8002 LDFLAGS="$save_LDFLAGS"
8005 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8006 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8008 rhapsody* | darwin1.[012])
8009 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8011 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8012 darwin*) # darwin 5.x on
8013 # if running on 10.5 or later, the deployment target defaults
8014 # to the OS version, if on x86, and 10.4, the deployment
8015 # target defaults to 10.4. Don't you love it?
8016 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8017 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8018 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8020 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8022 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8026 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8027 _lt_dar_single_mod='$single_module'
8029 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8030 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8032 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8034 if test "$DSYMUTIL" != ":"; then
8035 _lt_dsymutil='~$DSYMUTIL $lib || :'
8042 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8043 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8044 if test "${ac_cv_header_stdc+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8047 cat >conftest.$ac_ext <<_ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8066 rm -f conftest.$ac_objext
8067 if { (ac_try="$ac_compile"
8069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8070 *) ac_try_echo=$ac_try;;
8072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8073 (eval "$ac_compile") 2>conftest.er1
8075 grep -v '^ *+' conftest.er1 >conftest.err
8077 cat conftest.err >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } && {
8080 test -z "$ac_c_werror_flag" ||
8081 test ! -s conftest.err
8082 } && test -s conftest.$ac_objext; then
8083 ac_cv_header_stdc=yes
8085 echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8088 ac_cv_header_stdc=no
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8093 if test $ac_cv_header_stdc = yes; then
8094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8095 cat >conftest.$ac_ext <<_ACEOF
8098 cat confdefs.h >>conftest.$ac_ext
8099 cat >>conftest.$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8105 $EGREP "memchr" >/dev/null 2>&1; then
8108 ac_cv_header_stdc=no
8114 if test $ac_cv_header_stdc = yes; then
8115 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8116 cat >conftest.$ac_ext <<_ACEOF
8119 cat confdefs.h >>conftest.$ac_ext
8120 cat >>conftest.$ac_ext <<_ACEOF
8121 /* end confdefs.h. */
8125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8126 $EGREP "free" >/dev/null 2>&1; then
8129 ac_cv_header_stdc=no
8135 if test $ac_cv_header_stdc = yes; then
8136 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8137 if test "$cross_compiling" = yes; then
8140 cat >conftest.$ac_ext <<_ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8148 #if ((' ' & 0x0FF) == 0x020)
8149 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8150 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8152 # define ISLOWER(c) \
8153 (('a' <= (c) && (c) <= 'i') \
8154 || ('j' <= (c) && (c) <= 'r') \
8155 || ('s' <= (c) && (c) <= 'z'))
8156 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8164 for (i = 0; i < 256; i++)
8165 if (XOR (islower (i), ISLOWER (i))
8166 || toupper (i) != TOUPPER (i))
8171 rm -f conftest$ac_exeext
8172 if { (ac_try="$ac_link"
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_link") 2>&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8182 { (case "(($ac_try" in
8183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8184 *) ac_try_echo=$ac_try;;
8186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8187 (eval "$ac_try") 2>&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); }; }; then
8193 echo "$as_me: program exited with status $ac_status" >&5
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8198 ac_cv_header_stdc=no
8200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8206 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8207 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8208 if test $ac_cv_header_stdc = yes; then
8210 cat >>confdefs.h <<\_ACEOF
8211 #define STDC_HEADERS 1
8216 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8226 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8227 inttypes.h stdint.h unistd.h
8229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 cat >conftest.$ac_ext <<_ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 $ac_includes_default
8243 #include <$ac_header>
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8249 *) ac_try_echo=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8254 grep -v '^ *+' conftest.er1 >conftest.err
8256 cat conftest.err >&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_c_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.$ac_objext; then
8262 eval "$as_ac_Header=yes"
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.$ac_ext >&5
8267 eval "$as_ac_Header=no"
8270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8272 ac_res=`eval echo '${'$as_ac_Header'}'`
8273 { echo "$as_me:$LINENO: result: $ac_res" >&5
8274 echo "${ECHO_T}$ac_res" >&6; }
8275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8276 cat >>confdefs.h <<_ACEOF
8277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8286 for ac_header in dlfcn.h
8288 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8289 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8291 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8294 cat >conftest.$ac_ext <<_ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h. */
8300 $ac_includes_default
8302 #include <$ac_header>
8304 rm -f conftest.$ac_objext
8305 if { (ac_try="$ac_compile"
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_compile") 2>conftest.er1
8313 grep -v '^ *+' conftest.er1 >conftest.err
8315 cat conftest.err >&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 } && test -s conftest.$ac_objext; then
8321 eval "$as_ac_Header=yes"
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 eval "$as_ac_Header=no"
8329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 ac_res=`eval echo '${'$as_ac_Header'}'`
8332 { echo "$as_me:$LINENO: result: $ac_res" >&5
8333 echo "${ECHO_T}$ac_res" >&6; }
8334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8335 cat >>confdefs.h <<_ACEOF
8336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8346 ac_cpp='$CXXCPP $CPPFLAGS'
8347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8350 if test -z "$CXX"; then
8351 if test -n "$CCC"; then
8354 if test -n "$ac_tool_prefix"; then
8355 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8357 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8358 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8361 if test "${ac_cv_prog_CXX+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 if test -n "$CXX"; then
8365 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 if test -n "$CXX"; then
8386 { echo "$as_me:$LINENO: result: $CXX" >&5
8387 echo "${ECHO_T}$CXX" >&6; }
8389 { echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6; }
8394 test -n "$CXX" && break
8397 if test -z "$CXX"; then
8399 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8401 # Extract the first word of "$ac_prog", so it can be a program name with args.
8402 set dummy $ac_prog; ac_word=$2
8403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8405 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8406 echo $ECHO_N "(cached) $ECHO_C" >&6
8408 if test -n "$ac_ct_CXX"; then
8409 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8415 test -z "$as_dir" && as_dir=.
8416 for ac_exec_ext in '' $ac_executable_extensions; do
8417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8418 ac_cv_prog_ac_ct_CXX="$ac_prog"
8419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8428 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8429 if test -n "$ac_ct_CXX"; then
8430 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8431 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8433 { echo "$as_me:$LINENO: result: no" >&5
8434 echo "${ECHO_T}no" >&6; }
8438 test -n "$ac_ct_CXX" && break
8441 if test "x$ac_ct_CXX" = x; then
8444 case $cross_compiling:$ac_tool_warned in
8446 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8447 whose name does not start with the host triplet. If you think this
8448 configuration is useful to you, please write to autoconf@gnu.org." >&5
8449 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8450 whose name does not start with the host triplet. If you think this
8451 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8452 ac_tool_warned=yes ;;
8460 # Provide some information about the compiler.
8461 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8462 ac_compiler=`set X $ac_compile; echo $2`
8463 { (ac_try="$ac_compiler --version >&5"
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compiler --version >&5") 2>&5
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); }
8473 { (ac_try="$ac_compiler -v >&5"
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_compiler -v >&5") 2>&5
8481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482 (exit $ac_status); }
8483 { (ac_try="$ac_compiler -V >&5"
8485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486 *) ac_try_echo=$ac_try;;
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489 (eval "$ac_compiler -V >&5") 2>&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }
8494 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8495 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8496 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8497 echo $ECHO_N "(cached) $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8502 cat confdefs.h >>conftest.$ac_ext
8503 cat >>conftest.$ac_ext <<_ACEOF
8504 /* end confdefs.h. */
8517 rm -f conftest.$ac_objext
8518 if { (ac_try="$ac_compile"
8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8524 (eval "$ac_compile") 2>conftest.er1
8526 grep -v '^ *+' conftest.er1 >conftest.err
8528 cat conftest.err >&5
8529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } && {
8531 test -z "$ac_cxx_werror_flag" ||
8532 test ! -s conftest.err
8533 } && test -s conftest.$ac_objext; then
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8546 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8547 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8548 GXX=`test $ac_compiler_gnu = yes && echo yes`
8549 ac_test_CXXFLAGS=${CXXFLAGS+set}
8550 ac_save_CXXFLAGS=$CXXFLAGS
8551 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8552 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8553 if test "${ac_cv_prog_cxx_g+set}" = set; then
8554 echo $ECHO_N "(cached) $ECHO_C" >&6
8556 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8557 ac_cxx_werror_flag=yes
8560 cat >conftest.$ac_ext <<_ACEOF
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8575 rm -f conftest.$ac_objext
8576 if { (ac_try="$ac_compile"
8578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8579 *) ac_try_echo=$ac_try;;
8581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8582 (eval "$ac_compile") 2>conftest.er1
8584 grep -v '^ *+' conftest.er1 >conftest.err
8586 cat conftest.err >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); } && {
8589 test -z "$ac_cxx_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.$ac_objext; then
8592 ac_cv_prog_cxx_g=yes
8594 echo "$as_me: failed program was:" >&5
8595 sed 's/^/| /' conftest.$ac_ext >&5
8598 cat >conftest.$ac_ext <<_ACEOF
8601 cat confdefs.h >>conftest.$ac_ext
8602 cat >>conftest.$ac_ext <<_ACEOF
8603 /* end confdefs.h. */
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_compile") 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } && {
8627 test -z "$ac_cxx_werror_flag" ||
8628 test ! -s conftest.err
8629 } && test -s conftest.$ac_objext; then
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8637 cat >conftest.$ac_ext <<_ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h. */
8652 rm -f conftest.$ac_objext
8653 if { (ac_try="$ac_compile"
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_compile") 2>conftest.er1
8661 grep -v '^ *+' conftest.er1 >conftest.err
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } && {
8666 test -z "$ac_cxx_werror_flag" ||
8667 test ! -s conftest.err
8668 } && test -s conftest.$ac_objext; then
8669 ac_cv_prog_cxx_g=yes
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8684 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8686 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8687 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8688 if test "$ac_test_CXXFLAGS" = set; then
8689 CXXFLAGS=$ac_save_CXXFLAGS
8690 elif test $ac_cv_prog_cxx_g = yes; then
8691 if test "$GXX" = yes; then
8697 if test "$GXX" = yes; then
8704 ac_cpp='$CPP $CPPFLAGS'
8705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8709 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8710 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8711 (test "X$CXX" != "Xg++"))) ; then
8713 ac_cpp='$CXXCPP $CPPFLAGS'
8714 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8715 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8716 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8717 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8718 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8719 if test -z "$CXXCPP"; then
8720 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 # Double quotes because CXXCPP needs to be expanded
8724 for CXXCPP in "$CXX -E" "/lib/cpp"
8727 for ac_cxx_preproc_warn_flag in '' yes
8729 # Use a header file that comes with gcc, so configuring glibc
8730 # with a fresh cross-compiler works.
8731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8732 # <limits.h> exists even on freestanding compilers.
8733 # On the NeXT, cc -E runs the code through the compiler's parser,
8734 # not just through cpp. "Syntax error" is here to catch this case.
8735 cat >conftest.$ac_ext <<_ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8742 # include <limits.h>
8744 # include <assert.h>
8748 if { (ac_try="$ac_cpp conftest.$ac_ext"
8750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8751 *) ac_try_echo=$ac_try;;
8753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8756 grep -v '^ *+' conftest.er1 >conftest.err
8758 cat conftest.err >&5
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } >/dev/null && {
8761 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8762 test ! -s conftest.err
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 # Broken: fails on valid input.
8773 rm -f conftest.err conftest.$ac_ext
8775 # OK, works on sane cases. Now check whether nonexistent headers
8776 # can be detected and how.
8777 cat >conftest.$ac_ext <<_ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 #include <ac_nonexistent.h>
8785 if { (ac_try="$ac_cpp conftest.$ac_ext"
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8793 grep -v '^ *+' conftest.er1 >conftest.err
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); } >/dev/null && {
8798 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8799 test ! -s conftest.err
8801 # Broken: success on invalid input.
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8807 # Passes both tests.
8812 rm -f conftest.err conftest.$ac_ext
8815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8816 rm -f conftest.err conftest.$ac_ext
8817 if $ac_preproc_ok; then
8822 ac_cv_prog_CXXCPP=$CXXCPP
8825 CXXCPP=$ac_cv_prog_CXXCPP
8827 ac_cv_prog_CXXCPP=$CXXCPP
8829 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8830 echo "${ECHO_T}$CXXCPP" >&6; }
8832 for ac_cxx_preproc_warn_flag in '' yes
8834 # Use a header file that comes with gcc, so configuring glibc
8835 # with a fresh cross-compiler works.
8836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8837 # <limits.h> exists even on freestanding compilers.
8838 # On the NeXT, cc -E runs the code through the compiler's parser,
8839 # not just through cpp. "Syntax error" is here to catch this case.
8840 cat >conftest.$ac_ext <<_ACEOF
8843 cat confdefs.h >>conftest.$ac_ext
8844 cat >>conftest.$ac_ext <<_ACEOF
8845 /* end confdefs.h. */
8847 # include <limits.h>
8849 # include <assert.h>
8853 if { (ac_try="$ac_cpp conftest.$ac_ext"
8855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8856 *) ac_try_echo=$ac_try;;
8858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8861 grep -v '^ *+' conftest.er1 >conftest.err
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } >/dev/null && {
8866 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8867 test ! -s conftest.err
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8874 # Broken: fails on valid input.
8878 rm -f conftest.err conftest.$ac_ext
8880 # OK, works on sane cases. Now check whether nonexistent headers
8881 # can be detected and how.
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8888 #include <ac_nonexistent.h>
8890 if { (ac_try="$ac_cpp conftest.$ac_ext"
8892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893 *) ac_try_echo=$ac_try;;
8895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8898 grep -v '^ *+' conftest.er1 >conftest.err
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } >/dev/null && {
8903 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8904 test ! -s conftest.err
8906 # Broken: success on invalid input.
8909 echo "$as_me: failed program was:" >&5
8910 sed 's/^/| /' conftest.$ac_ext >&5
8912 # Passes both tests.
8917 rm -f conftest.err conftest.$ac_ext
8920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8921 rm -f conftest.err conftest.$ac_ext
8922 if $ac_preproc_ok; then
8925 _lt_caught_CXX_error=yes
8929 ac_cpp='$CPP $CPPFLAGS'
8930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8935 _lt_caught_CXX_error=yes
8943 # Check whether --enable-shared was given.
8944 if test "${enable_shared+set}" = set; then
8945 enableval=$enable_shared; p=${PACKAGE-default}
8947 yes) enable_shared=yes ;;
8948 no) enable_shared=no ;;
8951 # Look at the argument we got. We use all the common list separators.
8952 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8953 for pkg in $enableval; do
8955 if test "X$pkg" = "X$p"; then
8972 # Check whether --enable-static was given.
8973 if test "${enable_static+set}" = set; then
8974 enableval=$enable_static; p=${PACKAGE-default}
8976 yes) enable_static=yes ;;
8977 no) enable_static=no ;;
8980 # Look at the argument we got. We use all the common list separators.
8981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8982 for pkg in $enableval; do
8984 if test "X$pkg" = "X$p"; then
9013 # Check whether --with-pic was given.
9014 if test "${with_pic+set}" = set; then
9015 withval=$with_pic; pic_mode="$withval"
9021 test -z "$pic_mode" && pic_mode=default
9029 # Check whether --enable-fast-install was given.
9030 if test "${enable_fast_install+set}" = set; then
9031 enableval=$enable_fast_install; p=${PACKAGE-default}
9033 yes) enable_fast_install=yes ;;
9034 no) enable_fast_install=no ;;
9036 enable_fast_install=no
9037 # Look at the argument we got. We use all the common list separators.
9038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9039 for pkg in $enableval; do
9041 if test "X$pkg" = "X$p"; then
9042 enable_fast_install=yes
9049 enable_fast_install=yes
9062 # This can be used to rebuild libtool when needed
9063 LIBTOOL_DEPS="$ltmain"
9065 # Always use our own libtool.
9066 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9092 test -z "$LN_S" && LN_S="ln -s"
9107 if test -n "${ZSH_VERSION+set}" ; then
9108 setopt NO_GLOB_SUBST
9111 { echo "$as_me:$LINENO: checking for objdir" >&5
9112 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9113 if test "${lt_cv_objdir+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 rm -f .libs 2>/dev/null
9117 mkdir .libs 2>/dev/null
9118 if test -d .libs; then
9121 # MS-DOS does not allow filenames that begin with a dot.
9124 rmdir .libs 2>/dev/null
9126 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9127 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9128 objdir=$lt_cv_objdir
9134 cat >>confdefs.h <<_ACEOF
9135 #define LT_OBJDIR "$lt_cv_objdir/"
9156 # AIX sometimes has problems with the GCC collect2 program. For some
9157 # reason, if we set the COLLECT_NAMES environment variable, the problems
9158 # vanish in a puff of smoke.
9159 if test "X${COLLECT_NAMES+set}" != Xset; then
9161 export COLLECT_NAMES
9166 # Sed substitution that helps us do robust quoting. It backslashifies
9167 # metacharacters that are still active within double-quoted strings.
9168 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9170 # Same as above, but do not quote variable references.
9171 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9173 # Sed substitution to delay expansion of an escaped shell variable in a
9174 # double_quote_subst'ed string.
9175 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9177 # Sed substitution to delay expansion of an escaped single quote.
9178 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9180 # Sed substitution to avoid accidental globbing in evaled expressions
9181 no_glob_subst='s/\*/\\\*/g'
9185 can_build_shared=yes
9187 # All known linkers require a `.a' archive for static linking (except MSVC,
9188 # which needs '.lib').
9191 with_gnu_ld="$lt_cv_prog_gnu_ld"
9194 old_CFLAGS="$CFLAGS"
9196 # Set sane defaults for various variables
9197 test -z "$CC" && CC=cc
9198 test -z "$LTCC" && LTCC=$CC
9199 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9200 test -z "$LD" && LD=ld
9201 test -z "$ac_objext" && ac_objext=o
9203 for cc_temp in $compiler""; do
9205 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9206 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9211 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9214 # Only perform the check for file, if the check method requires it
9215 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9216 case $deplibs_check_method in
9218 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9219 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9220 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9221 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9229 lt_save_MAGIC_CMD="$MAGIC_CMD"
9230 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9231 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9232 for ac_dir in $ac_dummy; do
9234 test -z "$ac_dir" && ac_dir=.
9235 if test -f $ac_dir/${ac_tool_prefix}file; then
9236 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9237 if test -n "$file_magic_test_file"; then
9238 case $deplibs_check_method in
9240 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9241 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9242 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9243 $EGREP "$file_magic_regex" > /dev/null; then
9248 *** Warning: the command libtool uses to detect shared libraries,
9249 *** $file_magic_cmd, produces output that libtool cannot recognize.
9250 *** The result is that libtool may fail to recognize shared libraries
9251 *** as such. This will affect the creation of libtool libraries that
9252 *** depend on shared libraries, but programs linked with such libtool
9253 *** libraries will work regardless of this problem. Nevertheless, you
9254 *** may want to report the problem to your system manager and/or to
9255 *** bug-libtool@gnu.org
9265 MAGIC_CMD="$lt_save_MAGIC_CMD"
9270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9271 if test -n "$MAGIC_CMD"; then
9272 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9273 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9275 { echo "$as_me:$LINENO: result: no" >&5
9276 echo "${ECHO_T}no" >&6; }
9283 if test -z "$lt_cv_path_MAGIC_CMD"; then
9284 if test -n "$ac_tool_prefix"; then
9285 { echo "$as_me:$LINENO: checking for file" >&5
9286 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9287 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9295 lt_save_MAGIC_CMD="$MAGIC_CMD"
9296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9297 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9298 for ac_dir in $ac_dummy; do
9300 test -z "$ac_dir" && ac_dir=.
9301 if test -f $ac_dir/file; then
9302 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9303 if test -n "$file_magic_test_file"; then
9304 case $deplibs_check_method in
9306 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9307 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9308 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9309 $EGREP "$file_magic_regex" > /dev/null; then
9314 *** Warning: the command libtool uses to detect shared libraries,
9315 *** $file_magic_cmd, produces output that libtool cannot recognize.
9316 *** The result is that libtool may fail to recognize shared libraries
9317 *** as such. This will affect the creation of libtool libraries that
9318 *** depend on shared libraries, but programs linked with such libtool
9319 *** libraries will work regardless of this problem. Nevertheless, you
9320 *** may want to report the problem to your system manager and/or to
9321 *** bug-libtool@gnu.org
9331 MAGIC_CMD="$lt_save_MAGIC_CMD"
9336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9337 if test -n "$MAGIC_CMD"; then
9338 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9339 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9341 { echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6; }
9355 # Use C for the default configuration in the libtool script
9359 ac_cpp='$CPP $CPPFLAGS'
9360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9365 # Source file extension for C test sources.
9368 # Object file extension for compiled C test sources.
9372 # Code to be used in simple compile tests
9373 lt_simple_compile_test_code="int some_variable = 0;"
9375 # Code to be used in simple link tests
9376 lt_simple_link_test_code='int main(){return(0);}'
9384 # If no C compiler was specified, use CC.
9387 # If no C compiler flags were specified, use CFLAGS.
9388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9390 # Allow CC to be a program name with arguments.
9393 # Save the default compiler, since it gets overwritten when the other
9394 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9395 compiler_DEFAULT=$CC
9397 # save warnings/boilerplate of simple test code
9398 ac_outfile=conftest.$ac_objext
9399 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9400 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9401 _lt_compiler_boilerplate=`cat conftest.err`
9404 ac_outfile=conftest.$ac_objext
9405 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9406 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9407 _lt_linker_boilerplate=`cat conftest.err`
9412 ## There is no encapsulation within the following macros, do not change
9413 ## the running order or otherwise move them around unless you know exactly
9414 ## what you are doing...
9415 if test -n "$compiler"; then
9417 lt_prog_compiler_no_builtin_flag=
9419 if test "$GCC" = yes; then
9420 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9422 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9423 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9424 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 lt_cv_prog_compiler_rtti_exceptions=no
9428 ac_outfile=conftest.$ac_objext
9429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9430 lt_compiler_flag="-fno-rtti -fno-exceptions"
9431 # Insert the option either (1) after the last *FLAGS variable, or
9432 # (2) before a word containing "conftest.", or (3) at the end.
9433 # Note that $ac_compile itself does not contain backslashes and begins
9434 # with a dollar sign (not a hyphen), so the echo should work correctly.
9435 # The option is referenced via a variable to avoid confusing sed.
9436 lt_compile=`echo "$ac_compile" | $SED \
9437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9439 -e 's:$: $lt_compiler_flag:'`
9440 (eval echo "\"\$as_me:9440: $lt_compile\"" >&5)
9441 (eval "$lt_compile" 2>conftest.err)
9443 cat conftest.err >&5
9444 echo "$as_me:9444: \$? = $ac_status" >&5
9445 if (exit $ac_status) && test -s "$ac_outfile"; then
9446 # The compiler can only warn and ignore the option if not recognized
9447 # So say no if there are warnings other than the usual output.
9448 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9449 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9450 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9451 lt_cv_prog_compiler_rtti_exceptions=yes
9457 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9458 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9460 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9461 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9473 lt_prog_compiler_wl=
9474 lt_prog_compiler_pic=
9475 lt_prog_compiler_static=
9477 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9478 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9480 if test "$GCC" = yes; then
9481 lt_prog_compiler_wl='-Wl,'
9482 lt_prog_compiler_static='-static'
9486 # All AIX code is PIC.
9487 if test "$host_cpu" = ia64; then
9488 # AIX 5 now supports IA64 processor
9489 lt_prog_compiler_static='-Bstatic'
9496 # see comment about AmigaOS4 .so support
9497 lt_prog_compiler_pic='-fPIC'
9500 # FIXME: we need at least 68020 code to build shared libraries, but
9501 # adding the `-m68020' flag to GCC prevents building anything better,
9503 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9508 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9509 # PIC is the default for these OSes.
9512 mingw* | cygwin* | pw32* | os2* | cegcc*)
9513 # This hack is so that the source file can tell whether it is being
9514 # built for inclusion in a dll (and should export symbols for example).
9515 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9516 # (--disable-auto-import) libraries
9517 lt_prog_compiler_pic='-DDLL_EXPORT'
9520 darwin* | rhapsody*)
9521 # PIC is the default on this platform
9522 # Common symbols not allowed in MH_DYLIB files
9523 lt_prog_compiler_pic='-fno-common'
9527 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9528 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9529 # sets the default TLS model and affects inlining.
9535 lt_prog_compiler_pic='-fPIC'
9541 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9542 # Instead, we relocate shared libraries at runtime.
9546 # Just because we use GCC doesn't mean we suddenly get shared libraries
9547 # on systems that don't support them.
9548 lt_prog_compiler_can_build_shared=no
9553 # QNX uses GNU C++, but need to define -shared option too, otherwise
9555 lt_prog_compiler_pic='-fPIC -shared'
9559 if test -d /usr/nec; then
9560 lt_prog_compiler_pic=-Kconform_pic
9565 lt_prog_compiler_pic='-fPIC'
9569 # PORTME Check for flag to pass linker flags through the system compiler.
9572 lt_prog_compiler_wl='-Wl,'
9573 if test "$host_cpu" = ia64; then
9574 # AIX 5 now supports IA64 processor
9575 lt_prog_compiler_static='-Bstatic'
9577 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9581 mingw* | cygwin* | pw32* | os2* | cegcc*)
9582 # This hack is so that the source file can tell whether it is being
9583 # built for inclusion in a dll (and should export symbols for example).
9584 lt_prog_compiler_pic='-DDLL_EXPORT'
9587 hpux9* | hpux10* | hpux11*)
9588 lt_prog_compiler_wl='-Wl,'
9589 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9596 lt_prog_compiler_pic='+Z'
9599 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9600 lt_prog_compiler_static='${wl}-a ${wl}archive'
9603 irix5* | irix6* | nonstopux*)
9604 lt_prog_compiler_wl='-Wl,'
9605 # PIC (with -KPIC) is the default.
9606 lt_prog_compiler_static='-non_shared'
9609 linux* | k*bsd*-gnu)
9610 case $cc_basename in
9611 # old Intel for x86_64 which still supported -KPIC.
9613 lt_prog_compiler_wl='-Wl,'
9614 lt_prog_compiler_pic='-KPIC'
9615 lt_prog_compiler_static='-static'
9617 # icc used to be incompatible with GCC.
9618 # ICC 10 doesn't accept -KPIC any more.
9620 lt_prog_compiler_wl='-Wl,'
9621 lt_prog_compiler_pic='-fPIC'
9622 lt_prog_compiler_static='-static'
9624 # Lahey Fortran 8.1.
9626 lt_prog_compiler_wl='-Wl,'
9627 lt_prog_compiler_pic='--shared'
9628 lt_prog_compiler_static='--static'
9630 pgcc* | pgf77* | pgf90* | pgf95*)
9631 # Portland Group compilers (*not* the Pentium gcc compiler,
9632 # which looks to be a dead project)
9633 lt_prog_compiler_wl='-Wl,'
9634 lt_prog_compiler_pic='-fpic'
9635 lt_prog_compiler_static='-Bstatic'
9638 lt_prog_compiler_wl='-Wl,'
9639 # All Alpha code is PIC.
9640 lt_prog_compiler_static='-non_shared'
9643 # IBM XL C 8.0/Fortran 10.1 on PPC
9644 lt_prog_compiler_wl='-Wl,'
9645 lt_prog_compiler_pic='-qpic'
9646 lt_prog_compiler_static='-qstaticlink'
9649 case `$CC -V 2>&1 | sed 5q` in
9652 lt_prog_compiler_pic='-KPIC'
9653 lt_prog_compiler_static='-Bstatic'
9654 lt_prog_compiler_wl='-Wl,'
9657 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9658 lt_prog_compiler_pic='-KPIC'
9659 lt_prog_compiler_static='-Bstatic'
9660 lt_prog_compiler_wl=''
9668 lt_prog_compiler_pic='-KPIC'
9669 lt_prog_compiler_static='-Bstatic'
9673 # QNX uses GNU C++, but need to define -shared option too, otherwise
9675 lt_prog_compiler_pic='-fPIC -shared'
9678 osf3* | osf4* | osf5*)
9679 lt_prog_compiler_wl='-Wl,'
9680 # All OSF/1 code is PIC.
9681 lt_prog_compiler_static='-non_shared'
9685 lt_prog_compiler_static='-non_shared'
9689 lt_prog_compiler_pic='-KPIC'
9690 lt_prog_compiler_static='-Bstatic'
9691 case $cc_basename in
9693 lt_prog_compiler_wl='-Qoption ld ';;
9695 lt_prog_compiler_wl='-Wl,';;
9700 lt_prog_compiler_wl='-Qoption ld '
9701 lt_prog_compiler_pic='-PIC'
9702 lt_prog_compiler_static='-Bstatic'
9705 sysv4 | sysv4.2uw2* | sysv4.3*)
9706 lt_prog_compiler_wl='-Wl,'
9707 lt_prog_compiler_pic='-KPIC'
9708 lt_prog_compiler_static='-Bstatic'
9712 if test -d /usr/nec ;then
9713 lt_prog_compiler_pic='-Kconform_pic'
9714 lt_prog_compiler_static='-Bstatic'
9718 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9719 lt_prog_compiler_wl='-Wl,'
9720 lt_prog_compiler_pic='-KPIC'
9721 lt_prog_compiler_static='-Bstatic'
9725 lt_prog_compiler_wl='-Wl,'
9726 lt_prog_compiler_can_build_shared=no
9730 lt_prog_compiler_pic='-pic'
9731 lt_prog_compiler_static='-Bstatic'
9735 lt_prog_compiler_can_build_shared=no
9741 # For platforms which do not support PIC, -DPIC is meaningless:
9743 lt_prog_compiler_pic=
9746 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9749 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9750 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9758 # Check to make sure the PIC flag actually works.
9760 if test -n "$lt_prog_compiler_pic"; then
9761 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9763 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9764 echo $ECHO_N "(cached) $ECHO_C" >&6
9766 lt_cv_prog_compiler_pic_works=no
9767 ac_outfile=conftest.$ac_objext
9768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9769 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9770 # Insert the option either (1) after the last *FLAGS variable, or
9771 # (2) before a word containing "conftest.", or (3) at the end.
9772 # Note that $ac_compile itself does not contain backslashes and begins
9773 # with a dollar sign (not a hyphen), so the echo should work correctly.
9774 # The option is referenced via a variable to avoid confusing sed.
9775 lt_compile=`echo "$ac_compile" | $SED \
9776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9778 -e 's:$: $lt_compiler_flag:'`
9779 (eval echo "\"\$as_me:9779: $lt_compile\"" >&5)
9780 (eval "$lt_compile" 2>conftest.err)
9782 cat conftest.err >&5
9783 echo "$as_me:9783: \$? = $ac_status" >&5
9784 if (exit $ac_status) && test -s "$ac_outfile"; then
9785 # The compiler can only warn and ignore the option if not recognized
9786 # So say no if there are warnings other than the usual output.
9787 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9790 lt_cv_prog_compiler_pic_works=yes
9796 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9797 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9799 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9800 case $lt_prog_compiler_pic in
9802 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9805 lt_prog_compiler_pic=
9806 lt_prog_compiler_can_build_shared=no
9817 # Check to make sure the static flag actually works.
9819 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9820 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9821 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9822 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 lt_cv_prog_compiler_static_works=no
9826 save_LDFLAGS="$LDFLAGS"
9827 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9828 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9829 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9830 # The linker can only warn and ignore the option if not recognized
9831 # So say no if there are warnings
9832 if test -s conftest.err; then
9833 # Append any errors to the config.log.
9834 cat conftest.err 1>&5
9835 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9836 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9837 if diff conftest.exp conftest.er2 >/dev/null; then
9838 lt_cv_prog_compiler_static_works=yes
9841 lt_cv_prog_compiler_static_works=yes
9845 LDFLAGS="$save_LDFLAGS"
9848 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9849 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9851 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9854 lt_prog_compiler_static=
9863 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9864 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9865 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9866 echo $ECHO_N "(cached) $ECHO_C" >&6
9868 lt_cv_prog_compiler_c_o=no
9869 $RM -r conftest 2>/dev/null
9873 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9875 lt_compiler_flag="-o out/conftest2.$ac_objext"
9876 # Insert the option either (1) after the last *FLAGS variable, or
9877 # (2) before a word containing "conftest.", or (3) at the end.
9878 # Note that $ac_compile itself does not contain backslashes and begins
9879 # with a dollar sign (not a hyphen), so the echo should work correctly.
9880 lt_compile=`echo "$ac_compile" | $SED \
9881 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9882 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9883 -e 's:$: $lt_compiler_flag:'`
9884 (eval echo "\"\$as_me:9884: $lt_compile\"" >&5)
9885 (eval "$lt_compile" 2>out/conftest.err)
9887 cat out/conftest.err >&5
9888 echo "$as_me:9888: \$? = $ac_status" >&5
9889 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9891 # The compiler can only warn and ignore the option if not recognized
9892 # So say no if there are warnings
9893 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9894 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9895 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9896 lt_cv_prog_compiler_c_o=yes
9901 # SGI C++ compiler will create directory out/ii_files/ for
9902 # template instantiation
9903 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9904 $RM out/* && rmdir out
9910 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9911 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9918 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9919 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9920 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 lt_cv_prog_compiler_c_o=no
9924 $RM -r conftest 2>/dev/null
9928 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9930 lt_compiler_flag="-o out/conftest2.$ac_objext"
9931 # Insert the option either (1) after the last *FLAGS variable, or
9932 # (2) before a word containing "conftest.", or (3) at the end.
9933 # Note that $ac_compile itself does not contain backslashes and begins
9934 # with a dollar sign (not a hyphen), so the echo should work correctly.
9935 lt_compile=`echo "$ac_compile" | $SED \
9936 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9938 -e 's:$: $lt_compiler_flag:'`
9939 (eval echo "\"\$as_me:9939: $lt_compile\"" >&5)
9940 (eval "$lt_compile" 2>out/conftest.err)
9942 cat out/conftest.err >&5
9943 echo "$as_me:9943: \$? = $ac_status" >&5
9944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9946 # The compiler can only warn and ignore the option if not recognized
9947 # So say no if there are warnings
9948 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9949 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9950 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9951 lt_cv_prog_compiler_c_o=yes
9956 # SGI C++ compiler will create directory out/ii_files/ for
9957 # template instantiation
9958 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9959 $RM out/* && rmdir out
9965 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9966 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9971 hard_links="nottested"
9972 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9973 # do not overwrite the value of need_locks provided by the user
9974 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9975 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9978 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9980 ln conftest.a conftest.b 2>&5 || hard_links=no
9981 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9982 { echo "$as_me:$LINENO: result: $hard_links" >&5
9983 echo "${ECHO_T}$hard_links" >&6; }
9984 if test "$hard_links" = no; then
9985 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9986 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9998 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9999 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10002 allow_undefined_flag=
10003 always_export_symbols=no
10005 archive_expsym_cmds=
10006 compiler_needs_object=no
10007 enable_shared_with_static_runtimes=no
10008 export_dynamic_flag_spec=
10009 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10010 hardcode_automatic=no
10012 hardcode_direct_absolute=no
10013 hardcode_libdir_flag_spec=
10014 hardcode_libdir_flag_spec_ld=
10015 hardcode_libdir_separator=
10016 hardcode_minus_L=no
10017 hardcode_shlibpath_var=unsupported
10019 link_all_deplibs=unknown
10021 module_expsym_cmds=
10022 old_archive_from_new_cmds=
10023 old_archive_from_expsyms_cmds=
10024 thread_safe_flag_spec=
10025 whole_archive_flag_spec=
10026 # include_expsyms should be a list of space-separated symbols to be *always*
10027 # included in the symbol list
10029 # exclude_expsyms can be an extended regexp of symbols to exclude
10030 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10031 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10032 # as well as any symbol that contains `d'.
10033 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10034 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10035 # platforms (ab)use it in PIC code, but their linkers get confused if
10036 # the symbol is explicitly referenced. Since portable code cannot
10037 # rely on this symbol name, it's probably fine to never include it in
10038 # preloaded symbol tables.
10039 # Exclude shared library initialization/finalization symbols.
10040 extract_expsyms_cmds=
10043 cygwin* | mingw* | pw32* | cegcc*)
10044 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10045 # When not using gcc, we currently assume that we are using
10046 # Microsoft Visual C++.
10047 if test "$GCC" != yes; then
10052 # we just hope/assume this is gcc and not c89 (= MSVC++)
10061 if test "$with_gnu_ld" = yes; then
10062 # If archive_cmds runs LD, not CC, wlarc should be empty
10065 # Set some defaults for GNU ld with shared library support. These
10066 # are reset later if shared libraries are not supported. Putting them
10067 # here allows them to be overridden if necessary.
10068 runpath_var=LD_RUN_PATH
10069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10070 export_dynamic_flag_spec='${wl}--export-dynamic'
10071 # ancient GNU ld didn't support --whole-archive et. al.
10072 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10073 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10075 whole_archive_flag_spec=
10077 supports_anon_versioning=no
10078 case `$LD -v 2>&1` in
10079 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10080 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10081 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10082 *\ 2.11.*) ;; # other 2.11 versions
10083 *) supports_anon_versioning=yes ;;
10086 # See if GNU ld supports shared libraries.
10089 # On AIX/PPC, the GNU linker is very broken
10090 if test "$host_cpu" != ia64; then
10094 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10095 *** to be unable to reliably create shared libraries on AIX.
10096 *** Therefore, libtool is disabling shared libraries support. If you
10097 *** really care for shared libraries, you may want to modify your PATH
10098 *** so that a non-GNU linker is found, and then restart.
10107 # see comment about AmigaOS4 .so support
10108 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10109 archive_expsym_cmds=''
10112 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)'
10113 hardcode_libdir_flag_spec='-L$libdir'
10114 hardcode_minus_L=yes
10120 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10121 allow_undefined_flag=unsupported
10122 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10123 # support --undefined. This deserves some investigation. FIXME
10124 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10130 cygwin* | mingw* | pw32* | cegcc*)
10131 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10132 # as there is no search path for DLLs.
10133 hardcode_libdir_flag_spec='-L$libdir'
10134 allow_undefined_flag=unsupported
10135 always_export_symbols=no
10136 enable_shared_with_static_runtimes=yes
10137 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10139 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10141 # If the export-symbols file already is a .def file (1st line
10142 # is EXPORTS), use it as is; otherwise, prepend...
10143 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10144 cp $export_symbols $output_objdir/$soname.def;
10146 echo EXPORTS > $output_objdir/$soname.def;
10147 cat $export_symbols >> $output_objdir/$soname.def;
10149 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10157 hardcode_shlibpath_var=no
10158 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10159 export_dynamic_flag_spec='${wl}-E'
10160 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10161 # Instead, shared libraries are loaded at an image base (0x10000000 by
10162 # default) and relocated if they conflict, which is a slow very memory
10163 # consuming and fragmenting process. To avoid this, we pick a random,
10164 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10165 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10166 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10167 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'
10170 gnu* | linux* | tpf* | k*bsd*-gnu)
10172 if test "$host_os" = linux-dietlibc; then
10173 case $cc_basename in
10174 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10177 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10178 && test "$tmp_diet" = no
10181 tmp_sharedflag='-shared'
10182 case $cc_basename,$host_cpu in
10183 pgcc*) # Portland Group C compiler
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'
10187 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10188 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'
10189 tmp_addflag=' $pic_flag -Mnomain' ;;
10190 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10191 tmp_addflag=' -i_dynamic' ;;
10192 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10193 tmp_addflag=' -i_dynamic -nofor_main' ;;
10194 ifc* | ifort*) # Intel Fortran compiler
10195 tmp_addflag=' -nofor_main' ;;
10196 lf95*) # Lahey Fortran 8.1
10197 whole_archive_flag_spec=
10198 tmp_sharedflag='--shared' ;;
10199 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10200 tmp_sharedflag='-qmkshrobj'
10203 case `$CC -V 2>&1 | sed 5q` in
10204 *Sun\ C*) # Sun C 5.9
10205 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'
10206 compiler_needs_object=yes
10207 tmp_sharedflag='-G' ;;
10208 *Sun\ F*) # Sun Fortran 8.3
10209 tmp_sharedflag='-G' ;;
10211 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10213 if test "x$supports_anon_versioning" = xyes; then
10214 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10215 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10216 echo "local: *; };" >> $output_objdir/$libname.ver~
10217 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10220 case $cc_basename in
10222 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10223 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10224 hardcode_libdir_flag_spec=
10225 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10226 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10227 if test "x$supports_anon_versioning" = xyes; then
10228 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10230 echo "local: *; };" >> $output_objdir/$libname.ver~
10231 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10242 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10251 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10255 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10256 *** create shared libraries on Solaris systems. Therefore, libtool
10257 *** is disabling shared libraries support. We urge you to upgrade GNU
10258 *** binutils to release 2.9.1 or newer. Another option is to modify
10259 *** your PATH or compiler configuration so that the native linker is
10260 *** used, and then restart.
10263 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10272 case `$LD -v 2>&1` in
10273 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10277 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10278 *** reliably create shared libraries on SCO systems. Therefore, libtool
10279 *** is disabling shared libraries support. We urge you to upgrade GNU
10280 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10281 *** your PATH or compiler configuration so that the native linker is
10282 *** used, and then restart.
10287 # For security reasons, it is highly recommended that you always
10288 # use absolute paths for naming shared libraries, and exclude the
10289 # DT_RUNPATH tag from executables and libraries. But doing so
10290 # requires that you compile everything twice, which is a pain.
10291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10303 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10305 hardcode_direct=yes
10306 hardcode_shlibpath_var=no
10310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10311 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10312 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10319 if test "$ld_shlibs" = no; then
10321 hardcode_libdir_flag_spec=
10322 export_dynamic_flag_spec=
10323 whole_archive_flag_spec=
10326 # PORTME fill in a description of your system's linker (not GNU ld)
10329 allow_undefined_flag=unsupported
10330 always_export_symbols=yes
10331 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'
10332 # Note: this linker hardcodes the directories in LIBPATH if there
10333 # are no directories specified by -L.
10334 hardcode_minus_L=yes
10335 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10336 # Neither direct hardcoding nor static linking is supported with a
10338 hardcode_direct=unsupported
10343 if test "$host_cpu" = ia64; then
10344 # On IA64, the linker does run time linking by default, so we don't
10345 # have to do anything special.
10346 aix_use_runtimelinking=no
10347 exp_sym_flag='-Bexport'
10350 # If we're using GNU nm, then we don't want the "-C" option.
10351 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10352 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10353 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'
10355 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'
10357 aix_use_runtimelinking=no
10359 # Test if we are trying to use run time linking or normal
10360 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10361 # need to do runtime linking.
10362 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10363 for ld_flag in $LDFLAGS; do
10364 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10365 aix_use_runtimelinking=yes
10372 exp_sym_flag='-bexport'
10373 no_entry_flag='-bnoentry'
10376 # When large executables or shared objects are built, AIX ld can
10377 # have problems creating the table of contents. If linking a library
10378 # or program results in "error TOC overflow" add -mminimal-toc to
10379 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10380 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10383 hardcode_direct=yes
10384 hardcode_direct_absolute=yes
10385 hardcode_libdir_separator=':'
10386 link_all_deplibs=yes
10387 file_list_spec='${wl}-f,'
10389 if test "$GCC" = yes; then
10390 case $host_os in aix4.[012]|aix4.[012].*)
10391 # We only want to do this on AIX 4.2 and lower, the check
10392 # below for broken collect2 doesn't work under 4.3+
10393 collect2name=`${CC} -print-prog-name=collect2`
10394 if test -f "$collect2name" &&
10395 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10397 # We have reworked collect2
10400 # We have old collect2
10401 hardcode_direct=unsupported
10402 # It fails to find uninstalled libraries when the uninstalled
10403 # path is not listed in the libpath. Setting hardcode_minus_L
10404 # to unsupported forces relinking
10405 hardcode_minus_L=yes
10406 hardcode_libdir_flag_spec='-L$libdir'
10407 hardcode_libdir_separator=
10411 shared_flag='-shared'
10412 if test "$aix_use_runtimelinking" = yes; then
10413 shared_flag="$shared_flag "'${wl}-G'
10417 if test "$host_cpu" = ia64; then
10418 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10419 # chokes on -Wl,-G. The following line is correct:
10422 if test "$aix_use_runtimelinking" = yes; then
10423 shared_flag='${wl}-G'
10425 shared_flag='${wl}-bM:SRE'
10430 export_dynamic_flag_spec='${wl}-bexpall'
10431 # It seems that -bexpall does not export symbols beginning with
10432 # underscore (_), so it is better to generate a list of symbols to export.
10433 always_export_symbols=yes
10434 if test "$aix_use_runtimelinking" = yes; then
10435 # Warning - without using the other runtime loading flags (-brtl),
10436 # -berok will link without error, but may produce a broken library.
10437 allow_undefined_flag='-berok'
10438 # Determine the default libpath from the value encoded in an
10439 # empty executable.
10440 cat >conftest.$ac_ext <<_ACEOF
10443 cat confdefs.h >>conftest.$ac_ext
10444 cat >>conftest.$ac_ext <<_ACEOF
10445 /* end confdefs.h. */
10455 rm -f conftest.$ac_objext conftest$ac_exeext
10456 if { (ac_try="$ac_link"
10457 case "(($ac_try" in
10458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459 *) ac_try_echo=$ac_try;;
10461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10462 (eval "$ac_link") 2>conftest.er1
10464 grep -v '^ *+' conftest.er1 >conftest.err
10466 cat conftest.err >&5
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); } && {
10469 test -z "$ac_c_werror_flag" ||
10470 test ! -s conftest.err
10471 } && test -s conftest$ac_exeext &&
10472 $as_test_x conftest$ac_exeext; then
10474 lt_aix_libpath_sed='
10475 /Import File Strings/,/^$/ {
10481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10482 # Check for a 64-bit object if we didn't find anything.
10483 if test -z "$aix_libpath"; then
10484 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10487 echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10494 conftest$ac_exeext conftest.$ac_ext
10495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10497 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10498 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"
10500 if test "$host_cpu" = ia64; then
10501 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10502 allow_undefined_flag="-z nodefs"
10503 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"
10505 # Determine the default libpath from the value encoded in an
10506 # empty executable.
10507 cat >conftest.$ac_ext <<_ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h. */
10522 rm -f conftest.$ac_objext conftest$ac_exeext
10523 if { (ac_try="$ac_link"
10524 case "(($ac_try" in
10525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10526 *) ac_try_echo=$ac_try;;
10528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10529 (eval "$ac_link") 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } && {
10536 test -z "$ac_c_werror_flag" ||
10537 test ! -s conftest.err
10538 } && test -s conftest$ac_exeext &&
10539 $as_test_x conftest$ac_exeext; then
10541 lt_aix_libpath_sed='
10542 /Import File Strings/,/^$/ {
10548 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10549 # Check for a 64-bit object if we didn't find anything.
10550 if test -z "$aix_libpath"; then
10551 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561 conftest$ac_exeext conftest.$ac_ext
10562 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10564 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10565 # Warning - without using the other run time loading flags,
10566 # -berok will link without error, but may produce a broken library.
10567 no_undefined_flag=' ${wl}-bernotok'
10568 allow_undefined_flag=' ${wl}-berok'
10569 # Exported symbols can be pulled into shared objects from archives
10570 whole_archive_flag_spec='$convenience'
10571 archive_cmds_need_lc=yes
10572 # This is similar to how AIX traditionally builds its shared libraries.
10573 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'
10581 # see comment about AmigaOS4 .so support
10582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10583 archive_expsym_cmds=''
10586 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)'
10587 hardcode_libdir_flag_spec='-L$libdir'
10588 hardcode_minus_L=yes
10594 export_dynamic_flag_spec=-rdynamic
10597 cygwin* | mingw* | pw32* | cegcc*)
10598 # When not using gcc, we currently assume that we are using
10599 # Microsoft Visual C++.
10600 # hardcode_libdir_flag_spec is actually meaningless, as there is
10601 # no search path for DLLs.
10602 hardcode_libdir_flag_spec=' '
10603 allow_undefined_flag=unsupported
10604 # Tell ltmain to make .lib files, not .a files.
10606 # Tell ltmain to make .dll files, not .so files.
10608 # FIXME: Setting linknames here is a bad hack.
10609 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10610 # The linker will automatically build a .lib file if we build a DLL.
10611 old_archive_from_new_cmds='true'
10612 # FIXME: Should let the user specify the lib program.
10613 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10614 fix_srcfile_path='`cygpath -w "$srcfile"`'
10615 enable_shared_with_static_runtimes=yes
10618 darwin* | rhapsody*)
10621 archive_cmds_need_lc=no
10623 hardcode_automatic=yes
10624 hardcode_shlibpath_var=unsupported
10625 whole_archive_flag_spec=''
10626 link_all_deplibs=yes
10627 allow_undefined_flag="$_lt_dar_allow_undefined"
10628 case $cc_basename in
10629 ifort*) _lt_dar_can_shared=yes ;;
10630 *) _lt_dar_can_shared=$GCC ;;
10632 if test "$_lt_dar_can_shared" = "yes"; then
10633 output_verbose_link_cmd=echo
10634 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10635 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10636 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}"
10637 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}"
10646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10647 hardcode_libdir_flag_spec='-L$libdir'
10648 hardcode_shlibpath_var=no
10655 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10656 # support. Future versions do this automatically, but an explicit c++rt0.o
10657 # does not break anything, and helps significantly (at the cost of a little
10660 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10661 hardcode_libdir_flag_spec='-R$libdir'
10662 hardcode_direct=yes
10663 hardcode_shlibpath_var=no
10666 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10668 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10669 hardcode_direct=yes
10670 hardcode_minus_L=yes
10671 hardcode_shlibpath_var=no
10674 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10675 freebsd* | dragonfly*)
10676 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10677 hardcode_libdir_flag_spec='-R$libdir'
10678 hardcode_direct=yes
10679 hardcode_shlibpath_var=no
10683 if test "$GCC" = yes; then
10684 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'
10686 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'
10688 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10689 hardcode_libdir_separator=:
10690 hardcode_direct=yes
10692 # hardcode_minus_L: Not really in the search PATH,
10693 # but as the default location of the library.
10694 hardcode_minus_L=yes
10695 export_dynamic_flag_spec='${wl}-E'
10699 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10700 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10702 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10704 if test "$with_gnu_ld" = no; then
10705 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10706 hardcode_libdir_flag_spec_ld='+b $libdir'
10707 hardcode_libdir_separator=:
10708 hardcode_direct=yes
10709 hardcode_direct_absolute=yes
10710 export_dynamic_flag_spec='${wl}-E'
10711 # hardcode_minus_L: Not really in the search PATH,
10712 # but as the default location of the library.
10713 hardcode_minus_L=yes
10718 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10721 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10724 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10727 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10736 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10739 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10743 if test "$with_gnu_ld" = no; then
10744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10745 hardcode_libdir_separator=:
10750 hardcode_shlibpath_var=no
10753 hardcode_direct=yes
10754 hardcode_direct_absolute=yes
10755 export_dynamic_flag_spec='${wl}-E'
10757 # hardcode_minus_L: Not really in the search PATH,
10758 # but as the default location of the library.
10759 hardcode_minus_L=yes
10765 irix5* | irix6* | nonstopux*)
10766 if test "$GCC" = yes; then
10767 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'
10768 # Try to use the -exported_symbol ld option, if it does not
10769 # work, assume that -exports_file does not work either and
10770 # implicitly export all symbols.
10771 save_LDFLAGS="$LDFLAGS"
10772 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10773 cat >conftest.$ac_ext <<_ACEOF
10776 rm -f conftest.$ac_objext conftest$ac_exeext
10777 if { (ac_try="$ac_link"
10778 case "(($ac_try" in
10779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10780 *) ac_try_echo=$ac_try;;
10782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10783 (eval "$ac_link") 2>conftest.er1
10785 grep -v '^ *+' conftest.er1 >conftest.err
10787 cat conftest.err >&5
10788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10789 (exit $ac_status); } && {
10790 test -z "$ac_c_werror_flag" ||
10791 test ! -s conftest.err
10792 } && test -s conftest$ac_exeext &&
10793 $as_test_x conftest$ac_exeext; then
10794 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'
10797 echo "$as_me: failed program was:" >&5
10798 sed 's/^/| /' conftest.$ac_ext >&5
10803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10804 conftest$ac_exeext conftest.$ac_ext
10805 LDFLAGS="$save_LDFLAGS"
10807 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'
10808 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'
10810 archive_cmds_need_lc='no'
10811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10812 hardcode_libdir_separator=:
10814 link_all_deplibs=yes
10818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10819 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10821 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10823 hardcode_libdir_flag_spec='-R$libdir'
10824 hardcode_direct=yes
10825 hardcode_shlibpath_var=no
10829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830 hardcode_direct=yes
10831 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10832 hardcode_libdir_separator=:
10833 hardcode_shlibpath_var=no
10840 if test -f /usr/libexec/ld.so; then
10841 hardcode_direct=yes
10842 hardcode_shlibpath_var=no
10843 hardcode_direct_absolute=yes
10844 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10845 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10846 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10847 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10848 export_dynamic_flag_spec='${wl}-E'
10851 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10853 hardcode_libdir_flag_spec='-R$libdir'
10856 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10857 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10867 hardcode_libdir_flag_spec='-L$libdir'
10868 hardcode_minus_L=yes
10869 allow_undefined_flag=unsupported
10870 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'
10871 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10875 if test "$GCC" = yes; then
10876 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10877 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'
10879 allow_undefined_flag=' -expect_unresolved \*'
10880 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'
10882 archive_cmds_need_lc='no'
10883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10884 hardcode_libdir_separator=:
10887 osf4* | osf5*) # as osf3* with the addition of -msym flag
10888 if test "$GCC" = yes; then
10889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10890 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'
10891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10893 allow_undefined_flag=' -expect_unresolved \*'
10894 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'
10895 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~
10896 $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'
10898 # Both c and cxx compiler support -rpath directly
10899 hardcode_libdir_flag_spec='-rpath $libdir'
10901 archive_cmds_need_lc='no'
10902 hardcode_libdir_separator=:
10906 no_undefined_flag=' -z defs'
10907 if test "$GCC" = yes; then
10909 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10910 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10911 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10913 case `$CC -V 2>&1` in
10916 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10918 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10922 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10923 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10924 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10928 hardcode_libdir_flag_spec='-R$libdir'
10929 hardcode_shlibpath_var=no
10931 solaris2.[0-5] | solaris2.[0-5].*) ;;
10933 # The compiler driver will combine and reorder linker options,
10934 # but understands `-z linker_flag'. GCC discards it without `$wl',
10935 # but is careful enough not to reorder.
10936 # Supported since Solaris 2.6 (maybe 2.5.1?)
10937 if test "$GCC" = yes; then
10938 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10940 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10944 link_all_deplibs=yes
10948 if test "x$host_vendor" = xsequent; then
10949 # Use $CC to link under sequent, because it throws in some extra .o
10950 # files that make .init and .fini sections work.
10951 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10955 hardcode_libdir_flag_spec='-L$libdir'
10956 hardcode_direct=yes
10957 hardcode_minus_L=yes
10958 hardcode_shlibpath_var=no
10962 case $host_vendor in
10964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10965 hardcode_direct=yes # is this really true???
10968 ## LD is ld it makes a PLAMLIB
10969 ## CC just makes a GrossModule.
10970 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10971 reload_cmds='$CC -r -o $output$reload_objs'
10975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10976 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10979 runpath_var='LD_RUN_PATH'
10980 hardcode_shlibpath_var=no
10984 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10985 hardcode_shlibpath_var=no
10986 export_dynamic_flag_spec='-Bexport'
10990 if test -d /usr/nec; then
10991 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10992 hardcode_shlibpath_var=no
10993 runpath_var=LD_RUN_PATH
10994 hardcode_runpath_var=yes
10999 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11000 no_undefined_flag='${wl}-z,text'
11001 archive_cmds_need_lc=no
11002 hardcode_shlibpath_var=no
11003 runpath_var='LD_RUN_PATH'
11005 if test "$GCC" = yes; then
11006 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11007 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11014 sysv5* | sco3.2v5* | sco5v6*)
11015 # Note: We can NOT use -z defs as we might desire, because we do not
11016 # link with -lc, and that would cause any symbols used from libc to
11017 # always be unresolved, which means just about no library would
11018 # ever link correctly. If we're not using GNU ld we use -z text
11019 # though, which does catch some bad symbols but isn't as heavy-handed
11021 no_undefined_flag='${wl}-z,text'
11022 allow_undefined_flag='${wl}-z,nodefs'
11023 archive_cmds_need_lc=no
11024 hardcode_shlibpath_var=no
11025 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11026 hardcode_libdir_separator=':'
11027 link_all_deplibs=yes
11028 export_dynamic_flag_spec='${wl}-Bexport'
11029 runpath_var='LD_RUN_PATH'
11031 if test "$GCC" = yes; then
11032 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11033 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11042 hardcode_libdir_flag_spec='-L$libdir'
11043 hardcode_shlibpath_var=no
11051 if test x$host_vendor = xsni; then
11053 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11054 export_dynamic_flag_spec='${wl}-Blargedynsym'
11060 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11061 echo "${ECHO_T}$ld_shlibs" >&6; }
11062 test "$ld_shlibs" = no && can_build_shared=no
11064 with_gnu_ld=$with_gnu_ld
11081 # Do we need to explicitly link libc?
11083 case "x$archive_cmds_need_lc" in
11085 # Assume -lc should be added
11086 archive_cmds_need_lc=yes
11088 if test "$enable_shared" = yes && test "$GCC" = yes; then
11089 case $archive_cmds in
11091 # FIXME: we may have to deal with multi-command sequences.
11094 # Test whether the compiler implicitly links with -lc since on some
11095 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11096 # to ld, don't add -lc before -lgcc.
11097 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11098 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11100 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11103 (eval $ac_compile) 2>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } 2>conftest.err; then
11109 libobjs=conftest.$ac_objext
11111 wl=$lt_prog_compiler_wl
11112 pic_flag=$lt_prog_compiler_pic
11118 lt_save_allow_undefined_flag=$allow_undefined_flag
11119 allow_undefined_flag=
11120 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11121 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }
11126 archive_cmds_need_lc=no
11128 archive_cmds_need_lc=yes
11130 allow_undefined_flag=$lt_save_allow_undefined_flag
11132 cat conftest.err 1>&5
11135 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11136 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11299 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11300 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11302 if test "$GCC" = yes; then
11304 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11305 *) lt_awk_arg="/^libraries:/" ;;
11307 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11308 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11309 # if the path contains ";" then we assume it to be the separator
11310 # otherwise default to the standard path separator (i.e. ":") - it is
11311 # assumed that no part of a normal pathname contains ";" but that should
11312 # okay in the real world where ";" in dirpaths is itself problematic.
11313 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11315 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11317 # Ok, now we have the path, separated by spaces, we can step through it
11318 # and add multilib dir if necessary.
11319 lt_tmp_lt_search_path_spec=
11320 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11321 for lt_sys_path in $lt_search_path_spec; do
11322 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11323 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11325 test -d "$lt_sys_path" && \
11326 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11329 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11330 BEGIN {RS=" "; FS="/|\n";} {
11333 for (lt_i = NF; lt_i > 0; lt_i--) {
11334 if ($lt_i != "" && $lt_i != ".") {
11335 if ($lt_i == "..") {
11338 if (lt_count == 0) {
11339 lt_foo="/" $lt_i lt_foo;
11346 if (lt_foo != "") { lt_freq[lt_foo]++; }
11347 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11349 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11351 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11353 library_names_spec=
11354 libname_spec='lib$name'
11358 postuninstall_cmds=
11362 shlibpath_overrides_runpath=unknown
11364 dynamic_linker="$host_os ld.so"
11365 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11366 need_lib_prefix=unknown
11367 hardcode_into_libs=no
11369 # when you set need_version to no, make sure it does not cause -set_version
11370 # flags to be left without arguments
11371 need_version=unknown
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11377 shlibpath_var=LIBPATH
11379 # AIX 3 has no versioning support, so we append a major version to the name.
11380 soname_spec='${libname}${release}${shared_ext}$major'
11387 hardcode_into_libs=yes
11388 if test "$host_cpu" = ia64; then
11389 # AIX 5 supports IA64
11390 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11391 shlibpath_var=LD_LIBRARY_PATH
11393 # With GCC up to 2.95.x, collect2 would create an import file
11394 # for dependence libraries. The import file would start with
11395 # the line `#! .'. This would cause the generated library to
11396 # depend on `.', always an invalid library. This was fixed in
11397 # development snapshots of GCC prior to 3.0.
11399 aix4 | aix4.[01] | aix4.[01].*)
11400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11402 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11405 can_build_shared=no
11409 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11410 # soname into executable. Probably we can add versioning support to
11411 # collect2, so additional links can be useful in future.
11412 if test "$aix_use_runtimelinking" = yes; then
11413 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11414 # instead of lib<name>.a to let people know that these are not
11415 # typical AIX shared libraries.
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 # We preserve .a as extension for shared libraries through AIX4.2
11419 # and later when we are not doing run time linking.
11420 library_names_spec='${libname}${release}.a $libname.a'
11421 soname_spec='${libname}${release}${shared_ext}$major'
11423 shlibpath_var=LIBPATH
11430 # Since July 2007 AmigaOS4 officially supports .so libraries.
11431 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435 library_names_spec='$libname.ixlibrary $libname.a'
11436 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11437 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'
11443 library_names_spec='${libname}${shared_ext}'
11444 dynamic_linker="$host_os ld.so"
11445 shlibpath_var=LIBRARY_PATH
11451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452 soname_spec='${libname}${release}${shared_ext}$major'
11453 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11456 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11457 # the default ld.so.conf also contains /usr/contrib/lib and
11458 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11459 # libtool to hard-code these into programs
11462 cygwin* | mingw* | pw32* | cegcc*)
11463 version_type=windows
11468 case $GCC,$host_os in
11469 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11470 library_names_spec='$libname.dll.a'
11471 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11472 postinstall_cmds='base_file=`basename \${file}`~
11473 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11474 dldir=$destdir/`dirname \$dlpath`~
11475 test -d \$dldir || mkdir -p \$dldir~
11476 $install_prog $dir/$dlname \$dldir/$dlname~
11477 chmod a+x \$dldir/$dlname~
11478 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11479 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11481 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11482 dlpath=$dir/\$dldll~
11484 shlibpath_overrides_runpath=yes
11488 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11489 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11490 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11493 # MinGW DLLs use traditional 'lib' prefix
11494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11495 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11496 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11497 # It is most probably a Windows format PATH printed by
11498 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11499 # path with ; separators, and with drive letters. We can handle the
11500 # drive letters (cygwin fileutils understands them), so leave them,
11501 # especially as we might pass files found there to a mingw objdump,
11502 # which wouldn't understand a cygwinified path. Ahh.
11503 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11505 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11509 # pw32 DLLs use 'pw' prefix rather than 'lib'
11510 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11516 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11519 dynamic_linker='Win32 ld.exe'
11520 # FIXME: first we should search . and the directory the executable is in
11524 darwin* | rhapsody*)
11525 dynamic_linker="$host_os dyld"
11526 version_type=darwin
11529 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11530 soname_spec='${libname}${release}${major}$shared_ext'
11531 shlibpath_overrides_runpath=yes
11532 shlibpath_var=DYLD_LIBRARY_PATH
11533 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11535 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11536 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 shlibpath_var=LD_LIBRARY_PATH
11552 freebsd* | dragonfly*)
11553 # DragonFly does not have aout. When/if they implement a new
11554 # versioning mechanism, adjust this.
11555 if test -x /usr/bin/objformat; then
11556 objformat=`/usr/bin/objformat`
11559 freebsd[123]*) objformat=aout ;;
11560 *) objformat=elf ;;
11563 version_type=freebsd-$objformat
11564 case $version_type in
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11575 shlibpath_var=LD_LIBRARY_PATH
11578 shlibpath_overrides_runpath=yes
11580 freebsd3.[01]* | freebsdelf3.[01]*)
11581 shlibpath_overrides_runpath=yes
11582 hardcode_into_libs=yes
11584 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11585 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11586 shlibpath_overrides_runpath=no
11587 hardcode_into_libs=yes
11589 *) # from 4.6 on, and DragonFly
11590 shlibpath_overrides_runpath=yes
11591 hardcode_into_libs=yes
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 hardcode_into_libs=yes
11606 hpux9* | hpux10* | hpux11*)
11607 # Give a soname corresponding to the major version so that dld.sl refuses to
11608 # link against other versions.
11615 hardcode_into_libs=yes
11616 dynamic_linker="$host_os dld.so"
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 if test "X$HPUX_IA64_MODE" = X32; then
11622 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11624 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11630 hardcode_into_libs=yes
11631 dynamic_linker="$host_os dld.sl"
11632 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11641 dynamic_linker="$host_os dld.sl"
11642 shlibpath_var=SHLIB_PATH
11643 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11648 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11649 postinstall_cmds='chmod 555 $lib'
11656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11657 soname_spec='${libname}${release}${shared_ext}$major'
11658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11659 shlibpath_var=LD_LIBRARY_PATH
11660 shlibpath_overrides_runpath=no
11661 hardcode_into_libs=yes
11664 irix5* | irix6* | nonstopux*)
11666 nonstopux*) version_type=nonstopux ;;
11668 if test "$lt_cv_prog_gnu_ld" = yes; then
11676 soname_spec='${libname}${release}${shared_ext}$major'
11677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11679 irix5* | nonstopux*)
11680 libsuff= shlibsuff=
11683 case $LD in # libtool.m4 will add one of these switches to LD
11684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11685 libsuff= shlibsuff= libmagic=32-bit;;
11686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11687 libsuff=32 shlibsuff=N32 libmagic=N32;;
11688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11689 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11690 *) libsuff= shlibsuff= libmagic=never-match;;
11694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11695 shlibpath_overrides_runpath=no
11696 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11697 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11698 hardcode_into_libs=yes
11701 # No shared lib support for Linux oldld, aout, or coff.
11702 linux*oldld* | linux*aout* | linux*coff*)
11706 # This must be Linux ELF.
11707 linux* | k*bsd*-gnu)
11711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712 soname_spec='${libname}${release}${shared_ext}$major'
11713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 shlibpath_overrides_runpath=no
11716 # Some binutils ld are patched to set DT_RUNPATH
11717 save_LDFLAGS=$LDFLAGS
11718 save_libdir=$libdir
11719 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11720 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11721 cat >conftest.$ac_ext <<_ACEOF
11724 cat confdefs.h >>conftest.$ac_ext
11725 cat >>conftest.$ac_ext <<_ACEOF
11726 /* end confdefs.h. */
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (ac_try="$ac_link"
11738 case "(($ac_try" in
11739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11740 *) ac_try_echo=$ac_try;;
11742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11743 (eval "$ac_link") 2>conftest.er1
11745 grep -v '^ *+' conftest.er1 >conftest.err
11747 cat conftest.err >&5
11748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11749 (exit $ac_status); } && {
11750 test -z "$ac_c_werror_flag" ||
11751 test ! -s conftest.err
11752 } && test -s conftest$ac_exeext &&
11753 $as_test_x conftest$ac_exeext; then
11754 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11755 shlibpath_overrides_runpath=yes
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11766 conftest$ac_exeext conftest.$ac_ext
11767 LDFLAGS=$save_LDFLAGS
11768 libdir=$save_libdir
11770 # This implies no fast_install, which is unacceptable.
11771 # Some rework will be needed to allow for fast_install
11772 # before this can be enabled.
11773 hardcode_into_libs=yes
11775 # Append ld.so.conf contents to the search path
11776 if test -f /etc/ld.so.conf; then
11777 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' ' '`
11778 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11781 # We used to test for /lib/ld.so.1 and disable shared libraries on
11782 # powerpc, because MkLinux only supported shared libraries with the
11783 # GNU dynamic linker. Since this was broken with cross compilers,
11784 # most powerpc-linux boxes support dynamic linking these days and
11785 # people can always --disable-shared, the test was removed, and we
11786 # assume the GNU/Linux dynamic linker is in use.
11787 dynamic_linker='GNU/Linux ld.so'
11794 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11797 dynamic_linker='NetBSD (a.out) ld.so'
11799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11800 soname_spec='${libname}${release}${shared_ext}$major'
11801 dynamic_linker='NetBSD ld.elf_so'
11803 shlibpath_var=LD_LIBRARY_PATH
11804 shlibpath_overrides_runpath=yes
11805 hardcode_into_libs=yes
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 shlibpath_overrides_runpath=yes
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820 soname_spec='${libname}${release}${shared_ext}$major'
11821 shlibpath_var=LD_LIBRARY_PATH
11822 shlibpath_overrides_runpath=no
11823 hardcode_into_libs=yes
11824 dynamic_linker='ldqnx.so'
11829 sys_lib_dlsearch_path_spec="/usr/lib"
11831 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11833 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11834 *) need_version=no ;;
11836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11838 shlibpath_var=LD_LIBRARY_PATH
11839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11841 openbsd2.[89] | openbsd2.[89].*)
11842 shlibpath_overrides_runpath=no
11845 shlibpath_overrides_runpath=yes
11849 shlibpath_overrides_runpath=yes
11854 libname_spec='$name'
11857 library_names_spec='$libname${shared_ext} $libname.a'
11858 dynamic_linker='OS/2 ld.exe'
11859 shlibpath_var=LIBPATH
11862 osf3* | osf4* | osf5*)
11866 soname_spec='${libname}${release}${shared_ext}$major'
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11868 shlibpath_var=LD_LIBRARY_PATH
11869 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11870 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11882 soname_spec='${libname}${release}${shared_ext}$major'
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=yes
11885 hardcode_into_libs=yes
11886 # ldd complains unless libraries are executable
11887 postinstall_cmds='chmod +x $lib'
11892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11893 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11894 shlibpath_var=LD_LIBRARY_PATH
11895 shlibpath_overrides_runpath=yes
11896 if test "$with_gnu_ld" = yes; then
11904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11905 soname_spec='${libname}${release}${shared_ext}$major'
11906 shlibpath_var=LD_LIBRARY_PATH
11907 case $host_vendor in
11909 shlibpath_overrides_runpath=no
11911 runpath_var=LD_RUN_PATH
11919 shlibpath_overrides_runpath=no
11920 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11926 if test -d /usr/nec ;then
11928 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11929 soname_spec='$libname${shared_ext}.$major'
11930 shlibpath_var=LD_LIBRARY_PATH
11934 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11935 version_type=freebsd-elf
11938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11939 soname_spec='${libname}${release}${shared_ext}$major'
11940 shlibpath_var=LD_LIBRARY_PATH
11941 shlibpath_overrides_runpath=yes
11942 hardcode_into_libs=yes
11943 if test "$with_gnu_ld" = yes; then
11944 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11946 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11949 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11953 sys_lib_dlsearch_path_spec='/usr/lib'
11957 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=no
11964 hardcode_into_libs=yes
11969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11970 soname_spec='${libname}${release}${shared_ext}$major'
11971 shlibpath_var=LD_LIBRARY_PATH
11978 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11979 echo "${ECHO_T}$dynamic_linker" >&6; }
11980 test "$dynamic_linker" = no && can_build_shared=no
11982 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11983 if test "$GCC" = yes; then
11984 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11987 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11988 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11990 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11991 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12080 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12081 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12083 if test -n "$hardcode_libdir_flag_spec" ||
12084 test -n "$runpath_var" ||
12085 test "X$hardcode_automatic" = "Xyes" ; then
12087 # We can hardcode non-existent directories.
12088 if test "$hardcode_direct" != no &&
12089 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12090 # have to relink, otherwise we might link with an installed library
12091 # when we should be linking with a yet-to-be-installed one
12092 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12093 test "$hardcode_minus_L" != no; then
12094 # Linking always hardcodes the temporary library directory.
12095 hardcode_action=relink
12097 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12098 hardcode_action=immediate
12101 # We cannot hardcode anything, or else we can only hardcode existing
12103 hardcode_action=unsupported
12105 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12106 echo "${ECHO_T}$hardcode_action" >&6; }
12108 if test "$hardcode_action" = relink ||
12109 test "$inherit_rpath" = yes; then
12110 # Fast installation is not supported
12111 enable_fast_install=no
12112 elif test "$shlibpath_overrides_runpath" = yes ||
12113 test "$enable_shared" = no; then
12114 # Fast installation is not necessary
12115 enable_fast_install=needless
12123 if test "x$enable_dlopen" != xyes; then
12124 enable_dlopen=unknown
12125 enable_dlopen_self=unknown
12126 enable_dlopen_self_static=unknown
12133 lt_cv_dlopen="load_add_on"
12135 lt_cv_dlopen_self=yes
12138 mingw* | pw32* | cegcc*)
12139 lt_cv_dlopen="LoadLibrary"
12144 lt_cv_dlopen="dlopen"
12149 # if libdl is installed we need to link against it
12150 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12151 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12152 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12155 ac_check_lib_save_LIBS=$LIBS
12157 cat >conftest.$ac_ext <<_ACEOF
12160 cat confdefs.h >>conftest.$ac_ext
12161 cat >>conftest.$ac_ext <<_ACEOF
12162 /* end confdefs.h. */
12164 /* Override any GCC internal prototype to avoid an error.
12165 Use char because int might match the return type of a GCC
12166 builtin and then its argument prototype would still apply. */
12179 rm -f conftest.$ac_objext conftest$ac_exeext
12180 if { (ac_try="$ac_link"
12181 case "(($ac_try" in
12182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12183 *) ac_try_echo=$ac_try;;
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_link") 2>conftest.er1
12188 grep -v '^ *+' conftest.er1 >conftest.err
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } && {
12193 test -z "$ac_c_werror_flag" ||
12194 test ! -s conftest.err
12195 } && test -s conftest$ac_exeext &&
12196 $as_test_x conftest$ac_exeext; then
12197 ac_cv_lib_dl_dlopen=yes
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 ac_cv_lib_dl_dlopen=no
12205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12206 conftest$ac_exeext conftest.$ac_ext
12207 LIBS=$ac_check_lib_save_LIBS
12209 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12210 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12211 if test $ac_cv_lib_dl_dlopen = yes; then
12212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12215 lt_cv_dlopen="dyld"
12217 lt_cv_dlopen_self=yes
12224 { echo "$as_me:$LINENO: checking for shl_load" >&5
12225 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12226 if test "${ac_cv_func_shl_load+set}" = set; then
12227 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12237 #define shl_load innocuous_shl_load
12239 /* System header to define __stub macros and hopefully few prototypes,
12240 which can conflict with char shl_load (); below.
12241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12242 <limits.h> exists even on freestanding compilers. */
12245 # include <limits.h>
12247 # include <assert.h>
12252 /* Override any GCC internal prototype to avoid an error.
12253 Use char because int might match the return type of a GCC
12254 builtin and then its argument prototype would still apply. */
12259 /* The GNU C library defines this for functions which it implements
12260 to always fail with ENOSYS. Some functions are actually named
12261 something starting with __ and the normal name is an alias. */
12262 #if defined __stub_shl_load || defined __stub___shl_load
12269 return shl_load ();
12274 rm -f conftest.$ac_objext conftest$ac_exeext
12275 if { (ac_try="$ac_link"
12276 case "(($ac_try" in
12277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest$ac_exeext &&
12291 $as_test_x conftest$ac_exeext; then
12292 ac_cv_func_shl_load=yes
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_cv_func_shl_load=no
12300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12301 conftest$ac_exeext conftest.$ac_ext
12303 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12304 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12305 if test $ac_cv_func_shl_load = yes; then
12306 lt_cv_dlopen="shl_load"
12308 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12309 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12310 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 ac_check_lib_save_LIBS=$LIBS
12315 cat >conftest.$ac_ext <<_ACEOF
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12322 /* Override any GCC internal prototype to avoid an error.
12323 Use char because int might match the return type of a GCC
12324 builtin and then its argument prototype would still apply. */
12332 return shl_load ();
12337 rm -f conftest.$ac_objext conftest$ac_exeext
12338 if { (ac_try="$ac_link"
12339 case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_link") 2>conftest.er1
12346 grep -v '^ *+' conftest.er1 >conftest.err
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } && {
12351 test -z "$ac_c_werror_flag" ||
12352 test ! -s conftest.err
12353 } && test -s conftest$ac_exeext &&
12354 $as_test_x conftest$ac_exeext; then
12355 ac_cv_lib_dld_shl_load=yes
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12360 ac_cv_lib_dld_shl_load=no
12363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12364 conftest$ac_exeext conftest.$ac_ext
12365 LIBS=$ac_check_lib_save_LIBS
12367 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12368 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12369 if test $ac_cv_lib_dld_shl_load = yes; then
12370 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12372 { echo "$as_me:$LINENO: checking for dlopen" >&5
12373 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12374 if test "${ac_cv_func_dlopen+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 cat >conftest.$ac_ext <<_ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12385 #define dlopen innocuous_dlopen
12387 /* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char dlopen (); below.
12389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390 <limits.h> exists even on freestanding compilers. */
12393 # include <limits.h>
12395 # include <assert.h>
12400 /* Override any GCC internal prototype to avoid an error.
12401 Use char because int might match the return type of a GCC
12402 builtin and then its argument prototype would still apply. */
12407 /* The GNU C library defines this for functions which it implements
12408 to always fail with ENOSYS. Some functions are actually named
12409 something starting with __ and the normal name is an alias. */
12410 #if defined __stub_dlopen || defined __stub___dlopen
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest$ac_exeext &&
12439 $as_test_x conftest$ac_exeext; then
12440 ac_cv_func_dlopen=yes
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12445 ac_cv_func_dlopen=no
12448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12449 conftest$ac_exeext conftest.$ac_ext
12451 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12452 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12453 if test $ac_cv_func_dlopen = yes; then
12454 lt_cv_dlopen="dlopen"
12456 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12457 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12458 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12459 echo $ECHO_N "(cached) $ECHO_C" >&6
12461 ac_check_lib_save_LIBS=$LIBS
12463 cat >conftest.$ac_ext <<_ACEOF
12466 cat confdefs.h >>conftest.$ac_ext
12467 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */
12470 /* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */
12485 rm -f conftest.$ac_objext conftest$ac_exeext
12486 if { (ac_try="$ac_link"
12487 case "(($ac_try" in
12488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12489 *) ac_try_echo=$ac_try;;
12491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12492 (eval "$ac_link") 2>conftest.er1
12494 grep -v '^ *+' conftest.er1 >conftest.err
12496 cat conftest.err >&5
12497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498 (exit $ac_status); } && {
12499 test -z "$ac_c_werror_flag" ||
12500 test ! -s conftest.err
12501 } && test -s conftest$ac_exeext &&
12502 $as_test_x conftest$ac_exeext; then
12503 ac_cv_lib_dl_dlopen=yes
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_cv_lib_dl_dlopen=no
12511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12512 conftest$ac_exeext conftest.$ac_ext
12513 LIBS=$ac_check_lib_save_LIBS
12515 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12516 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12517 if test $ac_cv_lib_dl_dlopen = yes; then
12518 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12520 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12521 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lsvld $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest$ac_exeext &&
12566 $as_test_x conftest$ac_exeext; then
12567 ac_cv_lib_svld_dlopen=yes
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 ac_cv_lib_svld_dlopen=no
12575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12576 conftest$ac_exeext conftest.$ac_ext
12577 LIBS=$ac_check_lib_save_LIBS
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12580 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12581 if test $ac_cv_lib_svld_dlopen = yes; then
12582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12584 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12585 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12586 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12587 echo $ECHO_N "(cached) $ECHO_C" >&6
12589 ac_check_lib_save_LIBS=$LIBS
12591 cat >conftest.$ac_ext <<_ACEOF
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12598 /* Override any GCC internal prototype to avoid an error.
12599 Use char because int might match the return type of a GCC
12600 builtin and then its argument prototype would still apply. */
12608 return dld_link ();
12613 rm -f conftest.$ac_objext conftest$ac_exeext
12614 if { (ac_try="$ac_link"
12615 case "(($ac_try" in
12616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12617 *) ac_try_echo=$ac_try;;
12619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12620 (eval "$ac_link") 2>conftest.er1
12622 grep -v '^ *+' conftest.er1 >conftest.err
12624 cat conftest.err >&5
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); } && {
12627 test -z "$ac_c_werror_flag" ||
12628 test ! -s conftest.err
12629 } && test -s conftest$ac_exeext &&
12630 $as_test_x conftest$ac_exeext; then
12631 ac_cv_lib_dld_dld_link=yes
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 ac_cv_lib_dld_dld_link=no
12639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12640 conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12643 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12644 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12645 if test $ac_cv_lib_dld_dld_link = yes; then
12646 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12667 if test "x$lt_cv_dlopen" != xno; then
12673 case $lt_cv_dlopen in
12675 save_CPPFLAGS="$CPPFLAGS"
12676 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12678 save_LDFLAGS="$LDFLAGS"
12679 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12682 LIBS="$lt_cv_dlopen_libs $LIBS"
12684 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12685 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12686 if test "${lt_cv_dlopen_self+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 if test "$cross_compiling" = yes; then :
12690 lt_cv_dlopen_self=cross
12692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12693 lt_status=$lt_dlunknown
12694 cat > conftest.$ac_ext <<_LT_EOF
12695 #line 12695 "configure"
12696 #include "confdefs.h"
12705 # define LT_DLGLOBAL RTLD_GLOBAL
12708 # define LT_DLGLOBAL DL_GLOBAL
12710 # define LT_DLGLOBAL 0
12714 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12715 find out it does not work in some platform. */
12716 #ifndef LT_DLLAZY_OR_NOW
12718 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12721 # define LT_DLLAZY_OR_NOW DL_LAZY
12724 # define LT_DLLAZY_OR_NOW RTLD_NOW
12727 # define LT_DLLAZY_OR_NOW DL_NOW
12729 # define LT_DLLAZY_OR_NOW 0
12736 void fnord() { int i=42;}
12739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12740 int status = $lt_dlunknown;
12744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12745 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12746 /* dlclose (self); */
12754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12755 (eval $ac_link) 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12759 (./conftest; exit; ) >&5 2>/dev/null
12761 case x$lt_status in
12762 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12763 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12764 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12767 # compilation failed
12768 lt_cv_dlopen_self=no
12775 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12776 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12778 if test "x$lt_cv_dlopen_self" = xyes; then
12779 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12780 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12781 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12782 if test "${lt_cv_dlopen_self_static+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 if test "$cross_compiling" = yes; then :
12786 lt_cv_dlopen_self_static=cross
12788 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12789 lt_status=$lt_dlunknown
12790 cat > conftest.$ac_ext <<_LT_EOF
12791 #line 12791 "configure"
12792 #include "confdefs.h"
12801 # define LT_DLGLOBAL RTLD_GLOBAL
12804 # define LT_DLGLOBAL DL_GLOBAL
12806 # define LT_DLGLOBAL 0
12810 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12811 find out it does not work in some platform. */
12812 #ifndef LT_DLLAZY_OR_NOW
12814 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12817 # define LT_DLLAZY_OR_NOW DL_LAZY
12820 # define LT_DLLAZY_OR_NOW RTLD_NOW
12823 # define LT_DLLAZY_OR_NOW DL_NOW
12825 # define LT_DLLAZY_OR_NOW 0
12832 void fnord() { int i=42;}
12835 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12836 int status = $lt_dlunknown;
12840 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12841 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12842 /* dlclose (self); */
12850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12851 (eval $ac_link) 2>&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12855 (./conftest; exit; ) >&5 2>/dev/null
12857 case x$lt_status in
12858 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12859 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12860 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12863 # compilation failed
12864 lt_cv_dlopen_self_static=no
12871 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12872 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12875 CPPFLAGS="$save_CPPFLAGS"
12876 LDFLAGS="$save_LDFLAGS"
12881 case $lt_cv_dlopen_self in
12882 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12883 *) enable_dlopen_self=unknown ;;
12886 case $lt_cv_dlopen_self_static in
12887 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12888 *) enable_dlopen_self_static=unknown ;;
12910 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12911 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12912 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12913 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12914 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12915 { echo "$as_me:$LINENO: result: yes" >&5
12916 echo "${ECHO_T}yes" >&6; }
12918 # FIXME - insert some real tests, host_os isn't really good enough
12921 if test -n "$STRIP" ; then
12922 striplib="$STRIP -x"
12923 old_striplib="$STRIP -S"
12924 { echo "$as_me:$LINENO: result: yes" >&5
12925 echo "${ECHO_T}yes" >&6; }
12927 { echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6; }
12932 { echo "$as_me:$LINENO: result: no" >&5
12933 echo "${ECHO_T}no" >&6; }
12949 # Report which library types will actually be built
12950 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12951 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12952 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12953 echo "${ECHO_T}$can_build_shared" >&6; }
12955 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12956 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12957 test "$can_build_shared" = "no" && enable_shared=no
12959 # On AIX, shared libraries and static libraries use the same namespace, and
12960 # are all built from PIC.
12963 test "$enable_shared" = yes && enable_static=no
12964 if test -n "$RANLIB"; then
12965 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12966 postinstall_cmds='$RANLIB $lib'
12971 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12972 test "$enable_shared" = yes && enable_static=no
12976 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12977 echo "${ECHO_T}$enable_shared" >&6; }
12979 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12980 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12981 # Make sure either enable_shared or enable_static is yes.
12982 test "$enable_shared" = yes || enable_static=yes
12983 { echo "$as_me:$LINENO: result: $enable_static" >&5
12984 echo "${ECHO_T}$enable_static" >&6; }
12991 ac_cpp='$CPP $CPPFLAGS'
12992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13000 ac_cpp='$CXXCPP $CPPFLAGS'
13001 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13002 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13003 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13005 archive_cmds_need_lc_CXX=no
13006 allow_undefined_flag_CXX=
13007 always_export_symbols_CXX=no
13008 archive_expsym_cmds_CXX=
13009 compiler_needs_object_CXX=no
13010 export_dynamic_flag_spec_CXX=
13011 hardcode_direct_CXX=no
13012 hardcode_direct_absolute_CXX=no
13013 hardcode_libdir_flag_spec_CXX=
13014 hardcode_libdir_flag_spec_ld_CXX=
13015 hardcode_libdir_separator_CXX=
13016 hardcode_minus_L_CXX=no
13017 hardcode_shlibpath_var_CXX=unsupported
13018 hardcode_automatic_CXX=no
13019 inherit_rpath_CXX=no
13021 module_expsym_cmds_CXX=
13022 link_all_deplibs_CXX=unknown
13023 old_archive_cmds_CXX=$old_archive_cmds
13024 no_undefined_flag_CXX=
13025 whole_archive_flag_spec_CXX=
13026 enable_shared_with_static_runtimes_CXX=no
13028 # Source file extension for C++ test sources.
13031 # Object file extension for compiled C++ test sources.
13035 # No sense in running all these tests if we already determined that
13036 # the CXX compiler isn't working. Some variables (like enable_shared)
13037 # are currently assumed to apply to all compilers on this platform,
13038 # and will be corrupted by setting them based on a non-working compiler.
13039 if test "$_lt_caught_CXX_error" != yes; then
13040 # Code to be used in simple compile tests
13041 lt_simple_compile_test_code="int some_variable = 0;"
13043 # Code to be used in simple link tests
13044 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13046 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13053 # If no C compiler was specified, use CC.
13056 # If no C compiler flags were specified, use CFLAGS.
13057 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13059 # Allow CC to be a program name with arguments.
13063 # save warnings/boilerplate of simple test code
13064 ac_outfile=conftest.$ac_objext
13065 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13066 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13067 _lt_compiler_boilerplate=`cat conftest.err`
13070 ac_outfile=conftest.$ac_objext
13071 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13072 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13073 _lt_linker_boilerplate=`cat conftest.err`
13077 # Allow CC to be a program name with arguments.
13082 lt_save_with_gnu_ld=$with_gnu_ld
13083 lt_save_path_LD=$lt_cv_path_LD
13084 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13085 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13087 $as_unset lt_cv_prog_gnu_ld
13089 if test -n "${lt_cv_path_LDCXX+set}"; then
13090 lt_cv_path_LD=$lt_cv_path_LDCXX
13092 $as_unset lt_cv_path_LD
13094 test -z "${LDCXX+set}" || LD=$LDCXX
13098 for cc_temp in $compiler""; do
13100 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13101 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13106 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13109 if test -n "$compiler"; then
13110 # We don't want -fno-exception when compiling C++ code, so set the
13111 # no_builtin_flag separately
13112 if test "$GXX" = yes; then
13113 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13115 lt_prog_compiler_no_builtin_flag_CXX=
13118 if test "$GXX" = yes; then
13119 # Set up default GNU C++ configuration
13123 # Check whether --with-gnu-ld was given.
13124 if test "${with_gnu_ld+set}" = set; then
13125 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13131 if test "$GCC" = yes; then
13132 # Check if gcc -print-prog-name=ld gives a path.
13133 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13134 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13137 # gcc leaves a trailing carriage return which upsets mingw
13138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13143 # Accept absolute paths.
13145 re_direlt='/[^/][^/]*/\.\./'
13146 # Canonicalize the pathname of ld
13147 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13148 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13149 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13151 test -z "$LD" && LD="$ac_prog"
13154 # If it fails, then pretend we aren't using GCC.
13158 # If it is relative, then search for the first ld in PATH.
13159 with_gnu_ld=unknown
13162 elif test "$with_gnu_ld" = yes; then
13163 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13164 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13166 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13167 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13169 if test "${lt_cv_path_LD+set}" = set; then
13170 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 if test -z "$LD"; then
13173 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13174 for ac_dir in $PATH; do
13176 test -z "$ac_dir" && ac_dir=.
13177 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13178 lt_cv_path_LD="$ac_dir/$ac_prog"
13179 # Check to see if the program is GNU ld. I'd rather use --version,
13180 # but apparently some variants of GNU ld only accept -v.
13181 # Break only if it was the GNU/non-GNU ld that we prefer.
13182 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13183 *GNU* | *'with BFD'*)
13184 test "$with_gnu_ld" != no && break
13187 test "$with_gnu_ld" != yes && break
13194 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13198 LD="$lt_cv_path_LD"
13199 if test -n "$LD"; then
13200 { echo "$as_me:$LINENO: result: $LD" >&5
13201 echo "${ECHO_T}$LD" >&6; }
13203 { echo "$as_me:$LINENO: result: no" >&5
13204 echo "${ECHO_T}no" >&6; }
13206 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13207 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13208 { (exit 1); exit 1; }; }
13209 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13210 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13211 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13215 case `$LD -v 2>&1 </dev/null` in
13216 *GNU* | *'with BFD'*)
13217 lt_cv_prog_gnu_ld=yes
13220 lt_cv_prog_gnu_ld=no
13224 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13225 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13226 with_gnu_ld=$lt_cv_prog_gnu_ld
13234 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13235 # archiving commands below assume that GNU ld is being used.
13236 if test "$with_gnu_ld" = yes; then
13237 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13238 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'
13240 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13241 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13243 # If archive_cmds runs LD, not CC, wlarc should be empty
13244 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13245 # investigate it a little bit more. (MM)
13248 # ancient GNU ld didn't support --whole-archive et. al.
13249 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13250 $GREP 'no-whole-archive' > /dev/null; then
13251 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13253 whole_archive_flag_spec_CXX=
13259 # A generic and very simple default shared library creation
13260 # command for GNU C++ for the case where it uses the native
13261 # linker, instead of GNU ld. If possible, this setting should
13262 # overridden to take advantage of the native linker features on
13263 # the platform it is being used on.
13264 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13267 # Commands to make compiler produce verbose output that lists
13268 # what "hidden" libraries, object files and flags are used when
13269 # linking a shared library.
13270 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13278 # PORTME: fill in a description of your system's C++ link characteristics
13279 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13280 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13284 # FIXME: insert proper C++ library support
13288 if test "$host_cpu" = ia64; then
13289 # On IA64, the linker does run time linking by default, so we don't
13290 # have to do anything special.
13291 aix_use_runtimelinking=no
13292 exp_sym_flag='-Bexport'
13295 aix_use_runtimelinking=no
13297 # Test if we are trying to use run time linking or normal
13298 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13299 # need to do runtime linking.
13300 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13301 for ld_flag in $LDFLAGS; do
13304 aix_use_runtimelinking=yes
13312 exp_sym_flag='-bexport'
13313 no_entry_flag='-bnoentry'
13316 # When large executables or shared objects are built, AIX ld can
13317 # have problems creating the table of contents. If linking a library
13318 # or program results in "error TOC overflow" add -mminimal-toc to
13319 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13320 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13322 archive_cmds_CXX=''
13323 hardcode_direct_CXX=yes
13324 hardcode_direct_absolute_CXX=yes
13325 hardcode_libdir_separator_CXX=':'
13326 link_all_deplibs_CXX=yes
13327 file_list_spec_CXX='${wl}-f,'
13329 if test "$GXX" = yes; then
13330 case $host_os in aix4.[012]|aix4.[012].*)
13331 # We only want to do this on AIX 4.2 and lower, the check
13332 # below for broken collect2 doesn't work under 4.3+
13333 collect2name=`${CC} -print-prog-name=collect2`
13334 if test -f "$collect2name" &&
13335 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13337 # We have reworked collect2
13340 # We have old collect2
13341 hardcode_direct_CXX=unsupported
13342 # It fails to find uninstalled libraries when the uninstalled
13343 # path is not listed in the libpath. Setting hardcode_minus_L
13344 # to unsupported forces relinking
13345 hardcode_minus_L_CXX=yes
13346 hardcode_libdir_flag_spec_CXX='-L$libdir'
13347 hardcode_libdir_separator_CXX=
13350 shared_flag='-shared'
13351 if test "$aix_use_runtimelinking" = yes; then
13352 shared_flag="$shared_flag "'${wl}-G'
13356 if test "$host_cpu" = ia64; then
13357 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13358 # chokes on -Wl,-G. The following line is correct:
13361 if test "$aix_use_runtimelinking" = yes; then
13362 shared_flag='${wl}-G'
13364 shared_flag='${wl}-bM:SRE'
13369 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13370 # It seems that -bexpall does not export symbols beginning with
13371 # underscore (_), so it is better to generate a list of symbols to
13373 always_export_symbols_CXX=yes
13374 if test "$aix_use_runtimelinking" = yes; then
13375 # Warning - without using the other runtime loading flags (-brtl),
13376 # -berok will link without error, but may produce a broken library.
13377 allow_undefined_flag_CXX='-berok'
13378 # Determine the default libpath from the value encoded in an empty
13380 cat >conftest.$ac_ext <<_ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13395 rm -f conftest.$ac_objext conftest$ac_exeext
13396 if { (ac_try="$ac_link"
13397 case "(($ac_try" in
13398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13399 *) ac_try_echo=$ac_try;;
13401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13402 (eval "$ac_link") 2>conftest.er1
13404 grep -v '^ *+' conftest.er1 >conftest.err
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } && {
13409 test -z "$ac_cxx_werror_flag" ||
13410 test ! -s conftest.err
13411 } && test -s conftest$ac_exeext &&
13412 $as_test_x conftest$ac_exeext; then
13414 lt_aix_libpath_sed='
13415 /Import File Strings/,/^$/ {
13421 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13422 # Check for a 64-bit object if we didn't find anything.
13423 if test -z "$aix_libpath"; then
13424 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13434 conftest$ac_exeext conftest.$ac_ext
13435 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13437 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13439 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"
13441 if test "$host_cpu" = ia64; then
13442 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13443 allow_undefined_flag_CXX="-z nodefs"
13444 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"
13446 # Determine the default libpath from the value encoded in an
13447 # empty executable.
13448 cat >conftest.$ac_ext <<_ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13463 rm -f conftest.$ac_objext conftest$ac_exeext
13464 if { (ac_try="$ac_link"
13465 case "(($ac_try" in
13466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13467 *) ac_try_echo=$ac_try;;
13469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13470 (eval "$ac_link") 2>conftest.er1
13472 grep -v '^ *+' conftest.er1 >conftest.err
13474 cat conftest.err >&5
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); } && {
13477 test -z "$ac_cxx_werror_flag" ||
13478 test ! -s conftest.err
13479 } && test -s conftest$ac_exeext &&
13480 $as_test_x conftest$ac_exeext; then
13482 lt_aix_libpath_sed='
13483 /Import File Strings/,/^$/ {
13489 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13490 # Check for a 64-bit object if we didn't find anything.
13491 if test -z "$aix_libpath"; then
13492 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13495 echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.$ac_ext >&5
13501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13502 conftest$ac_exeext conftest.$ac_ext
13503 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13505 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13506 # Warning - without using the other run time loading flags,
13507 # -berok will link without error, but may produce a broken library.
13508 no_undefined_flag_CXX=' ${wl}-bernotok'
13509 allow_undefined_flag_CXX=' ${wl}-berok'
13510 # Exported symbols can be pulled into shared objects from archives
13511 whole_archive_flag_spec_CXX='$convenience'
13512 archive_cmds_need_lc_CXX=yes
13513 # This is similar to how AIX traditionally builds its shared
13515 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'
13521 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13522 allow_undefined_flag_CXX=unsupported
13523 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13524 # support --undefined. This deserves some investigation. FIXME
13525 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13532 case $cc_basename in
13534 # FIXME: insert proper C++ library support
13540 cygwin* | mingw* | pw32* | cegcc*)
13541 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13542 # as there is no search path for DLLs.
13543 hardcode_libdir_flag_spec_CXX='-L$libdir'
13544 allow_undefined_flag_CXX=unsupported
13545 always_export_symbols_CXX=no
13546 enable_shared_with_static_runtimes_CXX=yes
13548 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13549 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'
13550 # If the export-symbols file already is a .def file (1st line
13551 # is EXPORTS), use it as is; otherwise, prepend...
13552 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13553 cp $export_symbols $output_objdir/$soname.def;
13555 echo EXPORTS > $output_objdir/$soname.def;
13556 cat $export_symbols >> $output_objdir/$soname.def;
13558 $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'
13563 darwin* | rhapsody*)
13566 archive_cmds_need_lc_CXX=no
13567 hardcode_direct_CXX=no
13568 hardcode_automatic_CXX=yes
13569 hardcode_shlibpath_var_CXX=unsupported
13570 whole_archive_flag_spec_CXX=''
13571 link_all_deplibs_CXX=yes
13572 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13573 case $cc_basename in
13574 ifort*) _lt_dar_can_shared=yes ;;
13575 *) _lt_dar_can_shared=$GCC ;;
13577 if test "$_lt_dar_can_shared" = "yes"; then
13578 output_verbose_link_cmd=echo
13579 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}"
13580 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13581 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}"
13582 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}"
13583 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13584 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}"
13585 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}"
13595 case $cc_basename in
13597 # FIXME: insert proper C++ library support
13601 # Green Hills C++ Compiler
13602 # FIXME: insert proper C++ library support
13606 # FIXME: insert proper C++ library support
13613 # C++ shared libraries reported to be fairly broken before
13619 archive_cmds_need_lc_CXX=no
13622 freebsd* | dragonfly*)
13623 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13632 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13633 hardcode_libdir_separator_CXX=:
13634 export_dynamic_flag_spec_CXX='${wl}-E'
13635 hardcode_direct_CXX=yes
13636 hardcode_minus_L_CXX=yes # Not in the search PATH,
13637 # but as the default
13638 # location of the library.
13640 case $cc_basename in
13642 # FIXME: insert proper C++ library support
13646 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'
13647 # Commands to make compiler produce verbose output that lists
13648 # what "hidden" libraries, object files and flags are used when
13649 # linking a shared library.
13651 # There doesn't appear to be a way to prevent this compiler from
13652 # explicitly linking system object files so we need to strip them
13653 # from the output so that they don't get included in the library
13655 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'
13658 if test "$GXX" = yes; then
13659 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'
13661 # FIXME: insert proper C++ library support
13669 if test $with_gnu_ld = no; then
13670 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13671 hardcode_libdir_separator_CXX=:
13677 export_dynamic_flag_spec_CXX='${wl}-E'
13683 hardcode_direct_CXX=no
13684 hardcode_shlibpath_var_CXX=no
13687 hardcode_direct_CXX=yes
13688 hardcode_direct_absolute_CXX=yes
13689 hardcode_minus_L_CXX=yes # Not in the search PATH,
13690 # but as the default
13691 # location of the library.
13695 case $cc_basename in
13697 # FIXME: insert proper C++ library support
13703 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13706 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13709 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13712 # Commands to make compiler produce verbose output that lists
13713 # what "hidden" libraries, object files and flags are used when
13714 # linking a shared library.
13716 # There doesn't appear to be a way to prevent this compiler from
13717 # explicitly linking system object files so we need to strip them
13718 # from the output so that they don't get included in the library
13720 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'
13723 if test "$GXX" = yes; then
13724 if test $with_gnu_ld = no; then
13727 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13730 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13733 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'
13738 # FIXME: insert proper C++ library support
13746 hardcode_direct_CXX=no
13747 hardcode_shlibpath_var_CXX=no
13748 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13749 export_dynamic_flag_spec_CXX='${wl}-E'
13750 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13751 # Instead, shared libraries are loaded at an image base (0x10000000 by
13752 # default) and relocated if they conflict, which is a slow very memory
13753 # consuming and fragmenting process. To avoid this, we pick a random,
13754 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13755 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13756 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'
13757 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'
13760 case $cc_basename in
13763 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'
13765 # Archives containing C++ object files must be created using
13766 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13767 # necessary to make sure instantiated templates are included
13769 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13772 if test "$GXX" = yes; then
13773 if test "$with_gnu_ld" = no; then
13774 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'
13776 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'
13779 link_all_deplibs_CXX=yes
13782 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13783 hardcode_libdir_separator_CXX=:
13784 inherit_rpath_CXX=yes
13787 linux* | k*bsd*-gnu)
13788 case $cc_basename in
13790 # Kuck and Associates, Inc. (KAI) C++ Compiler
13792 # KCC will only create a shared library if the output file
13793 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13794 # to its proper name (with version) after linking.
13795 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'
13796 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'
13797 # Commands to make compiler produce verbose output that lists
13798 # what "hidden" libraries, object files and flags are used when
13799 # linking a shared library.
13801 # There doesn't appear to be a way to prevent this compiler from
13802 # explicitly linking system object files so we need to strip them
13803 # from the output so that they don't get included in the library
13805 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'
13807 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13810 # Archives containing C++ object files must be created using
13811 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13812 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13817 # version 8.0 and above of icpc choke on multiply defined symbols
13818 # if we add $predep_objects and $postdep_objects, however 7.1 and
13819 # earlier do not add the objects themselves.
13820 case `$CC -V 2>&1` in
13822 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13823 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'
13825 *) # Version 8.0 or newer
13828 ia64*) tmp_idyn=' -i_dynamic';;
13830 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831 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'
13834 archive_cmds_need_lc_CXX=no
13835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13836 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13837 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13840 # Portland Group C++ compiler
13842 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13843 prelink_cmds_CXX='tpldir=Template.dir~
13845 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13846 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13847 old_archive_cmds_CXX='tpldir=Template.dir~
13849 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13850 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13852 archive_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 -o $lib'
13856 archive_expsym_cmds_CXX='tpldir=Template.dir~
13858 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13859 $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'
13861 *) # Version 6 will use weak symbols
13862 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13863 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'
13867 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13869 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'
13873 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13874 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'
13876 runpath_var=LD_RUN_PATH
13877 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13878 hardcode_libdir_separator_CXX=:
13880 # Commands to make compiler produce verbose output that lists
13881 # what "hidden" libraries, object files and flags are used when
13882 # linking a shared library.
13884 # There doesn't appear to be a way to prevent this compiler from
13885 # explicitly linking system object files so we need to strip them
13886 # from the output so that they don't get included in the library
13888 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'
13891 # IBM XL 8.0 on PPC, with GNU ld
13892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13893 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13894 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13895 if test "x$supports_anon_versioning" = xyes; then
13896 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13897 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13898 echo "local: *; };" >> $output_objdir/$libname.ver~
13899 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13903 case `$CC -V 2>&1 | sed 5q` in
13906 no_undefined_flag_CXX=' -zdefs'
13907 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13908 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'
13909 hardcode_libdir_flag_spec_CXX='-R$libdir'
13910 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'
13911 compiler_needs_object_CXX=yes
13913 # Not sure whether something based on
13914 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13916 output_verbose_link_cmd='echo'
13918 # Archives containing C++ object files must be created using
13919 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13920 # necessary to make sure instantiated templates are included
13922 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13930 # FIXME: insert proper C++ library support
13935 # FIXME: insert proper C++ library support
13940 case $cc_basename in
13942 # FIXME: insert proper C++ library support
13946 # FIXME: insert proper C++ library support
13953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13954 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13956 hardcode_libdir_flag_spec_CXX='-R$libdir'
13957 hardcode_direct_CXX=yes
13958 hardcode_shlibpath_var_CXX=no
13960 # Workaround some broken pre-1.5 toolchains
13961 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13969 # C++ shared libraries are fairly broken
13974 if test -f /usr/libexec/ld.so; then
13975 hardcode_direct_CXX=yes
13976 hardcode_shlibpath_var_CXX=no
13977 hardcode_direct_absolute_CXX=yes
13978 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13981 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13982 export_dynamic_flag_spec_CXX='${wl}-E'
13983 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13985 output_verbose_link_cmd=echo
13991 osf3* | osf4* | osf5*)
13992 case $cc_basename in
13994 # Kuck and Associates, Inc. (KAI) C++ Compiler
13996 # KCC will only create a shared library if the output file
13997 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13998 # to its proper name (with version) after linking.
13999 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'
14001 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14002 hardcode_libdir_separator_CXX=:
14004 # Archives containing C++ object files must be created using
14005 # the KAI C++ compiler.
14007 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14008 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14012 # Rational C++ 2.4.1
14013 # FIXME: insert proper C++ library support
14019 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14020 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'
14021 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14024 allow_undefined_flag_CXX=' -expect_unresolved \*'
14025 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'
14026 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14027 echo "-hidden">> $lib.exp~
14028 $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~
14030 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14034 hardcode_libdir_separator_CXX=:
14036 # Commands to make compiler produce verbose output that lists
14037 # what "hidden" libraries, object files and flags are used when
14038 # linking a shared library.
14040 # There doesn't appear to be a way to prevent this compiler from
14041 # explicitly linking system object files so we need to strip them
14042 # from the output so that they don't get included in the library
14044 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'
14047 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14051 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'
14054 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'
14058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14059 hardcode_libdir_separator_CXX=:
14061 # Commands to make compiler produce verbose output that lists
14062 # what "hidden" libraries, object files and flags are used when
14063 # linking a shared library.
14064 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14067 # FIXME: insert proper C++ library support
14075 # FIXME: insert proper C++ library support
14080 case $cc_basename in
14083 # FIXME: insert proper C++ library support
14088 # FIXME: insert proper C++ library support
14092 # FIXME: insert proper C++ library support
14099 case $cc_basename in
14101 # Sun C++ 4.2, 5.x and Centerline C++
14102 archive_cmds_need_lc_CXX=yes
14103 no_undefined_flag_CXX=' -zdefs'
14104 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14105 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14106 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14108 hardcode_libdir_flag_spec_CXX='-R$libdir'
14109 hardcode_shlibpath_var_CXX=no
14111 solaris2.[0-5] | solaris2.[0-5].*) ;;
14113 # The compiler driver will combine and reorder linker options,
14114 # but understands `-z linker_flag'.
14115 # Supported since Solaris 2.6 (maybe 2.5.1?)
14116 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14119 link_all_deplibs_CXX=yes
14121 output_verbose_link_cmd='echo'
14123 # Archives containing C++ object files must be created using
14124 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14125 # necessary to make sure instantiated templates are included
14127 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14130 # Green Hills C++ Compiler
14131 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14133 # The C++ compiler must be used to create the archive.
14134 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14137 # GNU C++ compiler with Solaris linker
14138 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14139 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14140 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14141 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14142 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14143 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14145 # Commands to make compiler produce verbose output that lists
14146 # what "hidden" libraries, object files and flags are used when
14147 # linking a shared library.
14148 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14150 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14152 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14153 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14154 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14156 # Commands to make compiler produce verbose output that lists
14157 # what "hidden" libraries, object files and flags are used when
14158 # linking a shared library.
14159 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14162 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14164 solaris2.[0-5] | solaris2.[0-5].*) ;;
14166 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14174 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14175 no_undefined_flag_CXX='${wl}-z,text'
14176 archive_cmds_need_lc_CXX=no
14177 hardcode_shlibpath_var_CXX=no
14178 runpath_var='LD_RUN_PATH'
14180 case $cc_basename in
14182 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14186 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14187 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14192 sysv5* | sco3.2v5* | sco5v6*)
14193 # Note: We can NOT use -z defs as we might desire, because we do not
14194 # link with -lc, and that would cause any symbols used from libc to
14195 # always be unresolved, which means just about no library would
14196 # ever link correctly. If we're not using GNU ld we use -z text
14197 # though, which does catch some bad symbols but isn't as heavy-handed
14199 no_undefined_flag_CXX='${wl}-z,text'
14200 allow_undefined_flag_CXX='${wl}-z,nodefs'
14201 archive_cmds_need_lc_CXX=no
14202 hardcode_shlibpath_var_CXX=no
14203 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14204 hardcode_libdir_separator_CXX=':'
14205 link_all_deplibs_CXX=yes
14206 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14207 runpath_var='LD_RUN_PATH'
14209 case $cc_basename in
14211 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14215 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14216 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14222 case $cc_basename in
14224 # NonStop-UX NCC 3.20
14225 # FIXME: insert proper C++ library support
14229 # FIXME: insert proper C++ library support
14236 # FIXME: insert proper C++ library support
14241 # FIXME: insert proper C++ library support
14246 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14247 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14248 test "$ld_shlibs_CXX" = no && can_build_shared=no
14254 ## There is no encapsulation within the following macros, do not change
14255 ## the running order or otherwise move them around unless you know exactly
14256 ## what you are doing...
14257 # Dependencies to place before and after the object being linked:
14258 predep_objects_CXX=
14259 postdep_objects_CXX=
14262 compiler_lib_search_path_CXX=
14264 cat > conftest.$ac_ext <<_LT_EOF
14268 Foo (void) { a = 0; }
14274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14275 (eval $ac_compile) 2>&5
14277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278 (exit $ac_status); }; then
14279 # Parse the compiler output and extract the necessary
14280 # objects, libraries and library flags.
14282 # Sentinel used to keep track of whether or not we are before
14283 # the conftest object file.
14284 pre_test_object_deps_done=no
14286 for p in `eval "$output_verbose_link_cmd"`; do
14290 # Some compilers place space between "-{L,R}" and the path.
14291 # Remove the space.
14292 if test $p = "-L" ||
14293 test $p = "-R"; then
14300 if test "$pre_test_object_deps_done" = no; then
14303 # Internal compiler library paths should come after those
14304 # provided the user. The postdeps already come after the
14305 # user supplied libs so there is no need to process them.
14306 if test -z "$compiler_lib_search_path_CXX"; then
14307 compiler_lib_search_path_CXX="${prev}${p}"
14309 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14312 # The "-l" case would never come before the object being
14313 # linked, so don't bother handling this case.
14316 if test -z "$postdeps_CXX"; then
14317 postdeps_CXX="${prev}${p}"
14319 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14325 # This assumes that the test object file only shows up
14326 # once in the compiler output.
14327 if test "$p" = "conftest.$objext"; then
14328 pre_test_object_deps_done=yes
14332 if test "$pre_test_object_deps_done" = no; then
14333 if test -z "$predep_objects_CXX"; then
14334 predep_objects_CXX="$p"
14336 predep_objects_CXX="$predep_objects_CXX $p"
14339 if test -z "$postdep_objects_CXX"; then
14340 postdep_objects_CXX="$p"
14342 postdep_objects_CXX="$postdep_objects_CXX $p"
14347 *) ;; # Ignore the rest.
14355 echo "libtool.m4: error: problem compiling CXX test program"
14358 $RM -f confest.$objext
14360 # PORTME: override above test on systems where it is broken
14363 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14364 # hack all around it, let's just trust "g++" to DTRT.
14365 predep_objects_CXX=
14366 postdep_objects_CXX=
14371 case `$CC -V 2>&1 | sed 5q` in
14375 # The more standards-conforming stlport4 library is
14376 # incompatible with the Cstd library. Avoid specifying
14377 # it if it's in CXXFLAGS. Ignore libCrun as
14378 # -library=stlport4 depends on it.
14379 case " $CXX $CXXFLAGS " in
14380 *" -library=stlport4 "*)
14381 solaris_use_stlport4=yes
14385 if test "$solaris_use_stlport4" != yes; then
14386 postdeps_CXX='-library=Cstd -library=Crun'
14393 case $cc_basename in
14395 # The more standards-conforming stlport4 library is
14396 # incompatible with the Cstd library. Avoid specifying
14397 # it if it's in CXXFLAGS. Ignore libCrun as
14398 # -library=stlport4 depends on it.
14399 case " $CXX $CXXFLAGS " in
14400 *" -library=stlport4 "*)
14401 solaris_use_stlport4=yes
14405 # Adding this requires a known-good setup of shared libraries for
14406 # Sun compiler versions before 5.6, else PIC objects from an old
14407 # archive will be linked into the output, leading to subtle bugs.
14408 if test "$solaris_use_stlport4" != yes; then
14409 postdeps_CXX='-library=Cstd -library=Crun'
14417 case " $postdeps_CXX " in
14418 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14420 compiler_lib_search_dirs_CXX=
14421 if test -n "${compiler_lib_search_path_CXX}"; then
14422 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14455 lt_prog_compiler_wl_CXX=
14456 lt_prog_compiler_pic_CXX=
14457 lt_prog_compiler_static_CXX=
14459 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14460 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14462 # C++ specific cases for pic, static, wl, etc.
14463 if test "$GXX" = yes; then
14464 lt_prog_compiler_wl_CXX='-Wl,'
14465 lt_prog_compiler_static_CXX='-static'
14469 # All AIX code is PIC.
14470 if test "$host_cpu" = ia64; then
14471 # AIX 5 now supports IA64 processor
14472 lt_prog_compiler_static_CXX='-Bstatic'
14479 # see comment about AmigaOS4 .so support
14480 lt_prog_compiler_pic_CXX='-fPIC'
14483 # FIXME: we need at least 68020 code to build shared libraries, but
14484 # adding the `-m68020' flag to GCC prevents building anything better,
14486 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14491 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14492 # PIC is the default for these OSes.
14494 mingw* | cygwin* | os2* | pw32* | cegcc*)
14495 # This hack is so that the source file can tell whether it is being
14496 # built for inclusion in a dll (and should export symbols for example).
14497 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14498 # (--disable-auto-import) libraries
14499 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14501 darwin* | rhapsody*)
14502 # PIC is the default on this platform
14503 # Common symbols not allowed in MH_DYLIB files
14504 lt_prog_compiler_pic_CXX='-fno-common'
14507 # DJGPP does not support shared libraries at all
14508 lt_prog_compiler_pic_CXX=
14511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14512 # Instead, we relocate shared libraries at runtime.
14515 if test -d /usr/nec; then
14516 lt_prog_compiler_pic_CXX=-Kconform_pic
14520 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14521 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14522 # sets the default TLS model and affects inlining.
14527 lt_prog_compiler_pic_CXX='-fPIC'
14532 # QNX uses GNU C++, but need to define -shared option too, otherwise
14533 # it will coredump.
14534 lt_prog_compiler_pic_CXX='-fPIC -shared'
14537 lt_prog_compiler_pic_CXX='-fPIC'
14543 # All AIX code is PIC.
14544 if test "$host_cpu" = ia64; then
14545 # AIX 5 now supports IA64 processor
14546 lt_prog_compiler_static_CXX='-Bstatic'
14548 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14552 case $cc_basename in
14554 # Green Hills C++ Compiler
14555 # _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"
14560 case $cc_basename in
14562 lt_prog_compiler_pic_CXX='-KPIC'
14565 # Green Hills C++ Compiler
14566 lt_prog_compiler_pic_CXX='-pic'
14572 freebsd* | dragonfly*)
14573 # FreeBSD uses GNU C++
14575 hpux9* | hpux10* | hpux11*)
14576 case $cc_basename in
14578 lt_prog_compiler_wl_CXX='-Wl,'
14579 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14580 if test "$host_cpu" != ia64; then
14581 lt_prog_compiler_pic_CXX='+Z'
14585 lt_prog_compiler_wl_CXX='-Wl,'
14586 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14592 lt_prog_compiler_pic_CXX='+Z'
14601 # This is c89, which is MS Visual C++ (no shared libs)
14602 # Anyone wants to do a port?
14604 irix5* | irix6* | nonstopux*)
14605 case $cc_basename in
14607 lt_prog_compiler_wl_CXX='-Wl,'
14608 lt_prog_compiler_static_CXX='-non_shared'
14609 # CC pic flag -KPIC is the default.
14615 linux* | k*bsd*-gnu)
14616 case $cc_basename in
14619 lt_prog_compiler_wl_CXX='--backend -Wl,'
14620 lt_prog_compiler_pic_CXX='-fPIC'
14623 # old Intel C++ for x86_64 which still supported -KPIC.
14624 lt_prog_compiler_wl_CXX='-Wl,'
14625 lt_prog_compiler_pic_CXX='-KPIC'
14626 lt_prog_compiler_static_CXX='-static'
14629 # Intel C++, used to be incompatible with GCC.
14630 # ICC 10 doesn't accept -KPIC any more.
14631 lt_prog_compiler_wl_CXX='-Wl,'
14632 lt_prog_compiler_pic_CXX='-fPIC'
14633 lt_prog_compiler_static_CXX='-static'
14636 # Portland Group C++ compiler
14637 lt_prog_compiler_wl_CXX='-Wl,'
14638 lt_prog_compiler_pic_CXX='-fpic'
14639 lt_prog_compiler_static_CXX='-Bstatic'
14643 # Make sure the PIC flag is empty. It appears that all Alpha
14644 # Linux and Compaq Tru64 Unix objects are PIC.
14645 lt_prog_compiler_pic_CXX=
14646 lt_prog_compiler_static_CXX='-non_shared'
14649 # IBM XL 8.0 on PPC
14650 lt_prog_compiler_wl_CXX='-Wl,'
14651 lt_prog_compiler_pic_CXX='-qpic'
14652 lt_prog_compiler_static_CXX='-qstaticlink'
14655 case `$CC -V 2>&1 | sed 5q` in
14658 lt_prog_compiler_pic_CXX='-KPIC'
14659 lt_prog_compiler_static_CXX='-Bstatic'
14660 lt_prog_compiler_wl_CXX='-Qoption ld '
14671 case $cc_basename in
14673 lt_prog_compiler_pic_CXX='-W c,exportall'
14682 # QNX uses GNU C++, but need to define -shared option too, otherwise
14683 # it will coredump.
14684 lt_prog_compiler_pic_CXX='-fPIC -shared'
14686 osf3* | osf4* | osf5*)
14687 case $cc_basename in
14689 lt_prog_compiler_wl_CXX='--backend -Wl,'
14692 # Rational C++ 2.4.1
14693 lt_prog_compiler_pic_CXX='-pic'
14696 # Digital/Compaq C++
14697 lt_prog_compiler_wl_CXX='-Wl,'
14698 # Make sure the PIC flag is empty. It appears that all Alpha
14699 # Linux and Compaq Tru64 Unix objects are PIC.
14700 lt_prog_compiler_pic_CXX=
14701 lt_prog_compiler_static_CXX='-non_shared'
14710 case $cc_basename in
14712 # Sun C++ 4.2, 5.x and Centerline C++
14713 lt_prog_compiler_pic_CXX='-KPIC'
14714 lt_prog_compiler_static_CXX='-Bstatic'
14715 lt_prog_compiler_wl_CXX='-Qoption ld '
14718 # Green Hills C++ Compiler
14719 lt_prog_compiler_pic_CXX='-PIC'
14726 case $cc_basename in
14729 lt_prog_compiler_pic_CXX='-pic'
14730 lt_prog_compiler_static_CXX='-Bstatic'
14734 lt_prog_compiler_pic_CXX='-pic'
14740 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14741 case $cc_basename in
14743 lt_prog_compiler_wl_CXX='-Wl,'
14744 lt_prog_compiler_pic_CXX='-KPIC'
14745 lt_prog_compiler_static_CXX='-Bstatic'
14750 case $cc_basename in
14752 # NonStop-UX NCC 3.20
14753 lt_prog_compiler_pic_CXX='-KPIC'
14762 lt_prog_compiler_can_build_shared_CXX=no
14768 # For platforms which do not support PIC, -DPIC is meaningless:
14770 lt_prog_compiler_pic_CXX=
14773 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14776 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14777 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14782 # Check to make sure the PIC flag actually works.
14784 if test -n "$lt_prog_compiler_pic_CXX"; then
14785 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14786 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14787 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14788 echo $ECHO_N "(cached) $ECHO_C" >&6
14790 lt_cv_prog_compiler_pic_works_CXX=no
14791 ac_outfile=conftest.$ac_objext
14792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14793 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14794 # Insert the option either (1) after the last *FLAGS variable, or
14795 # (2) before a word containing "conftest.", or (3) at the end.
14796 # Note that $ac_compile itself does not contain backslashes and begins
14797 # with a dollar sign (not a hyphen), so the echo should work correctly.
14798 # The option is referenced via a variable to avoid confusing sed.
14799 lt_compile=`echo "$ac_compile" | $SED \
14800 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14801 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14802 -e 's:$: $lt_compiler_flag:'`
14803 (eval echo "\"\$as_me:14803: $lt_compile\"" >&5)
14804 (eval "$lt_compile" 2>conftest.err)
14806 cat conftest.err >&5
14807 echo "$as_me:14807: \$? = $ac_status" >&5
14808 if (exit $ac_status) && test -s "$ac_outfile"; then
14809 # The compiler can only warn and ignore the option if not recognized
14810 # So say no if there are warnings other than the usual output.
14811 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14812 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14813 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14814 lt_cv_prog_compiler_pic_works_CXX=yes
14820 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14821 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14823 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14824 case $lt_prog_compiler_pic_CXX in
14826 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14829 lt_prog_compiler_pic_CXX=
14830 lt_prog_compiler_can_build_shared_CXX=no
14838 # Check to make sure the static flag actually works.
14840 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14841 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14842 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14843 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14844 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 lt_cv_prog_compiler_static_works_CXX=no
14847 save_LDFLAGS="$LDFLAGS"
14848 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14849 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14850 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14851 # The linker can only warn and ignore the option if not recognized
14852 # So say no if there are warnings
14853 if test -s conftest.err; then
14854 # Append any errors to the config.log.
14855 cat conftest.err 1>&5
14856 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14857 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14858 if diff conftest.exp conftest.er2 >/dev/null; then
14859 lt_cv_prog_compiler_static_works_CXX=yes
14862 lt_cv_prog_compiler_static_works_CXX=yes
14866 LDFLAGS="$save_LDFLAGS"
14869 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14870 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14872 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14875 lt_prog_compiler_static_CXX=
14881 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14882 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14883 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14884 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 lt_cv_prog_compiler_c_o_CXX=no
14887 $RM -r conftest 2>/dev/null
14891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14893 lt_compiler_flag="-o out/conftest2.$ac_objext"
14894 # Insert the option either (1) after the last *FLAGS variable, or
14895 # (2) before a word containing "conftest.", or (3) at the end.
14896 # Note that $ac_compile itself does not contain backslashes and begins
14897 # with a dollar sign (not a hyphen), so the echo should work correctly.
14898 lt_compile=`echo "$ac_compile" | $SED \
14899 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14900 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14901 -e 's:$: $lt_compiler_flag:'`
14902 (eval echo "\"\$as_me:14902: $lt_compile\"" >&5)
14903 (eval "$lt_compile" 2>out/conftest.err)
14905 cat out/conftest.err >&5
14906 echo "$as_me:14906: \$? = $ac_status" >&5
14907 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14909 # The compiler can only warn and ignore the option if not recognized
14910 # So say no if there are warnings
14911 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14913 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14914 lt_cv_prog_compiler_c_o_CXX=yes
14919 # SGI C++ compiler will create directory out/ii_files/ for
14920 # template instantiation
14921 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14922 $RM out/* && rmdir out
14928 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14929 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14933 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14934 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14935 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 lt_cv_prog_compiler_c_o_CXX=no
14939 $RM -r conftest 2>/dev/null
14943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14945 lt_compiler_flag="-o out/conftest2.$ac_objext"
14946 # Insert the option either (1) after the last *FLAGS variable, or
14947 # (2) before a word containing "conftest.", or (3) at the end.
14948 # Note that $ac_compile itself does not contain backslashes and begins
14949 # with a dollar sign (not a hyphen), so the echo should work correctly.
14950 lt_compile=`echo "$ac_compile" | $SED \
14951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14953 -e 's:$: $lt_compiler_flag:'`
14954 (eval echo "\"\$as_me:14954: $lt_compile\"" >&5)
14955 (eval "$lt_compile" 2>out/conftest.err)
14957 cat out/conftest.err >&5
14958 echo "$as_me:14958: \$? = $ac_status" >&5
14959 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14961 # The compiler can only warn and ignore the option if not recognized
14962 # So say no if there are warnings
14963 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14964 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14965 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14966 lt_cv_prog_compiler_c_o_CXX=yes
14971 # SGI C++ compiler will create directory out/ii_files/ for
14972 # template instantiation
14973 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14974 $RM out/* && rmdir out
14980 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14981 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14986 hard_links="nottested"
14987 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14988 # do not overwrite the value of need_locks provided by the user
14989 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14990 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14995 ln conftest.a conftest.b 2>&5 || hard_links=no
14996 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14997 { echo "$as_me:$LINENO: result: $hard_links" >&5
14998 echo "${ECHO_T}$hard_links" >&6; }
14999 if test "$hard_links" = no; then
15000 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15001 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15010 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15011 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15013 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15016 # If we're using GNU nm, then we don't want the "-C" option.
15017 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15018 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15019 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'
15021 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'
15025 export_symbols_cmds_CXX="$ltdll_cmds"
15027 cygwin* | mingw* | cegcc*)
15028 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'
15031 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15034 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15036 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15037 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15038 test "$ld_shlibs_CXX" = no && can_build_shared=no
15040 with_gnu_ld_CXX=$with_gnu_ld
15048 # Do we need to explicitly link libc?
15050 case "x$archive_cmds_need_lc_CXX" in
15052 # Assume -lc should be added
15053 archive_cmds_need_lc_CXX=yes
15055 if test "$enable_shared" = yes && test "$GCC" = yes; then
15056 case $archive_cmds_CXX in
15058 # FIXME: we may have to deal with multi-command sequences.
15061 # Test whether the compiler implicitly links with -lc since on some
15062 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15063 # to ld, don't add -lc before -lgcc.
15064 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15065 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15067 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15070 (eval $ac_compile) 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } 2>conftest.err; then
15076 libobjs=conftest.$ac_objext
15078 wl=$lt_prog_compiler_wl_CXX
15079 pic_flag=$lt_prog_compiler_pic_CXX
15085 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15086 allow_undefined_flag_CXX=
15087 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15088 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); }
15093 archive_cmds_need_lc_CXX=no
15095 archive_cmds_need_lc_CXX=yes
15097 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15099 cat conftest.err 1>&5
15102 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15103 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15173 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15174 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15176 library_names_spec=
15177 libname_spec='lib$name'
15181 postuninstall_cmds=
15185 shlibpath_overrides_runpath=unknown
15187 dynamic_linker="$host_os ld.so"
15188 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15189 need_lib_prefix=unknown
15190 hardcode_into_libs=no
15192 # when you set need_version to no, make sure it does not cause -set_version
15193 # flags to be left without arguments
15194 need_version=unknown
15199 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15200 shlibpath_var=LIBPATH
15202 # AIX 3 has no versioning support, so we append a major version to the name.
15203 soname_spec='${libname}${release}${shared_ext}$major'
15210 hardcode_into_libs=yes
15211 if test "$host_cpu" = ia64; then
15212 # AIX 5 supports IA64
15213 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15214 shlibpath_var=LD_LIBRARY_PATH
15216 # With GCC up to 2.95.x, collect2 would create an import file
15217 # for dependence libraries. The import file would start with
15218 # the line `#! .'. This would cause the generated library to
15219 # depend on `.', always an invalid library. This was fixed in
15220 # development snapshots of GCC prior to 3.0.
15222 aix4 | aix4.[01] | aix4.[01].*)
15223 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15225 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15228 can_build_shared=no
15232 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15233 # soname into executable. Probably we can add versioning support to
15234 # collect2, so additional links can be useful in future.
15235 if test "$aix_use_runtimelinking" = yes; then
15236 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15237 # instead of lib<name>.a to let people know that these are not
15238 # typical AIX shared libraries.
15239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15241 # We preserve .a as extension for shared libraries through AIX4.2
15242 # and later when we are not doing run time linking.
15243 library_names_spec='${libname}${release}.a $libname.a'
15244 soname_spec='${libname}${release}${shared_ext}$major'
15246 shlibpath_var=LIBPATH
15253 # Since July 2007 AmigaOS4 officially supports .so libraries.
15254 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15258 library_names_spec='$libname.ixlibrary $libname.a'
15259 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15260 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'
15266 library_names_spec='${libname}${shared_ext}'
15267 dynamic_linker="$host_os ld.so"
15268 shlibpath_var=LIBRARY_PATH
15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15275 soname_spec='${libname}${release}${shared_ext}$major'
15276 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15277 shlibpath_var=LD_LIBRARY_PATH
15278 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15279 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15280 # the default ld.so.conf also contains /usr/contrib/lib and
15281 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15282 # libtool to hard-code these into programs
15285 cygwin* | mingw* | pw32* | cegcc*)
15286 version_type=windows
15291 case $GCC,$host_os in
15292 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15293 library_names_spec='$libname.dll.a'
15294 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15295 postinstall_cmds='base_file=`basename \${file}`~
15296 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15297 dldir=$destdir/`dirname \$dlpath`~
15298 test -d \$dldir || mkdir -p \$dldir~
15299 $install_prog $dir/$dlname \$dldir/$dlname~
15300 chmod a+x \$dldir/$dlname~
15301 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15302 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15304 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15305 dlpath=$dir/\$dldll~
15307 shlibpath_overrides_runpath=yes
15311 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15312 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15313 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15316 # MinGW DLLs use traditional 'lib' prefix
15317 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15318 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15319 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15320 # It is most probably a Windows format PATH printed by
15321 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15322 # path with ; separators, and with drive letters. We can handle the
15323 # drive letters (cygwin fileutils understands them), so leave them,
15324 # especially as we might pass files found there to a mingw objdump,
15325 # which wouldn't understand a cygwinified path. Ahh.
15326 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15328 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15332 # pw32 DLLs use 'pw' prefix rather than 'lib'
15333 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15339 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15342 dynamic_linker='Win32 ld.exe'
15343 # FIXME: first we should search . and the directory the executable is in
15347 darwin* | rhapsody*)
15348 dynamic_linker="$host_os dyld"
15349 version_type=darwin
15352 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15353 soname_spec='${libname}${release}${major}$shared_ext'
15354 shlibpath_overrides_runpath=yes
15355 shlibpath_var=DYLD_LIBRARY_PATH
15356 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15358 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15366 soname_spec='${libname}${release}${shared_ext}$major'
15367 shlibpath_var=LD_LIBRARY_PATH
15374 freebsd* | dragonfly*)
15375 # DragonFly does not have aout. When/if they implement a new
15376 # versioning mechanism, adjust this.
15377 if test -x /usr/bin/objformat; then
15378 objformat=`/usr/bin/objformat`
15381 freebsd[123]*) objformat=aout ;;
15382 *) objformat=elf ;;
15385 version_type=freebsd-$objformat
15386 case $version_type in
15388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15397 shlibpath_var=LD_LIBRARY_PATH
15400 shlibpath_overrides_runpath=yes
15402 freebsd3.[01]* | freebsdelf3.[01]*)
15403 shlibpath_overrides_runpath=yes
15404 hardcode_into_libs=yes
15406 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15407 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15408 shlibpath_overrides_runpath=no
15409 hardcode_into_libs=yes
15411 *) # from 4.6 on, and DragonFly
15412 shlibpath_overrides_runpath=yes
15413 hardcode_into_libs=yes
15422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15423 soname_spec='${libname}${release}${shared_ext}$major'
15424 shlibpath_var=LD_LIBRARY_PATH
15425 hardcode_into_libs=yes
15428 hpux9* | hpux10* | hpux11*)
15429 # Give a soname corresponding to the major version so that dld.sl refuses to
15430 # link against other versions.
15437 hardcode_into_libs=yes
15438 dynamic_linker="$host_os dld.so"
15439 shlibpath_var=LD_LIBRARY_PATH
15440 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 soname_spec='${libname}${release}${shared_ext}$major'
15443 if test "X$HPUX_IA64_MODE" = X32; then
15444 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15446 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15452 hardcode_into_libs=yes
15453 dynamic_linker="$host_os dld.sl"
15454 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15455 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15459 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15463 dynamic_linker="$host_os dld.sl"
15464 shlibpath_var=SHLIB_PATH
15465 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15467 soname_spec='${libname}${release}${shared_ext}$major'
15470 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15471 postinstall_cmds='chmod 555 $lib'
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15479 soname_spec='${libname}${release}${shared_ext}$major'
15480 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15481 shlibpath_var=LD_LIBRARY_PATH
15482 shlibpath_overrides_runpath=no
15483 hardcode_into_libs=yes
15486 irix5* | irix6* | nonstopux*)
15488 nonstopux*) version_type=nonstopux ;;
15490 if test "$lt_cv_prog_gnu_ld" = yes; then
15498 soname_spec='${libname}${release}${shared_ext}$major'
15499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15501 irix5* | nonstopux*)
15502 libsuff= shlibsuff=
15505 case $LD in # libtool.m4 will add one of these switches to LD
15506 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15507 libsuff= shlibsuff= libmagic=32-bit;;
15508 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15509 libsuff=32 shlibsuff=N32 libmagic=N32;;
15510 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15511 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15512 *) libsuff= shlibsuff= libmagic=never-match;;
15516 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15517 shlibpath_overrides_runpath=no
15518 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15519 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15520 hardcode_into_libs=yes
15523 # No shared lib support for Linux oldld, aout, or coff.
15524 linux*oldld* | linux*aout* | linux*coff*)
15528 # This must be Linux ELF.
15529 linux* | k*bsd*-gnu)
15533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15534 soname_spec='${libname}${release}${shared_ext}$major'
15535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15536 shlibpath_var=LD_LIBRARY_PATH
15537 shlibpath_overrides_runpath=no
15538 # Some binutils ld are patched to set DT_RUNPATH
15539 save_LDFLAGS=$LDFLAGS
15540 save_libdir=$libdir
15541 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15542 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15543 cat >conftest.$ac_ext <<_ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (ac_try="$ac_link"
15560 case "(($ac_try" in
15561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562 *) ac_try_echo=$ac_try;;
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565 (eval "$ac_link") 2>conftest.er1
15567 grep -v '^ *+' conftest.er1 >conftest.err
15569 cat conftest.err >&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); } && {
15572 test -z "$ac_cxx_werror_flag" ||
15573 test ! -s conftest.err
15574 } && test -s conftest$ac_exeext &&
15575 $as_test_x conftest$ac_exeext; then
15576 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15577 shlibpath_overrides_runpath=yes
15581 echo "$as_me: failed program was:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15588 conftest$ac_exeext conftest.$ac_ext
15589 LDFLAGS=$save_LDFLAGS
15590 libdir=$save_libdir
15592 # This implies no fast_install, which is unacceptable.
15593 # Some rework will be needed to allow for fast_install
15594 # before this can be enabled.
15595 hardcode_into_libs=yes
15597 # Append ld.so.conf contents to the search path
15598 if test -f /etc/ld.so.conf; then
15599 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' ' '`
15600 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15603 # We used to test for /lib/ld.so.1 and disable shared libraries on
15604 # powerpc, because MkLinux only supported shared libraries with the
15605 # GNU dynamic linker. Since this was broken with cross compilers,
15606 # most powerpc-linux boxes support dynamic linking these days and
15607 # people can always --disable-shared, the test was removed, and we
15608 # assume the GNU/Linux dynamic linker is in use.
15609 dynamic_linker='GNU/Linux ld.so'
15616 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15618 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15619 dynamic_linker='NetBSD (a.out) ld.so'
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 dynamic_linker='NetBSD ld.elf_so'
15625 shlibpath_var=LD_LIBRARY_PATH
15626 shlibpath_overrides_runpath=yes
15627 hardcode_into_libs=yes
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633 shlibpath_var=LD_LIBRARY_PATH
15634 shlibpath_overrides_runpath=yes
15641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 shlibpath_var=LD_LIBRARY_PATH
15644 shlibpath_overrides_runpath=no
15645 hardcode_into_libs=yes
15646 dynamic_linker='ldqnx.so'
15651 sys_lib_dlsearch_path_spec="/usr/lib"
15653 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15655 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15656 *) need_version=no ;;
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15660 shlibpath_var=LD_LIBRARY_PATH
15661 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15663 openbsd2.[89] | openbsd2.[89].*)
15664 shlibpath_overrides_runpath=no
15667 shlibpath_overrides_runpath=yes
15671 shlibpath_overrides_runpath=yes
15676 libname_spec='$name'
15679 library_names_spec='$libname${shared_ext} $libname.a'
15680 dynamic_linker='OS/2 ld.exe'
15681 shlibpath_var=LIBPATH
15684 osf3* | osf4* | osf5*)
15688 soname_spec='${libname}${release}${shared_ext}$major'
15689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15690 shlibpath_var=LD_LIBRARY_PATH
15691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15704 soname_spec='${libname}${release}${shared_ext}$major'
15705 shlibpath_var=LD_LIBRARY_PATH
15706 shlibpath_overrides_runpath=yes
15707 hardcode_into_libs=yes
15708 # ldd complains unless libraries are executable
15709 postinstall_cmds='chmod +x $lib'
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15715 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15716 shlibpath_var=LD_LIBRARY_PATH
15717 shlibpath_overrides_runpath=yes
15718 if test "$with_gnu_ld" = yes; then
15726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15727 soname_spec='${libname}${release}${shared_ext}$major'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 case $host_vendor in
15731 shlibpath_overrides_runpath=no
15733 runpath_var=LD_RUN_PATH
15741 shlibpath_overrides_runpath=no
15742 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15748 if test -d /usr/nec ;then
15750 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15751 soname_spec='$libname${shared_ext}.$major'
15752 shlibpath_var=LD_LIBRARY_PATH
15756 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15757 version_type=freebsd-elf
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15761 soname_spec='${libname}${release}${shared_ext}$major'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=yes
15764 hardcode_into_libs=yes
15765 if test "$with_gnu_ld" = yes; then
15766 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15768 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15771 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15775 sys_lib_dlsearch_path_spec='/usr/lib'
15779 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 shlibpath_overrides_runpath=no
15786 hardcode_into_libs=yes
15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792 soname_spec='${libname}${release}${shared_ext}$major'
15793 shlibpath_var=LD_LIBRARY_PATH
15800 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15801 echo "${ECHO_T}$dynamic_linker" >&6; }
15802 test "$dynamic_linker" = no && can_build_shared=no
15804 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15805 if test "$GCC" = yes; then
15806 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15809 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15810 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15812 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15813 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15851 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15852 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15853 hardcode_action_CXX=
15854 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15855 test -n "$runpath_var_CXX" ||
15856 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15858 # We can hardcode non-existent directories.
15859 if test "$hardcode_direct_CXX" != no &&
15860 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15861 # have to relink, otherwise we might link with an installed library
15862 # when we should be linking with a yet-to-be-installed one
15863 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15864 test "$hardcode_minus_L_CXX" != no; then
15865 # Linking always hardcodes the temporary library directory.
15866 hardcode_action_CXX=relink
15868 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15869 hardcode_action_CXX=immediate
15872 # We cannot hardcode anything, or else we can only hardcode existing
15874 hardcode_action_CXX=unsupported
15876 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15877 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15879 if test "$hardcode_action_CXX" = relink ||
15880 test "$inherit_rpath_CXX" = yes; then
15881 # Fast installation is not supported
15882 enable_fast_install=no
15883 elif test "$shlibpath_overrides_runpath" = yes ||
15884 test "$enable_shared" = no; then
15885 # Fast installation is not necessary
15886 enable_fast_install=needless
15895 fi # test -n "$compiler"
15901 with_gnu_ld=$lt_save_with_gnu_ld
15902 lt_cv_path_LDCXX=$lt_cv_path_LD
15903 lt_cv_path_LD=$lt_save_path_LD
15904 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15905 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15906 fi # test "$_lt_caught_CXX_error" != yes
15909 ac_cpp='$CPP $CPPFLAGS'
15910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15926 ac_config_commands="$ac_config_commands libtool"
15931 # Only expand once:
15936 if test x$use_libtool != xno; then
15937 DEFAULT_OBJECT_TYPE=".lo"
15938 DEFAULT_ARCHIVE_TYPE=".la"
15939 DEFAULT_SHARED_OBJECT_TYPE=".la"
15940 LIBTOOL="\$(LIBTOOL)"
15941 LIBTOOL_INSTALL_TARGET="libtool-install"
15942 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15943 LIBTOOL_CLEAN_TARGET="libtool-clean"
15944 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15946 DEFAULT_OBJECT_TYPE=".o"
15947 DEFAULT_ARCHIVE_TYPE=".a"
15948 DEFAULT_SHARED_OBJECT_TYPE=".so"
15949 LIBTOOL="# \$(LIBTOOL)"
15950 LIBTOOL_INSTALL_TARGET=""
15951 LIBTOOL_UNINSTALL_TARGET=""
15952 LIBTOOL_CLEAN_TARGET=""
15953 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15965 # Check whether --enable-includes was given.
15966 if test "${enable_includes+set}" = set; then
15967 enableval=$enable_includes;
15968 if test x$enableval = xyes; then
15969 install_includes=yes
15977 if test x$use_libtool != xno -a x$install_includes = xyes; then
15978 INCLUDE_INSTALL_TARGET="install-includes"
15979 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15981 INCLUDE_INSTALL_TARGET=""
15982 INCLUDE_UNINSTALL_TARGET=""
15988 { echo "$as_me:$LINENO: checking host system type" >&5
15989 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15990 if test "${ac_cv_host+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 if test "x$host_alias" = x; then
15994 ac_cv_host=$ac_cv_build
15996 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15997 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15998 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15999 { (exit 1); exit 1; }; }
16003 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16004 echo "${ECHO_T}$ac_cv_host" >&6; }
16005 case $ac_cv_host in
16007 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16008 echo "$as_me: error: invalid value of canonical host" >&2;}
16009 { (exit 1); exit 1; }; };;
16012 ac_save_IFS=$IFS; IFS='-'
16018 # Remember, the first character of IFS is used to create $*,
16019 # except with old shells:
16022 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16026 *cygwin* ) CYGWIN=yes;;
16030 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16036 HAVE_SUN_OS_FALSE='#'
16038 HAVE_SUN_OS_TRUE='#'
16041 cat >>confdefs.h <<\_ACEOF
16042 #define HAVE_SUN_OS 1
16050 HAVE_SUN_OS_FALSE='#'
16052 HAVE_SUN_OS_TRUE='#'
16057 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16063 HAVE_OSF1_OS_FALSE='#'
16065 HAVE_OSF1_OS_TRUE='#'
16066 HAVE_OSF1_OS_FALSE=
16068 cat >>confdefs.h <<\_ACEOF
16069 #define HAVE_OSF1_OS 1
16077 HAVE_OSF1_OS_FALSE='#'
16079 HAVE_OSF1_OS_TRUE='#'
16080 HAVE_OSF1_OS_FALSE=
16084 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16090 HAVE_AIX_OS_FALSE='#'
16092 HAVE_AIX_OS_TRUE='#'
16095 cat >>confdefs.h <<\_ACEOF
16096 #define HAVE_AIX_OS 1
16104 HAVE_AIX_OS_FALSE='#'
16106 HAVE_AIX_OS_TRUE='#'
16111 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16117 HAVE_HPUX_OS_FALSE='#'
16119 HAVE_HPUX_OS_TRUE='#'
16120 HAVE_HPUX_OS_FALSE=
16122 cat >>confdefs.h <<\_ACEOF
16123 #define HAVE_HPUX_OS 1
16131 HAVE_HPUX_OS_FALSE='#'
16133 HAVE_HPUX_OS_TRUE='#'
16134 HAVE_HPUX_OS_FALSE=
16138 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16143 HAVE_LINUX_OS_TRUE=
16144 HAVE_LINUX_OS_FALSE='#'
16146 HAVE_LINUX_OS_TRUE='#'
16147 HAVE_LINUX_OS_FALSE=
16149 cat >>confdefs.h <<\_ACEOF
16150 #define HAVE_LINUX_OS 1
16157 HAVE_LINUX_OS_TRUE=
16158 HAVE_LINUX_OS_FALSE='#'
16160 HAVE_LINUX_OS_TRUE='#'
16161 HAVE_LINUX_OS_FALSE=
16165 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16170 HAVE_FREEBSD_OS_TRUE=
16171 HAVE_FREEBSD_OS_FALSE='#'
16173 HAVE_FREEBSD_OS_TRUE='#'
16174 HAVE_FREEBSD_OS_FALSE=
16176 cat >>confdefs.h <<\_ACEOF
16177 #define HAVE_FREEBSD_OS 1
16184 HAVE_FREEBSD_OS_TRUE=
16185 HAVE_FREEBSD_OS_FALSE='#'
16187 HAVE_FREEBSD_OS_TRUE='#'
16188 HAVE_FREEBSD_OS_FALSE=
16192 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16197 HAVE_NETBSD_OS_TRUE=
16198 HAVE_NETBSD_OS_FALSE='#'
16200 HAVE_NETBSD_OS_TRUE='#'
16201 HAVE_NETBSD_OS_FALSE=
16203 cat >>confdefs.h <<\_ACEOF
16204 #define HAVE_NETBSD_OS 1
16211 HAVE_NETBSD_OS_TRUE=
16212 HAVE_NETBSD_OS_FALSE='#'
16214 HAVE_NETBSD_OS_TRUE='#'
16215 HAVE_NETBSD_OS_FALSE=
16219 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16224 HAVE_OPENBSD_OS_TRUE=
16225 HAVE_OPENBSD_OS_FALSE='#'
16227 HAVE_OPENBSD_OS_TRUE='#'
16228 HAVE_OPENBSD_OS_FALSE=
16230 cat >>confdefs.h <<\_ACEOF
16231 #define HAVE_OPENBSD_OS 1
16238 HAVE_OPENBSD_OS_TRUE=
16239 HAVE_OPENBSD_OS_FALSE='#'
16241 HAVE_OPENBSD_OS_TRUE='#'
16242 HAVE_OPENBSD_OS_FALSE=
16246 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16252 HAVE_BSDI_OS_FALSE='#'
16254 HAVE_BSDI_OS_TRUE='#'
16255 HAVE_BSDI_OS_FALSE=
16257 cat >>confdefs.h <<\_ACEOF
16258 #define HAVE_BSDI_OS 1
16266 HAVE_BSDI_OS_FALSE='#'
16268 HAVE_BSDI_OS_TRUE='#'
16269 HAVE_BSDI_OS_FALSE=
16273 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16279 HAVE_SGI_OS_FALSE='#'
16281 HAVE_SGI_OS_TRUE='#'
16284 cat >>confdefs.h <<\_ACEOF
16285 #define HAVE_SGI_OS 1
16293 HAVE_SGI_OS_FALSE='#'
16295 HAVE_SGI_OS_TRUE='#'
16300 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16306 HAVE_IRIX_OS_FALSE='#'
16308 HAVE_IRIX_OS_TRUE='#'
16309 HAVE_IRIX_OS_FALSE=
16311 cat >>confdefs.h <<\_ACEOF
16312 #define HAVE_IRIX_OS 1
16320 HAVE_IRIX_OS_FALSE='#'
16322 HAVE_IRIX_OS_TRUE='#'
16323 HAVE_IRIX_OS_FALSE=
16327 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16332 HAVE_DARWIN_OS_TRUE=
16333 HAVE_DARWIN_OS_FALSE='#'
16335 HAVE_DARWIN_OS_TRUE='#'
16336 HAVE_DARWIN_OS_FALSE=
16338 cat >>confdefs.h <<\_ACEOF
16339 #define HAVE_DARWIN_OS 1
16346 HAVE_DARWIN_OS_TRUE=
16347 HAVE_DARWIN_OS_FALSE='#'
16349 HAVE_DARWIN_OS_TRUE='#'
16350 HAVE_DARWIN_OS_FALSE=
16355 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16356 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16357 if test "x$DISTNAME" != "x"
16359 echo "distname set to $DISTNAME"
16360 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16363 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16366 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16369 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16372 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16375 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16378 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16381 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16384 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16387 elif test -f /etc/SuSE-release
16390 elif test -d /etc/SuSEconfig
16393 elif test -f /etc/mandrake-release
16396 elif test -f /etc/whitebox-release
16399 elif test -f /etc/redhat-release
16402 elif test -f /etc/gentoo-release
16405 elif test -f /etc/debian_version
16408 elif test -f /etc/slackware-version
16411 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16414 elif test -f /etc/engarde-version
16417 elif test "$CYGWIN" = yes
16420 cat >>confdefs.h <<\_ACEOF
16421 #define HAVE_CYGWIN 1
16427 { echo "$as_me:$LINENO: result: done" >&5
16428 echo "${ECHO_T}done" >&6; }
16431 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16432 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16433 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16434 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 cat >conftest.make <<\_ACEOF
16440 @echo '@@@%%%=$(MAKE)=@@@%%%'
16442 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16443 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16444 *@@@%%%=?*=@@@%%%*)
16445 eval ac_cv_prog_make_${ac_make}_set=yes;;
16447 eval ac_cv_prog_make_${ac_make}_set=no;;
16449 rm -f conftest.make
16451 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16452 { echo "$as_me:$LINENO: result: yes" >&5
16453 echo "${ECHO_T}yes" >&6; }
16456 { echo "$as_me:$LINENO: result: no" >&5
16457 echo "${ECHO_T}no" >&6; }
16458 SET_MAKE="MAKE=${MAKE-make}"
16464 if test -n "$ac_aux_dir"; then
16465 case "$ac_aux_dir" in
16466 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16467 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16470 if test -z "$MKINSTALLDIRS"; then
16471 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16476 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16477 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16478 # Check whether --enable-nls was given.
16479 if test "${enable_nls+set}" = set; then
16480 enableval=$enable_nls; USE_NLS=$enableval
16485 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16486 echo "${ECHO_T}$USE_NLS" >&6; }
16493 # Prepare PATH_SEPARATOR.
16494 # The user is always right.
16495 if test "${PATH_SEPARATOR+set}" != set; then
16496 echo "#! /bin/sh" >conf$$.sh
16497 echo "exit 0" >>conf$$.sh
16499 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16507 # Find out how to test for executable files. Don't use a zero-byte file,
16508 # as systems may use methods other than mode bits to determine executability.
16509 cat >conf$$.file <<_ASEOF
16513 chmod +x conf$$.file
16514 if test -x conf$$.file >/dev/null 2>&1; then
16515 ac_executable_p="test -x"
16517 ac_executable_p="test -f"
16521 # Extract the first word of "msgfmt", so it can be a program name with args.
16522 set dummy msgfmt; ac_word=$2
16523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16525 if test "${ac_cv_path_MSGFMT+set}" = set; then
16526 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16533 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16534 for ac_dir in $PATH; do
16536 test -z "$ac_dir" && ac_dir=.
16537 for ac_exec_ext in '' $ac_executable_extensions; do
16538 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16539 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16540 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16541 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16542 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16549 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16553 MSGFMT="$ac_cv_path_MSGFMT"
16554 if test "$MSGFMT" != ":"; then
16555 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16556 echo "${ECHO_T}$MSGFMT" >&6; }
16558 { echo "$as_me:$LINENO: result: no" >&5
16559 echo "${ECHO_T}no" >&6; }
16562 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16563 set dummy gmsgfmt; ac_word=$2
16564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16566 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16571 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16575 for as_dir in $PATH
16578 test -z "$as_dir" && as_dir=.
16579 for ac_exec_ext in '' $ac_executable_extensions; do
16580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16581 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16589 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16593 GMSGFMT=$ac_cv_path_GMSGFMT
16594 if test -n "$GMSGFMT"; then
16595 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16596 echo "${ECHO_T}$GMSGFMT" >&6; }
16598 { echo "$as_me:$LINENO: result: no" >&5
16599 echo "${ECHO_T}no" >&6; }
16605 # Prepare PATH_SEPARATOR.
16606 # The user is always right.
16607 if test "${PATH_SEPARATOR+set}" != set; then
16608 echo "#! /bin/sh" >conf$$.sh
16609 echo "exit 0" >>conf$$.sh
16611 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16619 # Find out how to test for executable files. Don't use a zero-byte file,
16620 # as systems may use methods other than mode bits to determine executability.
16621 cat >conf$$.file <<_ASEOF
16625 chmod +x conf$$.file
16626 if test -x conf$$.file >/dev/null 2>&1; then
16627 ac_executable_p="test -x"
16629 ac_executable_p="test -f"
16633 # Extract the first word of "xgettext", so it can be a program name with args.
16634 set dummy xgettext; ac_word=$2
16635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16637 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16638 echo $ECHO_N "(cached) $ECHO_C" >&6
16640 case "$XGETTEXT" in
16642 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16645 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16646 for ac_dir in $PATH; do
16648 test -z "$ac_dir" && ac_dir=.
16649 for ac_exec_ext in '' $ac_executable_extensions; do
16650 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16651 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16652 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16653 (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
16654 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16661 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16665 XGETTEXT="$ac_cv_path_XGETTEXT"
16666 if test "$XGETTEXT" != ":"; then
16667 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16668 echo "${ECHO_T}$XGETTEXT" >&6; }
16670 { echo "$as_me:$LINENO: result: no" >&5
16671 echo "${ECHO_T}no" >&6; }
16677 # Prepare PATH_SEPARATOR.
16678 # The user is always right.
16679 if test "${PATH_SEPARATOR+set}" != set; then
16680 echo "#! /bin/sh" >conf$$.sh
16681 echo "exit 0" >>conf$$.sh
16683 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16691 # Find out how to test for executable files. Don't use a zero-byte file,
16692 # as systems may use methods other than mode bits to determine executability.
16693 cat >conf$$.file <<_ASEOF
16697 chmod +x conf$$.file
16698 if test -x conf$$.file >/dev/null 2>&1; then
16699 ac_executable_p="test -x"
16701 ac_executable_p="test -f"
16705 # Extract the first word of "msgmerge", so it can be a program name with args.
16706 set dummy msgmerge; ac_word=$2
16707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16709 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 case "$MSGMERGE" in
16714 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16717 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16718 for ac_dir in $PATH; do
16720 test -z "$ac_dir" && ac_dir=.
16721 for ac_exec_ext in '' $ac_executable_extensions; do
16722 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16723 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16724 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16725 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16732 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16736 MSGMERGE="$ac_cv_path_MSGMERGE"
16737 if test "$MSGMERGE" != ":"; then
16738 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16739 echo "${ECHO_T}$MSGMERGE" >&6; }
16741 { echo "$as_me:$LINENO: result: no" >&5
16742 echo "${ECHO_T}no" >&6; }
16746 if test "$GMSGFMT" != ":"; then
16747 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16748 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16751 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16752 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16753 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16758 if test "$XGETTEXT" != ":"; then
16759 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16760 (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
16763 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16764 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16770 ac_config_commands="$ac_config_commands default-1"
16774 if test "X$prefix" = "XNONE"; then
16775 acl_final_prefix="$ac_default_prefix"
16777 acl_final_prefix="$prefix"
16779 if test "X$exec_prefix" = "XNONE"; then
16780 acl_final_exec_prefix='${prefix}'
16782 acl_final_exec_prefix="$exec_prefix"
16784 acl_save_prefix="$prefix"
16785 prefix="$acl_final_prefix"
16786 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16787 prefix="$acl_save_prefix"
16790 # Check whether --with-gnu-ld was given.
16791 if test "${with_gnu_ld+set}" = set; then
16792 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16797 # Prepare PATH_SEPARATOR.
16798 # The user is always right.
16799 if test "${PATH_SEPARATOR+set}" != set; then
16800 echo "#! /bin/sh" >conf$$.sh
16801 echo "exit 0" >>conf$$.sh
16803 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16811 if test "$GCC" = yes; then
16812 # Check if gcc -print-prog-name=ld gives a path.
16813 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16814 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16817 # gcc leaves a trailing carriage return which upsets mingw
16818 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16820 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16823 # Accept absolute paths.
16824 [\\/]* | [A-Za-z]:[\\/]*)
16825 re_direlt='/[^/][^/]*/\.\./'
16826 # Canonicalize the path of ld
16827 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16828 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16829 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16831 test -z "$LD" && LD="$ac_prog"
16834 # If it fails, then pretend we aren't using GCC.
16838 # If it is relative, then search for the first ld in PATH.
16839 with_gnu_ld=unknown
16842 elif test "$with_gnu_ld" = yes; then
16843 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16844 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16846 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16847 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16849 if test "${acl_cv_path_LD+set}" = set; then
16850 echo $ECHO_N "(cached) $ECHO_C" >&6
16852 if test -z "$LD"; then
16853 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16854 for ac_dir in $PATH; do
16855 test -z "$ac_dir" && ac_dir=.
16856 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16857 acl_cv_path_LD="$ac_dir/$ac_prog"
16858 # Check to see if the program is GNU ld. I'd rather use --version,
16859 # but apparently some GNU ld's only accept -v.
16860 # Break only if it was the GNU/non-GNU ld that we prefer.
16861 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16862 *GNU* | *'with BFD'*)
16863 test "$with_gnu_ld" != no && break ;;
16865 test "$with_gnu_ld" != yes && break ;;
16871 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16875 LD="$acl_cv_path_LD"
16876 if test -n "$LD"; then
16877 { echo "$as_me:$LINENO: result: $LD" >&5
16878 echo "${ECHO_T}$LD" >&6; }
16880 { echo "$as_me:$LINENO: result: no" >&5
16881 echo "${ECHO_T}no" >&6; }
16883 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16884 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16885 { (exit 1); exit 1; }; }
16886 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16887 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16888 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16892 case `$LD -v 2>&1 </dev/null` in
16893 *GNU* | *'with BFD'*)
16894 acl_cv_prog_gnu_ld=yes ;;
16896 acl_cv_prog_gnu_ld=no ;;
16899 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16900 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16901 with_gnu_ld=$acl_cv_prog_gnu_ld
16906 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16907 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16908 if test "${acl_cv_rpath+set}" = set; then
16909 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16913 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16915 rm -f ./conftest.sh
16919 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16920 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16922 libext="$acl_cv_libext"
16923 shlibext="$acl_cv_shlibext"
16924 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16925 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16926 hardcode_direct="$acl_cv_hardcode_direct"
16927 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16928 # Check whether --enable-rpath was given.
16929 if test "${enable_rpath+set}" = set; then
16930 enableval=$enable_rpath; :
16944 acl_save_prefix="$prefix"
16945 prefix="$acl_final_prefix"
16946 acl_save_exec_prefix="$exec_prefix"
16947 exec_prefix="$acl_final_exec_prefix"
16949 eval additional_includedir=\"$includedir\"
16950 eval additional_libdir=\"$libdir\"
16952 exec_prefix="$acl_save_exec_prefix"
16953 prefix="$acl_save_prefix"
16956 # Check whether --with-libiconv-prefix was given.
16957 if test "${with_libiconv_prefix+set}" = set; then
16958 withval=$with_libiconv_prefix;
16959 if test "X$withval" = "Xno"; then
16962 if test "X$withval" = "X"; then
16964 acl_save_prefix="$prefix"
16965 prefix="$acl_final_prefix"
16966 acl_save_exec_prefix="$exec_prefix"
16967 exec_prefix="$acl_final_exec_prefix"
16969 eval additional_includedir=\"$includedir\"
16970 eval additional_libdir=\"$libdir\"
16972 exec_prefix="$acl_save_exec_prefix"
16973 prefix="$acl_save_prefix"
16976 additional_includedir="$withval/include"
16977 additional_libdir="$withval/lib"
16988 names_already_handled=
16989 names_next_round='iconv '
16990 while test -n "$names_next_round"; do
16991 names_this_round="$names_next_round"
16993 for name in $names_this_round; do
16995 for n in $names_already_handled; do
16996 if test "$n" = "$name"; then
16997 already_handled=yes
17001 if test -z "$already_handled"; then
17002 names_already_handled="$names_already_handled $name"
17003 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17004 eval value=\"\$HAVE_LIB$uppername\"
17005 if test -n "$value"; then
17006 if test "$value" = yes; then
17007 eval value=\"\$LIB$uppername\"
17008 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17009 eval value=\"\$LTLIB$uppername\"
17010 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17019 if test $use_additional = yes; then
17020 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17021 found_dir="$additional_libdir"
17022 found_so="$additional_libdir/lib$name.$shlibext"
17023 if test -f "$additional_libdir/lib$name.la"; then
17024 found_la="$additional_libdir/lib$name.la"
17027 if test -f "$additional_libdir/lib$name.$libext"; then
17028 found_dir="$additional_libdir"
17029 found_a="$additional_libdir/lib$name.$libext"
17030 if test -f "$additional_libdir/lib$name.la"; then
17031 found_la="$additional_libdir/lib$name.la"
17036 if test "X$found_dir" = "X"; then
17037 for x in $LDFLAGS $LTLIBICONV; do
17039 acl_save_prefix="$prefix"
17040 prefix="$acl_final_prefix"
17041 acl_save_exec_prefix="$exec_prefix"
17042 exec_prefix="$acl_final_exec_prefix"
17044 exec_prefix="$acl_save_exec_prefix"
17045 prefix="$acl_save_prefix"
17049 dir=`echo "X$x" | sed -e 's/^X-L//'`
17050 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17052 found_so="$dir/lib$name.$shlibext"
17053 if test -f "$dir/lib$name.la"; then
17054 found_la="$dir/lib$name.la"
17057 if test -f "$dir/lib$name.$libext"; then
17059 found_a="$dir/lib$name.$libext"
17060 if test -f "$dir/lib$name.la"; then
17061 found_la="$dir/lib$name.la"
17067 if test "X$found_dir" != "X"; then
17072 if test "X$found_dir" != "X"; then
17073 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17074 if test "X$found_so" != "X"; then
17075 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17076 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17079 for x in $ltrpathdirs; do
17080 if test "X$x" = "X$found_dir"; then
17085 if test -z "$haveit"; then
17086 ltrpathdirs="$ltrpathdirs $found_dir"
17088 if test "$hardcode_direct" = yes; then
17089 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17091 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17092 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17094 for x in $rpathdirs; do
17095 if test "X$x" = "X$found_dir"; then
17100 if test -z "$haveit"; then
17101 rpathdirs="$rpathdirs $found_dir"
17105 for x in $LDFLAGS $LIBICONV; do
17107 acl_save_prefix="$prefix"
17108 prefix="$acl_final_prefix"
17109 acl_save_exec_prefix="$exec_prefix"
17110 exec_prefix="$acl_final_exec_prefix"
17112 exec_prefix="$acl_save_exec_prefix"
17113 prefix="$acl_save_prefix"
17115 if test "X$x" = "X-L$found_dir"; then
17120 if test -z "$haveit"; then
17121 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17123 if test "$hardcode_minus_L" != no; then
17124 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17126 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17132 if test "X$found_a" != "X"; then
17133 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17135 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17138 additional_includedir=
17139 case "$found_dir" in
17141 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17142 additional_includedir="$basedir/include"
17145 if test "X$additional_includedir" != "X"; then
17146 if test "X$additional_includedir" != "X/usr/include"; then
17148 if test "X$additional_includedir" = "X/usr/local/include"; then
17149 if test -n "$GCC"; then
17151 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17155 if test -z "$haveit"; then
17156 for x in $CPPFLAGS $INCICONV; do
17158 acl_save_prefix="$prefix"
17159 prefix="$acl_final_prefix"
17160 acl_save_exec_prefix="$exec_prefix"
17161 exec_prefix="$acl_final_exec_prefix"
17163 exec_prefix="$acl_save_exec_prefix"
17164 prefix="$acl_save_prefix"
17166 if test "X$x" = "X-I$additional_includedir"; then
17171 if test -z "$haveit"; then
17172 if test -d "$additional_includedir"; then
17173 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17179 if test -n "$found_la"; then
17180 save_libdir="$libdir"
17181 case "$found_la" in
17182 */* | *\\*) . "$found_la" ;;
17183 *) . "./$found_la" ;;
17185 libdir="$save_libdir"
17186 for dep in $dependency_libs; do
17189 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17190 if test "X$additional_libdir" != "X/usr/lib"; then
17192 if test "X$additional_libdir" = "X/usr/local/lib"; then
17193 if test -n "$GCC"; then
17195 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17199 if test -z "$haveit"; then
17201 for x in $LDFLAGS $LIBICONV; do
17203 acl_save_prefix="$prefix"
17204 prefix="$acl_final_prefix"
17205 acl_save_exec_prefix="$exec_prefix"
17206 exec_prefix="$acl_final_exec_prefix"
17208 exec_prefix="$acl_save_exec_prefix"
17209 prefix="$acl_save_prefix"
17211 if test "X$x" = "X-L$additional_libdir"; then
17216 if test -z "$haveit"; then
17217 if test -d "$additional_libdir"; then
17218 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17222 for x in $LDFLAGS $LTLIBICONV; do
17224 acl_save_prefix="$prefix"
17225 prefix="$acl_final_prefix"
17226 acl_save_exec_prefix="$exec_prefix"
17227 exec_prefix="$acl_final_exec_prefix"
17229 exec_prefix="$acl_save_exec_prefix"
17230 prefix="$acl_save_prefix"
17232 if test "X$x" = "X-L$additional_libdir"; then
17237 if test -z "$haveit"; then
17238 if test -d "$additional_libdir"; then
17239 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17246 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17247 if test "$enable_rpath" != no; then
17249 for x in $rpathdirs; do
17250 if test "X$x" = "X$dir"; then
17255 if test -z "$haveit"; then
17256 rpathdirs="$rpathdirs $dir"
17259 for x in $ltrpathdirs; do
17260 if test "X$x" = "X$dir"; then
17265 if test -z "$haveit"; then
17266 ltrpathdirs="$ltrpathdirs $dir"
17271 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17274 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17277 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17278 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17284 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17285 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17291 if test "X$rpathdirs" != "X"; then
17292 if test -n "$hardcode_libdir_separator"; then
17294 for found_dir in $rpathdirs; do
17295 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17297 acl_save_libdir="$libdir"
17299 eval flag=\"$hardcode_libdir_flag_spec\"
17300 libdir="$acl_save_libdir"
17301 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17303 for found_dir in $rpathdirs; do
17304 acl_save_libdir="$libdir"
17305 libdir="$found_dir"
17306 eval flag=\"$hardcode_libdir_flag_spec\"
17307 libdir="$acl_save_libdir"
17308 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17312 if test "X$ltrpathdirs" != "X"; then
17313 for found_dir in $ltrpathdirs; do
17314 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17335 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17336 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17337 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17340 gt_save_CPPFLAGS="$CPPFLAGS"
17341 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17342 gt_save_LIBS="$LIBS"
17343 LIBS="$LIBS -framework CoreFoundation"
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 #include <CFPreferences.h>
17354 CFPreferencesCopyAppValue(NULL, NULL)
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } && {
17373 test -z "$ac_c_werror_flag" ||
17374 test ! -s conftest.err
17375 } && test -s conftest$ac_exeext &&
17376 $as_test_x conftest$ac_exeext; then
17377 gt_cv_func_CFPreferencesCopyAppValue=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 gt_cv_func_CFPreferencesCopyAppValue=no
17385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17386 conftest$ac_exeext conftest.$ac_ext
17387 CPPFLAGS="$gt_save_CPPFLAGS"
17388 LIBS="$gt_save_LIBS"
17390 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17391 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17392 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17394 cat >>confdefs.h <<\_ACEOF
17395 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17399 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17400 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17401 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17402 echo $ECHO_N "(cached) $ECHO_C" >&6
17404 gt_save_CPPFLAGS="$CPPFLAGS"
17405 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17406 gt_save_LIBS="$LIBS"
17407 LIBS="$LIBS -framework CoreFoundation"
17408 cat >conftest.$ac_ext <<_ACEOF
17411 cat confdefs.h >>conftest.$ac_ext
17412 cat >>conftest.$ac_ext <<_ACEOF
17413 /* end confdefs.h. */
17414 #include <CFLocale.h>
17418 CFLocaleCopyCurrent();
17423 rm -f conftest.$ac_objext conftest$ac_exeext
17424 if { (ac_try="$ac_link"
17425 case "(($ac_try" in
17426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427 *) ac_try_echo=$ac_try;;
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430 (eval "$ac_link") 2>conftest.er1
17432 grep -v '^ *+' conftest.er1 >conftest.err
17434 cat conftest.err >&5
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest$ac_exeext &&
17440 $as_test_x conftest$ac_exeext; then
17441 gt_cv_func_CFLocaleCopyCurrent=yes
17443 echo "$as_me: failed program was:" >&5
17444 sed 's/^/| /' conftest.$ac_ext >&5
17446 gt_cv_func_CFLocaleCopyCurrent=no
17449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17450 conftest$ac_exeext conftest.$ac_ext
17451 CPPFLAGS="$gt_save_CPPFLAGS"
17452 LIBS="$gt_save_LIBS"
17454 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17455 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17456 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17458 cat >>confdefs.h <<\_ACEOF
17459 #define HAVE_CFLOCALECOPYCURRENT 1
17464 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17465 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17471 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17472 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17473 # Check whether --enable-nls was given.
17474 if test "${enable_nls+set}" = set; then
17475 enableval=$enable_nls; USE_NLS=$enableval
17480 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17481 echo "${ECHO_T}$USE_NLS" >&6; }
17490 if test "$USE_NLS" = "yes"; then
17491 gt_use_preinstalled_gnugettext=no
17498 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17499 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17500 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 cat >conftest.$ac_ext <<_ACEOF
17506 cat confdefs.h >>conftest.$ac_ext
17507 cat >>conftest.$ac_ext <<_ACEOF
17508 /* end confdefs.h. */
17509 #include <libintl.h>
17510 extern int _nl_msg_cat_cntr;
17511 extern int *_nl_domain_bindings;
17515 bindtextdomain ("", "");
17516 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17521 rm -f conftest.$ac_objext conftest$ac_exeext
17522 if { (ac_try="$ac_link"
17523 case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_link") 2>conftest.er1
17530 grep -v '^ *+' conftest.er1 >conftest.err
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } && {
17535 test -z "$ac_c_werror_flag" ||
17536 test ! -s conftest.err
17537 } && test -s conftest$ac_exeext &&
17538 $as_test_x conftest$ac_exeext; then
17539 gt_cv_func_gnugettext1_libc=yes
17541 echo "$as_me: failed program was:" >&5
17542 sed 's/^/| /' conftest.$ac_ext >&5
17544 gt_cv_func_gnugettext1_libc=no
17547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17548 conftest$ac_exeext conftest.$ac_ext
17550 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17551 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17553 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17559 am_save_CPPFLAGS="$CPPFLAGS"
17561 for element in $INCICONV; do
17563 for x in $CPPFLAGS; do
17565 acl_save_prefix="$prefix"
17566 prefix="$acl_final_prefix"
17567 acl_save_exec_prefix="$exec_prefix"
17568 exec_prefix="$acl_final_exec_prefix"
17570 exec_prefix="$acl_save_exec_prefix"
17571 prefix="$acl_save_prefix"
17573 if test "X$x" = "X$element"; then
17578 if test -z "$haveit"; then
17579 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17584 { echo "$as_me:$LINENO: checking for iconv" >&5
17585 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17586 if test "${am_cv_func_iconv+set}" = set; then
17587 echo $ECHO_N "(cached) $ECHO_C" >&6
17590 am_cv_func_iconv="no, consider installing GNU libiconv"
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 #include <stdlib.h>
17603 iconv_t cd = iconv_open("","");
17604 iconv(cd,NULL,NULL,NULL,NULL);
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17619 grep -v '^ *+' conftest.er1 >conftest.err
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } && {
17624 test -z "$ac_c_werror_flag" ||
17625 test ! -s conftest.err
17626 } && test -s conftest$ac_exeext &&
17627 $as_test_x conftest$ac_exeext; then
17628 am_cv_func_iconv=yes
17630 echo "$as_me: failed program was:" >&5
17631 sed 's/^/| /' conftest.$ac_ext >&5
17636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17637 conftest$ac_exeext conftest.$ac_ext
17638 if test "$am_cv_func_iconv" != yes; then
17639 am_save_LIBS="$LIBS"
17640 LIBS="$LIBS $LIBICONV"
17641 cat >conftest.$ac_ext <<_ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647 #include <stdlib.h>
17652 iconv_t cd = iconv_open("","");
17653 iconv(cd,NULL,NULL,NULL,NULL);
17659 rm -f conftest.$ac_objext conftest$ac_exeext
17660 if { (ac_try="$ac_link"
17661 case "(($ac_try" in
17662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17663 *) ac_try_echo=$ac_try;;
17665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17666 (eval "$ac_link") 2>conftest.er1
17668 grep -v '^ *+' conftest.er1 >conftest.err
17670 cat conftest.err >&5
17671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17672 (exit $ac_status); } && {
17673 test -z "$ac_c_werror_flag" ||
17674 test ! -s conftest.err
17675 } && test -s conftest$ac_exeext &&
17676 $as_test_x conftest$ac_exeext; then
17677 am_cv_lib_iconv=yes
17678 am_cv_func_iconv=yes
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17687 conftest$ac_exeext conftest.$ac_ext
17688 LIBS="$am_save_LIBS"
17692 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17693 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17694 if test "$am_cv_func_iconv" = yes; then
17696 cat >>confdefs.h <<\_ACEOF
17697 #define HAVE_ICONV 1
17701 if test "$am_cv_lib_iconv" = yes; then
17702 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17703 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17704 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17705 echo "${ECHO_T}$LIBICONV" >&6; }
17707 CPPFLAGS="$am_save_CPPFLAGS"
17719 acl_save_prefix="$prefix"
17720 prefix="$acl_final_prefix"
17721 acl_save_exec_prefix="$exec_prefix"
17722 exec_prefix="$acl_final_exec_prefix"
17724 eval additional_includedir=\"$includedir\"
17725 eval additional_libdir=\"$libdir\"
17727 exec_prefix="$acl_save_exec_prefix"
17728 prefix="$acl_save_prefix"
17731 # Check whether --with-libintl-prefix was given.
17732 if test "${with_libintl_prefix+set}" = set; then
17733 withval=$with_libintl_prefix;
17734 if test "X$withval" = "Xno"; then
17737 if test "X$withval" = "X"; then
17739 acl_save_prefix="$prefix"
17740 prefix="$acl_final_prefix"
17741 acl_save_exec_prefix="$exec_prefix"
17742 exec_prefix="$acl_final_exec_prefix"
17744 eval additional_includedir=\"$includedir\"
17745 eval additional_libdir=\"$libdir\"
17747 exec_prefix="$acl_save_exec_prefix"
17748 prefix="$acl_save_prefix"
17751 additional_includedir="$withval/include"
17752 additional_libdir="$withval/lib"
17763 names_already_handled=
17764 names_next_round='intl '
17765 while test -n "$names_next_round"; do
17766 names_this_round="$names_next_round"
17768 for name in $names_this_round; do
17770 for n in $names_already_handled; do
17771 if test "$n" = "$name"; then
17772 already_handled=yes
17776 if test -z "$already_handled"; then
17777 names_already_handled="$names_already_handled $name"
17778 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17779 eval value=\"\$HAVE_LIB$uppername\"
17780 if test -n "$value"; then
17781 if test "$value" = yes; then
17782 eval value=\"\$LIB$uppername\"
17783 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17784 eval value=\"\$LTLIB$uppername\"
17785 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17794 if test $use_additional = yes; then
17795 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17796 found_dir="$additional_libdir"
17797 found_so="$additional_libdir/lib$name.$shlibext"
17798 if test -f "$additional_libdir/lib$name.la"; then
17799 found_la="$additional_libdir/lib$name.la"
17802 if test -f "$additional_libdir/lib$name.$libext"; then
17803 found_dir="$additional_libdir"
17804 found_a="$additional_libdir/lib$name.$libext"
17805 if test -f "$additional_libdir/lib$name.la"; then
17806 found_la="$additional_libdir/lib$name.la"
17811 if test "X$found_dir" = "X"; then
17812 for x in $LDFLAGS $LTLIBINTL; do
17814 acl_save_prefix="$prefix"
17815 prefix="$acl_final_prefix"
17816 acl_save_exec_prefix="$exec_prefix"
17817 exec_prefix="$acl_final_exec_prefix"
17819 exec_prefix="$acl_save_exec_prefix"
17820 prefix="$acl_save_prefix"
17824 dir=`echo "X$x" | sed -e 's/^X-L//'`
17825 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17827 found_so="$dir/lib$name.$shlibext"
17828 if test -f "$dir/lib$name.la"; then
17829 found_la="$dir/lib$name.la"
17832 if test -f "$dir/lib$name.$libext"; then
17834 found_a="$dir/lib$name.$libext"
17835 if test -f "$dir/lib$name.la"; then
17836 found_la="$dir/lib$name.la"
17842 if test "X$found_dir" != "X"; then
17847 if test "X$found_dir" != "X"; then
17848 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17849 if test "X$found_so" != "X"; then
17850 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17851 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17854 for x in $ltrpathdirs; do
17855 if test "X$x" = "X$found_dir"; then
17860 if test -z "$haveit"; then
17861 ltrpathdirs="$ltrpathdirs $found_dir"
17863 if test "$hardcode_direct" = yes; then
17864 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17866 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17867 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17869 for x in $rpathdirs; do
17870 if test "X$x" = "X$found_dir"; then
17875 if test -z "$haveit"; then
17876 rpathdirs="$rpathdirs $found_dir"
17880 for x in $LDFLAGS $LIBINTL; do
17882 acl_save_prefix="$prefix"
17883 prefix="$acl_final_prefix"
17884 acl_save_exec_prefix="$exec_prefix"
17885 exec_prefix="$acl_final_exec_prefix"
17887 exec_prefix="$acl_save_exec_prefix"
17888 prefix="$acl_save_prefix"
17890 if test "X$x" = "X-L$found_dir"; then
17895 if test -z "$haveit"; then
17896 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17898 if test "$hardcode_minus_L" != no; then
17899 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17901 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17907 if test "X$found_a" != "X"; then
17908 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17910 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17913 additional_includedir=
17914 case "$found_dir" in
17916 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17917 additional_includedir="$basedir/include"
17920 if test "X$additional_includedir" != "X"; then
17921 if test "X$additional_includedir" != "X/usr/include"; then
17923 if test "X$additional_includedir" = "X/usr/local/include"; then
17924 if test -n "$GCC"; then
17926 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17930 if test -z "$haveit"; then
17931 for x in $CPPFLAGS $INCINTL; do
17933 acl_save_prefix="$prefix"
17934 prefix="$acl_final_prefix"
17935 acl_save_exec_prefix="$exec_prefix"
17936 exec_prefix="$acl_final_exec_prefix"
17938 exec_prefix="$acl_save_exec_prefix"
17939 prefix="$acl_save_prefix"
17941 if test "X$x" = "X-I$additional_includedir"; then
17946 if test -z "$haveit"; then
17947 if test -d "$additional_includedir"; then
17948 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17954 if test -n "$found_la"; then
17955 save_libdir="$libdir"
17956 case "$found_la" in
17957 */* | *\\*) . "$found_la" ;;
17958 *) . "./$found_la" ;;
17960 libdir="$save_libdir"
17961 for dep in $dependency_libs; do
17964 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17965 if test "X$additional_libdir" != "X/usr/lib"; then
17967 if test "X$additional_libdir" = "X/usr/local/lib"; then
17968 if test -n "$GCC"; then
17970 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17974 if test -z "$haveit"; then
17976 for x in $LDFLAGS $LIBINTL; do
17978 acl_save_prefix="$prefix"
17979 prefix="$acl_final_prefix"
17980 acl_save_exec_prefix="$exec_prefix"
17981 exec_prefix="$acl_final_exec_prefix"
17983 exec_prefix="$acl_save_exec_prefix"
17984 prefix="$acl_save_prefix"
17986 if test "X$x" = "X-L$additional_libdir"; then
17991 if test -z "$haveit"; then
17992 if test -d "$additional_libdir"; then
17993 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17997 for x in $LDFLAGS $LTLIBINTL; do
17999 acl_save_prefix="$prefix"
18000 prefix="$acl_final_prefix"
18001 acl_save_exec_prefix="$exec_prefix"
18002 exec_prefix="$acl_final_exec_prefix"
18004 exec_prefix="$acl_save_exec_prefix"
18005 prefix="$acl_save_prefix"
18007 if test "X$x" = "X-L$additional_libdir"; then
18012 if test -z "$haveit"; then
18013 if test -d "$additional_libdir"; then
18014 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18021 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18022 if test "$enable_rpath" != no; then
18024 for x in $rpathdirs; do
18025 if test "X$x" = "X$dir"; then
18030 if test -z "$haveit"; then
18031 rpathdirs="$rpathdirs $dir"
18034 for x in $ltrpathdirs; do
18035 if test "X$x" = "X$dir"; then
18040 if test -z "$haveit"; then
18041 ltrpathdirs="$ltrpathdirs $dir"
18046 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18049 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18052 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18053 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18059 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18060 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18066 if test "X$rpathdirs" != "X"; then
18067 if test -n "$hardcode_libdir_separator"; then
18069 for found_dir in $rpathdirs; do
18070 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18072 acl_save_libdir="$libdir"
18074 eval flag=\"$hardcode_libdir_flag_spec\"
18075 libdir="$acl_save_libdir"
18076 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18078 for found_dir in $rpathdirs; do
18079 acl_save_libdir="$libdir"
18080 libdir="$found_dir"
18081 eval flag=\"$hardcode_libdir_flag_spec\"
18082 libdir="$acl_save_libdir"
18083 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18087 if test "X$ltrpathdirs" != "X"; then
18088 for found_dir in $ltrpathdirs; do
18089 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18093 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18094 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18095 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18096 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 gt_save_CPPFLAGS="$CPPFLAGS"
18099 CPPFLAGS="$CPPFLAGS $INCINTL"
18100 gt_save_LIBS="$LIBS"
18101 LIBS="$LIBS $LIBINTL"
18102 cat >conftest.$ac_ext <<_ACEOF
18105 cat confdefs.h >>conftest.$ac_ext
18106 cat >>conftest.$ac_ext <<_ACEOF
18107 /* end confdefs.h. */
18108 #include <libintl.h>
18109 extern int _nl_msg_cat_cntr;
18114 const char *_nl_expand_alias (const char *);
18118 bindtextdomain ("", "");
18119 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18124 rm -f conftest.$ac_objext conftest$ac_exeext
18125 if { (ac_try="$ac_link"
18126 case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_link") 2>conftest.er1
18133 grep -v '^ *+' conftest.er1 >conftest.err
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); } && {
18138 test -z "$ac_c_werror_flag" ||
18139 test ! -s conftest.err
18140 } && test -s conftest$ac_exeext &&
18141 $as_test_x conftest$ac_exeext; then
18142 gt_cv_func_gnugettext1_libintl=yes
18144 echo "$as_me: failed program was:" >&5
18145 sed 's/^/| /' conftest.$ac_ext >&5
18147 gt_cv_func_gnugettext1_libintl=no
18150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18151 conftest$ac_exeext conftest.$ac_ext
18152 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18153 LIBS="$LIBS $LIBICONV"
18154 cat >conftest.$ac_ext <<_ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h. */
18160 #include <libintl.h>
18161 extern int _nl_msg_cat_cntr;
18166 const char *_nl_expand_alias (const char *);
18170 bindtextdomain ("", "");
18171 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18176 rm -f conftest.$ac_objext conftest$ac_exeext
18177 if { (ac_try="$ac_link"
18178 case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_link") 2>conftest.er1
18185 grep -v '^ *+' conftest.er1 >conftest.err
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } && {
18190 test -z "$ac_c_werror_flag" ||
18191 test ! -s conftest.err
18192 } && test -s conftest$ac_exeext &&
18193 $as_test_x conftest$ac_exeext; then
18194 LIBINTL="$LIBINTL $LIBICONV"
18195 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18196 gt_cv_func_gnugettext1_libintl=yes
18199 echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18206 conftest$ac_exeext conftest.$ac_ext
18208 CPPFLAGS="$gt_save_CPPFLAGS"
18209 LIBS="$gt_save_LIBS"
18211 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18212 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18215 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18216 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18217 && test "$PACKAGE" != gettext-runtime \
18218 && test "$PACKAGE" != gettext-tools; }; then
18219 gt_use_preinstalled_gnugettext=yes
18228 if test -n "$INTL_MACOSX_LIBS"; then
18229 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18230 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18231 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18232 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18236 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18237 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18239 cat >>confdefs.h <<\_ACEOF
18240 #define ENABLE_NLS 1
18248 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18249 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18250 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18251 echo "${ECHO_T}$USE_NLS" >&6; }
18252 if test "$USE_NLS" = "yes"; then
18253 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18254 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18255 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18256 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18257 gt_source="external libintl"
18262 gt_source="included intl directory"
18264 { echo "$as_me:$LINENO: result: $gt_source" >&5
18265 echo "${ECHO_T}$gt_source" >&6; }
18268 if test "$USE_NLS" = "yes"; then
18270 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18271 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18272 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18273 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18274 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18275 echo "${ECHO_T}$LIBINTL" >&6; }
18277 for element in $INCINTL; do
18279 for x in $CPPFLAGS; do
18281 acl_save_prefix="$prefix"
18282 prefix="$acl_final_prefix"
18283 acl_save_exec_prefix="$exec_prefix"
18284 exec_prefix="$acl_final_exec_prefix"
18286 exec_prefix="$acl_save_exec_prefix"
18287 prefix="$acl_save_prefix"
18289 if test "X$x" = "X$element"; then
18294 if test -z "$haveit"; then
18295 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18302 cat >>confdefs.h <<\_ACEOF
18303 #define HAVE_GETTEXT 1
18307 cat >>confdefs.h <<\_ACEOF
18308 #define HAVE_DCGETTEXT 1
18318 INTLLIBS="$LIBINTL"
18326 if test x${prefix} = xNONE ; then
18327 if test `eval echo ${sysconfdir}` = NONE/etc ; then
18328 sysconfdir=/etc/bacula
18331 if test `eval echo ${libdir}` = NONE/lib ; then
18335 if test `eval echo ${includedir}` = NONE/include ; then
18336 includedir=/usr/include
18339 if test `eval echo ${datarootdir}` = NONE/share ; then
18340 datarootdir=/usr/share
18345 if test x${exec_prefix} = xNONE ; then
18346 exec_prefix=${prefix}
18349 sysconfdir=`eval echo ${sysconfdir}`
18350 datarootdir=`eval echo ${datarootdir}`
18351 docdir=`eval echo ${docdir}`
18352 htmldir=`eval echo ${htmldir}`
18353 libdir=`eval echo ${libdir}`
18354 includedir=`eval echo ${includedir}`
18355 localedir=`eval echo ${datarootdir}/locale`
18356 cat >>confdefs.h <<_ACEOF
18357 #define SYSCONFDIR "$sysconfdir"
18360 cat >>confdefs.h <<_ACEOF
18361 #define LOCALEDIR "$localedir"
18365 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18366 sbindir=${exec_prefix}/sbin
18368 sbindir=`eval echo ${sbindir}`
18370 if test x$mandir = x'${prefix}/man' ; then
18371 mandir=/usr/share/man
18374 if test x$htmldir = x${docdir} ; then
18375 htmldir=`eval echo ${docdir}bacula/html`
18378 if test x$docdir = x'/usr/share/doc/' ; then
18379 docdir=`eval echo ${docdir}bacula`
18383 for ac_prog in msgfmt
18385 # Extract the first word of "$ac_prog", so it can be a program name with args.
18386 set dummy $ac_prog; ac_word=$2
18387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18389 if test "${ac_cv_path_MSGFMT+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18398 for as_dir in $PATH
18401 test -z "$as_dir" && as_dir=.
18402 for ac_exec_ext in '' $ac_executable_extensions; do
18403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18404 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18415 MSGFMT=$ac_cv_path_MSGFMT
18416 if test -n "$MSGFMT"; then
18417 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18418 echo "${ECHO_T}$MSGFMT" >&6; }
18420 { echo "$as_me:$LINENO: result: no" >&5
18421 echo "${ECHO_T}no" >&6; }
18425 test -n "$MSGFMT" && break
18427 test -n "$MSGFMT" || MSGFMT="no"
18429 if test "$MSGFMT" = "no"
18431 echo 'msgfmt program not found, disabling NLS !'
18433 USE_INCLUDED_LIBINTL=no
18436 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18437 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18438 if test "${ac_cv_gnu_library_2+set}" = set; then
18439 echo $ECHO_N "(cached) $ECHO_C" >&6
18441 cat >conftest.$ac_ext <<_ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h. */
18448 #include <features.h>
18449 #ifdef __GNU_LIBRARY__
18450 #if (__GLIBC__ >= 2)
18456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18457 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18458 ac_cv_gnu_library_2=yes
18460 ac_cv_gnu_library_2=no
18467 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18468 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18470 GLIBC2="$ac_cv_gnu_library_2"
18473 if test -n "$ac_tool_prefix"; then
18474 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18475 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18478 if test "${ac_cv_prog_RANLIB+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 if test -n "$RANLIB"; then
18482 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18485 for as_dir in $PATH
18488 test -z "$as_dir" && as_dir=.
18489 for ac_exec_ext in '' $ac_executable_extensions; do
18490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18491 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18501 RANLIB=$ac_cv_prog_RANLIB
18502 if test -n "$RANLIB"; then
18503 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18504 echo "${ECHO_T}$RANLIB" >&6; }
18506 { echo "$as_me:$LINENO: result: no" >&5
18507 echo "${ECHO_T}no" >&6; }
18512 if test -z "$ac_cv_prog_RANLIB"; then
18513 ac_ct_RANLIB=$RANLIB
18514 # Extract the first word of "ranlib", so it can be a program name with args.
18515 set dummy ranlib; ac_word=$2
18516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18518 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18519 echo $ECHO_N "(cached) $ECHO_C" >&6
18521 if test -n "$ac_ct_RANLIB"; then
18522 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18525 for as_dir in $PATH
18528 test -z "$as_dir" && as_dir=.
18529 for ac_exec_ext in '' $ac_executable_extensions; do
18530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18531 ac_cv_prog_ac_ct_RANLIB="ranlib"
18532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18541 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18542 if test -n "$ac_ct_RANLIB"; then
18543 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18544 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18546 { echo "$as_me:$LINENO: result: no" >&5
18547 echo "${ECHO_T}no" >&6; }
18550 if test "x$ac_ct_RANLIB" = x; then
18553 case $cross_compiling:$ac_tool_warned in
18555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18556 whose name does not start with the host triplet. If you think this
18557 configuration is useful to you, please write to autoconf@gnu.org." >&5
18558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18559 whose name does not start with the host triplet. If you think this
18560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18561 ac_tool_warned=yes ;;
18563 RANLIB=$ac_ct_RANLIB
18566 RANLIB="$ac_cv_prog_RANLIB"
18570 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18571 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18572 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18575 ac_check_lib_save_LIBS=$LIBS
18576 LIBS="-lcposix $LIBS"
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18584 /* Override any GCC internal prototype to avoid an error.
18585 Use char because int might match the return type of a GCC
18586 builtin and then its argument prototype would still apply. */
18594 return strerror ();
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (ac_try="$ac_link"
18601 case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_link") 2>conftest.er1
18608 grep -v '^ *+' conftest.er1 >conftest.err
18610 cat conftest.err >&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } && {
18613 test -z "$ac_c_werror_flag" ||
18614 test ! -s conftest.err
18615 } && test -s conftest$ac_exeext &&
18616 $as_test_x conftest$ac_exeext; then
18617 ac_cv_lib_cposix_strerror=yes
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 ac_cv_lib_cposix_strerror=no
18625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18626 conftest$ac_exeext conftest.$ac_ext
18627 LIBS=$ac_check_lib_save_LIBS
18629 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18630 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18631 if test $ac_cv_lib_cposix_strerror = yes; then
18632 LIBS="$LIBS -lcposix"
18637 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18638 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18639 if test "${ac_cv_c_const+set}" = set; then
18640 echo $ECHO_N "(cached) $ECHO_C" >&6
18642 cat >conftest.$ac_ext <<_ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18652 /* FIXME: Include the comments suggested by Paul. */
18653 #ifndef __cplusplus
18654 /* Ultrix mips cc rejects this. */
18655 typedef int charset[2];
18657 /* SunOS 4.1.1 cc rejects this. */
18658 char const *const *pcpcc;
18660 /* NEC SVR4.0.2 mips cc rejects this. */
18661 struct point {int x, y;};
18662 static struct point const zero = {0,0};
18663 /* AIX XL C 1.02.0.0 rejects this.
18664 It does not let you subtract one const X* pointer from another in
18665 an arm of an if-expression whose if-part is not a constant
18667 const char *g = "string";
18668 pcpcc = &g + (g ? g-g : 0);
18669 /* HPUX 7.0 cc rejects these. */
18671 ppc = (char**) pcpcc;
18672 pcpcc = (char const *const *) ppc;
18673 { /* SCO 3.2v4 cc rejects this. */
18675 char const *s = 0 ? (char *) 0 : (char const *) 0;
18680 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18681 int x[] = {25, 17};
18682 const int *foo = &x[0];
18685 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18686 typedef const int *iptr;
18690 { /* AIX XL C 1.02.0.0 rejects this saying
18691 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18692 struct s { int j; const int *ap[3]; };
18693 struct s *b; b->j = 5;
18695 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18696 const int foo = 10;
18697 if (!foo) return 0;
18699 return !cs[0] && !zero.x;
18706 rm -f conftest.$ac_objext
18707 if { (ac_try="$ac_compile"
18708 case "(($ac_try" in
18709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18710 *) ac_try_echo=$ac_try;;
18712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18713 (eval "$ac_compile") 2>conftest.er1
18715 grep -v '^ *+' conftest.er1 >conftest.err
18717 cat conftest.err >&5
18718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18719 (exit $ac_status); } && {
18720 test -z "$ac_c_werror_flag" ||
18721 test ! -s conftest.err
18722 } && test -s conftest.$ac_objext; then
18725 echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18733 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18734 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18735 if test $ac_cv_c_const = no; then
18737 cat >>confdefs.h <<\_ACEOF
18744 { echo "$as_me:$LINENO: checking for signed" >&5
18745 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18746 if test "${bh_cv_c_signed+set}" = set; then
18747 echo $ECHO_N "(cached) $ECHO_C" >&6
18749 cat >conftest.$ac_ext <<_ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18764 rm -f conftest.$ac_objext
18765 if { (ac_try="$ac_compile"
18766 case "(($ac_try" in
18767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18768 *) ac_try_echo=$ac_try;;
18770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18771 (eval "$ac_compile") 2>conftest.er1
18773 grep -v '^ *+' conftest.er1 >conftest.err
18775 cat conftest.err >&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } && {
18778 test -z "$ac_c_werror_flag" ||
18779 test ! -s conftest.err
18780 } && test -s conftest.$ac_objext; then
18783 echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18791 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18792 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18793 if test $bh_cv_c_signed = no; then
18795 cat >>confdefs.h <<\_ACEOF
18801 { echo "$as_me:$LINENO: checking for inline" >&5
18802 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18803 if test "${ac_cv_c_inline+set}" = set; then
18804 echo $ECHO_N "(cached) $ECHO_C" >&6
18807 for ac_kw in inline __inline__ __inline; do
18808 cat >conftest.$ac_ext <<_ACEOF
18811 cat confdefs.h >>conftest.$ac_ext
18812 cat >>conftest.$ac_ext <<_ACEOF
18813 /* end confdefs.h. */
18814 #ifndef __cplusplus
18816 static $ac_kw foo_t static_foo () {return 0; }
18817 $ac_kw foo_t foo () {return 0; }
18821 rm -f conftest.$ac_objext
18822 if { (ac_try="$ac_compile"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_compile") 2>conftest.er1
18830 grep -v '^ *+' conftest.er1 >conftest.err
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest.$ac_objext; then
18838 ac_cv_c_inline=$ac_kw
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18847 test "$ac_cv_c_inline" != no && break
18851 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18852 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18855 case $ac_cv_c_inline in
18858 case $ac_cv_c_inline in
18860 *) ac_val=$ac_cv_c_inline;;
18862 cat >>confdefs.h <<_ACEOF
18863 #ifndef __cplusplus
18864 #define inline $ac_val
18870 { echo "$as_me:$LINENO: checking for off_t" >&5
18871 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18872 if test "${ac_cv_type_off_t+set}" = set; then
18873 echo $ECHO_N "(cached) $ECHO_C" >&6
18875 cat >conftest.$ac_ext <<_ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18881 $ac_includes_default
18882 typedef off_t ac__type_new_;
18886 if ((ac__type_new_ *) 0)
18888 if (sizeof (ac__type_new_))
18894 rm -f conftest.$ac_objext
18895 if { (ac_try="$ac_compile"
18896 case "(($ac_try" in
18897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18898 *) ac_try_echo=$ac_try;;
18900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18901 (eval "$ac_compile") 2>conftest.er1
18903 grep -v '^ *+' conftest.er1 >conftest.err
18905 cat conftest.err >&5
18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18907 (exit $ac_status); } && {
18908 test -z "$ac_c_werror_flag" ||
18909 test ! -s conftest.err
18910 } && test -s conftest.$ac_objext; then
18911 ac_cv_type_off_t=yes
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 ac_cv_type_off_t=no
18919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18921 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18922 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18923 if test $ac_cv_type_off_t = yes; then
18927 cat >>confdefs.h <<_ACEOF
18928 #define off_t long int
18933 { echo "$as_me:$LINENO: checking for size_t" >&5
18934 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18935 if test "${ac_cv_type_size_t+set}" = set; then
18936 echo $ECHO_N "(cached) $ECHO_C" >&6
18938 cat >conftest.$ac_ext <<_ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h. */
18944 $ac_includes_default
18945 typedef size_t ac__type_new_;
18949 if ((ac__type_new_ *) 0)
18951 if (sizeof (ac__type_new_))
18957 rm -f conftest.$ac_objext
18958 if { (ac_try="$ac_compile"
18959 case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18964 (eval "$ac_compile") 2>conftest.er1
18966 grep -v '^ *+' conftest.er1 >conftest.err
18968 cat conftest.err >&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } && {
18971 test -z "$ac_c_werror_flag" ||
18972 test ! -s conftest.err
18973 } && test -s conftest.$ac_objext; then
18974 ac_cv_type_size_t=yes
18976 echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18979 ac_cv_type_size_t=no
18982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18984 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
18985 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
18986 if test $ac_cv_type_size_t = yes; then
18990 cat >>confdefs.h <<_ACEOF
18991 #define size_t unsigned int
18997 { echo "$as_me:$LINENO: checking for long long" >&5
18998 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
18999 if test "${ac_cv_type_long_long+set}" = set; then
19000 echo $ECHO_N "(cached) $ECHO_C" >&6
19002 cat >conftest.$ac_ext <<_ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 long long ll = 1LL; int i = 63;
19012 long long llmax = (long long) -1;
19013 return ll << i | ll >> i | llmax / ll | llmax % ll;
19018 rm -f conftest.$ac_objext conftest$ac_exeext
19019 if { (ac_try="$ac_link"
19020 case "(($ac_try" in
19021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19022 *) ac_try_echo=$ac_try;;
19024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19025 (eval "$ac_link") 2>conftest.er1
19027 grep -v '^ *+' conftest.er1 >conftest.err
19029 cat conftest.err >&5
19030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031 (exit $ac_status); } && {
19032 test -z "$ac_c_werror_flag" ||
19033 test ! -s conftest.err
19034 } && test -s conftest$ac_exeext &&
19035 $as_test_x conftest$ac_exeext; then
19036 ac_cv_type_long_long=yes
19038 echo "$as_me: failed program was:" >&5
19039 sed 's/^/| /' conftest.$ac_ext >&5
19041 ac_cv_type_long_long=no
19044 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19045 conftest$ac_exeext conftest.$ac_ext
19047 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19048 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19049 if test $ac_cv_type_long_long = yes; then
19051 cat >>confdefs.h <<\_ACEOF
19052 #define HAVE_LONG_LONG 1
19058 { echo "$as_me:$LINENO: checking for long double" >&5
19059 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19060 if test "${gt_cv_c_long_double+set}" = set; then
19061 echo $ECHO_N "(cached) $ECHO_C" >&6
19063 if test "$GCC" = yes; then
19064 gt_cv_c_long_double=yes
19066 cat >conftest.$ac_ext <<_ACEOF
19069 cat confdefs.h >>conftest.$ac_ext
19070 cat >>conftest.$ac_ext <<_ACEOF
19071 /* end confdefs.h. */
19073 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19074 long double foo = 0.0;
19075 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19076 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19086 rm -f conftest.$ac_objext
19087 if { (ac_try="$ac_compile"
19088 case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_compile") 2>conftest.er1
19095 grep -v '^ *+' conftest.er1 >conftest.err
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } && {
19100 test -z "$ac_c_werror_flag" ||
19101 test ! -s conftest.err
19102 } && test -s conftest.$ac_objext; then
19103 gt_cv_c_long_double=yes
19105 echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19108 gt_cv_c_long_double=no
19111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19114 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19115 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19116 if test $gt_cv_c_long_double = yes; then
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE_LONG_DOUBLE 1
19125 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19126 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19127 if test "${gt_cv_c_wchar_t+set}" = set; then
19128 echo $ECHO_N "(cached) $ECHO_C" >&6
19130 cat >conftest.$ac_ext <<_ACEOF
19133 cat confdefs.h >>conftest.$ac_ext
19134 cat >>conftest.$ac_ext <<_ACEOF
19135 /* end confdefs.h. */
19136 #include <stddef.h>
19137 wchar_t foo = (wchar_t)'\0';
19146 rm -f conftest.$ac_objext
19147 if { (ac_try="$ac_compile"
19148 case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_compile") 2>conftest.er1
19155 grep -v '^ *+' conftest.er1 >conftest.err
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19159 (exit $ac_status); } && {
19160 test -z "$ac_c_werror_flag" ||
19161 test ! -s conftest.err
19162 } && test -s conftest.$ac_objext; then
19163 gt_cv_c_wchar_t=yes
19165 echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19174 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19175 if test $gt_cv_c_wchar_t = yes; then
19177 cat >>confdefs.h <<\_ACEOF
19178 #define HAVE_WCHAR_T 1
19184 { echo "$as_me:$LINENO: checking for wint_t" >&5
19185 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19186 if test "${gt_cv_c_wint_t+set}" = set; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 cat >conftest.$ac_ext <<_ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h. */
19196 wint_t foo = (wchar_t)'\0';
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_compile") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1 >conftest.err
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest.$ac_objext; then
19224 echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19233 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19234 if test $gt_cv_c_wint_t = yes; then
19236 cat >>confdefs.h <<\_ACEOF
19237 #define HAVE_WINT_T 1
19243 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19244 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19245 if test "${gl_cv_header_inttypes_h+set}" = set; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 cat >conftest.$ac_ext <<_ACEOF
19251 cat confdefs.h >>conftest.$ac_ext
19252 cat >>conftest.$ac_ext <<_ACEOF
19253 /* end confdefs.h. */
19254 #include <sys/types.h>
19255 #include <inttypes.h>
19259 uintmax_t i = (uintmax_t) -1;
19264 rm -f conftest.$ac_objext
19265 if { (ac_try="$ac_compile"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_compile") 2>conftest.er1
19273 grep -v '^ *+' conftest.er1 >conftest.err
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } && {
19278 test -z "$ac_c_werror_flag" ||
19279 test ! -s conftest.err
19280 } && test -s conftest.$ac_objext; then
19281 gl_cv_header_inttypes_h=yes
19283 echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19286 gl_cv_header_inttypes_h=no
19289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19291 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19292 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19293 if test $gl_cv_header_inttypes_h = yes; then
19295 cat >>confdefs.h <<_ACEOF
19296 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19302 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19303 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19304 if test "${gl_cv_header_stdint_h+set}" = set; then
19305 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 cat >conftest.$ac_ext <<_ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 #include <sys/types.h>
19314 #include <stdint.h>
19318 uintmax_t i = (uintmax_t) -1;
19323 rm -f conftest.$ac_objext
19324 if { (ac_try="$ac_compile"
19325 case "(($ac_try" in
19326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19327 *) ac_try_echo=$ac_try;;
19329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19330 (eval "$ac_compile") 2>conftest.er1
19332 grep -v '^ *+' conftest.er1 >conftest.err
19334 cat conftest.err >&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); } && {
19337 test -z "$ac_c_werror_flag" ||
19338 test ! -s conftest.err
19339 } && test -s conftest.$ac_objext; then
19340 gl_cv_header_stdint_h=yes
19342 echo "$as_me: failed program was:" >&5
19343 sed 's/^/| /' conftest.$ac_ext >&5
19345 gl_cv_header_stdint_h=no
19348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19350 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19351 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19352 if test $gl_cv_header_stdint_h = yes; then
19354 cat >>confdefs.h <<_ACEOF
19355 #define HAVE_STDINT_H_WITH_UINTMAX 1
19363 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19364 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19365 if test "${gt_cv_c_intmax_t+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19368 cat >conftest.$ac_ext <<_ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19375 #include <stddef.h>
19376 #include <stdlib.h>
19377 #if HAVE_STDINT_H_WITH_UINTMAX
19378 #include <stdint.h>
19380 #if HAVE_INTTYPES_H_WITH_UINTMAX
19381 #include <inttypes.h>
19392 rm -f conftest.$ac_objext
19393 if { (ac_try="$ac_compile"
19394 case "(($ac_try" in
19395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396 *) ac_try_echo=$ac_try;;
19398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399 (eval "$ac_compile") 2>conftest.er1
19401 grep -v '^ *+' conftest.er1 >conftest.err
19403 cat conftest.err >&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } && {
19406 test -z "$ac_c_werror_flag" ||
19407 test ! -s conftest.err
19408 } && test -s conftest.$ac_objext; then
19409 gt_cv_c_intmax_t=yes
19411 echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19414 gt_cv_c_intmax_t=no
19417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19420 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19421 if test $gt_cv_c_intmax_t = yes; then
19423 cat >>confdefs.h <<\_ACEOF
19424 #define HAVE_INTMAX_T 1
19431 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19432 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19433 if test "${gt_cv_func_printf_posix+set}" = set; then
19434 echo $ECHO_N "(cached) $ECHO_C" >&6
19437 if test "$cross_compiling" = yes; then
19439 cat >conftest.$ac_ext <<_ACEOF
19442 cat confdefs.h >>conftest.$ac_ext
19443 cat >>conftest.$ac_ext <<_ACEOF
19444 /* end confdefs.h. */
19446 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19452 $EGREP "notposix" >/dev/null 2>&1; then
19453 gt_cv_func_printf_posix="guessing no"
19455 gt_cv_func_printf_posix="guessing yes"
19461 cat >conftest.$ac_ext <<_ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19469 #include <string.h>
19470 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19471 dollar expansion (possibly an autoconf bug). */
19472 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19473 static char buf[100];
19476 sprintf (buf, format, 33, 55);
19477 return (strcmp (buf, "55 33") != 0);
19480 rm -f conftest$ac_exeext
19481 if { (ac_try="$ac_link"
19482 case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_link") 2>&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19491 { (case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_try") 2>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19500 gt_cv_func_printf_posix=yes
19502 echo "$as_me: program exited with status $ac_status" >&5
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19506 ( exit $ac_status )
19507 gt_cv_func_printf_posix=no
19509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19515 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19516 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19517 case $gt_cv_func_printf_posix in
19520 cat >>confdefs.h <<\_ACEOF
19521 #define HAVE_POSIX_PRINTF 1
19527 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19528 # for constant arguments. Useless!
19529 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19530 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19531 if test "${ac_cv_working_alloca_h+set}" = set; then
19532 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 cat >conftest.$ac_ext <<_ACEOF
19537 cat confdefs.h >>conftest.$ac_ext
19538 cat >>conftest.$ac_ext <<_ACEOF
19539 /* end confdefs.h. */
19540 #include <alloca.h>
19544 char *p = (char *) alloca (2 * sizeof (int));
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (ac_try="$ac_link"
19552 case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_link") 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest$ac_exeext &&
19567 $as_test_x conftest$ac_exeext; then
19568 ac_cv_working_alloca_h=yes
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19573 ac_cv_working_alloca_h=no
19576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19577 conftest$ac_exeext conftest.$ac_ext
19579 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19580 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19581 if test $ac_cv_working_alloca_h = yes; then
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE_ALLOCA_H 1
19589 { echo "$as_me:$LINENO: checking for alloca" >&5
19590 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19591 if test "${ac_cv_func_alloca_works+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 cat >conftest.$ac_ext <<_ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h. */
19601 # define alloca __builtin_alloca
19604 # include <malloc.h>
19605 # define alloca _alloca
19607 # ifdef HAVE_ALLOCA_H
19608 # include <alloca.h>
19613 # ifndef alloca /* predefined by HP cc +Olibcalls */
19624 char *p = (char *) alloca (1);
19630 rm -f conftest.$ac_objext conftest$ac_exeext
19631 if { (ac_try="$ac_link"
19632 case "(($ac_try" in
19633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634 *) ac_try_echo=$ac_try;;
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637 (eval "$ac_link") 2>conftest.er1
19639 grep -v '^ *+' conftest.er1 >conftest.err
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } && {
19644 test -z "$ac_c_werror_flag" ||
19645 test ! -s conftest.err
19646 } && test -s conftest$ac_exeext &&
19647 $as_test_x conftest$ac_exeext; then
19648 ac_cv_func_alloca_works=yes
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_cv_func_alloca_works=no
19656 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19657 conftest$ac_exeext conftest.$ac_ext
19659 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19660 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19662 if test $ac_cv_func_alloca_works = yes; then
19664 cat >>confdefs.h <<\_ACEOF
19665 #define HAVE_ALLOCA 1
19669 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19670 # that cause trouble. Some versions do not even contain alloca or
19671 # contain a buggy version. If you still want to use their alloca,
19672 # use ar to extract alloca.o from them instead of compiling alloca.c.
19674 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19676 cat >>confdefs.h <<\_ACEOF
19681 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19682 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19683 if test "${ac_cv_os_cray+set}" = set; then
19684 echo $ECHO_N "(cached) $ECHO_C" >&6
19686 cat >conftest.$ac_ext <<_ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 #if defined CRAY && ! defined CRAY2
19699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19700 $EGREP "webecray" >/dev/null 2>&1; then
19708 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19709 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19710 if test $ac_cv_os_cray = yes; then
19711 for ac_func in _getb67 GETB67 getb67; do
19712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19713 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19715 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 cat >conftest.$ac_ext <<_ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19726 #define $ac_func innocuous_$ac_func
19728 /* System header to define __stub macros and hopefully few prototypes,
19729 which can conflict with char $ac_func (); below.
19730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19731 <limits.h> exists even on freestanding compilers. */
19734 # include <limits.h>
19736 # include <assert.h>
19741 /* Override any GCC internal prototype to avoid an error.
19742 Use char because int might match the return type of a GCC
19743 builtin and then its argument prototype would still apply. */
19748 /* The GNU C library defines this for functions which it implements
19749 to always fail with ENOSYS. Some functions are actually named
19750 something starting with __ and the normal name is an alias. */
19751 #if defined __stub_$ac_func || defined __stub___$ac_func
19758 return $ac_func ();
19763 rm -f conftest.$ac_objext conftest$ac_exeext
19764 if { (ac_try="$ac_link"
19765 case "(($ac_try" in
19766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19767 *) ac_try_echo=$ac_try;;
19769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19770 (eval "$ac_link") 2>conftest.er1
19772 grep -v '^ *+' conftest.er1 >conftest.err
19774 cat conftest.err >&5
19775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19776 (exit $ac_status); } && {
19777 test -z "$ac_c_werror_flag" ||
19778 test ! -s conftest.err
19779 } && test -s conftest$ac_exeext &&
19780 $as_test_x conftest$ac_exeext; then
19781 eval "$as_ac_var=yes"
19783 echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.$ac_ext >&5
19786 eval "$as_ac_var=no"
19789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19790 conftest$ac_exeext conftest.$ac_ext
19792 ac_res=`eval echo '${'$as_ac_var'}'`
19793 { echo "$as_me:$LINENO: result: $ac_res" >&5
19794 echo "${ECHO_T}$ac_res" >&6; }
19795 if test `eval echo '${'$as_ac_var'}'` = yes; then
19797 cat >>confdefs.h <<_ACEOF
19798 #define CRAY_STACKSEG_END $ac_func
19807 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19808 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19809 if test "${ac_cv_c_stack_direction+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19812 if test "$cross_compiling" = yes; then
19813 ac_cv_c_stack_direction=0
19815 cat >conftest.$ac_ext <<_ACEOF
19818 cat confdefs.h >>conftest.$ac_ext
19819 cat >>conftest.$ac_ext <<_ACEOF
19820 /* end confdefs.h. */
19821 $ac_includes_default
19823 find_stack_direction ()
19825 static char *addr = 0;
19830 return find_stack_direction ();
19833 return (&dummy > addr) ? 1 : -1;
19839 return find_stack_direction () < 0;
19842 rm -f conftest$ac_exeext
19843 if { (ac_try="$ac_link"
19844 case "(($ac_try" in
19845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19846 *) ac_try_echo=$ac_try;;
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_link") 2>&5
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19853 { (case "(($ac_try" in
19854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19855 *) ac_try_echo=$ac_try;;
19857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19858 (eval "$ac_try") 2>&5
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 ac_cv_c_stack_direction=1
19864 echo "$as_me: program exited with status $ac_status" >&5
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19868 ( exit $ac_status )
19869 ac_cv_c_stack_direction=-1
19871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19876 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19877 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19879 cat >>confdefs.h <<_ACEOF
19880 #define STACK_DIRECTION $ac_cv_c_stack_direction
19888 for ac_header in stdlib.h unistd.h
19890 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19891 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19897 ac_res=`eval echo '${'$as_ac_Header'}'`
19898 { echo "$as_me:$LINENO: result: $ac_res" >&5
19899 echo "${ECHO_T}$ac_res" >&6; }
19901 # Is the header compilable?
19902 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19903 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19904 cat >conftest.$ac_ext <<_ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910 $ac_includes_default
19911 #include <$ac_header>
19913 rm -f conftest.$ac_objext
19914 if { (ac_try="$ac_compile"
19915 case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19920 (eval "$ac_compile") 2>conftest.er1
19922 grep -v '^ *+' conftest.er1 >conftest.err
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } && {
19927 test -z "$ac_c_werror_flag" ||
19928 test ! -s conftest.err
19929 } && test -s conftest.$ac_objext; then
19930 ac_header_compiler=yes
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_header_compiler=no
19938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19940 echo "${ECHO_T}$ac_header_compiler" >&6; }
19942 # Is the header present?
19943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19945 cat >conftest.$ac_ext <<_ACEOF
19948 cat confdefs.h >>conftest.$ac_ext
19949 cat >>conftest.$ac_ext <<_ACEOF
19950 /* end confdefs.h. */
19951 #include <$ac_header>
19953 if { (ac_try="$ac_cpp conftest.$ac_ext"
19954 case "(($ac_try" in
19955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19956 *) ac_try_echo=$ac_try;;
19958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19961 grep -v '^ *+' conftest.er1 >conftest.err
19963 cat conftest.err >&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } >/dev/null && {
19966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19967 test ! -s conftest.err
19969 ac_header_preproc=yes
19971 echo "$as_me: failed program was:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19974 ac_header_preproc=no
19977 rm -f conftest.err conftest.$ac_ext
19978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19979 echo "${ECHO_T}$ac_header_preproc" >&6; }
19981 # So? What about this header?
19982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19984 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19985 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19988 ac_header_preproc=yes
19991 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19992 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19993 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19994 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19995 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19996 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19997 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19998 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20002 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20006 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20007 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20009 echo $ECHO_N "(cached) $ECHO_C" >&6
20011 eval "$as_ac_Header=\$ac_header_preproc"
20013 ac_res=`eval echo '${'$as_ac_Header'}'`
20014 { echo "$as_me:$LINENO: result: $ac_res" >&5
20015 echo "${ECHO_T}$ac_res" >&6; }
20018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20019 cat >>confdefs.h <<_ACEOF
20020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20028 for ac_func in getpagesize
20030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20034 echo $ECHO_N "(cached) $ECHO_C" >&6
20036 cat >conftest.$ac_ext <<_ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h. */
20042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20044 #define $ac_func innocuous_$ac_func
20046 /* System header to define __stub macros and hopefully few prototypes,
20047 which can conflict with char $ac_func (); below.
20048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20049 <limits.h> exists even on freestanding compilers. */
20052 # include <limits.h>
20054 # include <assert.h>
20059 /* Override any GCC internal prototype to avoid an error.
20060 Use char because int might match the return type of a GCC
20061 builtin and then its argument prototype would still apply. */
20066 /* The GNU C library defines this for functions which it implements
20067 to always fail with ENOSYS. Some functions are actually named
20068 something starting with __ and the normal name is an alias. */
20069 #if defined __stub_$ac_func || defined __stub___$ac_func
20076 return $ac_func ();
20081 rm -f conftest.$ac_objext conftest$ac_exeext
20082 if { (ac_try="$ac_link"
20083 case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_link") 2>conftest.er1
20090 grep -v '^ *+' conftest.er1 >conftest.err
20092 cat conftest.err >&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } && {
20095 test -z "$ac_c_werror_flag" ||
20096 test ! -s conftest.err
20097 } && test -s conftest$ac_exeext &&
20098 $as_test_x conftest$ac_exeext; then
20099 eval "$as_ac_var=yes"
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20104 eval "$as_ac_var=no"
20107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20108 conftest$ac_exeext conftest.$ac_ext
20110 ac_res=`eval echo '${'$as_ac_var'}'`
20111 { echo "$as_me:$LINENO: result: $ac_res" >&5
20112 echo "${ECHO_T}$ac_res" >&6; }
20113 if test `eval echo '${'$as_ac_var'}'` = yes; then
20114 cat >>confdefs.h <<_ACEOF
20115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20121 { echo "$as_me:$LINENO: checking for working mmap" >&5
20122 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20123 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20126 if test "$cross_compiling" = yes; then
20127 ac_cv_func_mmap_fixed_mapped=no
20129 cat >conftest.$ac_ext <<_ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 $ac_includes_default
20136 /* malloc might have been renamed as rpl_malloc. */
20139 /* Thanks to Mike Haertel and Jim Avera for this test.
20140 Here is a matrix of mmap possibilities:
20141 mmap private not fixed
20142 mmap private fixed at somewhere currently unmapped
20143 mmap private fixed at somewhere already mapped
20144 mmap shared not fixed
20145 mmap shared fixed at somewhere currently unmapped
20146 mmap shared fixed at somewhere already mapped
20147 For private mappings, we should verify that changes cannot be read()
20148 back from the file, nor mmap's back from the file at a different
20149 address. (There have been systems where private was not correctly
20150 implemented like the infamous i386 svr4.0, and systems where the
20151 VM page cache was not coherent with the file system buffer cache
20152 like early versions of FreeBSD and possibly contemporary NetBSD.)
20153 For shared mappings, we should conversely verify that changes get
20154 propagated back to all the places they're supposed to be.
20156 Grep wants private fixed already mapped.
20157 The main things grep needs to know about mmap are:
20158 * does it exist and is it safe to write into the mmap'd area
20159 * how to use it (BSD variants) */
20162 #include <sys/mman.h>
20164 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20168 /* This mess was copied from the GNU getpagesize.h. */
20169 #ifndef HAVE_GETPAGESIZE
20170 /* Assume that all systems that can run configure have sys/param.h. */
20171 # ifndef HAVE_SYS_PARAM_H
20172 # define HAVE_SYS_PARAM_H 1
20175 # ifdef _SC_PAGESIZE
20176 # define getpagesize() sysconf(_SC_PAGESIZE)
20177 # else /* no _SC_PAGESIZE */
20178 # ifdef HAVE_SYS_PARAM_H
20179 # include <sys/param.h>
20180 # ifdef EXEC_PAGESIZE
20181 # define getpagesize() EXEC_PAGESIZE
20182 # else /* no EXEC_PAGESIZE */
20184 # define getpagesize() NBPG * CLSIZE
20187 # endif /* no CLSIZE */
20188 # else /* no NBPG */
20190 # define getpagesize() NBPC
20191 # else /* no NBPC */
20193 # define getpagesize() PAGESIZE
20194 # endif /* PAGESIZE */
20195 # endif /* no NBPC */
20196 # endif /* no NBPG */
20197 # endif /* no EXEC_PAGESIZE */
20198 # else /* no HAVE_SYS_PARAM_H */
20199 # define getpagesize() 8192 /* punt totally */
20200 # endif /* no HAVE_SYS_PARAM_H */
20201 # endif /* no _SC_PAGESIZE */
20203 #endif /* no HAVE_GETPAGESIZE */
20208 char *data, *data2, *data3;
20212 pagesize = getpagesize ();
20214 /* First, make a file with some known garbage in it. */
20215 data = (char *) malloc (pagesize);
20218 for (i = 0; i < pagesize; ++i)
20219 *(data + i) = rand ();
20221 fd = creat ("conftest.mmap", 0600);
20224 if (write (fd, data, pagesize) != pagesize)
20228 /* Next, try to mmap the file at a fixed address which already has
20229 something else allocated at it. If we can, also make sure that
20230 we see the same garbage. */
20231 fd = open ("conftest.mmap", O_RDWR);
20234 data2 = (char *) malloc (2 * pagesize);
20237 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20238 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20239 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20241 for (i = 0; i < pagesize; ++i)
20242 if (*(data + i) != *(data2 + i))
20245 /* Finally, make sure that changes to the mapped area do not
20246 percolate back to the file as seen by read(). (This is a bug on
20247 some variants of i386 svr4.0.) */
20248 for (i = 0; i < pagesize; ++i)
20249 *(data2 + i) = *(data2 + i) + 1;
20250 data3 = (char *) malloc (pagesize);
20253 if (read (fd, data3, pagesize) != pagesize)
20255 for (i = 0; i < pagesize; ++i)
20256 if (*(data + i) != *(data3 + i))
20262 rm -f conftest$ac_exeext
20263 if { (ac_try="$ac_link"
20264 case "(($ac_try" in
20265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20266 *) ac_try_echo=$ac_try;;
20268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20269 (eval "$ac_link") 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_cv_func_mmap_fixed_mapped=yes
20284 echo "$as_me: program exited with status $ac_status" >&5
20285 echo "$as_me: failed program was:" >&5
20286 sed 's/^/| /' conftest.$ac_ext >&5
20288 ( exit $ac_status )
20289 ac_cv_func_mmap_fixed_mapped=no
20291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20296 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20297 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20298 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20300 cat >>confdefs.h <<\_ACEOF
20301 #define HAVE_MMAP 1
20305 rm -f conftest.mmap
20308 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20309 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20310 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 cat >conftest.$ac_ext <<_ACEOF
20316 cat confdefs.h >>conftest.$ac_ext
20317 cat >>conftest.$ac_ext <<_ACEOF
20318 /* end confdefs.h. */
20320 #include <features.h>
20321 #ifdef __GNU_LIBRARY__
20322 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20329 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20330 ac_cv_gnu_library_2_1=yes
20332 ac_cv_gnu_library_2_1=no
20339 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20340 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20342 GLIBC21="$ac_cv_gnu_library_2_1"
20347 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20348 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20349 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20350 echo $ECHO_N "(cached) $ECHO_C" >&6
20353 if test "$cross_compiling" = yes; then
20355 # Guess based on the CPU.
20356 case "$host_cpu" in
20357 alpha* | i3456786 | m68k | s390*)
20358 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20360 gt_cv_int_divbyzero_sigfpe="guessing no";;
20364 cat >conftest.$ac_ext <<_ACEOF
20367 cat confdefs.h >>conftest.$ac_ext
20368 cat >>conftest.$ac_ext <<_ACEOF
20369 /* end confdefs.h. */
20371 #include <stdlib.h>
20372 #include <signal.h>
20376 sigfpe_handler (int sig)
20378 sigfpe_handler (sig) int sig;
20381 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20382 exit (sig != SIGFPE);
20392 signal (SIGFPE, sigfpe_handler);
20393 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20394 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20395 signal (SIGTRAP, sigfpe_handler);
20397 /* Linux/SPARC yields signal SIGILL. */
20398 #if defined (__sparc__) && defined (__linux__)
20399 signal (SIGILL, sigfpe_handler);
20408 rm -f conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_link") 2>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20419 { (case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_try") 2>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; }; then
20428 gt_cv_int_divbyzero_sigfpe=yes
20430 echo "$as_me: program exited with status $ac_status" >&5
20431 echo "$as_me: failed program was:" >&5
20432 sed 's/^/| /' conftest.$ac_ext >&5
20434 ( exit $ac_status )
20435 gt_cv_int_divbyzero_sigfpe=no
20437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20443 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20444 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20445 case "$gt_cv_int_divbyzero_sigfpe" in
20450 cat >>confdefs.h <<_ACEOF
20451 #define INTDIV0_RAISES_SIGFPE $value
20456 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20457 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20458 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20459 echo $ECHO_N "(cached) $ECHO_C" >&6
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20467 unsigned long long ull = 1ULL; int i = 63;
20471 unsigned long long ullmax = (unsigned long long) -1;
20472 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_link") 2>conftest.er1
20486 grep -v '^ *+' conftest.er1 >conftest.err
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20490 (exit $ac_status); } && {
20491 test -z "$ac_c_werror_flag" ||
20492 test ! -s conftest.err
20493 } && test -s conftest$ac_exeext &&
20494 $as_test_x conftest$ac_exeext; then
20495 ac_cv_type_unsigned_long_long=yes
20497 echo "$as_me: failed program was:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 ac_cv_type_unsigned_long_long=no
20503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20504 conftest$ac_exeext conftest.$ac_ext
20506 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20507 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20508 if test $ac_cv_type_unsigned_long_long = yes; then
20510 cat >>confdefs.h <<\_ACEOF
20511 #define HAVE_UNSIGNED_LONG_LONG 1
20519 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20521 test $ac_cv_type_unsigned_long_long = yes \
20522 && ac_type='unsigned long long' \
20523 || ac_type='unsigned long'
20525 cat >>confdefs.h <<_ACEOF
20526 #define uintmax_t $ac_type
20531 cat >>confdefs.h <<\_ACEOF
20532 #define HAVE_UINTMAX_T 1
20538 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20539 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20540 if test "${gt_cv_header_inttypes_h+set}" = set; then
20541 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20550 #include <sys/types.h>
20551 #include <inttypes.h>
20560 rm -f conftest.$ac_objext
20561 if { (ac_try="$ac_compile"
20562 case "(($ac_try" in
20563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20564 *) ac_try_echo=$ac_try;;
20566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20567 (eval "$ac_compile") 2>conftest.er1
20569 grep -v '^ *+' conftest.er1 >conftest.err
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } && {
20574 test -z "$ac_c_werror_flag" ||
20575 test ! -s conftest.err
20576 } && test -s conftest.$ac_objext; then
20577 gt_cv_header_inttypes_h=yes
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 gt_cv_header_inttypes_h=no
20585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20588 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20589 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20590 if test $gt_cv_header_inttypes_h = yes; then
20592 cat >>confdefs.h <<_ACEOF
20593 #define HAVE_INTTYPES_H 1
20600 if test $gt_cv_header_inttypes_h = yes; then
20601 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20602 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20603 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20607 cat >conftest.$ac_ext <<_ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20613 #include <inttypes.h>
20626 rm -f conftest.$ac_objext
20627 if { (ac_try="$ac_compile"
20628 case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_compile") 2>conftest.er1
20635 grep -v '^ *+' conftest.er1 >conftest.err
20637 cat conftest.err >&5
20638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639 (exit $ac_status); } && {
20640 test -z "$ac_c_werror_flag" ||
20641 test ! -s conftest.err
20642 } && test -s conftest.$ac_objext; then
20643 gt_cv_inttypes_pri_broken=no
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 gt_cv_inttypes_pri_broken=yes
20651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20654 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20655 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20657 if test "$gt_cv_inttypes_pri_broken" = yes; then
20659 cat >>confdefs.h <<_ACEOF
20660 #define PRI_MACROS_BROKEN 1
20667 for ac_header in stdint.h
20669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20676 ac_res=`eval echo '${'$as_ac_Header'}'`
20677 { echo "$as_me:$LINENO: result: $ac_res" >&5
20678 echo "${ECHO_T}$ac_res" >&6; }
20680 # Is the header compilable?
20681 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20682 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20683 cat >conftest.$ac_ext <<_ACEOF
20686 cat confdefs.h >>conftest.$ac_ext
20687 cat >>conftest.$ac_ext <<_ACEOF
20688 /* end confdefs.h. */
20689 $ac_includes_default
20690 #include <$ac_header>
20692 rm -f conftest.$ac_objext
20693 if { (ac_try="$ac_compile"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_compile") 2>conftest.er1
20701 grep -v '^ *+' conftest.er1 >conftest.err
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest.$ac_objext; then
20709 ac_header_compiler=yes
20711 echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20714 ac_header_compiler=no
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20719 echo "${ECHO_T}$ac_header_compiler" >&6; }
20721 # Is the header present?
20722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20724 cat >conftest.$ac_ext <<_ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 #include <$ac_header>
20732 if { (ac_try="$ac_cpp conftest.$ac_ext"
20733 case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20740 grep -v '^ *+' conftest.er1 >conftest.err
20742 cat conftest.err >&5
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); } >/dev/null && {
20745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20746 test ! -s conftest.err
20748 ac_header_preproc=yes
20750 echo "$as_me: failed program was:" >&5
20751 sed 's/^/| /' conftest.$ac_ext >&5
20753 ac_header_preproc=no
20756 rm -f conftest.err conftest.$ac_ext
20757 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20758 echo "${ECHO_T}$ac_header_preproc" >&6; }
20760 # So? What about this header?
20761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20763 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20764 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20766 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20767 ac_header_preproc=yes
20770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20774 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20775 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20776 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20777 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20779 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20781 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20788 echo $ECHO_N "(cached) $ECHO_C" >&6
20790 eval "$as_ac_Header=\$ac_header_preproc"
20792 ac_res=`eval echo '${'$as_ac_Header'}'`
20793 { echo "$as_me:$LINENO: result: $ac_res" >&5
20794 echo "${ECHO_T}$ac_res" >&6; }
20797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20798 cat >>confdefs.h <<_ACEOF
20799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20806 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20807 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20809 cat >conftest.$ac_ext <<_ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h. */
20816 #include <limits.h>
20818 #include <stdint.h>
20825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20826 $EGREP "Found it" >/dev/null 2>&1; then
20831 if test -z "$result"; then
20832 if test "$cross_compiling" = yes; then
20833 # Depending upon the size, compute the lo and hi bounds.
20834 cat >conftest.$ac_ext <<_ACEOF
20837 cat confdefs.h >>conftest.$ac_ext
20838 cat >>conftest.$ac_ext <<_ACEOF
20839 /* end confdefs.h. */
20840 #include <stddef.h>
20844 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20851 rm -f conftest.$ac_objext
20852 if { (ac_try="$ac_compile"
20853 case "(($ac_try" in
20854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20855 *) ac_try_echo=$ac_try;;
20857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20858 (eval "$ac_compile") 2>conftest.er1
20860 grep -v '^ *+' conftest.er1 >conftest.err
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } && {
20865 test -z "$ac_c_werror_flag" ||
20866 test ! -s conftest.err
20867 } && test -s conftest.$ac_objext; then
20870 cat >conftest.$ac_ext <<_ACEOF
20873 cat confdefs.h >>conftest.$ac_ext
20874 cat >>conftest.$ac_ext <<_ACEOF
20875 /* end confdefs.h. */
20876 #include <stddef.h>
20880 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20887 rm -f conftest.$ac_objext
20888 if { (ac_try="$ac_compile"
20889 case "(($ac_try" in
20890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894 (eval "$ac_compile") 2>conftest.er1
20896 grep -v '^ *+' conftest.er1 >conftest.err
20898 cat conftest.err >&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } && {
20901 test -z "$ac_c_werror_flag" ||
20902 test ! -s conftest.err
20903 } && test -s conftest.$ac_objext; then
20904 ac_hi=$ac_mid; break
20906 echo "$as_me: failed program was:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ac_lo=`expr $ac_mid + 1`
20910 if test $ac_lo -le $ac_mid; then
20914 ac_mid=`expr 2 '*' $ac_mid + 1`
20917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920 echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20923 cat >conftest.$ac_ext <<_ACEOF
20926 cat confdefs.h >>conftest.$ac_ext
20927 cat >>conftest.$ac_ext <<_ACEOF
20928 /* end confdefs.h. */
20929 #include <stddef.h>
20933 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20940 rm -f conftest.$ac_objext
20941 if { (ac_try="$ac_compile"
20942 case "(($ac_try" in
20943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20944 *) ac_try_echo=$ac_try;;
20946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20947 (eval "$ac_compile") 2>conftest.er1
20949 grep -v '^ *+' conftest.er1 >conftest.err
20951 cat conftest.err >&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); } && {
20954 test -z "$ac_c_werror_flag" ||
20955 test ! -s conftest.err
20956 } && test -s conftest.$ac_objext; then
20959 cat >conftest.$ac_ext <<_ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 #include <stddef.h>
20969 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20976 rm -f conftest.$ac_objext
20977 if { (ac_try="$ac_compile"
20978 case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20983 (eval "$ac_compile") 2>conftest.er1
20985 grep -v '^ *+' conftest.er1 >conftest.err
20987 cat conftest.err >&5
20988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20989 (exit $ac_status); } && {
20990 test -z "$ac_c_werror_flag" ||
20991 test ! -s conftest.err
20992 } && test -s conftest.$ac_objext; then
20993 ac_lo=$ac_mid; break
20995 echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20998 ac_hi=`expr '(' $ac_mid ')' - 1`
20999 if test $ac_mid -le $ac_hi; then
21003 ac_mid=`expr 2 '*' $ac_mid`
21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21019 # Binary search between lo and hi bounds.
21020 while test "x$ac_lo" != "x$ac_hi"; do
21021 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21022 cat >conftest.$ac_ext <<_ACEOF
21025 cat confdefs.h >>conftest.$ac_ext
21026 cat >>conftest.$ac_ext <<_ACEOF
21027 /* end confdefs.h. */
21028 #include <stddef.h>
21032 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21039 rm -f conftest.$ac_objext
21040 if { (ac_try="$ac_compile"
21041 case "(($ac_try" in
21042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21043 *) ac_try_echo=$ac_try;;
21045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21046 (eval "$ac_compile") 2>conftest.er1
21048 grep -v '^ *+' conftest.er1 >conftest.err
21050 cat conftest.err >&5
21051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052 (exit $ac_status); } && {
21053 test -z "$ac_c_werror_flag" ||
21054 test ! -s conftest.err
21055 } && test -s conftest.$ac_objext; then
21058 echo "$as_me: failed program was:" >&5
21059 sed 's/^/| /' conftest.$ac_ext >&5
21061 ac_lo=`expr '(' $ac_mid ')' + 1`
21064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21067 ?*) res_hi=$ac_lo;;
21071 cat >conftest.$ac_ext <<_ACEOF
21074 cat confdefs.h >>conftest.$ac_ext
21075 cat >>conftest.$ac_ext <<_ACEOF
21076 /* end confdefs.h. */
21077 #include <stddef.h>
21078 static long int longval () { return ~(size_t)0 / 10; }
21079 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21081 #include <stdlib.h>
21086 FILE *f = fopen ("conftest.val", "w");
21089 if ((~(size_t)0 / 10) < 0)
21091 long int i = longval ();
21092 if (i != (~(size_t)0 / 10))
21094 fprintf (f, "%ld\n", i);
21098 unsigned long int i = ulongval ();
21099 if (i != (~(size_t)0 / 10))
21101 fprintf (f, "%lu\n", i);
21103 return ferror (f) || fclose (f) != 0;
21109 rm -f conftest$ac_exeext
21110 if { (ac_try="$ac_link"
21111 case "(($ac_try" in
21112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113 *) ac_try_echo=$ac_try;;
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116 (eval "$ac_link") 2>&5
21118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21119 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21120 { (case "(($ac_try" in
21121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21122 *) ac_try_echo=$ac_try;;
21124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21125 (eval "$ac_try") 2>&5
21127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128 (exit $ac_status); }; }; then
21129 res_hi=`cat conftest.val`
21131 echo "$as_me: program exited with status $ac_status" >&5
21132 echo "$as_me: failed program was:" >&5
21133 sed 's/^/| /' conftest.$ac_ext >&5
21135 ( exit $ac_status )
21138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21142 if test "$cross_compiling" = yes; then
21143 # Depending upon the size, compute the lo and hi bounds.
21144 cat >conftest.$ac_ext <<_ACEOF
21147 cat confdefs.h >>conftest.$ac_ext
21148 cat >>conftest.$ac_ext <<_ACEOF
21149 /* end confdefs.h. */
21150 #include <stddef.h>
21154 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21161 rm -f conftest.$ac_objext
21162 if { (ac_try="$ac_compile"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_compile") 2>conftest.er1
21170 grep -v '^ *+' conftest.er1 >conftest.err
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest.$ac_objext; then
21180 cat >conftest.$ac_ext <<_ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 #include <stddef.h>
21190 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21197 rm -f conftest.$ac_objext
21198 if { (ac_try="$ac_compile"
21199 case "(($ac_try" in
21200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201 *) ac_try_echo=$ac_try;;
21203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21204 (eval "$ac_compile") 2>conftest.er1
21206 grep -v '^ *+' conftest.er1 >conftest.err
21208 cat conftest.err >&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } && {
21211 test -z "$ac_c_werror_flag" ||
21212 test ! -s conftest.err
21213 } && test -s conftest.$ac_objext; then
21214 ac_hi=$ac_mid; break
21216 echo "$as_me: failed program was:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21219 ac_lo=`expr $ac_mid + 1`
21220 if test $ac_lo -le $ac_mid; then
21224 ac_mid=`expr 2 '*' $ac_mid + 1`
21227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21230 echo "$as_me: failed program was:" >&5
21231 sed 's/^/| /' conftest.$ac_ext >&5
21233 cat >conftest.$ac_ext <<_ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h. */
21239 #include <stddef.h>
21243 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21250 rm -f conftest.$ac_objext
21251 if { (ac_try="$ac_compile"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21257 (eval "$ac_compile") 2>conftest.er1
21259 grep -v '^ *+' conftest.er1 >conftest.err
21261 cat conftest.err >&5
21262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21263 (exit $ac_status); } && {
21264 test -z "$ac_c_werror_flag" ||
21265 test ! -s conftest.err
21266 } && test -s conftest.$ac_objext; then
21269 cat >conftest.$ac_ext <<_ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275 #include <stddef.h>
21279 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21286 rm -f conftest.$ac_objext
21287 if { (ac_try="$ac_compile"
21288 case "(($ac_try" in
21289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290 *) ac_try_echo=$ac_try;;
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293 (eval "$ac_compile") 2>conftest.er1
21295 grep -v '^ *+' conftest.er1 >conftest.err
21297 cat conftest.err >&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } && {
21300 test -z "$ac_c_werror_flag" ||
21301 test ! -s conftest.err
21302 } && test -s conftest.$ac_objext; then
21303 ac_lo=$ac_mid; break
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 ac_hi=`expr '(' $ac_mid ')' - 1`
21309 if test $ac_mid -le $ac_hi; then
21313 ac_mid=`expr 2 '*' $ac_mid`
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 echo "$as_me: failed program was:" >&5
21320 sed 's/^/| /' conftest.$ac_ext >&5
21325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21329 # Binary search between lo and hi bounds.
21330 while test "x$ac_lo" != "x$ac_hi"; do
21331 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21332 cat >conftest.$ac_ext <<_ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h. */
21338 #include <stddef.h>
21342 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21349 rm -f conftest.$ac_objext
21350 if { (ac_try="$ac_compile"
21351 case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21356 (eval "$ac_compile") 2>conftest.er1
21358 grep -v '^ *+' conftest.er1 >conftest.err
21360 cat conftest.err >&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } && {
21363 test -z "$ac_c_werror_flag" ||
21364 test ! -s conftest.err
21365 } && test -s conftest.$ac_objext; then
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 ac_lo=`expr '(' $ac_mid ')' + 1`
21374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21377 ?*) res_lo=$ac_lo;;
21381 cat >conftest.$ac_ext <<_ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21387 #include <stddef.h>
21388 static long int longval () { return ~(size_t)0 % 10; }
21389 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21391 #include <stdlib.h>
21396 FILE *f = fopen ("conftest.val", "w");
21399 if ((~(size_t)0 % 10) < 0)
21401 long int i = longval ();
21402 if (i != (~(size_t)0 % 10))
21404 fprintf (f, "%ld\n", i);
21408 unsigned long int i = ulongval ();
21409 if (i != (~(size_t)0 % 10))
21411 fprintf (f, "%lu\n", i);
21413 return ferror (f) || fclose (f) != 0;
21419 rm -f conftest$ac_exeext
21420 if { (ac_try="$ac_link"
21421 case "(($ac_try" in
21422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423 *) ac_try_echo=$ac_try;;
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426 (eval "$ac_link") 2>&5
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21430 { (case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_try") 2>&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); }; }; then
21439 res_lo=`cat conftest.val`
21441 echo "$as_me: program exited with status $ac_status" >&5
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21445 ( exit $ac_status )
21448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21452 if test "$cross_compiling" = yes; then
21453 # Depending upon the size, compute the lo and hi bounds.
21454 cat >conftest.$ac_ext <<_ACEOF
21457 cat confdefs.h >>conftest.$ac_ext
21458 cat >>conftest.$ac_ext <<_ACEOF
21459 /* end confdefs.h. */
21460 #include <stddef.h>
21464 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21471 rm -f conftest.$ac_objext
21472 if { (ac_try="$ac_compile"
21473 case "(($ac_try" in
21474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21475 *) ac_try_echo=$ac_try;;
21477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21478 (eval "$ac_compile") 2>conftest.er1
21480 grep -v '^ *+' conftest.er1 >conftest.err
21482 cat conftest.err >&5
21483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484 (exit $ac_status); } && {
21485 test -z "$ac_c_werror_flag" ||
21486 test ! -s conftest.err
21487 } && test -s conftest.$ac_objext; then
21490 cat >conftest.$ac_ext <<_ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21496 #include <stddef.h>
21500 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21507 rm -f conftest.$ac_objext
21508 if { (ac_try="$ac_compile"
21509 case "(($ac_try" in
21510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511 *) ac_try_echo=$ac_try;;
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514 (eval "$ac_compile") 2>conftest.er1
21516 grep -v '^ *+' conftest.er1 >conftest.err
21518 cat conftest.err >&5
21519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21520 (exit $ac_status); } && {
21521 test -z "$ac_c_werror_flag" ||
21522 test ! -s conftest.err
21523 } && test -s conftest.$ac_objext; then
21524 ac_hi=$ac_mid; break
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21529 ac_lo=`expr $ac_mid + 1`
21530 if test $ac_lo -le $ac_mid; then
21534 ac_mid=`expr 2 '*' $ac_mid + 1`
21537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540 echo "$as_me: failed program was:" >&5
21541 sed 's/^/| /' conftest.$ac_ext >&5
21543 cat >conftest.$ac_ext <<_ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h. */
21549 #include <stddef.h>
21553 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21560 rm -f conftest.$ac_objext
21561 if { (ac_try="$ac_compile"
21562 case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_compile") 2>conftest.er1
21569 grep -v '^ *+' conftest.er1 >conftest.err
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } && {
21574 test -z "$ac_c_werror_flag" ||
21575 test ! -s conftest.err
21576 } && test -s conftest.$ac_objext; then
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 #include <stddef.h>
21589 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21596 rm -f conftest.$ac_objext
21597 if { (ac_try="$ac_compile"
21598 case "(($ac_try" in
21599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21600 *) ac_try_echo=$ac_try;;
21602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21603 (eval "$ac_compile") 2>conftest.er1
21605 grep -v '^ *+' conftest.er1 >conftest.err
21607 cat conftest.err >&5
21608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); } && {
21610 test -z "$ac_c_werror_flag" ||
21611 test ! -s conftest.err
21612 } && test -s conftest.$ac_objext; then
21613 ac_lo=$ac_mid; break
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21618 ac_hi=`expr '(' $ac_mid ')' - 1`
21619 if test $ac_mid -le $ac_hi; then
21623 ac_mid=`expr 2 '*' $ac_mid`
21626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21629 echo "$as_me: failed program was:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 # Binary search between lo and hi bounds.
21640 while test "x$ac_lo" != "x$ac_hi"; do
21641 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21642 cat >conftest.$ac_ext <<_ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h. */
21648 #include <stddef.h>
21652 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21659 rm -f conftest.$ac_objext
21660 if { (ac_try="$ac_compile"
21661 case "(($ac_try" in
21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663 *) ac_try_echo=$ac_try;;
21665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21666 (eval "$ac_compile") 2>conftest.er1
21668 grep -v '^ *+' conftest.er1 >conftest.err
21670 cat conftest.err >&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); } && {
21673 test -z "$ac_c_werror_flag" ||
21674 test ! -s conftest.err
21675 } && test -s conftest.$ac_objext; then
21678 echo "$as_me: failed program was:" >&5
21679 sed 's/^/| /' conftest.$ac_ext >&5
21681 ac_lo=`expr '(' $ac_mid ')' + 1`
21684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21687 ?*) fits_in_uint=$ac_lo;;
21691 cat >conftest.$ac_ext <<_ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h. */
21697 #include <stddef.h>
21698 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21699 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21701 #include <stdlib.h>
21706 FILE *f = fopen ("conftest.val", "w");
21709 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21711 long int i = longval ();
21712 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21714 fprintf (f, "%ld\n", i);
21718 unsigned long int i = ulongval ();
21719 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21721 fprintf (f, "%lu\n", i);
21723 return ferror (f) || fclose (f) != 0;
21729 rm -f conftest$ac_exeext
21730 if { (ac_try="$ac_link"
21731 case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21736 (eval "$ac_link") 2>&5
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21740 { (case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_try") 2>&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; }; then
21749 fits_in_uint=`cat conftest.val`
21751 echo "$as_me: program exited with status $ac_status" >&5
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ( exit $ac_status )
21758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21762 if test "$fits_in_uint" = 1; then
21763 cat >conftest.$ac_ext <<_ACEOF
21766 cat confdefs.h >>conftest.$ac_ext
21767 cat >>conftest.$ac_ext <<_ACEOF
21768 /* end confdefs.h. */
21769 #include <stddef.h>
21771 extern unsigned long foo;
21781 rm -f conftest.$ac_objext
21782 if { (ac_try="$ac_compile"
21783 case "(($ac_try" in
21784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21785 *) ac_try_echo=$ac_try;;
21787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21788 (eval "$ac_compile") 2>conftest.er1
21790 grep -v '^ *+' conftest.er1 >conftest.err
21792 cat conftest.err >&5
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); } && {
21795 test -z "$ac_c_werror_flag" ||
21796 test ! -s conftest.err
21797 } && test -s conftest.$ac_objext; then
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808 if test -z "$result"; then
21809 if test "$fits_in_uint" = 1; then
21810 result="$res_hi$res_lo"U
21812 result="$res_hi$res_lo"UL
21815 result='~(size_t)0'
21818 { echo "$as_me:$LINENO: result: $result" >&5
21819 echo "${ECHO_T}$result" >&6; }
21820 if test "$result" != yes; then
21822 cat >>confdefs.h <<_ACEOF
21823 #define SIZE_MAX $result
21832 for ac_header in stdint.h
21834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21836 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21841 ac_res=`eval echo '${'$as_ac_Header'}'`
21842 { echo "$as_me:$LINENO: result: $ac_res" >&5
21843 echo "${ECHO_T}$ac_res" >&6; }
21845 # Is the header compilable?
21846 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21847 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21848 cat >conftest.$ac_ext <<_ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 $ac_includes_default
21855 #include <$ac_header>
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21866 grep -v '^ *+' conftest.er1 >conftest.err
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.$ac_objext; then
21874 ac_header_compiler=yes
21876 echo "$as_me: failed program was:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 ac_header_compiler=no
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21884 echo "${ECHO_T}$ac_header_compiler" >&6; }
21886 # Is the header present?
21887 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21888 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 #include <$ac_header>
21897 if { (ac_try="$ac_cpp conftest.$ac_ext"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21905 grep -v '^ *+' conftest.er1 >conftest.err
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21909 (exit $ac_status); } >/dev/null && {
21910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21911 test ! -s conftest.err
21913 ac_header_preproc=yes
21915 echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_header_preproc=no
21921 rm -f conftest.err conftest.$ac_ext
21922 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21923 echo "${ECHO_T}$ac_header_preproc" >&6; }
21925 # So? What about this header?
21926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21932 ac_header_preproc=yes
21935 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21936 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21937 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21938 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21939 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21940 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21941 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21942 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21946 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21953 echo $ECHO_N "(cached) $ECHO_C" >&6
21955 eval "$as_ac_Header=\$ac_header_preproc"
21957 ac_res=`eval echo '${'$as_ac_Header'}'`
21958 { echo "$as_me:$LINENO: result: $ac_res" >&5
21959 echo "${ECHO_T}$ac_res" >&6; }
21962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21963 cat >>confdefs.h <<_ACEOF
21964 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21978 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21979 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21980 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21981 echo $ECHO_N "(cached) $ECHO_C" >&6
21983 cat >conftest.$ac_ext <<_ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21989 $ac_includes_default
21990 typedef ptrdiff_t ac__type_new_;
21994 if ((ac__type_new_ *) 0)
21996 if (sizeof (ac__type_new_))
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_compile") 2>conftest.er1
22011 grep -v '^ *+' conftest.er1 >conftest.err
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && {
22016 test -z "$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22018 } && test -s conftest.$ac_objext; then
22019 ac_cv_type_ptrdiff_t=yes
22021 echo "$as_me: failed program was:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22024 ac_cv_type_ptrdiff_t=no
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22029 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22030 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22031 if test $ac_cv_type_ptrdiff_t = yes; then
22035 cat >>confdefs.h <<\_ACEOF
22036 #define ptrdiff_t long
22052 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22053 stdlib.h string.h unistd.h sys/param.h
22055 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 ac_res=`eval echo '${'$as_ac_Header'}'`
22063 { echo "$as_me:$LINENO: result: $ac_res" >&5
22064 echo "${ECHO_T}$ac_res" >&6; }
22066 # Is the header compilable?
22067 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22068 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22069 cat >conftest.$ac_ext <<_ACEOF
22072 cat confdefs.h >>conftest.$ac_ext
22073 cat >>conftest.$ac_ext <<_ACEOF
22074 /* end confdefs.h. */
22075 $ac_includes_default
22076 #include <$ac_header>
22078 rm -f conftest.$ac_objext
22079 if { (ac_try="$ac_compile"
22080 case "(($ac_try" in
22081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22082 *) ac_try_echo=$ac_try;;
22084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22085 (eval "$ac_compile") 2>conftest.er1
22087 grep -v '^ *+' conftest.er1 >conftest.err
22089 cat conftest.err >&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } && {
22092 test -z "$ac_c_werror_flag" ||
22093 test ! -s conftest.err
22094 } && test -s conftest.$ac_objext; then
22095 ac_header_compiler=yes
22097 echo "$as_me: failed program was:" >&5
22098 sed 's/^/| /' conftest.$ac_ext >&5
22100 ac_header_compiler=no
22103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22104 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22105 echo "${ECHO_T}$ac_header_compiler" >&6; }
22107 # Is the header present?
22108 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22110 cat >conftest.$ac_ext <<_ACEOF
22113 cat confdefs.h >>conftest.$ac_ext
22114 cat >>conftest.$ac_ext <<_ACEOF
22115 /* end confdefs.h. */
22116 #include <$ac_header>
22118 if { (ac_try="$ac_cpp conftest.$ac_ext"
22119 case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22126 grep -v '^ *+' conftest.er1 >conftest.err
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } >/dev/null && {
22131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22132 test ! -s conftest.err
22134 ac_header_preproc=yes
22136 echo "$as_me: failed program was:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22139 ac_header_preproc=no
22142 rm -f conftest.err conftest.$ac_ext
22143 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22144 echo "${ECHO_T}$ac_header_preproc" >&6; }
22146 # So? What about this header?
22147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22149 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22150 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22152 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22153 ac_header_preproc=yes
22156 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22157 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22158 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22159 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22160 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22161 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22162 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22163 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22164 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22165 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22166 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22167 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22171 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22174 echo $ECHO_N "(cached) $ECHO_C" >&6
22176 eval "$as_ac_Header=\$ac_header_preproc"
22178 ac_res=`eval echo '${'$as_ac_Header'}'`
22179 { echo "$as_me:$LINENO: result: $ac_res" >&5
22180 echo "${ECHO_T}$ac_res" >&6; }
22183 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22184 cat >>confdefs.h <<_ACEOF
22185 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22215 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22216 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22217 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22224 echo $ECHO_N "(cached) $ECHO_C" >&6
22226 cat >conftest.$ac_ext <<_ACEOF
22229 cat confdefs.h >>conftest.$ac_ext
22230 cat >>conftest.$ac_ext <<_ACEOF
22231 /* end confdefs.h. */
22232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22234 #define $ac_func innocuous_$ac_func
22236 /* System header to define __stub macros and hopefully few prototypes,
22237 which can conflict with char $ac_func (); below.
22238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22239 <limits.h> exists even on freestanding compilers. */
22242 # include <limits.h>
22244 # include <assert.h>
22249 /* Override any GCC internal prototype to avoid an error.
22250 Use char because int might match the return type of a GCC
22251 builtin and then its argument prototype would still apply. */
22256 /* The GNU C library defines this for functions which it implements
22257 to always fail with ENOSYS. Some functions are actually named
22258 something starting with __ and the normal name is an alias. */
22259 #if defined __stub_$ac_func || defined __stub___$ac_func
22266 return $ac_func ();
22271 rm -f conftest.$ac_objext conftest$ac_exeext
22272 if { (ac_try="$ac_link"
22273 case "(($ac_try" in
22274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22275 *) ac_try_echo=$ac_try;;
22277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22278 (eval "$ac_link") 2>conftest.er1
22280 grep -v '^ *+' conftest.er1 >conftest.err
22282 cat conftest.err >&5
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); } && {
22285 test -z "$ac_c_werror_flag" ||
22286 test ! -s conftest.err
22287 } && test -s conftest$ac_exeext &&
22288 $as_test_x conftest$ac_exeext; then
22289 eval "$as_ac_var=yes"
22291 echo "$as_me: failed program was:" >&5
22292 sed 's/^/| /' conftest.$ac_ext >&5
22294 eval "$as_ac_var=no"
22297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22298 conftest$ac_exeext conftest.$ac_ext
22300 ac_res=`eval echo '${'$as_ac_var'}'`
22301 { echo "$as_me:$LINENO: result: $ac_res" >&5
22302 echo "${ECHO_T}$ac_res" >&6; }
22303 if test `eval echo '${'$as_ac_var'}'` = yes; then
22304 cat >>confdefs.h <<_ACEOF
22305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22313 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22314 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22315 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22316 echo $ECHO_N "(cached) $ECHO_C" >&6
22318 cat >conftest.$ac_ext <<_ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h. */
22330 char *p = (char *) _snprintf;
22337 rm -f conftest.$ac_objext
22338 if { (ac_try="$ac_compile"
22339 case "(($ac_try" in
22340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341 *) ac_try_echo=$ac_try;;
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344 (eval "$ac_compile") 2>conftest.er1
22346 grep -v '^ *+' conftest.er1 >conftest.err
22348 cat conftest.err >&5
22349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22350 (exit $ac_status); } && {
22351 test -z "$ac_c_werror_flag" ||
22352 test ! -s conftest.err
22353 } && test -s conftest.$ac_objext; then
22354 ac_cv_have_decl__snprintf=yes
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22359 ac_cv_have_decl__snprintf=no
22362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22364 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22365 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22366 if test $ac_cv_have_decl__snprintf = yes; then
22372 cat >>confdefs.h <<_ACEOF
22373 #define HAVE_DECL__SNPRINTF $gt_value
22378 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22379 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22380 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22381 echo $ECHO_N "(cached) $ECHO_C" >&6
22383 cat >conftest.$ac_ext <<_ACEOF
22386 cat confdefs.h >>conftest.$ac_ext
22387 cat >>conftest.$ac_ext <<_ACEOF
22388 /* end confdefs.h. */
22395 char *p = (char *) _snwprintf;
22402 rm -f conftest.$ac_objext
22403 if { (ac_try="$ac_compile"
22404 case "(($ac_try" in
22405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406 *) ac_try_echo=$ac_try;;
22408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22409 (eval "$ac_compile") 2>conftest.er1
22411 grep -v '^ *+' conftest.er1 >conftest.err
22413 cat conftest.err >&5
22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); } && {
22416 test -z "$ac_c_werror_flag" ||
22417 test ! -s conftest.err
22418 } && test -s conftest.$ac_objext; then
22419 ac_cv_have_decl__snwprintf=yes
22421 echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.$ac_ext >&5
22424 ac_cv_have_decl__snwprintf=no
22427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22429 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22430 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22431 if test $ac_cv_have_decl__snwprintf = yes; then
22437 cat >>confdefs.h <<_ACEOF
22438 #define HAVE_DECL__SNWPRINTF $gt_value
22444 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22445 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22446 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22447 echo $ECHO_N "(cached) $ECHO_C" >&6
22449 cat >conftest.$ac_ext <<_ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22460 #ifndef feof_unlocked
22461 char *p = (char *) feof_unlocked;
22468 rm -f conftest.$ac_objext
22469 if { (ac_try="$ac_compile"
22470 case "(($ac_try" in
22471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22472 *) ac_try_echo=$ac_try;;
22474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22475 (eval "$ac_compile") 2>conftest.er1
22477 grep -v '^ *+' conftest.er1 >conftest.err
22479 cat conftest.err >&5
22480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481 (exit $ac_status); } && {
22482 test -z "$ac_c_werror_flag" ||
22483 test ! -s conftest.err
22484 } && test -s conftest.$ac_objext; then
22485 ac_cv_have_decl_feof_unlocked=yes
22487 echo "$as_me: failed program was:" >&5
22488 sed 's/^/| /' conftest.$ac_ext >&5
22490 ac_cv_have_decl_feof_unlocked=no
22493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22496 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22497 if test $ac_cv_have_decl_feof_unlocked = yes; then
22503 cat >>confdefs.h <<_ACEOF
22504 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22509 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22510 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22511 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
22514 cat >conftest.$ac_ext <<_ACEOF
22517 cat confdefs.h >>conftest.$ac_ext
22518 cat >>conftest.$ac_ext <<_ACEOF
22519 /* end confdefs.h. */
22525 #ifndef fgets_unlocked
22526 char *p = (char *) fgets_unlocked;
22533 rm -f conftest.$ac_objext
22534 if { (ac_try="$ac_compile"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540 (eval "$ac_compile") 2>conftest.er1
22542 grep -v '^ *+' conftest.er1 >conftest.err
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } && {
22547 test -z "$ac_c_werror_flag" ||
22548 test ! -s conftest.err
22549 } && test -s conftest.$ac_objext; then
22550 ac_cv_have_decl_fgets_unlocked=yes
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 ac_cv_have_decl_fgets_unlocked=no
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22561 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22562 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22568 cat >>confdefs.h <<_ACEOF
22569 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22574 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22575 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22576 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22577 echo $ECHO_N "(cached) $ECHO_C" >&6
22579 cat >conftest.$ac_ext <<_ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22590 #ifndef getc_unlocked
22591 char *p = (char *) getc_unlocked;
22598 rm -f conftest.$ac_objext
22599 if { (ac_try="$ac_compile"
22600 case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22605 (eval "$ac_compile") 2>conftest.er1
22607 grep -v '^ *+' conftest.er1 >conftest.err
22609 cat conftest.err >&5
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); } && {
22612 test -z "$ac_c_werror_flag" ||
22613 test ! -s conftest.err
22614 } && test -s conftest.$ac_objext; then
22615 ac_cv_have_decl_getc_unlocked=yes
22617 echo "$as_me: failed program was:" >&5
22618 sed 's/^/| /' conftest.$ac_ext >&5
22620 ac_cv_have_decl_getc_unlocked=no
22623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22625 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22626 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22627 if test $ac_cv_have_decl_getc_unlocked = yes; then
22633 cat >>confdefs.h <<_ACEOF
22634 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22639 case $gt_cv_func_printf_posix in
22640 *yes) HAVE_POSIX_PRINTF=1 ;;
22641 *) HAVE_POSIX_PRINTF=0 ;;
22644 if test "$ac_cv_func_asprintf" = yes; then
22650 if test "$ac_cv_func_snprintf" = yes; then
22656 if test "$ac_cv_func_wprintf" = yes; then
22668 am_save_CPPFLAGS="$CPPFLAGS"
22670 for element in $INCICONV; do
22672 for x in $CPPFLAGS; do
22674 acl_save_prefix="$prefix"
22675 prefix="$acl_final_prefix"
22676 acl_save_exec_prefix="$exec_prefix"
22677 exec_prefix="$acl_final_exec_prefix"
22679 exec_prefix="$acl_save_exec_prefix"
22680 prefix="$acl_save_prefix"
22682 if test "X$x" = "X$element"; then
22687 if test -z "$haveit"; then
22688 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22693 { echo "$as_me:$LINENO: checking for iconv" >&5
22694 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22695 if test "${am_cv_func_iconv+set}" = set; then
22696 echo $ECHO_N "(cached) $ECHO_C" >&6
22699 am_cv_func_iconv="no, consider installing GNU libiconv"
22701 cat >conftest.$ac_ext <<_ACEOF
22704 cat confdefs.h >>conftest.$ac_ext
22705 cat >>conftest.$ac_ext <<_ACEOF
22706 /* end confdefs.h. */
22707 #include <stdlib.h>
22712 iconv_t cd = iconv_open("","");
22713 iconv(cd,NULL,NULL,NULL,NULL);
22719 rm -f conftest.$ac_objext conftest$ac_exeext
22720 if { (ac_try="$ac_link"
22721 case "(($ac_try" in
22722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22723 *) ac_try_echo=$ac_try;;
22725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22726 (eval "$ac_link") 2>conftest.er1
22728 grep -v '^ *+' conftest.er1 >conftest.err
22730 cat conftest.err >&5
22731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22732 (exit $ac_status); } && {
22733 test -z "$ac_c_werror_flag" ||
22734 test ! -s conftest.err
22735 } && test -s conftest$ac_exeext &&
22736 $as_test_x conftest$ac_exeext; then
22737 am_cv_func_iconv=yes
22739 echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22746 conftest$ac_exeext conftest.$ac_ext
22747 if test "$am_cv_func_iconv" != yes; then
22748 am_save_LIBS="$LIBS"
22749 LIBS="$LIBS $LIBICONV"
22750 cat >conftest.$ac_ext <<_ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h. */
22756 #include <stdlib.h>
22761 iconv_t cd = iconv_open("","");
22762 iconv(cd,NULL,NULL,NULL,NULL);
22768 rm -f conftest.$ac_objext conftest$ac_exeext
22769 if { (ac_try="$ac_link"
22770 case "(($ac_try" in
22771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772 *) ac_try_echo=$ac_try;;
22774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22775 (eval "$ac_link") 2>conftest.er1
22777 grep -v '^ *+' conftest.er1 >conftest.err
22779 cat conftest.err >&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); } && {
22782 test -z "$ac_c_werror_flag" ||
22783 test ! -s conftest.err
22784 } && test -s conftest$ac_exeext &&
22785 $as_test_x conftest$ac_exeext; then
22786 am_cv_lib_iconv=yes
22787 am_cv_func_iconv=yes
22789 echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22796 conftest$ac_exeext conftest.$ac_ext
22797 LIBS="$am_save_LIBS"
22801 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22802 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22803 if test "$am_cv_func_iconv" = yes; then
22805 cat >>confdefs.h <<\_ACEOF
22806 #define HAVE_ICONV 1
22810 if test "$am_cv_lib_iconv" = yes; then
22811 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22812 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22813 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22814 echo "${ECHO_T}$LIBICONV" >&6; }
22816 CPPFLAGS="$am_save_CPPFLAGS"
22823 if test "$am_cv_func_iconv" = yes; then
22824 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22825 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22826 if test "${am_cv_proto_iconv+set}" = set; then
22827 echo $ECHO_N "(cached) $ECHO_C" >&6
22830 cat >conftest.$ac_ext <<_ACEOF
22833 cat confdefs.h >>conftest.$ac_ext
22834 cat >>conftest.$ac_ext <<_ACEOF
22835 /* end confdefs.h. */
22837 #include <stdlib.h>
22843 #if defined(__STDC__) || defined(__cplusplus)
22844 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22857 rm -f conftest.$ac_objext
22858 if { (ac_try="$ac_compile"
22859 case "(($ac_try" in
22860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22861 *) ac_try_echo=$ac_try;;
22863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22864 (eval "$ac_compile") 2>conftest.er1
22866 grep -v '^ *+' conftest.er1 >conftest.err
22868 cat conftest.err >&5
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); } && {
22871 test -z "$ac_c_werror_flag" ||
22872 test ! -s conftest.err
22873 } && test -s conftest.$ac_objext; then
22874 am_cv_proto_iconv_arg1=""
22876 echo "$as_me: failed program was:" >&5
22877 sed 's/^/| /' conftest.$ac_ext >&5
22879 am_cv_proto_iconv_arg1="const"
22882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22883 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);"
22886 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22887 { echo "$as_me:$LINENO: result: ${ac_t:-
22888 }$am_cv_proto_iconv" >&5
22889 echo "${ECHO_T}${ac_t:-
22890 }$am_cv_proto_iconv" >&6; }
22892 cat >>confdefs.h <<_ACEOF
22893 #define ICONV_CONST $am_cv_proto_iconv_arg1
22899 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22900 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22901 if test "${am_cv_langinfo_codeset+set}" = set; then
22902 echo $ECHO_N "(cached) $ECHO_C" >&6
22904 cat >conftest.$ac_ext <<_ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22910 #include <langinfo.h>
22914 char* cs = nl_langinfo(CODESET);
22919 rm -f conftest.$ac_objext conftest$ac_exeext
22920 if { (ac_try="$ac_link"
22921 case "(($ac_try" in
22922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22923 *) ac_try_echo=$ac_try;;
22925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22926 (eval "$ac_link") 2>conftest.er1
22928 grep -v '^ *+' conftest.er1 >conftest.err
22930 cat conftest.err >&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); } && {
22933 test -z "$ac_c_werror_flag" ||
22934 test ! -s conftest.err
22935 } && test -s conftest$ac_exeext &&
22936 $as_test_x conftest$ac_exeext; then
22937 am_cv_langinfo_codeset=yes
22939 echo "$as_me: failed program was:" >&5
22940 sed 's/^/| /' conftest.$ac_ext >&5
22942 am_cv_langinfo_codeset=no
22945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22946 conftest$ac_exeext conftest.$ac_ext
22949 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22950 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22951 if test $am_cv_langinfo_codeset = yes; then
22953 cat >>confdefs.h <<\_ACEOF
22954 #define HAVE_LANGINFO_CODESET 1
22959 if test $ac_cv_header_locale_h = yes; then
22961 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22962 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22963 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22964 echo $ECHO_N "(cached) $ECHO_C" >&6
22966 cat >conftest.$ac_ext <<_ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22972 #include <locale.h>
22981 rm -f conftest.$ac_objext conftest$ac_exeext
22982 if { (ac_try="$ac_link"
22983 case "(($ac_try" in
22984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22985 *) ac_try_echo=$ac_try;;
22987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22988 (eval "$ac_link") 2>conftest.er1
22990 grep -v '^ *+' conftest.er1 >conftest.err
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } && {
22995 test -z "$ac_c_werror_flag" ||
22996 test ! -s conftest.err
22997 } && test -s conftest$ac_exeext &&
22998 $as_test_x conftest$ac_exeext; then
22999 gt_cv_val_LC_MESSAGES=yes
23001 echo "$as_me: failed program was:" >&5
23002 sed 's/^/| /' conftest.$ac_ext >&5
23004 gt_cv_val_LC_MESSAGES=no
23007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23008 conftest$ac_exeext conftest.$ac_ext
23010 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23011 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23012 if test $gt_cv_val_LC_MESSAGES = yes; then
23014 cat >>confdefs.h <<\_ACEOF
23015 #define HAVE_LC_MESSAGES 1
23022 if test -n "$INTL_MACOSX_LIBS"; then
23023 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23026 for ac_prog in bison
23028 # Extract the first word of "$ac_prog", so it can be a program name with args.
23029 set dummy $ac_prog; ac_word=$2
23030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23032 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23035 if test -n "$INTLBISON"; then
23036 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23039 for as_dir in $PATH
23042 test -z "$as_dir" && as_dir=.
23043 for ac_exec_ext in '' $ac_executable_extensions; do
23044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23045 ac_cv_prog_INTLBISON="$ac_prog"
23046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23055 INTLBISON=$ac_cv_prog_INTLBISON
23056 if test -n "$INTLBISON"; then
23057 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23058 echo "${ECHO_T}$INTLBISON" >&6; }
23060 { echo "$as_me:$LINENO: result: no" >&5
23061 echo "${ECHO_T}no" >&6; }
23065 test -n "$INTLBISON" && break
23068 if test -z "$INTLBISON"; then
23071 { echo "$as_me:$LINENO: checking version of bison" >&5
23072 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23073 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23074 case $ac_prog_version in
23075 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23076 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23077 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23078 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23080 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23081 echo "${ECHO_T}$ac_prog_version" >&6; }
23083 if test $ac_verc_fail = yes; then
23102 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23103 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23104 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
23107 gt_save_CPPFLAGS="$CPPFLAGS"
23108 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23109 gt_save_LIBS="$LIBS"
23110 LIBS="$LIBS -framework CoreFoundation"
23111 cat >conftest.$ac_ext <<_ACEOF
23114 cat confdefs.h >>conftest.$ac_ext
23115 cat >>conftest.$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23117 #include <CFPreferences.h>
23121 CFPreferencesCopyAppValue(NULL, NULL)
23126 rm -f conftest.$ac_objext conftest$ac_exeext
23127 if { (ac_try="$ac_link"
23128 case "(($ac_try" in
23129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130 *) ac_try_echo=$ac_try;;
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133 (eval "$ac_link") 2>conftest.er1
23135 grep -v '^ *+' conftest.er1 >conftest.err
23137 cat conftest.err >&5
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } && {
23140 test -z "$ac_c_werror_flag" ||
23141 test ! -s conftest.err
23142 } && test -s conftest$ac_exeext &&
23143 $as_test_x conftest$ac_exeext; then
23144 gt_cv_func_CFPreferencesCopyAppValue=yes
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23149 gt_cv_func_CFPreferencesCopyAppValue=no
23152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23153 conftest$ac_exeext conftest.$ac_ext
23154 CPPFLAGS="$gt_save_CPPFLAGS"
23155 LIBS="$gt_save_LIBS"
23157 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23158 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23159 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23161 cat >>confdefs.h <<\_ACEOF
23162 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23166 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23167 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23168 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23169 echo $ECHO_N "(cached) $ECHO_C" >&6
23171 gt_save_CPPFLAGS="$CPPFLAGS"
23172 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23173 gt_save_LIBS="$LIBS"
23174 LIBS="$LIBS -framework CoreFoundation"
23175 cat >conftest.$ac_ext <<_ACEOF
23178 cat confdefs.h >>conftest.$ac_ext
23179 cat >>conftest.$ac_ext <<_ACEOF
23180 /* end confdefs.h. */
23181 #include <CFLocale.h>
23185 CFLocaleCopyCurrent();
23190 rm -f conftest.$ac_objext conftest$ac_exeext
23191 if { (ac_try="$ac_link"
23192 case "(($ac_try" in
23193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23194 *) ac_try_echo=$ac_try;;
23196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23197 (eval "$ac_link") 2>conftest.er1
23199 grep -v '^ *+' conftest.er1 >conftest.err
23201 cat conftest.err >&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } && {
23204 test -z "$ac_c_werror_flag" ||
23205 test ! -s conftest.err
23206 } && test -s conftest$ac_exeext &&
23207 $as_test_x conftest$ac_exeext; then
23208 gt_cv_func_CFLocaleCopyCurrent=yes
23210 echo "$as_me: failed program was:" >&5
23211 sed 's/^/| /' conftest.$ac_ext >&5
23213 gt_cv_func_CFLocaleCopyCurrent=no
23216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23217 conftest$ac_exeext conftest.$ac_ext
23218 CPPFLAGS="$gt_save_CPPFLAGS"
23219 LIBS="$gt_save_LIBS"
23221 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23222 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23223 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23225 cat >>confdefs.h <<\_ACEOF
23226 #define HAVE_CFLOCALECOPYCURRENT 1
23231 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23232 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23238 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23239 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23240 # Check whether --enable-nls was given.
23241 if test "${enable_nls+set}" = set; then
23242 enableval=$enable_nls; USE_NLS=$enableval
23247 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23248 echo "${ECHO_T}$USE_NLS" >&6; }
23253 BUILD_INCLUDED_LIBINTL=no
23254 USE_INCLUDED_LIBINTL=no
23260 if test "$USE_NLS" = "yes"; then
23261 gt_use_preinstalled_gnugettext=no
23263 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23264 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23266 # Check whether --with-included-gettext was given.
23267 if test "${with_included_gettext+set}" = set; then
23268 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23270 nls_cv_force_use_gnu_gettext=no
23273 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23274 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23276 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23277 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23284 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23285 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23286 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23287 echo $ECHO_N "(cached) $ECHO_C" >&6
23289 cat >conftest.$ac_ext <<_ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h. */
23295 #include <libintl.h>
23296 extern int _nl_msg_cat_cntr;
23297 extern int *_nl_domain_bindings;
23301 bindtextdomain ("", "");
23302 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23307 rm -f conftest.$ac_objext conftest$ac_exeext
23308 if { (ac_try="$ac_link"
23309 case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23314 (eval "$ac_link") 2>conftest.er1
23316 grep -v '^ *+' conftest.er1 >conftest.err
23318 cat conftest.err >&5
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); } && {
23321 test -z "$ac_c_werror_flag" ||
23322 test ! -s conftest.err
23323 } && test -s conftest$ac_exeext &&
23324 $as_test_x conftest$ac_exeext; then
23325 gt_cv_func_gnugettext1_libc=yes
23327 echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23330 gt_cv_func_gnugettext1_libc=no
23333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23334 conftest$ac_exeext conftest.$ac_ext
23336 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23337 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23339 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23345 acl_save_prefix="$prefix"
23346 prefix="$acl_final_prefix"
23347 acl_save_exec_prefix="$exec_prefix"
23348 exec_prefix="$acl_final_exec_prefix"
23350 eval additional_includedir=\"$includedir\"
23351 eval additional_libdir=\"$libdir\"
23353 exec_prefix="$acl_save_exec_prefix"
23354 prefix="$acl_save_prefix"
23357 # Check whether --with-libintl-prefix was given.
23358 if test "${with_libintl_prefix+set}" = set; then
23359 withval=$with_libintl_prefix;
23360 if test "X$withval" = "Xno"; then
23363 if test "X$withval" = "X"; then
23365 acl_save_prefix="$prefix"
23366 prefix="$acl_final_prefix"
23367 acl_save_exec_prefix="$exec_prefix"
23368 exec_prefix="$acl_final_exec_prefix"
23370 eval additional_includedir=\"$includedir\"
23371 eval additional_libdir=\"$libdir\"
23373 exec_prefix="$acl_save_exec_prefix"
23374 prefix="$acl_save_prefix"
23377 additional_includedir="$withval/include"
23378 additional_libdir="$withval/lib"
23389 names_already_handled=
23390 names_next_round='intl '
23391 while test -n "$names_next_round"; do
23392 names_this_round="$names_next_round"
23394 for name in $names_this_round; do
23396 for n in $names_already_handled; do
23397 if test "$n" = "$name"; then
23398 already_handled=yes
23402 if test -z "$already_handled"; then
23403 names_already_handled="$names_already_handled $name"
23404 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23405 eval value=\"\$HAVE_LIB$uppername\"
23406 if test -n "$value"; then
23407 if test "$value" = yes; then
23408 eval value=\"\$LIB$uppername\"
23409 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23410 eval value=\"\$LTLIB$uppername\"
23411 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23420 if test $use_additional = yes; then
23421 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23422 found_dir="$additional_libdir"
23423 found_so="$additional_libdir/lib$name.$shlibext"
23424 if test -f "$additional_libdir/lib$name.la"; then
23425 found_la="$additional_libdir/lib$name.la"
23428 if test -f "$additional_libdir/lib$name.$libext"; then
23429 found_dir="$additional_libdir"
23430 found_a="$additional_libdir/lib$name.$libext"
23431 if test -f "$additional_libdir/lib$name.la"; then
23432 found_la="$additional_libdir/lib$name.la"
23437 if test "X$found_dir" = "X"; then
23438 for x in $LDFLAGS $LTLIBINTL; do
23440 acl_save_prefix="$prefix"
23441 prefix="$acl_final_prefix"
23442 acl_save_exec_prefix="$exec_prefix"
23443 exec_prefix="$acl_final_exec_prefix"
23445 exec_prefix="$acl_save_exec_prefix"
23446 prefix="$acl_save_prefix"
23450 dir=`echo "X$x" | sed -e 's/^X-L//'`
23451 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23453 found_so="$dir/lib$name.$shlibext"
23454 if test -f "$dir/lib$name.la"; then
23455 found_la="$dir/lib$name.la"
23458 if test -f "$dir/lib$name.$libext"; then
23460 found_a="$dir/lib$name.$libext"
23461 if test -f "$dir/lib$name.la"; then
23462 found_la="$dir/lib$name.la"
23468 if test "X$found_dir" != "X"; then
23473 if test "X$found_dir" != "X"; then
23474 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23475 if test "X$found_so" != "X"; then
23476 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23477 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23480 for x in $ltrpathdirs; do
23481 if test "X$x" = "X$found_dir"; then
23486 if test -z "$haveit"; then
23487 ltrpathdirs="$ltrpathdirs $found_dir"
23489 if test "$hardcode_direct" = yes; then
23490 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23492 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23493 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23495 for x in $rpathdirs; do
23496 if test "X$x" = "X$found_dir"; then
23501 if test -z "$haveit"; then
23502 rpathdirs="$rpathdirs $found_dir"
23506 for x in $LDFLAGS $LIBINTL; do
23508 acl_save_prefix="$prefix"
23509 prefix="$acl_final_prefix"
23510 acl_save_exec_prefix="$exec_prefix"
23511 exec_prefix="$acl_final_exec_prefix"
23513 exec_prefix="$acl_save_exec_prefix"
23514 prefix="$acl_save_prefix"
23516 if test "X$x" = "X-L$found_dir"; then
23521 if test -z "$haveit"; then
23522 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23524 if test "$hardcode_minus_L" != no; then
23525 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23527 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23533 if test "X$found_a" != "X"; then
23534 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23536 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23539 additional_includedir=
23540 case "$found_dir" in
23542 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23543 additional_includedir="$basedir/include"
23546 if test "X$additional_includedir" != "X"; then
23547 if test "X$additional_includedir" != "X/usr/include"; then
23549 if test "X$additional_includedir" = "X/usr/local/include"; then
23550 if test -n "$GCC"; then
23552 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23556 if test -z "$haveit"; then
23557 for x in $CPPFLAGS $INCINTL; do
23559 acl_save_prefix="$prefix"
23560 prefix="$acl_final_prefix"
23561 acl_save_exec_prefix="$exec_prefix"
23562 exec_prefix="$acl_final_exec_prefix"
23564 exec_prefix="$acl_save_exec_prefix"
23565 prefix="$acl_save_prefix"
23567 if test "X$x" = "X-I$additional_includedir"; then
23572 if test -z "$haveit"; then
23573 if test -d "$additional_includedir"; then
23574 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23580 if test -n "$found_la"; then
23581 save_libdir="$libdir"
23582 case "$found_la" in
23583 */* | *\\*) . "$found_la" ;;
23584 *) . "./$found_la" ;;
23586 libdir="$save_libdir"
23587 for dep in $dependency_libs; do
23590 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23591 if test "X$additional_libdir" != "X/usr/lib"; then
23593 if test "X$additional_libdir" = "X/usr/local/lib"; then
23594 if test -n "$GCC"; then
23596 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23600 if test -z "$haveit"; then
23602 for x in $LDFLAGS $LIBINTL; do
23604 acl_save_prefix="$prefix"
23605 prefix="$acl_final_prefix"
23606 acl_save_exec_prefix="$exec_prefix"
23607 exec_prefix="$acl_final_exec_prefix"
23609 exec_prefix="$acl_save_exec_prefix"
23610 prefix="$acl_save_prefix"
23612 if test "X$x" = "X-L$additional_libdir"; then
23617 if test -z "$haveit"; then
23618 if test -d "$additional_libdir"; then
23619 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23623 for x in $LDFLAGS $LTLIBINTL; do
23625 acl_save_prefix="$prefix"
23626 prefix="$acl_final_prefix"
23627 acl_save_exec_prefix="$exec_prefix"
23628 exec_prefix="$acl_final_exec_prefix"
23630 exec_prefix="$acl_save_exec_prefix"
23631 prefix="$acl_save_prefix"
23633 if test "X$x" = "X-L$additional_libdir"; then
23638 if test -z "$haveit"; then
23639 if test -d "$additional_libdir"; then
23640 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23647 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23648 if test "$enable_rpath" != no; then
23650 for x in $rpathdirs; do
23651 if test "X$x" = "X$dir"; then
23656 if test -z "$haveit"; then
23657 rpathdirs="$rpathdirs $dir"
23660 for x in $ltrpathdirs; do
23661 if test "X$x" = "X$dir"; then
23666 if test -z "$haveit"; then
23667 ltrpathdirs="$ltrpathdirs $dir"
23672 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23675 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23678 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23679 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23685 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23686 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23692 if test "X$rpathdirs" != "X"; then
23693 if test -n "$hardcode_libdir_separator"; then
23695 for found_dir in $rpathdirs; do
23696 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23698 acl_save_libdir="$libdir"
23700 eval flag=\"$hardcode_libdir_flag_spec\"
23701 libdir="$acl_save_libdir"
23702 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23704 for found_dir in $rpathdirs; do
23705 acl_save_libdir="$libdir"
23706 libdir="$found_dir"
23707 eval flag=\"$hardcode_libdir_flag_spec\"
23708 libdir="$acl_save_libdir"
23709 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23713 if test "X$ltrpathdirs" != "X"; then
23714 for found_dir in $ltrpathdirs; do
23715 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23719 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23720 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23721 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23722 echo $ECHO_N "(cached) $ECHO_C" >&6
23724 gt_save_CPPFLAGS="$CPPFLAGS"
23725 CPPFLAGS="$CPPFLAGS $INCINTL"
23726 gt_save_LIBS="$LIBS"
23727 LIBS="$LIBS $LIBINTL"
23728 cat >conftest.$ac_ext <<_ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h. */
23734 #include <libintl.h>
23735 extern int _nl_msg_cat_cntr;
23740 const char *_nl_expand_alias (const char *);
23744 bindtextdomain ("", "");
23745 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23750 rm -f conftest.$ac_objext conftest$ac_exeext
23751 if { (ac_try="$ac_link"
23752 case "(($ac_try" in
23753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23754 *) ac_try_echo=$ac_try;;
23756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23757 (eval "$ac_link") 2>conftest.er1
23759 grep -v '^ *+' conftest.er1 >conftest.err
23761 cat conftest.err >&5
23762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); } && {
23764 test -z "$ac_c_werror_flag" ||
23765 test ! -s conftest.err
23766 } && test -s conftest$ac_exeext &&
23767 $as_test_x conftest$ac_exeext; then
23768 gt_cv_func_gnugettext1_libintl=yes
23770 echo "$as_me: failed program was:" >&5
23771 sed 's/^/| /' conftest.$ac_ext >&5
23773 gt_cv_func_gnugettext1_libintl=no
23776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23777 conftest$ac_exeext conftest.$ac_ext
23778 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23779 LIBS="$LIBS $LIBICONV"
23780 cat >conftest.$ac_ext <<_ACEOF
23783 cat confdefs.h >>conftest.$ac_ext
23784 cat >>conftest.$ac_ext <<_ACEOF
23785 /* end confdefs.h. */
23786 #include <libintl.h>
23787 extern int _nl_msg_cat_cntr;
23792 const char *_nl_expand_alias (const char *);
23796 bindtextdomain ("", "");
23797 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23802 rm -f conftest.$ac_objext conftest$ac_exeext
23803 if { (ac_try="$ac_link"
23804 case "(($ac_try" in
23805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23806 *) ac_try_echo=$ac_try;;
23808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23809 (eval "$ac_link") 2>conftest.er1
23811 grep -v '^ *+' conftest.er1 >conftest.err
23813 cat conftest.err >&5
23814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23815 (exit $ac_status); } && {
23816 test -z "$ac_c_werror_flag" ||
23817 test ! -s conftest.err
23818 } && test -s conftest$ac_exeext &&
23819 $as_test_x conftest$ac_exeext; then
23820 LIBINTL="$LIBINTL $LIBICONV"
23821 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23822 gt_cv_func_gnugettext1_libintl=yes
23825 echo "$as_me: failed program was:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23832 conftest$ac_exeext conftest.$ac_ext
23834 CPPFLAGS="$gt_save_CPPFLAGS"
23835 LIBS="$gt_save_LIBS"
23837 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23838 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23841 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23842 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23843 && test "$PACKAGE" != gettext-runtime \
23844 && test "$PACKAGE" != gettext-tools; }; then
23845 gt_use_preinstalled_gnugettext=yes
23853 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23854 nls_cv_use_gnu_gettext=yes
23858 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23859 BUILD_INCLUDED_LIBINTL=yes
23860 USE_INCLUDED_LIBINTL=yes
23861 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23862 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23863 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23867 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23868 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23873 if test -n "$INTL_MACOSX_LIBS"; then
23874 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23875 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23876 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23877 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23881 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23882 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23884 cat >>confdefs.h <<\_ACEOF
23885 #define ENABLE_NLS 1
23893 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23894 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23895 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23896 echo "${ECHO_T}$USE_NLS" >&6; }
23897 if test "$USE_NLS" = "yes"; then
23898 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23899 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23900 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23901 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23902 gt_source="external libintl"
23907 gt_source="included intl directory"
23909 { echo "$as_me:$LINENO: result: $gt_source" >&5
23910 echo "${ECHO_T}$gt_source" >&6; }
23913 if test "$USE_NLS" = "yes"; then
23915 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23916 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23917 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23918 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23919 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23920 echo "${ECHO_T}$LIBINTL" >&6; }
23922 for element in $INCINTL; do
23924 for x in $CPPFLAGS; do
23926 acl_save_prefix="$prefix"
23927 prefix="$acl_final_prefix"
23928 acl_save_exec_prefix="$exec_prefix"
23929 exec_prefix="$acl_final_exec_prefix"
23931 exec_prefix="$acl_save_exec_prefix"
23932 prefix="$acl_save_prefix"
23934 if test "X$x" = "X$element"; then
23939 if test -z "$haveit"; then
23940 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23947 cat >>confdefs.h <<\_ACEOF
23948 #define HAVE_GETTEXT 1
23952 cat >>confdefs.h <<\_ACEOF
23953 #define HAVE_DCGETTEXT 1
23962 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23963 BUILD_INCLUDED_LIBINTL=yes
23970 nls_cv_header_intl=
23971 nls_cv_header_libgt=
23983 if test "$USE_INCLUDED_LIBINTL" = yes; then
23984 INTLOBJS="\$(GETTOBJS)"
23988 INTL_LIBTOOL_SUFFIX_PREFIX=
23992 INTLLIBS="$LIBINTL"
24004 support_postgresql=no
24006 support_smartalloc=yes
24007 support_readline=yes
24011 support_wx_console=no
24012 support_tray_monitor=no
24017 support_static_tools=no
24018 support_static_fd=no
24019 support_static_sd=no
24020 support_static_dir=no
24021 support_static_cons=no
24023 build_client_only=no
24032 # Check whether --enable-gnome was given.
24033 if test "${enable_gnome+set}" = set; then
24034 enableval=$enable_gnome;
24035 if test x$enableval = xyes; then
24044 if test x$support_gnome = xyes; then
24045 abc=`$PKGCONFIG --exists libgnomeui-2.0`
24047 if test $pkg = 0; then
24048 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
24049 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24050 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
24051 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
24056 GNOME_DIR=src/gnome2-console
24057 gnome_version="Version 2.x"
24059 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
24060 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
24061 { (exit 1); exit 1; }; }
24066 # Check whether --enable-bat was given.
24067 if test "${enable_bat+set}" = set; then
24068 enableval=$enable_bat;
24069 if test x$enableval = xyes; then
24071 cat >>confdefs.h <<\_ACEOF
24083 if test x$support_bat = xyes; then
24084 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24086 if test $pkg = 0; then
24087 BAT_DIR=src/qt-console
24089 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24090 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24091 { (exit 1); exit 1; }; }
24101 if test x$support_bat = xyes; then
24102 { echo "$as_me:$LINENO: checking for qwt support" >&5
24103 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24105 # Check whether --with-qwt was given.
24106 if test "${with_qwt+set}" = set; then
24108 case "$with_qwt" in
24113 if test -f ${with_qwt}/include/qwt.h; then
24114 QWT_INC="${with_qwt}/include"
24115 QWT_LDFLAGS="-L${with_qwt}/lib"
24126 if test $no_qwt = no; then
24127 if test x$QWT_INC = x; then
24128 for root in /usr /usr/local; do
24129 for ver in qwt qwt5 qwt-qt4; do
24130 if test -f ${root}/include/${ver}/qwt.h; then
24131 QWT_INC="${root}/include/${ver}"
24132 if test -d ${root}/lib64/; then
24133 QWT_LDFLAGS="-L${root}/lib64"
24134 elif test -d ${root}/lib/64/; then
24135 QWT_LDFLAGS="-L${root}/64"
24137 QWT_LDFLAGS="-L${root}/lib"
24148 if test x$QWT_INC = x; then
24149 { echo "$as_me:$LINENO: result: no" >&5
24150 echo "${ECHO_T}no" >&6; }
24153 cat >>confdefs.h <<\_ACEOF
24157 { echo "$as_me:$LINENO: result: yes" >&5
24158 echo "${ECHO_T}yes" >&6; }
24168 # Check whether --enable-bwx-console was given.
24169 if test "${enable_bwx_console+set}" = set; then
24170 enableval=$enable_bwx_console;
24171 if test x$enableval = xyes; then
24172 support_wx_console=yes
24180 if test x$support_wx_console = xyes; then
24181 abc=`$WXCONFIG $WXFLAGS --cppflags`
24183 if test $pkg = 0; then
24184 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24185 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24186 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24190 WX_DIR="src/wx-console"
24193 echo "wx-config program not found. bwx-console disabled."
24195 support_wx_console=no
24200 # Check whether --enable-tray-monitor was given.
24201 if test "${enable_tray_monitor+set}" = set; then
24202 enableval=$enable_tray_monitor;
24203 if test x$enableval = xyes; then
24204 support_tray_monitor=yes
24212 if test x$support_tray_monitor = xyes; then
24213 abc=`$PKGCONFIG --exists gtk+-2.0`
24215 if test $pkg = 0; then
24216 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24217 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24220 TRAY_MONITOR_DIR=src/tray-monitor
24221 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24223 if test $pkg = 0; then
24225 cat >>confdefs.h <<\_ACEOF
24226 #define HAVE_GTK_2_4 1
24234 # Check whether --enable-smartalloc was given.
24235 if test "${enable_smartalloc+set}" = set; then
24236 enableval=$enable_smartalloc;
24237 if test x$enableval = xno; then
24238 support_smartalloc=no
24245 if test x$support_smartalloc = xyes; then
24247 cat >>confdefs.h <<\_ACEOF
24248 #define SMARTALLOC 1
24253 # Check whether --enable-lockmgr was given.
24254 if test "${enable_lockmgr+set}" = set; then
24255 enableval=$enable_lockmgr;
24256 if test x$enableval = xyes; then
24257 support_lockmgr=yes
24264 if test x$support_lockmgr = xyes; then
24266 cat >>confdefs.h <<\_ACEOF
24267 #define _USE_LOCKMGR 1
24273 # Check whether --enable-static-tools was given.
24274 if test "${enable_static_tools+set}" = set; then
24275 enableval=$enable_static_tools;
24276 if test x$enableval = xyes; then
24277 if test x$use_libtool = xyes; then
24278 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24279 please rerun configure with --disable-libtool" >&5
24280 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24281 please rerun configure with --disable-libtool" >&2;}
24282 { (exit 1); exit 1; }; }
24284 support_static_tools=yes
24292 if test x$support_static_tools = xyes; then
24293 TTOOL_LDFLAGS="-static"
24297 # Check whether --enable-static-fd was given.
24298 if test "${enable_static_fd+set}" = set; then
24299 enableval=$enable_static_fd;
24300 if test x$enableval = xyes; then
24301 if test x$use_libtool = xyes; then
24302 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24303 please rerun configure with --disable-libtool" >&5
24304 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24305 please rerun configure with --disable-libtool" >&2;}
24306 { (exit 1); exit 1; }; }
24308 support_static_fd=yes
24316 if test x$support_static_fd = xyes; then
24317 STATIC_FD="static-bacula-fd"
24321 # Check whether --enable-static-sd was given.
24322 if test "${enable_static_sd+set}" = set; then
24323 enableval=$enable_static_sd;
24324 if test x$enableval = xyes; then
24325 if test x$use_libtool = xyes; then
24326 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24327 please rerun configure with --disable-libtool" >&5
24328 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24329 please rerun configure with --disable-libtool" >&2;}
24330 { (exit 1); exit 1; }; }
24332 support_static_sd=yes
24340 if test x$support_static_sd = xyes; then
24341 STATIC_SD="static-bacula-sd"
24345 # Check whether --enable-static-dir was given.
24346 if test "${enable_static_dir+set}" = set; then
24347 enableval=$enable_static_dir;
24348 if test x$enableval = xyes; then
24349 if test x$use_libtool = xyes; then
24350 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24351 please rerun configure with --disable-libtool" >&5
24352 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24353 please rerun configure with --disable-libtool" >&2;}
24354 { (exit 1); exit 1; }; }
24356 support_static_dir=yes
24364 if test x$support_static_dir = xyes; then
24365 STATIC_DIR="static-bacula-dir"
24369 # Check whether --enable-static-cons was given.
24370 if test "${enable_static_cons+set}" = set; then
24371 enableval=$enable_static_cons;
24372 if test x$enableval = xyes; then
24373 if test x$use_libtool = xyes; then
24374 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24375 please rerun configure with --disable-libtool" >&5
24376 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24377 please rerun configure with --disable-libtool" >&2;}
24378 { (exit 1); exit 1; }; }
24380 support_static_cons=yes
24390 if test x$support_static_cons = xyes; then
24391 STATIC_CONS="static-bconsole"
24392 STATIC_GNOME_CONS="static-bgnome-console"
24393 STATIC_WX_CONS="static-bwx-console"
24399 # Check whether --enable-client-only was given.
24400 if test "${enable_client_only+set}" = set; then
24401 enableval=$enable_client_only;
24402 if test x$enableval = xyes; then
24403 build_client_only=yes
24411 if test x$build_client_only = xno; then
24418 # Check whether --enable-build-dird was given.
24419 if test "${enable_build_dird+set}" = set; then
24420 enableval=$enable_build_dird;
24421 if test x$enableval = xno; then
24428 if test x$build_dird = xyes; then
24429 DIRD_DIR="src/dird"
24430 DIR_TOOLS="DIRTOOLS"
24433 DIR_TOOLS="NODIRTOOLS"
24438 # Check whether --enable-build-stored was given.
24439 if test "${enable_build_stored+set}" = set; then
24440 enableval=$enable_build_stored;
24441 if test x$enableval = xno; then
24448 if test x$build_stored = xyes; then
24449 STORED_DIR="src/stored"
24455 # Check whether --enable-conio was given.
24456 if test "${enable_conio+set}" = set; then
24457 enableval=$enable_conio;
24458 if test x$enableval = xno; then
24468 # Check whether --enable-ipv6 was given.
24469 if test "${enable_ipv6+set}" = set; then
24470 enableval=$enable_ipv6;
24471 if test x$enableval = xno; then
24479 if test x$support_ipv6 = xyes; then
24480 cat >conftest.$ac_ext <<_ACEOF
24483 cat confdefs.h >>conftest.$ac_ext
24484 cat >>conftest.$ac_ext <<_ACEOF
24485 /* end confdefs.h. */
24486 #include <sys/types.h>
24487 #include <sys/socket.h>
24488 #include <netinet/in.h>
24492 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24497 rm -f conftest.$ac_objext conftest$ac_exeext
24498 if { (ac_try="$ac_link"
24499 case "(($ac_try" in
24500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24501 *) ac_try_echo=$ac_try;;
24503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24504 (eval "$ac_link") 2>conftest.er1
24506 grep -v '^ *+' conftest.er1 >conftest.err
24508 cat conftest.err >&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } && {
24511 test -z "$ac_c_werror_flag" ||
24512 test ! -s conftest.err
24513 } && test -s conftest$ac_exeext &&
24514 $as_test_x conftest$ac_exeext; then
24517 echo "$as_me: failed program was:" >&5
24518 sed 's/^/| /' conftest.$ac_ext >&5
24523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24524 conftest$ac_exeext conftest.$ac_ext
24527 if test x$support_ipv6 = xyes; then
24529 cat >>confdefs.h <<\_ACEOF
24530 #define HAVE_IPV6 1
24536 if test x$support_conio = xyes; then
24537 if test "${ac_cv_header_termcap_h+set}" = set; then
24538 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24539 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24540 if test "${ac_cv_header_termcap_h+set}" = set; then
24541 echo $ECHO_N "(cached) $ECHO_C" >&6
24543 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24544 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24546 # Is the header compilable?
24547 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24548 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24549 cat >conftest.$ac_ext <<_ACEOF
24552 cat confdefs.h >>conftest.$ac_ext
24553 cat >>conftest.$ac_ext <<_ACEOF
24554 /* end confdefs.h. */
24555 $ac_includes_default
24556 #include <termcap.h>
24558 rm -f conftest.$ac_objext
24559 if { (ac_try="$ac_compile"
24560 case "(($ac_try" in
24561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24562 *) ac_try_echo=$ac_try;;
24564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24565 (eval "$ac_compile") 2>conftest.er1
24567 grep -v '^ *+' conftest.er1 >conftest.err
24569 cat conftest.err >&5
24570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24571 (exit $ac_status); } && {
24572 test -z "$ac_c_werror_flag" ||
24573 test ! -s conftest.err
24574 } && test -s conftest.$ac_objext; then
24575 ac_header_compiler=yes
24577 echo "$as_me: failed program was:" >&5
24578 sed 's/^/| /' conftest.$ac_ext >&5
24580 ac_header_compiler=no
24583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24584 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24585 echo "${ECHO_T}$ac_header_compiler" >&6; }
24587 # Is the header present?
24588 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24589 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24590 cat >conftest.$ac_ext <<_ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h. */
24596 #include <termcap.h>
24598 if { (ac_try="$ac_cpp conftest.$ac_ext"
24599 case "(($ac_try" in
24600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24601 *) ac_try_echo=$ac_try;;
24603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24606 grep -v '^ *+' conftest.er1 >conftest.err
24608 cat conftest.err >&5
24609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24610 (exit $ac_status); } >/dev/null && {
24611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24612 test ! -s conftest.err
24614 ac_header_preproc=yes
24616 echo "$as_me: failed program was:" >&5
24617 sed 's/^/| /' conftest.$ac_ext >&5
24619 ac_header_preproc=no
24622 rm -f conftest.err conftest.$ac_ext
24623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24624 echo "${ECHO_T}$ac_header_preproc" >&6; }
24626 # So? What about this header?
24627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24629 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24630 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24631 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24632 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24633 ac_header_preproc=yes
24636 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24637 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24638 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24639 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24640 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24641 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24642 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24643 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24644 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24645 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24646 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24647 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24651 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24652 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24653 if test "${ac_cv_header_termcap_h+set}" = set; then
24654 echo $ECHO_N "(cached) $ECHO_C" >&6
24656 ac_cv_header_termcap_h=$ac_header_preproc
24658 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24659 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24662 if test $ac_cv_header_termcap_h = yes; then
24663 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24664 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24665 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24666 echo $ECHO_N "(cached) $ECHO_C" >&6
24668 ac_check_lib_save_LIBS=$LIBS
24669 LIBS="-ltermcap $LIBS"
24670 cat >conftest.$ac_ext <<_ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h. */
24677 /* Override any GCC internal prototype to avoid an error.
24678 Use char because int might match the return type of a GCC
24679 builtin and then its argument prototype would still apply. */
24692 rm -f conftest.$ac_objext conftest$ac_exeext
24693 if { (ac_try="$ac_link"
24694 case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24699 (eval "$ac_link") 2>conftest.er1
24701 grep -v '^ *+' conftest.er1 >conftest.err
24703 cat conftest.err >&5
24704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); } && {
24706 test -z "$ac_c_werror_flag" ||
24707 test ! -s conftest.err
24708 } && test -s conftest$ac_exeext &&
24709 $as_test_x conftest$ac_exeext; then
24710 ac_cv_lib_termcap_tgetent=yes
24712 echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24715 ac_cv_lib_termcap_tgetent=no
24718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24719 conftest$ac_exeext conftest.$ac_ext
24720 LIBS=$ac_check_lib_save_LIBS
24722 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24723 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24724 if test $ac_cv_lib_termcap_tgetent = yes; then
24725 CONS_LIBS="-ltermcap"
24729 support_readline=no
24731 cat >>confdefs.h <<\_ACEOF
24732 #define HAVE_CONIO 1
24737 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24738 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24739 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24740 echo $ECHO_N "(cached) $ECHO_C" >&6
24742 ac_check_lib_save_LIBS=$LIBS
24743 LIBS="-lncurses $LIBS"
24744 cat >conftest.$ac_ext <<_ACEOF
24747 cat confdefs.h >>conftest.$ac_ext
24748 cat >>conftest.$ac_ext <<_ACEOF
24749 /* end confdefs.h. */
24751 /* Override any GCC internal prototype to avoid an error.
24752 Use char because int might match the return type of a GCC
24753 builtin and then its argument prototype would still apply. */
24766 rm -f conftest.$ac_objext conftest$ac_exeext
24767 if { (ac_try="$ac_link"
24768 case "(($ac_try" in
24769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24770 *) ac_try_echo=$ac_try;;
24772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24773 (eval "$ac_link") 2>conftest.er1
24775 grep -v '^ *+' conftest.er1 >conftest.err
24777 cat conftest.err >&5
24778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24779 (exit $ac_status); } && {
24780 test -z "$ac_c_werror_flag" ||
24781 test ! -s conftest.err
24782 } && test -s conftest$ac_exeext &&
24783 $as_test_x conftest$ac_exeext; then
24784 ac_cv_lib_ncurses_tgetent=yes
24786 echo "$as_me: failed program was:" >&5
24787 sed 's/^/| /' conftest.$ac_ext >&5
24789 ac_cv_lib_ncurses_tgetent=no
24792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24793 conftest$ac_exeext conftest.$ac_ext
24794 LIBS=$ac_check_lib_save_LIBS
24796 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24797 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24798 if test $ac_cv_lib_ncurses_tgetent = yes; then
24799 CONS_LIBS="-lncurses"
24803 support_readline=no
24805 cat >>confdefs.h <<\_ACEOF
24806 #define HAVE_CONIO 1
24819 for ac_header in curses.h
24821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24826 echo $ECHO_N "(cached) $ECHO_C" >&6
24828 ac_res=`eval echo '${'$as_ac_Header'}'`
24829 { echo "$as_me:$LINENO: result: $ac_res" >&5
24830 echo "${ECHO_T}$ac_res" >&6; }
24832 # Is the header compilable?
24833 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24834 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24835 cat >conftest.$ac_ext <<_ACEOF
24838 cat confdefs.h >>conftest.$ac_ext
24839 cat >>conftest.$ac_ext <<_ACEOF
24840 /* end confdefs.h. */
24841 $ac_includes_default
24842 #include <$ac_header>
24844 rm -f conftest.$ac_objext
24845 if { (ac_try="$ac_compile"
24846 case "(($ac_try" in
24847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24848 *) ac_try_echo=$ac_try;;
24850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24851 (eval "$ac_compile") 2>conftest.er1
24853 grep -v '^ *+' conftest.er1 >conftest.err
24855 cat conftest.err >&5
24856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24857 (exit $ac_status); } && {
24858 test -z "$ac_c_werror_flag" ||
24859 test ! -s conftest.err
24860 } && test -s conftest.$ac_objext; then
24861 ac_header_compiler=yes
24863 echo "$as_me: failed program was:" >&5
24864 sed 's/^/| /' conftest.$ac_ext >&5
24866 ac_header_compiler=no
24869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24870 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24871 echo "${ECHO_T}$ac_header_compiler" >&6; }
24873 # Is the header present?
24874 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24875 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24876 cat >conftest.$ac_ext <<_ACEOF
24879 cat confdefs.h >>conftest.$ac_ext
24880 cat >>conftest.$ac_ext <<_ACEOF
24881 /* end confdefs.h. */
24882 #include <$ac_header>
24884 if { (ac_try="$ac_cpp conftest.$ac_ext"
24885 case "(($ac_try" in
24886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24887 *) ac_try_echo=$ac_try;;
24889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24890 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24892 grep -v '^ *+' conftest.er1 >conftest.err
24894 cat conftest.err >&5
24895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 (exit $ac_status); } >/dev/null && {
24897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24898 test ! -s conftest.err
24900 ac_header_preproc=yes
24902 echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24905 ac_header_preproc=no
24908 rm -f conftest.err conftest.$ac_ext
24909 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24910 echo "${ECHO_T}$ac_header_preproc" >&6; }
24912 # So? What about this header?
24913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24915 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24916 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24919 ac_header_preproc=yes
24922 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24923 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24924 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24925 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24926 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24927 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24928 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24929 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24932 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24933 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24937 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24940 echo $ECHO_N "(cached) $ECHO_C" >&6
24942 eval "$as_ac_Header=\$ac_header_preproc"
24944 ac_res=`eval echo '${'$as_ac_Header'}'`
24945 { echo "$as_me:$LINENO: result: $ac_res" >&5
24946 echo "${ECHO_T}$ac_res" >&6; }
24949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24950 cat >>confdefs.h <<_ACEOF
24951 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24958 { echo "$as_me:$LINENO: checking for term.h" >&5
24959 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24960 if test "${ac_cv_header_term_h+set}" = set; then
24961 echo $ECHO_N "(cached) $ECHO_C" >&6
24963 cat >conftest.$ac_ext <<_ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h. */
24970 #include <curses.h>
24976 rm -f conftest.$ac_objext
24977 if { (ac_try="$ac_compile"
24978 case "(($ac_try" in
24979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24980 *) ac_try_echo=$ac_try;;
24982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24983 (eval "$ac_compile") 2>conftest.er1
24985 grep -v '^ *+' conftest.er1 >conftest.err
24987 cat conftest.err >&5
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); } && {
24990 test -z "$ac_c_werror_flag" ||
24991 test ! -s conftest.err
24992 } && test -s conftest.$ac_objext; then
24993 ac_cv_header_term_h=yes
24995 echo "$as_me: failed program was:" >&5
24996 sed 's/^/| /' conftest.$ac_ext >&5
24998 ac_cv_header_term_h=no
25001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25003 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25004 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25005 if test $ac_cv_header_term_h = yes; then
25006 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25007 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25008 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25009 echo $ECHO_N "(cached) $ECHO_C" >&6
25011 ac_check_lib_save_LIBS=$LIBS
25012 LIBS="-lcurses $LIBS"
25013 cat >conftest.$ac_ext <<_ACEOF
25016 cat confdefs.h >>conftest.$ac_ext
25017 cat >>conftest.$ac_ext <<_ACEOF
25018 /* end confdefs.h. */
25020 /* Override any GCC internal prototype to avoid an error.
25021 Use char because int might match the return type of a GCC
25022 builtin and then its argument prototype would still apply. */
25035 rm -f conftest.$ac_objext conftest$ac_exeext
25036 if { (ac_try="$ac_link"
25037 case "(($ac_try" in
25038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039 *) ac_try_echo=$ac_try;;
25041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25042 (eval "$ac_link") 2>conftest.er1
25044 grep -v '^ *+' conftest.er1 >conftest.err
25046 cat conftest.err >&5
25047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25048 (exit $ac_status); } && {
25049 test -z "$ac_c_werror_flag" ||
25050 test ! -s conftest.err
25051 } && test -s conftest$ac_exeext &&
25052 $as_test_x conftest$ac_exeext; then
25053 ac_cv_lib_curses_tgetent=yes
25055 echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25058 ac_cv_lib_curses_tgetent=no
25061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25062 conftest$ac_exeext conftest.$ac_ext
25063 LIBS=$ac_check_lib_save_LIBS
25065 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25066 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25067 if test $ac_cv_lib_curses_tgetent = yes; then
25068 CONS_LIBS="-lcurses"
25072 support_readline=no
25074 cat >>confdefs.h <<\_ACEOF
25075 #define HAVE_CONIO 1
25083 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25094 # Check whether --enable-readline was given.
25095 if test "${enable_readline+set}" = set; then
25096 enableval=$enable_readline;
25097 if test x$enableval = xno; then
25098 support_readline=no
25107 if test x$support_readline = xyes; then
25109 # Check whether --with-readline was given.
25110 if test "${with_readline+set}" = set; then
25111 withval=$with_readline;
25112 case "$with_readline" in
25117 if test -f ${with_readline}/readline.h; then
25118 CONS_INC="-I${with_readline}"
25119 CONS_LDFLAGS="-L$with_readline"
25120 elif test -f ${with_readline}/include/readline/readline.h; then
25121 CONS_INC="-I${with_readline}/include/readline"
25122 CONS_LDFLAGS="-L${with_readline}/lib"
25123 with_readline="${with_readline}/include/readline"
25125 with_readline="/usr/include/readline"
25128 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25129 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25130 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25131 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25133 echo $ECHO_N "(cached) $ECHO_C" >&6
25135 ac_res=`eval echo '${'$as_ac_Header'}'`
25136 { echo "$as_me:$LINENO: result: $ac_res" >&5
25137 echo "${ECHO_T}$ac_res" >&6; }
25139 # Is the header compilable?
25140 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25141 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25142 cat >conftest.$ac_ext <<_ACEOF
25145 cat confdefs.h >>conftest.$ac_ext
25146 cat >>conftest.$ac_ext <<_ACEOF
25147 /* end confdefs.h. */
25148 $ac_includes_default
25149 #include <${with_readline}/readline.h>
25151 rm -f conftest.$ac_objext
25152 if { (ac_try="$ac_compile"
25153 case "(($ac_try" in
25154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25155 *) ac_try_echo=$ac_try;;
25157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25158 (eval "$ac_compile") 2>conftest.er1
25160 grep -v '^ *+' conftest.er1 >conftest.err
25162 cat conftest.err >&5
25163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25164 (exit $ac_status); } && {
25165 test -z "$ac_c_werror_flag" ||
25166 test ! -s conftest.err
25167 } && test -s conftest.$ac_objext; then
25168 ac_header_compiler=yes
25170 echo "$as_me: failed program was:" >&5
25171 sed 's/^/| /' conftest.$ac_ext >&5
25173 ac_header_compiler=no
25176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25178 echo "${ECHO_T}$ac_header_compiler" >&6; }
25180 # Is the header present?
25181 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25182 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25183 cat >conftest.$ac_ext <<_ACEOF
25186 cat confdefs.h >>conftest.$ac_ext
25187 cat >>conftest.$ac_ext <<_ACEOF
25188 /* end confdefs.h. */
25189 #include <${with_readline}/readline.h>
25191 if { (ac_try="$ac_cpp conftest.$ac_ext"
25192 case "(($ac_try" in
25193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25194 *) ac_try_echo=$ac_try;;
25196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25199 grep -v '^ *+' conftest.er1 >conftest.err
25201 cat conftest.err >&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); } >/dev/null && {
25204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25205 test ! -s conftest.err
25207 ac_header_preproc=yes
25209 echo "$as_me: failed program was:" >&5
25210 sed 's/^/| /' conftest.$ac_ext >&5
25212 ac_header_preproc=no
25215 rm -f conftest.err conftest.$ac_ext
25216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25217 echo "${ECHO_T}$ac_header_preproc" >&6; }
25219 # So? What about this header?
25220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25222 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25223 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25224 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25225 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25226 ac_header_preproc=yes
25229 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25230 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25231 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25232 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25233 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25234 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25235 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25236 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25237 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25238 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25239 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25240 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25244 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25245 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25247 echo $ECHO_N "(cached) $ECHO_C" >&6
25249 eval "$as_ac_Header=\$ac_header_preproc"
25251 ac_res=`eval echo '${'$as_ac_Header'}'`
25252 { echo "$as_me:$LINENO: result: $ac_res" >&5
25253 echo "${ECHO_T}$ac_res" >&6; }
25256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25259 cat >>confdefs.h <<\_ACEOF
25260 #define HAVE_READLINE 1
25263 CONS_LIBS="-lreadline -lhistory -ltermcap"
25269 echo "readline.h not found. readline turned off ..."
25281 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25282 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25283 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25284 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25285 echo $ECHO_N "(cached) $ECHO_C" >&6
25287 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25288 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25290 # Is the header compilable?
25291 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25292 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25293 cat >conftest.$ac_ext <<_ACEOF
25296 cat confdefs.h >>conftest.$ac_ext
25297 cat >>conftest.$ac_ext <<_ACEOF
25298 /* end confdefs.h. */
25299 $ac_includes_default
25300 #include </usr/include/readline/readline.h>
25302 rm -f conftest.$ac_objext
25303 if { (ac_try="$ac_compile"
25304 case "(($ac_try" in
25305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25306 *) ac_try_echo=$ac_try;;
25308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25309 (eval "$ac_compile") 2>conftest.er1
25311 grep -v '^ *+' conftest.er1 >conftest.err
25313 cat conftest.err >&5
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); } && {
25316 test -z "$ac_c_werror_flag" ||
25317 test ! -s conftest.err
25318 } && test -s conftest.$ac_objext; then
25319 ac_header_compiler=yes
25321 echo "$as_me: failed program was:" >&5
25322 sed 's/^/| /' conftest.$ac_ext >&5
25324 ac_header_compiler=no
25327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25329 echo "${ECHO_T}$ac_header_compiler" >&6; }
25331 # Is the header present?
25332 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25333 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25334 cat >conftest.$ac_ext <<_ACEOF
25337 cat confdefs.h >>conftest.$ac_ext
25338 cat >>conftest.$ac_ext <<_ACEOF
25339 /* end confdefs.h. */
25340 #include </usr/include/readline/readline.h>
25342 if { (ac_try="$ac_cpp conftest.$ac_ext"
25343 case "(($ac_try" in
25344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25345 *) ac_try_echo=$ac_try;;
25347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25350 grep -v '^ *+' conftest.er1 >conftest.err
25352 cat conftest.err >&5
25353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); } >/dev/null && {
25355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25356 test ! -s conftest.err
25358 ac_header_preproc=yes
25360 echo "$as_me: failed program was:" >&5
25361 sed 's/^/| /' conftest.$ac_ext >&5
25363 ac_header_preproc=no
25366 rm -f conftest.err conftest.$ac_ext
25367 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25368 echo "${ECHO_T}$ac_header_preproc" >&6; }
25370 # So? What about this header?
25371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25373 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25374 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25375 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25376 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25377 ac_header_preproc=yes
25380 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25381 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25382 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25383 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25384 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25385 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25386 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25387 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25388 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25389 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25390 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25391 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25395 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25396 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25397 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25398 echo $ECHO_N "(cached) $ECHO_C" >&6
25400 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25402 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25403 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25406 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25409 cat >>confdefs.h <<\_ACEOF
25410 #define HAVE_READLINE 1
25414 CONS_INC="-I/usr/include/readline"
25415 CONS_LIBS="-lreadline -ltermcap"
25419 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25421 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25422 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25426 ac_res=`eval echo '${'$as_ac_Header'}'`
25427 { echo "$as_me:$LINENO: result: $ac_res" >&5
25428 echo "${ECHO_T}$ac_res" >&6; }
25430 # Is the header compilable?
25431 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25432 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25433 cat >conftest.$ac_ext <<_ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 $ac_includes_default
25440 #include <${TOP_DIR}/depkgs/readline/readline.h>
25442 rm -f conftest.$ac_objext
25443 if { (ac_try="$ac_compile"
25444 case "(($ac_try" in
25445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25446 *) ac_try_echo=$ac_try;;
25448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25449 (eval "$ac_compile") 2>conftest.er1
25451 grep -v '^ *+' conftest.er1 >conftest.err
25453 cat conftest.err >&5
25454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && {
25456 test -z "$ac_c_werror_flag" ||
25457 test ! -s conftest.err
25458 } && test -s conftest.$ac_objext; then
25459 ac_header_compiler=yes
25461 echo "$as_me: failed program was:" >&5
25462 sed 's/^/| /' conftest.$ac_ext >&5
25464 ac_header_compiler=no
25467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25469 echo "${ECHO_T}$ac_header_compiler" >&6; }
25471 # Is the header present?
25472 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25473 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25474 cat >conftest.$ac_ext <<_ACEOF
25477 cat confdefs.h >>conftest.$ac_ext
25478 cat >>conftest.$ac_ext <<_ACEOF
25479 /* end confdefs.h. */
25480 #include <${TOP_DIR}/depkgs/readline/readline.h>
25482 if { (ac_try="$ac_cpp conftest.$ac_ext"
25483 case "(($ac_try" in
25484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25485 *) ac_try_echo=$ac_try;;
25487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25490 grep -v '^ *+' conftest.er1 >conftest.err
25492 cat conftest.err >&5
25493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25494 (exit $ac_status); } >/dev/null && {
25495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25496 test ! -s conftest.err
25498 ac_header_preproc=yes
25500 echo "$as_me: failed program was:" >&5
25501 sed 's/^/| /' conftest.$ac_ext >&5
25503 ac_header_preproc=no
25506 rm -f conftest.err conftest.$ac_ext
25507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25508 echo "${ECHO_T}$ac_header_preproc" >&6; }
25510 # So? What about this header?
25511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25513 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25514 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25515 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25516 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25517 ac_header_preproc=yes
25520 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25521 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25522 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25523 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25524 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25525 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25526 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25527 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25528 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25529 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25531 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25535 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25536 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25538 echo $ECHO_N "(cached) $ECHO_C" >&6
25540 eval "$as_ac_Header=\$ac_header_preproc"
25542 ac_res=`eval echo '${'$as_ac_Header'}'`
25543 { echo "$as_me:$LINENO: result: $ac_res" >&5
25544 echo "${ECHO_T}$ac_res" >&6; }
25547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25550 cat >>confdefs.h <<\_ACEOF
25551 #define HAVE_READLINE 1
25555 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25556 CONS_LIBS="-lreadline -lhistory -ltermcap"
25557 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25558 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25563 echo "readline.h not found. readline turned off ..."
25590 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25591 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25592 if test "${ac_cv_header_stat_broken+set}" = set; then
25593 echo $ECHO_N "(cached) $ECHO_C" >&6
25595 cat >conftest.$ac_ext <<_ACEOF
25598 cat confdefs.h >>conftest.$ac_ext
25599 cat >>conftest.$ac_ext <<_ACEOF
25600 /* end confdefs.h. */
25601 #include <sys/types.h>
25602 #include <sys/stat.h>
25604 #if defined S_ISBLK && defined S_IFDIR
25605 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25608 #if defined S_ISBLK && defined S_IFCHR
25609 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25612 #if defined S_ISLNK && defined S_IFREG
25613 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25616 #if defined S_ISSOCK && defined S_IFREG
25617 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25621 rm -f conftest.$ac_objext
25622 if { (ac_try="$ac_compile"
25623 case "(($ac_try" in
25624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25625 *) ac_try_echo=$ac_try;;
25627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25628 (eval "$ac_compile") 2>conftest.er1
25630 grep -v '^ *+' conftest.er1 >conftest.err
25632 cat conftest.err >&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); } && {
25635 test -z "$ac_c_werror_flag" ||
25636 test ! -s conftest.err
25637 } && test -s conftest.$ac_objext; then
25638 ac_cv_header_stat_broken=no
25640 echo "$as_me: failed program was:" >&5
25641 sed 's/^/| /' conftest.$ac_ext >&5
25643 ac_cv_header_stat_broken=yes
25646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25648 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25649 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25650 if test $ac_cv_header_stat_broken = yes; then
25652 cat >>confdefs.h <<\_ACEOF
25653 #define STAT_MACROS_BROKEN 1
25663 ac_header_dirent=no
25664 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25665 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25666 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25667 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25669 echo $ECHO_N "(cached) $ECHO_C" >&6
25671 cat >conftest.$ac_ext <<_ACEOF
25674 cat confdefs.h >>conftest.$ac_ext
25675 cat >>conftest.$ac_ext <<_ACEOF
25676 /* end confdefs.h. */
25677 #include <sys/types.h>
25689 rm -f conftest.$ac_objext
25690 if { (ac_try="$ac_compile"
25691 case "(($ac_try" in
25692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25693 *) ac_try_echo=$ac_try;;
25695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25696 (eval "$ac_compile") 2>conftest.er1
25698 grep -v '^ *+' conftest.er1 >conftest.err
25700 cat conftest.err >&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } && {
25703 test -z "$ac_c_werror_flag" ||
25704 test ! -s conftest.err
25705 } && test -s conftest.$ac_objext; then
25706 eval "$as_ac_Header=yes"
25708 echo "$as_me: failed program was:" >&5
25709 sed 's/^/| /' conftest.$ac_ext >&5
25711 eval "$as_ac_Header=no"
25714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25716 ac_res=`eval echo '${'$as_ac_Header'}'`
25717 { echo "$as_me:$LINENO: result: $ac_res" >&5
25718 echo "${ECHO_T}$ac_res" >&6; }
25719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25720 cat >>confdefs.h <<_ACEOF
25721 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25724 ac_header_dirent=$ac_hdr; break
25728 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25729 if test $ac_header_dirent = dirent.h; then
25730 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25731 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25732 if test "${ac_cv_search_opendir+set}" = set; then
25733 echo $ECHO_N "(cached) $ECHO_C" >&6
25735 ac_func_search_save_LIBS=$LIBS
25736 cat >conftest.$ac_ext <<_ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h. */
25743 /* Override any GCC internal prototype to avoid an error.
25744 Use char because int might match the return type of a GCC
25745 builtin and then its argument prototype would still apply. */
25758 for ac_lib in '' dir; do
25759 if test -z "$ac_lib"; then
25760 ac_res="none required"
25763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25765 rm -f conftest.$ac_objext conftest$ac_exeext
25766 if { (ac_try="$ac_link"
25767 case "(($ac_try" in
25768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25769 *) ac_try_echo=$ac_try;;
25771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25772 (eval "$ac_link") 2>conftest.er1
25774 grep -v '^ *+' conftest.er1 >conftest.err
25776 cat conftest.err >&5
25777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25778 (exit $ac_status); } && {
25779 test -z "$ac_c_werror_flag" ||
25780 test ! -s conftest.err
25781 } && test -s conftest$ac_exeext &&
25782 $as_test_x conftest$ac_exeext; then
25783 ac_cv_search_opendir=$ac_res
25785 echo "$as_me: failed program was:" >&5
25786 sed 's/^/| /' conftest.$ac_ext >&5
25791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25793 if test "${ac_cv_search_opendir+set}" = set; then
25797 if test "${ac_cv_search_opendir+set}" = set; then
25800 ac_cv_search_opendir=no
25802 rm conftest.$ac_ext
25803 LIBS=$ac_func_search_save_LIBS
25805 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25806 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25807 ac_res=$ac_cv_search_opendir
25808 if test "$ac_res" != no; then
25809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25814 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25815 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25816 if test "${ac_cv_search_opendir+set}" = set; then
25817 echo $ECHO_N "(cached) $ECHO_C" >&6
25819 ac_func_search_save_LIBS=$LIBS
25820 cat >conftest.$ac_ext <<_ACEOF
25823 cat confdefs.h >>conftest.$ac_ext
25824 cat >>conftest.$ac_ext <<_ACEOF
25825 /* end confdefs.h. */
25827 /* Override any GCC internal prototype to avoid an error.
25828 Use char because int might match the return type of a GCC
25829 builtin and then its argument prototype would still apply. */
25842 for ac_lib in '' x; do
25843 if test -z "$ac_lib"; then
25844 ac_res="none required"
25847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25849 rm -f conftest.$ac_objext conftest$ac_exeext
25850 if { (ac_try="$ac_link"
25851 case "(($ac_try" in
25852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25853 *) ac_try_echo=$ac_try;;
25855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25856 (eval "$ac_link") 2>conftest.er1
25858 grep -v '^ *+' conftest.er1 >conftest.err
25860 cat conftest.err >&5
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); } && {
25863 test -z "$ac_c_werror_flag" ||
25864 test ! -s conftest.err
25865 } && test -s conftest$ac_exeext &&
25866 $as_test_x conftest$ac_exeext; then
25867 ac_cv_search_opendir=$ac_res
25869 echo "$as_me: failed program was:" >&5
25870 sed 's/^/| /' conftest.$ac_ext >&5
25875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25877 if test "${ac_cv_search_opendir+set}" = set; then
25881 if test "${ac_cv_search_opendir+set}" = set; then
25884 ac_cv_search_opendir=no
25886 rm conftest.$ac_ext
25887 LIBS=$ac_func_search_save_LIBS
25889 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25890 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25891 ac_res=$ac_cv_search_opendir
25892 if test "$ac_res" != no; then
25893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25906 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25908 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25909 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25910 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25911 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25912 echo $ECHO_N "(cached) $ECHO_C" >&6
25914 cat >conftest.$ac_ext <<_ACEOF
25917 cat confdefs.h >>conftest.$ac_ext
25918 cat >>conftest.$ac_ext <<_ACEOF
25919 /* end confdefs.h. */
25920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25922 #define $ac_func innocuous_$ac_func
25924 /* System header to define __stub macros and hopefully few prototypes,
25925 which can conflict with char $ac_func (); below.
25926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25927 <limits.h> exists even on freestanding compilers. */
25930 # include <limits.h>
25932 # include <assert.h>
25937 /* Override any GCC internal prototype to avoid an error.
25938 Use char because int might match the return type of a GCC
25939 builtin and then its argument prototype would still apply. */
25944 /* The GNU C library defines this for functions which it implements
25945 to always fail with ENOSYS. Some functions are actually named
25946 something starting with __ and the normal name is an alias. */
25947 #if defined __stub_$ac_func || defined __stub___$ac_func
25954 return $ac_func ();
25959 rm -f conftest.$ac_objext conftest$ac_exeext
25960 if { (ac_try="$ac_link"
25961 case "(($ac_try" in
25962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25963 *) ac_try_echo=$ac_try;;
25965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25966 (eval "$ac_link") 2>conftest.er1
25968 grep -v '^ *+' conftest.er1 >conftest.err
25970 cat conftest.err >&5
25971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25972 (exit $ac_status); } && {
25973 test -z "$ac_c_werror_flag" ||
25974 test ! -s conftest.err
25975 } && test -s conftest$ac_exeext &&
25976 $as_test_x conftest$ac_exeext; then
25977 eval "$as_ac_var=yes"
25979 echo "$as_me: failed program was:" >&5
25980 sed 's/^/| /' conftest.$ac_ext >&5
25982 eval "$as_ac_var=no"
25985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25986 conftest$ac_exeext conftest.$ac_ext
25988 ac_res=`eval echo '${'$as_ac_var'}'`
25989 { echo "$as_me:$LINENO: result: $ac_res" >&5
25990 echo "${ECHO_T}$ac_res" >&6; }
25991 if test `eval echo '${'$as_ac_var'}'` = yes; then
25992 cat >>confdefs.h <<_ACEOF
25993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26001 for ac_func in nanosleep nl_langinfo
26003 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26007 echo $ECHO_N "(cached) $ECHO_C" >&6
26009 cat >conftest.$ac_ext <<_ACEOF
26012 cat confdefs.h >>conftest.$ac_ext
26013 cat >>conftest.$ac_ext <<_ACEOF
26014 /* end confdefs.h. */
26015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26017 #define $ac_func innocuous_$ac_func
26019 /* System header to define __stub macros and hopefully few prototypes,
26020 which can conflict with char $ac_func (); below.
26021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26022 <limits.h> exists even on freestanding compilers. */
26025 # include <limits.h>
26027 # include <assert.h>
26032 /* Override any GCC internal prototype to avoid an error.
26033 Use char because int might match the return type of a GCC
26034 builtin and then its argument prototype would still apply. */
26039 /* The GNU C library defines this for functions which it implements
26040 to always fail with ENOSYS. Some functions are actually named
26041 something starting with __ and the normal name is an alias. */
26042 #if defined __stub_$ac_func || defined __stub___$ac_func
26049 return $ac_func ();
26054 rm -f conftest.$ac_objext conftest$ac_exeext
26055 if { (ac_try="$ac_link"
26056 case "(($ac_try" in
26057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26058 *) ac_try_echo=$ac_try;;
26060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26061 (eval "$ac_link") 2>conftest.er1
26063 grep -v '^ *+' conftest.er1 >conftest.err
26065 cat conftest.err >&5
26066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26067 (exit $ac_status); } && {
26068 test -z "$ac_c_werror_flag" ||
26069 test ! -s conftest.err
26070 } && test -s conftest$ac_exeext &&
26071 $as_test_x conftest$ac_exeext; then
26072 eval "$as_ac_var=yes"
26074 echo "$as_me: failed program was:" >&5
26075 sed 's/^/| /' conftest.$ac_ext >&5
26077 eval "$as_ac_var=no"
26080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26081 conftest$ac_exeext conftest.$ac_ext
26083 ac_res=`eval echo '${'$as_ac_var'}'`
26084 { echo "$as_me:$LINENO: result: $ac_res" >&5
26085 echo "${ECHO_T}$ac_res" >&6; }
26086 if test `eval echo '${'$as_ac_var'}'` = yes; then
26087 cat >>confdefs.h <<_ACEOF
26088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26095 for ac_header in varargs.h
26097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26102 echo $ECHO_N "(cached) $ECHO_C" >&6
26104 ac_res=`eval echo '${'$as_ac_Header'}'`
26105 { echo "$as_me:$LINENO: result: $ac_res" >&5
26106 echo "${ECHO_T}$ac_res" >&6; }
26108 # Is the header compilable?
26109 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26110 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26111 cat >conftest.$ac_ext <<_ACEOF
26114 cat confdefs.h >>conftest.$ac_ext
26115 cat >>conftest.$ac_ext <<_ACEOF
26116 /* end confdefs.h. */
26117 $ac_includes_default
26118 #include <$ac_header>
26120 rm -f conftest.$ac_objext
26121 if { (ac_try="$ac_compile"
26122 case "(($ac_try" in
26123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26124 *) ac_try_echo=$ac_try;;
26126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26127 (eval "$ac_compile") 2>conftest.er1
26129 grep -v '^ *+' conftest.er1 >conftest.err
26131 cat conftest.err >&5
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); } && {
26134 test -z "$ac_c_werror_flag" ||
26135 test ! -s conftest.err
26136 } && test -s conftest.$ac_objext; then
26137 ac_header_compiler=yes
26139 echo "$as_me: failed program was:" >&5
26140 sed 's/^/| /' conftest.$ac_ext >&5
26142 ac_header_compiler=no
26145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26147 echo "${ECHO_T}$ac_header_compiler" >&6; }
26149 # Is the header present?
26150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26152 cat >conftest.$ac_ext <<_ACEOF
26155 cat confdefs.h >>conftest.$ac_ext
26156 cat >>conftest.$ac_ext <<_ACEOF
26157 /* end confdefs.h. */
26158 #include <$ac_header>
26160 if { (ac_try="$ac_cpp conftest.$ac_ext"
26161 case "(($ac_try" in
26162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26163 *) ac_try_echo=$ac_try;;
26165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26168 grep -v '^ *+' conftest.er1 >conftest.err
26170 cat conftest.err >&5
26171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26172 (exit $ac_status); } >/dev/null && {
26173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26174 test ! -s conftest.err
26176 ac_header_preproc=yes
26178 echo "$as_me: failed program was:" >&5
26179 sed 's/^/| /' conftest.$ac_ext >&5
26181 ac_header_preproc=no
26184 rm -f conftest.err conftest.$ac_ext
26185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26186 echo "${ECHO_T}$ac_header_preproc" >&6; }
26188 # So? What about this header?
26189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26191 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26192 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26194 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26195 ac_header_preproc=yes
26198 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26199 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26200 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26201 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26202 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26203 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26204 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26205 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26208 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26209 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26213 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26214 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26216 echo $ECHO_N "(cached) $ECHO_C" >&6
26218 eval "$as_ac_Header=\$ac_header_preproc"
26220 ac_res=`eval echo '${'$as_ac_Header'}'`
26221 { echo "$as_me:$LINENO: result: $ac_res" >&5
26222 echo "${ECHO_T}$ac_res" >&6; }
26225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26226 cat >>confdefs.h <<_ACEOF
26227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26236 { echo "$as_me:$LINENO: checking for Python support" >&5
26237 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26239 # Check whether --with-python was given.
26240 if test "${with_python+set}" = set; then
26241 withval=$with_python;
26244 if test "$withval" != "no"; then
26245 if test "$withval" = "yes"; then
26246 if test -e /usr/bin/python-config ; then
26247 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26248 PYTHON_LIBS=`/usr/bin/python-config --libs`
26250 for python_root in /usr /usr/local /usr/sfw; do
26251 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26252 if test -f $python_root/include/${ver}/Python.h; then
26253 PYTHON_INCDIR=-I$python_root/include/${ver}
26254 if test -d $python_root/lib64/${ver}/config; then
26255 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26257 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26264 if test x$PYTHON_INCDIR = x; then
26265 if test -f $prefix/include/Python.h; then
26266 PYTHON_INCDIR=-I$prefix/include
26267 if test -d $prefix/lib64/config; then
26268 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26270 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26273 { echo "$as_me:$LINENO: result: no" >&5
26274 echo "${ECHO_T}no" >&6; }
26275 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26276 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26277 { (exit 1); exit 1; }; }
26282 if test -e $withval/bin/python-config ; then
26283 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26284 PYTHON_LIBS=`$withval/bin/python-config --libs`
26285 elif test -f $withval/Python.h; then
26286 PYTHON_INCDIR=-I$withval
26287 PYTHON_LIBS="-L$withval/config -lpython"
26288 elif test -f $withval/include/Python.h; then
26289 PYTHON_INCDIR=-I$withval/include
26290 if test -d $withval/lib64/config; then
26291 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26293 PYTHON_LIBS="-L$withval/lib/config -lpython"
26295 elif test -f $withval/include/python/Python.h; then
26296 PYTHON_INCDIR=-I$withval/include/python
26297 if test -d $withval/lib64/python/config; then
26298 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26300 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26303 { echo "$as_me:$LINENO: result: no" >&5
26304 echo "${ECHO_T}no" >&6; }
26305 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26306 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26307 { (exit 1); exit 1; }; }
26311 cat >>confdefs.h <<\_ACEOF
26312 #define HAVE_PYTHON 1
26315 { echo "$as_me:$LINENO: result: yes" >&5
26316 echo "${ECHO_T}yes" >&6; }
26318 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26319 echo "$as_me: checking for more Python libs" >&6;}
26320 saved_LIBS="$LIBS"; LIBS=
26321 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26322 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26323 if test "${ac_cv_search_shm_open+set}" = set; then
26324 echo $ECHO_N "(cached) $ECHO_C" >&6
26326 ac_func_search_save_LIBS=$LIBS
26327 cat >conftest.$ac_ext <<_ACEOF
26330 cat confdefs.h >>conftest.$ac_ext
26331 cat >>conftest.$ac_ext <<_ACEOF
26332 /* end confdefs.h. */
26334 /* Override any GCC internal prototype to avoid an error.
26335 Use char because int might match the return type of a GCC
26336 builtin and then its argument prototype would still apply. */
26344 return shm_open ();
26349 for ac_lib in '' rt; do
26350 if test -z "$ac_lib"; then
26351 ac_res="none required"
26354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26356 rm -f conftest.$ac_objext conftest$ac_exeext
26357 if { (ac_try="$ac_link"
26358 case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26363 (eval "$ac_link") 2>conftest.er1
26365 grep -v '^ *+' conftest.er1 >conftest.err
26367 cat conftest.err >&5
26368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26369 (exit $ac_status); } && {
26370 test -z "$ac_c_werror_flag" ||
26371 test ! -s conftest.err
26372 } && test -s conftest$ac_exeext &&
26373 $as_test_x conftest$ac_exeext; then
26374 ac_cv_search_shm_open=$ac_res
26376 echo "$as_me: failed program was:" >&5
26377 sed 's/^/| /' conftest.$ac_ext >&5
26382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26384 if test "${ac_cv_search_shm_open+set}" = set; then
26388 if test "${ac_cv_search_shm_open+set}" = set; then
26391 ac_cv_search_shm_open=no
26393 rm conftest.$ac_ext
26394 LIBS=$ac_func_search_save_LIBS
26396 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26397 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26398 ac_res=$ac_cv_search_shm_open
26399 if test "$ac_res" != no; then
26400 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26405 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26406 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26407 if test "${ac_cv_lib_util_openpty+set}" = set; then
26408 echo $ECHO_N "(cached) $ECHO_C" >&6
26410 ac_check_lib_save_LIBS=$LIBS
26411 LIBS="-lutil $LIBS"
26412 cat >conftest.$ac_ext <<_ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h. */
26419 /* Override any GCC internal prototype to avoid an error.
26420 Use char because int might match the return type of a GCC
26421 builtin and then its argument prototype would still apply. */
26434 rm -f conftest.$ac_objext conftest$ac_exeext
26435 if { (ac_try="$ac_link"
26436 case "(($ac_try" in
26437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26438 *) ac_try_echo=$ac_try;;
26440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26441 (eval "$ac_link") 2>conftest.er1
26443 grep -v '^ *+' conftest.er1 >conftest.err
26445 cat conftest.err >&5
26446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26447 (exit $ac_status); } && {
26448 test -z "$ac_c_werror_flag" ||
26449 test ! -s conftest.err
26450 } && test -s conftest$ac_exeext &&
26451 $as_test_x conftest$ac_exeext; then
26452 ac_cv_lib_util_openpty=yes
26454 echo "$as_me: failed program was:" >&5
26455 sed 's/^/| /' conftest.$ac_ext >&5
26457 ac_cv_lib_util_openpty=no
26460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26461 conftest$ac_exeext conftest.$ac_ext
26462 LIBS=$ac_check_lib_save_LIBS
26464 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26465 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26466 if test $ac_cv_lib_util_openpty = yes; then
26467 cat >>confdefs.h <<_ACEOF
26468 #define HAVE_LIBUTIL 1
26471 LIBS="-lutil $LIBS"
26475 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26478 { echo "$as_me:$LINENO: result: no" >&5
26479 echo "${ECHO_T}no" >&6; }
26484 { echo "$as_me:$LINENO: result: no" >&5
26485 echo "${ECHO_T}no" >&6; }
26493 { echo "$as_me:$LINENO: checking for socket" >&5
26494 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26495 if test "${ac_cv_func_socket+set}" = set; then
26496 echo $ECHO_N "(cached) $ECHO_C" >&6
26498 cat >conftest.$ac_ext <<_ACEOF
26501 cat confdefs.h >>conftest.$ac_ext
26502 cat >>conftest.$ac_ext <<_ACEOF
26503 /* end confdefs.h. */
26504 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26506 #define socket innocuous_socket
26508 /* System header to define __stub macros and hopefully few prototypes,
26509 which can conflict with char socket (); below.
26510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26511 <limits.h> exists even on freestanding compilers. */
26514 # include <limits.h>
26516 # include <assert.h>
26521 /* Override any GCC internal prototype to avoid an error.
26522 Use char because int might match the return type of a GCC
26523 builtin and then its argument prototype would still apply. */
26528 /* The GNU C library defines this for functions which it implements
26529 to always fail with ENOSYS. Some functions are actually named
26530 something starting with __ and the normal name is an alias. */
26531 #if defined __stub_socket || defined __stub___socket
26543 rm -f conftest.$ac_objext conftest$ac_exeext
26544 if { (ac_try="$ac_link"
26545 case "(($ac_try" in
26546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26547 *) ac_try_echo=$ac_try;;
26549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26550 (eval "$ac_link") 2>conftest.er1
26552 grep -v '^ *+' conftest.er1 >conftest.err
26554 cat conftest.err >&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); } && {
26557 test -z "$ac_c_werror_flag" ||
26558 test ! -s conftest.err
26559 } && test -s conftest$ac_exeext &&
26560 $as_test_x conftest$ac_exeext; then
26561 ac_cv_func_socket=yes
26563 echo "$as_me: failed program was:" >&5
26564 sed 's/^/| /' conftest.$ac_ext >&5
26566 ac_cv_func_socket=no
26569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26570 conftest$ac_exeext conftest.$ac_ext
26572 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26573 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26574 if test $ac_cv_func_socket = yes; then
26575 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26576 echo "${ECHO_T}using libc's socket" >&6; }
26579 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26580 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26581 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26582 echo $ECHO_N "(cached) $ECHO_C" >&6
26584 ac_check_lib_save_LIBS=$LIBS
26585 LIBS="-lxnet $LIBS"
26586 cat >conftest.$ac_ext <<_ACEOF
26589 cat confdefs.h >>conftest.$ac_ext
26590 cat >>conftest.$ac_ext <<_ACEOF
26591 /* end confdefs.h. */
26593 /* Override any GCC internal prototype to avoid an error.
26594 Use char because int might match the return type of a GCC
26595 builtin and then its argument prototype would still apply. */
26608 rm -f conftest.$ac_objext conftest$ac_exeext
26609 if { (ac_try="$ac_link"
26610 case "(($ac_try" in
26611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26612 *) ac_try_echo=$ac_try;;
26614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26615 (eval "$ac_link") 2>conftest.er1
26617 grep -v '^ *+' conftest.er1 >conftest.err
26619 cat conftest.err >&5
26620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26621 (exit $ac_status); } && {
26622 test -z "$ac_c_werror_flag" ||
26623 test ! -s conftest.err
26624 } && test -s conftest$ac_exeext &&
26625 $as_test_x conftest$ac_exeext; then
26626 ac_cv_lib_xnet_socket=yes
26628 echo "$as_me: failed program was:" >&5
26629 sed 's/^/| /' conftest.$ac_ext >&5
26631 ac_cv_lib_xnet_socket=no
26634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26635 conftest$ac_exeext conftest.$ac_ext
26636 LIBS=$ac_check_lib_save_LIBS
26638 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26639 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26640 if test $ac_cv_lib_xnet_socket = yes; then
26641 cat >>confdefs.h <<_ACEOF
26642 #define HAVE_LIBXNET 1
26645 LIBS="-lxnet $LIBS"
26650 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26651 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26652 if test "${ac_cv_lib_socket_socket+set}" = set; then
26653 echo $ECHO_N "(cached) $ECHO_C" >&6
26655 ac_check_lib_save_LIBS=$LIBS
26656 LIBS="-lsocket $LIBS"
26657 cat >conftest.$ac_ext <<_ACEOF
26660 cat confdefs.h >>conftest.$ac_ext
26661 cat >>conftest.$ac_ext <<_ACEOF
26662 /* end confdefs.h. */
26664 /* Override any GCC internal prototype to avoid an error.
26665 Use char because int might match the return type of a GCC
26666 builtin and then its argument prototype would still apply. */
26679 rm -f conftest.$ac_objext conftest$ac_exeext
26680 if { (ac_try="$ac_link"
26681 case "(($ac_try" in
26682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26683 *) ac_try_echo=$ac_try;;
26685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26686 (eval "$ac_link") 2>conftest.er1
26688 grep -v '^ *+' conftest.er1 >conftest.err
26690 cat conftest.err >&5
26691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26692 (exit $ac_status); } && {
26693 test -z "$ac_c_werror_flag" ||
26694 test ! -s conftest.err
26695 } && test -s conftest$ac_exeext &&
26696 $as_test_x conftest$ac_exeext; then
26697 ac_cv_lib_socket_socket=yes
26699 echo "$as_me: failed program was:" >&5
26700 sed 's/^/| /' conftest.$ac_ext >&5
26702 ac_cv_lib_socket_socket=no
26705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26706 conftest$ac_exeext conftest.$ac_ext
26707 LIBS=$ac_check_lib_save_LIBS
26709 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26710 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26711 if test $ac_cv_lib_socket_socket = yes; then
26712 cat >>confdefs.h <<_ACEOF
26713 #define HAVE_LIBSOCKET 1
26716 LIBS="-lsocket $LIBS"
26721 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26722 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26723 if test "${ac_cv_lib_inet_socket+set}" = set; then
26724 echo $ECHO_N "(cached) $ECHO_C" >&6
26726 ac_check_lib_save_LIBS=$LIBS
26727 LIBS="-linet $LIBS"
26728 cat >conftest.$ac_ext <<_ACEOF
26731 cat confdefs.h >>conftest.$ac_ext
26732 cat >>conftest.$ac_ext <<_ACEOF
26733 /* end confdefs.h. */
26735 /* Override any GCC internal prototype to avoid an error.
26736 Use char because int might match the return type of a GCC
26737 builtin and then its argument prototype would still apply. */
26750 rm -f conftest.$ac_objext conftest$ac_exeext
26751 if { (ac_try="$ac_link"
26752 case "(($ac_try" in
26753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26754 *) ac_try_echo=$ac_try;;
26756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26757 (eval "$ac_link") 2>conftest.er1
26759 grep -v '^ *+' conftest.er1 >conftest.err
26761 cat conftest.err >&5
26762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26763 (exit $ac_status); } && {
26764 test -z "$ac_c_werror_flag" ||
26765 test ! -s conftest.err
26766 } && test -s conftest$ac_exeext &&
26767 $as_test_x conftest$ac_exeext; then
26768 ac_cv_lib_inet_socket=yes
26770 echo "$as_me: failed program was:" >&5
26771 sed 's/^/| /' conftest.$ac_ext >&5
26773 ac_cv_lib_inet_socket=no
26776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26777 conftest$ac_exeext conftest.$ac_ext
26778 LIBS=$ac_check_lib_save_LIBS
26780 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26781 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26782 if test $ac_cv_lib_inet_socket = yes; then
26783 cat >>confdefs.h <<_ACEOF
26784 #define HAVE_LIBINET 1
26787 LIBS="-linet $LIBS"
26797 # Check whether --with-tcp-wrappers was given.
26798 if test "${with_tcp_wrappers+set}" = set; then
26799 withval=$with_tcp_wrappers;
26800 if test "x$withval" != "xno" ; then
26802 LIBS="$saved_LIBS -lwrap"
26803 { echo "$as_me:$LINENO: checking for libwrap" >&5
26804 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26805 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26806 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26807 if test "${ac_cv_search_nanosleep+set}" = set; then
26808 echo $ECHO_N "(cached) $ECHO_C" >&6
26810 ac_func_search_save_LIBS=$LIBS
26811 cat >conftest.$ac_ext <<_ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h. */
26818 /* Override any GCC internal prototype to avoid an error.
26819 Use char because int might match the return type of a GCC
26820 builtin and then its argument prototype would still apply. */
26828 return nanosleep ();
26833 for ac_lib in '' rt; do
26834 if test -z "$ac_lib"; then
26835 ac_res="none required"
26838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26840 rm -f conftest.$ac_objext conftest$ac_exeext
26841 if { (ac_try="$ac_link"
26842 case "(($ac_try" in
26843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26844 *) ac_try_echo=$ac_try;;
26846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26847 (eval "$ac_link") 2>conftest.er1
26849 grep -v '^ *+' conftest.er1 >conftest.err
26851 cat conftest.err >&5
26852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26853 (exit $ac_status); } && {
26854 test -z "$ac_c_werror_flag" ||
26855 test ! -s conftest.err
26856 } && test -s conftest$ac_exeext &&
26857 $as_test_x conftest$ac_exeext; then
26858 ac_cv_search_nanosleep=$ac_res
26860 echo "$as_me: failed program was:" >&5
26861 sed 's/^/| /' conftest.$ac_ext >&5
26866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26868 if test "${ac_cv_search_nanosleep+set}" = set; then
26872 if test "${ac_cv_search_nanosleep+set}" = set; then
26875 ac_cv_search_nanosleep=no
26877 rm conftest.$ac_ext
26878 LIBS=$ac_func_search_save_LIBS
26880 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26881 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26882 ac_res=$ac_cv_search_nanosleep
26883 if test "$ac_res" != no; then
26884 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26888 cat >conftest.$ac_ext <<_ACEOF
26891 cat confdefs.h >>conftest.$ac_ext
26892 cat >>conftest.$ac_ext <<_ACEOF
26893 /* end confdefs.h. */
26895 #include <sys/types.h>
26897 int deny_severity = 0;
26898 int allow_severity = 0;
26899 struct request_info *req;
26911 rm -f conftest.$ac_objext conftest$ac_exeext
26912 if { (ac_try="$ac_link"
26913 case "(($ac_try" in
26914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26915 *) ac_try_echo=$ac_try;;
26917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26918 (eval "$ac_link") 2>conftest.er1
26920 grep -v '^ *+' conftest.er1 >conftest.err
26922 cat conftest.err >&5
26923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26924 (exit $ac_status); } && {
26925 test -z "$ac_c_werror_flag" ||
26926 test ! -s conftest.err
26927 } && test -s conftest$ac_exeext &&
26928 $as_test_x conftest$ac_exeext; then
26930 { echo "$as_me:$LINENO: result: yes" >&5
26931 echo "${ECHO_T}yes" >&6; }
26933 cat >>confdefs.h <<\_ACEOF
26934 #define HAVE_LIBWRAP 1
26942 echo "$as_me: failed program was:" >&5
26943 sed 's/^/| /' conftest.$ac_ext >&5
26946 LIBS="$saved_LIBS -lwrap -lnsl"
26947 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26948 cat >conftest.$ac_ext <<_ACEOF
26951 cat confdefs.h >>conftest.$ac_ext
26952 cat >>conftest.$ac_ext <<_ACEOF
26953 /* end confdefs.h. */
26955 #include <sys/types.h>
26957 int deny_severity = 0;
26958 int allow_severity = 0;
26959 struct request_info *req;
26971 rm -f conftest.$ac_objext conftest$ac_exeext
26972 if { (ac_try="$ac_link"
26973 case "(($ac_try" in
26974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26975 *) ac_try_echo=$ac_try;;
26977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26978 (eval "$ac_link") 2>conftest.er1
26980 grep -v '^ *+' conftest.er1 >conftest.err
26982 cat conftest.err >&5
26983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26984 (exit $ac_status); } && {
26985 test -z "$ac_c_werror_flag" ||
26986 test ! -s conftest.err
26987 } && test -s conftest$ac_exeext &&
26988 $as_test_x conftest$ac_exeext; then
26990 { echo "$as_me:$LINENO: result: yes" >&5
26991 echo "${ECHO_T}yes" >&6; }
26993 cat >>confdefs.h <<\_ACEOF
26994 #define HAVE_LIBWRAP 1
27002 echo "$as_me: failed program was:" >&5
27003 sed 's/^/| /' conftest.$ac_ext >&5
27006 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27007 echo "$as_me: error: *** libwrap missing" >&2;}
27008 { (exit 1); exit 1; }; }
27013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27014 conftest$ac_exeext conftest.$ac_ext
27019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27020 conftest$ac_exeext conftest.$ac_ext
27027 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27028 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27030 # Check whether --with-openssl was given.
27031 if test "${with_openssl+set}" = set; then
27032 withval=$with_openssl;
27033 with_openssl_directory=${withval}
27039 if test "x$with_openssl_directory" != "xno"; then
27040 OPENSSL_LIBS="-lssl -lcrypto"
27043 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27045 # Make sure the $with_openssl_directory also makes sense
27047 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27048 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27049 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27053 saved_LIBS="${LIBS}"
27054 saved_CFLAGS="${CFLAGS}"
27055 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27056 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27058 cat >conftest.$ac_ext <<_ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h. */
27065 #include <openssl/ssl.h>
27071 CRYPTO_set_id_callback(NULL);
27077 rm -f conftest.$ac_objext conftest$ac_exeext
27078 if { (ac_try="$ac_link"
27079 case "(($ac_try" in
27080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081 *) ac_try_echo=$ac_try;;
27083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084 (eval "$ac_link") 2>conftest.er1
27086 grep -v '^ *+' conftest.er1 >conftest.err
27088 cat conftest.err >&5
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); } && {
27091 test -z "$ac_c_werror_flag" ||
27092 test ! -s conftest.err
27093 } && test -s conftest$ac_exeext &&
27094 $as_test_x conftest$ac_exeext; then
27097 support_crypto="yes"
27100 echo "$as_me: failed program was:" >&5
27101 sed 's/^/| /' conftest.$ac_ext >&5
27109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27110 conftest$ac_exeext conftest.$ac_ext
27112 cat >conftest.$ac_ext <<_ACEOF
27115 cat confdefs.h >>conftest.$ac_ext
27116 cat >>conftest.$ac_ext <<_ACEOF
27117 /* end confdefs.h. */
27119 #include <openssl/evp.h>
27131 rm -f conftest.$ac_objext conftest$ac_exeext
27132 if { (ac_try="$ac_link"
27133 case "(($ac_try" in
27134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27135 *) ac_try_echo=$ac_try;;
27137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27138 (eval "$ac_link") 2>conftest.er1
27140 grep -v '^ *+' conftest.er1 >conftest.err
27142 cat conftest.err >&5
27143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27144 (exit $ac_status); } && {
27145 test -z "$ac_c_werror_flag" ||
27146 test ! -s conftest.err
27147 } && test -s conftest$ac_exeext &&
27148 $as_test_x conftest$ac_exeext; then
27150 ac_cv_openssl_sha2="yes"
27153 echo "$as_me: failed program was:" >&5
27154 sed 's/^/| /' conftest.$ac_ext >&5
27157 ac_cv_openssl_sha2="no"
27162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27163 conftest$ac_exeext conftest.$ac_ext
27165 cat >conftest.$ac_ext <<_ACEOF
27168 cat confdefs.h >>conftest.$ac_ext
27169 cat >>conftest.$ac_ext <<_ACEOF
27170 /* end confdefs.h. */
27172 #include <openssl/evp.h>
27184 rm -f conftest.$ac_objext conftest$ac_exeext
27185 if { (ac_try="$ac_link"
27186 case "(($ac_try" in
27187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27188 *) ac_try_echo=$ac_try;;
27190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27191 (eval "$ac_link") 2>conftest.er1
27193 grep -v '^ *+' conftest.er1 >conftest.err
27195 cat conftest.err >&5
27196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27197 (exit $ac_status); } && {
27198 test -z "$ac_c_werror_flag" ||
27199 test ! -s conftest.err
27200 } && test -s conftest$ac_exeext &&
27201 $as_test_x conftest$ac_exeext; then
27203 ac_cv_openssl_export="no"
27206 echo "$as_me: failed program was:" >&5
27207 sed 's/^/| /' conftest.$ac_ext >&5
27210 ac_cv_openssl_export="yes"
27215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27216 conftest$ac_exeext conftest.$ac_ext
27218 LIBS="${saved_LIBS}"
27219 CFLAGS="${saved_CFLAGS}"
27221 if test "$support_tls" = "yes"; then
27223 cat >>confdefs.h <<\_ACEOF
27224 #define HAVE_OPENSSL 1
27228 cat >>confdefs.h <<\_ACEOF
27233 cat >>confdefs.h <<\_ACEOF
27234 #define HAVE_CRYPTO 1
27239 if test "$ac_cv_openssl_sha2" = "yes"; then
27241 cat >>confdefs.h <<\_ACEOF
27242 #define HAVE_SHA2 1
27247 if test "$ac_cv_openssl_export" = "yes"; then
27249 cat >>confdefs.h <<\_ACEOF
27250 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27256 support_crypto="no"
27261 if test "$support_tls" = "no"; then
27266 { echo "$as_me:$LINENO: result: $support_tls" >&5
27267 echo "${ECHO_T}$support_tls" >&6; }
27271 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27272 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27273 if test "${ac_cv_search_dlopen+set}" = set; then
27274 echo $ECHO_N "(cached) $ECHO_C" >&6
27276 ac_func_search_save_LIBS=$LIBS
27277 cat >conftest.$ac_ext <<_ACEOF
27280 cat confdefs.h >>conftest.$ac_ext
27281 cat >>conftest.$ac_ext <<_ACEOF
27282 /* end confdefs.h. */
27284 /* Override any GCC internal prototype to avoid an error.
27285 Use char because int might match the return type of a GCC
27286 builtin and then its argument prototype would still apply. */
27299 for ac_lib in '' dl; do
27300 if test -z "$ac_lib"; then
27301 ac_res="none required"
27304 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27306 rm -f conftest.$ac_objext conftest$ac_exeext
27307 if { (ac_try="$ac_link"
27308 case "(($ac_try" in
27309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27310 *) ac_try_echo=$ac_try;;
27312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27313 (eval "$ac_link") 2>conftest.er1
27315 grep -v '^ *+' conftest.er1 >conftest.err
27317 cat conftest.err >&5
27318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27319 (exit $ac_status); } && {
27320 test -z "$ac_c_werror_flag" ||
27321 test ! -s conftest.err
27322 } && test -s conftest$ac_exeext &&
27323 $as_test_x conftest$ac_exeext; then
27324 ac_cv_search_dlopen=$ac_res
27326 echo "$as_me: failed program was:" >&5
27327 sed 's/^/| /' conftest.$ac_ext >&5
27332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27334 if test "${ac_cv_search_dlopen+set}" = set; then
27338 if test "${ac_cv_search_dlopen+set}" = set; then
27341 ac_cv_search_dlopen=no
27343 rm conftest.$ac_ext
27344 LIBS=$ac_func_search_save_LIBS
27346 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27347 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27348 ac_res=$ac_cv_search_dlopen
27349 if test "$ac_res" != no; then
27350 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27355 working_dir=`eval echo ${prefix}/var/bacula/working`
27357 # Check whether --with-working-dir was given.
27358 if test "${with_working_dir+set}" = set; then
27359 withval=$with_working_dir;
27360 if test "x$withval" != "xno" ; then
27361 working_dir=$withval
27372 # Check whether --with-archivedir was given.
27373 if test "${with_archivedir+set}" = set; then
27374 withval=$with_archivedir;
27375 if test "x$withval" != "xno" ; then
27376 archivedir=$withval
27385 basename=`hostname`
27387 # Check whether --with-basename was given.
27388 if test "${with_basename+set}" = set; then
27389 withval=$with_basename;
27390 if test "x$withval" != "xno" ; then
27400 hostname=`uname -n | cut -d '.' -f 1`
27401 if test x${hostname} = x ; then
27402 hostname="localhost"
27405 # Check whether --with-hostname was given.
27406 if test "${with_hostname+set}" = set; then
27407 withval=$with_hostname;
27408 if test "x$withval" != "xno" ; then
27419 scriptdir=`eval echo ${sysconfdir}`
27421 # Check whether --with-scriptdir was given.
27422 if test "${with_scriptdir+set}" = set; then
27423 withval=$with_scriptdir;
27424 if test "x$withval" != "xno" ; then
27437 # Check whether --with-bsrdir was given.
27438 if test "${with_bsrdir+set}" = set; then
27439 withval=$with_bsrdir;
27440 if test "x$withval" != "xno" ; then
27452 # Check whether --with-logdir was given.
27453 if test "${with_logdir+set}" = set; then
27454 withval=$with_logdir;
27455 if test "x$withval" != "xno" ; then
27466 # ------------------------------------------
27467 # Where to place plugindir (plugin files)
27468 # ------------------------------------------
27469 plugindir=`eval echo ${libdir}`
27471 # Check whether --with-plugindir was given.
27472 if test "${with_plugindir+set}" = set; then
27473 withval=$with_plugindir;
27474 if test "x$withval" != "xno" ; then
27484 dump_email=root@localhost
27486 # Check whether --with-dump-email was given.
27487 if test "${with_dump_email+set}" = set; then
27488 withval=$with_dump_email;
27489 if test "x$withval" != "xno" ; then
27490 dump_email=$withval
27499 job_email=root@localhost
27501 # Check whether --with-job-email was given.
27502 if test "${with_job_email+set}" = set; then
27503 withval=$with_job_email;
27504 if test "x$withval" != "xno" ; then
27514 smtp_host=localhost
27516 # Check whether --with-smtp_host was given.
27517 if test "${with_smtp_host+set}" = set; then
27518 withval=$with_smtp_host;
27519 if test "x$withval" != "xno" ; then
27531 # Check whether --with-pid-dir was given.
27532 if test "${with_pid_dir+set}" = set; then
27533 withval=$with_pid_dir;
27534 if test "x$withval" != "xno" ; then
27542 cat >>confdefs.h <<_ACEOF
27543 #define _PATH_BACULA_PIDDIR "$piddir"
27548 subsysdir=/var/run/subsys
27549 if test -d /var/run/subsys; then
27550 subsysdir=/var/run/subsys
27551 elif test -d /var/lock/subsys; then
27552 subsysdir=/var/lock/subsys
27554 subsysdir=/var/run/subsys
27557 # Check whether --with-subsys-dir was given.
27558 if test "${with_subsys_dir+set}" = set; then
27559 withval=$with_subsys_dir;
27560 if test "x$withval" != "xno" ; then
27572 # Check whether --with-baseport was given.
27573 if test "${with_baseport+set}" = set; then
27574 withval=$with_baseport;
27575 if test "x$withval" != "xno" ; then
27584 dir_port=`expr $baseport`
27585 fd_port=`expr $baseport + 1`
27586 sd_port=`expr $fd_port + 1`
27594 # Check whether --with-dir-password was given.
27595 if test "${with_dir_password+set}" = set; then
27596 withval=$with_dir_password;
27597 if test "x$withval" != "xno" ; then
27598 dir_password=$withval
27605 if test "x$dir_password" = "x" ; then
27606 if test "x$OPENSSL" = "xnone" ; then
27607 key=`autoconf/randpass 33`
27609 key=`openssl rand -base64 33`
27616 # Check whether --with-fd-password was given.
27617 if test "${with_fd_password+set}" = set; then
27618 withval=$with_fd_password;
27619 if test "x$withval" != "xno" ; then
27620 fd_password=$withval
27627 if test "x$fd_password" = "x" ; then
27628 if test "x$OPENSSL" = "xnone" ; then
27629 key=`autoconf/randpass 37`
27631 key=`openssl rand -base64 33`
27638 # Check whether --with-sd-password was given.
27639 if test "${with_sd_password+set}" = set; then
27640 withval=$with_sd_password;
27641 if test "x$withval" != "xno" ; then
27642 sd_password=$withval
27649 if test "x$sd_password" = "x" ; then
27650 if test "x$OPENSSL" = "xnone" ; then
27651 key=`autoconf/randpass 41`
27653 key=`openssl rand -base64 33`
27660 # Check whether --with-mon-dir-password was given.
27661 if test "${with_mon_dir_password+set}" = set; then
27662 withval=$with_mon_dir_password;
27663 if test "x$withval" != "xno" ; then
27664 mon_dir_password=$withval
27671 if test "x$mon_dir_password" = "x" ; then
27672 if test "x$OPENSSL" = "xnone" ; then
27673 key=`autoconf/randpass 33`
27675 key=`openssl rand -base64 33`
27677 mon_dir_password=$key
27682 # Check whether --with-mon-fd-password was given.
27683 if test "${with_mon_fd_password+set}" = set; then
27684 withval=$with_mon_fd_password;
27685 if test "x$withval" != "xno" ; then
27686 mon_fd_password=$withval
27693 if test "x$mon_fd_password" = "x" ; then
27694 if test "x$OPENSSL" = "xnone" ; then
27695 key=`autoconf/randpass 37`
27697 key=`openssl rand -base64 33`
27699 mon_fd_password=$key
27704 # Check whether --with-mon-sd-password was given.
27705 if test "${with_mon_sd_password+set}" = set; then
27706 withval=$with_mon_sd_password;
27707 if test "x$withval" != "xno" ; then
27708 mon_sd_password=$withval
27715 if test "x$mon_sd_password" = "x" ; then
27716 if test "x$OPENSSL" = "xnone" ; then
27717 key=`autoconf/randpass 41`
27719 key=`openssl rand -base64 33`
27721 mon_sd_password=$key
27733 # Check whether --with-db_name was given.
27734 if test "${with_db_name+set}" = set; then
27735 withval=$with_db_name;
27736 if test "x$withval" != "x" ; then
27747 # Check whether --with-db_user was given.
27748 if test "${with_db_user+set}" = set; then
27749 withval=$with_db_user;
27750 if test "x$withval" != "x" ; then
27761 # Check whether --with-db_password was given.
27762 if test "${with_db_password+set}" = set; then
27763 withval=$with_db_password;
27764 if test "x$withval" != "x" ; then
27765 db_password=$withval
27775 # Check whether --with-db_port was given.
27776 if test "${with_db_port+set}" = set; then
27777 withval=$with_db_port;
27778 if test "x$withval" != "x" ; then
27788 # Handle users and groups for each daemon
27792 # Check whether --with-dir_user was given.
27793 if test "${with_dir_user+set}" = set; then
27794 withval=$with_dir_user;
27795 if test "x$withval" != "x" ; then
27805 # Check whether --with-dir_group was given.
27806 if test "${with_dir_group+set}" = set; then
27807 withval=$with_dir_group;
27808 if test "x$withval" != "x" ; then
27818 # Check whether --with-sd_user was given.
27819 if test "${with_sd_user+set}" = set; then
27820 withval=$with_sd_user;
27821 if test "x$withval" != "x" ; then
27831 # Check whether --with-sd_group was given.
27832 if test "${with_sd_group+set}" = set; then
27833 withval=$with_sd_group;
27834 if test "x$withval" != "x" ; then
27844 # Check whether --with-fd_user was given.
27845 if test "${with_fd_user+set}" = set; then
27846 withval=$with_fd_user;
27847 if test "x$withval" != "x" ; then
27857 # Check whether --with-fd_group was given.
27858 if test "${with_fd_group+set}" = set; then
27859 withval=$with_fd_group;
27860 if test "x$withval" != "x" ; then
27877 # Check whether --with-sbin-perm was given.
27878 if test "${with_sbin_perm+set}" = set; then
27879 withval=$with_sbin_perm;
27880 if test "x$withval" != "x" ; then
27893 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27894 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27896 # Check whether --with-postgresql was given.
27897 if test "${with_postgresql+set}" = set; then
27898 withval=$with_postgresql;
27899 if test "$withval" != "no"; then
27900 if test "$db_found" = "yes"; then
27901 { echo "$as_me:$LINENO: result: error" >&5
27902 echo "${ECHO_T}error" >&6; }
27903 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27904 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27905 { (exit 1); exit 1; }; };
27907 if test "$withval" = "yes"; then
27908 PG_CONFIG=`which pg_config`
27909 if test -n "$PG_CONFIG";then
27910 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27911 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27912 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27913 elif test -f /usr/local/include/libpq-fe.h; then
27914 POSTGRESQL_INCDIR=/usr/local/include
27915 if test -d /usr/local/lib64; then
27916 POSTGRESQL_LIBDIR=/usr/local/lib64
27918 POSTGRESQL_LIBDIR=/usr/local/lib
27920 POSTGRESQL_BINDIR=/usr/local/bin
27921 elif test -f /usr/include/libpq-fe.h; then
27922 POSTGRESQL_INCDIR=/usr/include
27923 if test -d /usr/lib64; then
27924 POSTGRESQL_LIBDIR=/usr/lib64
27926 POSTGRESQL_LIBDIR=/usr/lib
27928 POSTGRESQL_BINDIR=/usr/bin
27929 elif test -f /usr/include/pgsql/libpq-fe.h; then
27930 POSTGRESQL_INCDIR=/usr/include/pgsql
27931 if test -d /usr/lib64/pgsql; then
27932 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27934 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27936 POSTGRESQL_BINDIR=/usr/bin
27937 elif test -f /usr/include/postgresql/libpq-fe.h; then
27938 POSTGRESQL_INCDIR=/usr/include/postgresql
27939 if test -d /usr/lib64/postgresql; then
27940 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27942 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27944 POSTGRESQL_BINDIR=/usr/bin
27946 { echo "$as_me:$LINENO: result: no" >&5
27947 echo "${ECHO_T}no" >&6; }
27948 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27949 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27950 { (exit 1); exit 1; }; }
27952 elif test -f $withval/include/libpq-fe.h; then
27953 POSTGRESQL_INCDIR=$withval/include
27954 POSTGRESQL_LIBDIR=$withval/lib
27955 POSTGRESQL_BINDIR=$withval/bin
27956 elif test -f $withval/include/postgresql/libpq-fe.h; then
27957 POSTGRESQL_INCDIR=$withval/include/postgresql
27958 if test -d $withval/lib64; then
27959 POSTGRESQL_LIBDIR=$withval/lib64
27961 POSTGRESQL_LIBDIR=$withval/lib
27963 POSTGRESQL_BINDIR=$withval/bin
27965 { echo "$as_me:$LINENO: result: no" >&5
27966 echo "${ECHO_T}no" >&6; }
27967 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27968 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27969 { (exit 1); exit 1; }; }
27971 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27972 { echo "$as_me:$LINENO: checking for crypt" >&5
27973 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27974 if test "${ac_cv_func_crypt+set}" = set; then
27975 echo $ECHO_N "(cached) $ECHO_C" >&6
27977 cat >conftest.$ac_ext <<_ACEOF
27980 cat confdefs.h >>conftest.$ac_ext
27981 cat >>conftest.$ac_ext <<_ACEOF
27982 /* end confdefs.h. */
27983 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27984 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27985 #define crypt innocuous_crypt
27987 /* System header to define __stub macros and hopefully few prototypes,
27988 which can conflict with char crypt (); below.
27989 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27990 <limits.h> exists even on freestanding compilers. */
27993 # include <limits.h>
27995 # include <assert.h>
28000 /* Override any GCC internal prototype to avoid an error.
28001 Use char because int might match the return type of a GCC
28002 builtin and then its argument prototype would still apply. */
28007 /* The GNU C library defines this for functions which it implements
28008 to always fail with ENOSYS. Some functions are actually named
28009 something starting with __ and the normal name is an alias. */
28010 #if defined __stub_crypt || defined __stub___crypt
28022 rm -f conftest.$ac_objext conftest$ac_exeext
28023 if { (ac_try="$ac_link"
28024 case "(($ac_try" in
28025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28026 *) ac_try_echo=$ac_try;;
28028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28029 (eval "$ac_link") 2>conftest.er1
28031 grep -v '^ *+' conftest.er1 >conftest.err
28033 cat conftest.err >&5
28034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28035 (exit $ac_status); } && {
28036 test -z "$ac_c_werror_flag" ||
28037 test ! -s conftest.err
28038 } && test -s conftest$ac_exeext &&
28039 $as_test_x conftest$ac_exeext; then
28040 ac_cv_func_crypt=yes
28042 echo "$as_me: failed program was:" >&5
28043 sed 's/^/| /' conftest.$ac_ext >&5
28045 ac_cv_func_crypt=no
28048 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28049 conftest$ac_exeext conftest.$ac_ext
28051 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28052 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28053 if test $ac_cv_func_crypt = yes; then
28056 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28057 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28058 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28059 echo $ECHO_N "(cached) $ECHO_C" >&6
28061 ac_check_lib_save_LIBS=$LIBS
28062 LIBS="-lcrypt $LIBS"
28063 cat >conftest.$ac_ext <<_ACEOF
28066 cat confdefs.h >>conftest.$ac_ext
28067 cat >>conftest.$ac_ext <<_ACEOF
28068 /* end confdefs.h. */
28070 /* Override any GCC internal prototype to avoid an error.
28071 Use char because int might match the return type of a GCC
28072 builtin and then its argument prototype would still apply. */
28085 rm -f conftest.$ac_objext conftest$ac_exeext
28086 if { (ac_try="$ac_link"
28087 case "(($ac_try" in
28088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089 *) ac_try_echo=$ac_try;;
28091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28092 (eval "$ac_link") 2>conftest.er1
28094 grep -v '^ *+' conftest.er1 >conftest.err
28096 cat conftest.err >&5
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); } && {
28099 test -z "$ac_c_werror_flag" ||
28100 test ! -s conftest.err
28101 } && test -s conftest$ac_exeext &&
28102 $as_test_x conftest$ac_exeext; then
28103 ac_cv_lib_crypt_crypt=yes
28105 echo "$as_me: failed program was:" >&5
28106 sed 's/^/| /' conftest.$ac_ext >&5
28108 ac_cv_lib_crypt_crypt=no
28111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28112 conftest$ac_exeext conftest.$ac_ext
28113 LIBS=$ac_check_lib_save_LIBS
28115 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28116 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28117 if test $ac_cv_lib_crypt_crypt = yes; then
28118 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28123 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28124 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28125 SQL_BINDIR=$POSTGRESQL_BINDIR
28126 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28128 cat >>confdefs.h <<\_ACEOF
28129 #define HAVE_POSTGRESQL 1
28132 { echo "$as_me:$LINENO: result: yes" >&5
28133 echo "${ECHO_T}yes" >&6; }
28135 support_postgresql=yes
28139 { echo "$as_me:$LINENO: result: no" >&5
28140 echo "${ECHO_T}no" >&6; }
28145 { echo "$as_me:$LINENO: result: no" >&5
28146 echo "${ECHO_T}no" >&6; }
28158 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28159 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28161 # Check whether --with-mysql was given.
28162 if test "${with_mysql+set}" = set; then
28163 withval=$with_mysql;
28164 if test "$withval" != "no"; then
28165 if test "$withval" = "yes"; then
28166 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28167 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28168 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28169 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28170 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28172 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28174 MYSQL_BINDIR=/usr/local/mysql/bin
28175 elif test -f /usr/include/mysql/mysql.h; then
28176 MYSQL_INCDIR=/usr/include/mysql
28177 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28178 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28179 MYSQL_LIBDIR=/usr/lib64/mysql
28180 elif test -f /usr/lib64/libmysqlclient_r.a \
28181 -o -f /usr/lib64/libmysqlclient_r.so; then
28182 MYSQL_LIBDIR=/usr/lib64
28183 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28184 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28185 MYSQL_LIBDIR=/usr/lib/mysql
28187 MYSQL_LIBDIR=/usr/lib
28189 MYSQL_BINDIR=/usr/bin
28190 elif test -f /usr/include/mysql.h; then
28191 MYSQL_INCDIR=/usr/include
28192 if test -f /usr/lib64/libmysqlclient_r.a \
28193 -o -f /usr/lib64/libmysqlclient_r.so; then
28194 MYSQL_LIBDIR=/usr/lib64
28196 MYSQL_LIBDIR=/usr/lib
28198 MYSQL_BINDIR=/usr/bin
28199 elif test -f /usr/local/include/mysql/mysql.h; then
28200 MYSQL_INCDIR=/usr/local/include/mysql
28201 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28202 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28203 MYSQL_LIBDIR=/usr/local/lib64/mysql
28205 MYSQL_LIBDIR=/usr/local/lib/mysql
28207 MYSQL_BINDIR=/usr/local/bin
28208 elif test -f /usr/local/include/mysql.h; then
28209 MYSQL_INCDIR=/usr/local/include
28210 if test -f /usr/local/lib64/libmysqlclient_r.a \
28211 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28212 MYSQL_LIBDIR=/usr/local/lib64
28214 MYSQL_LIBDIR=/usr/local/lib
28216 MYSQL_BINDIR=/usr/local/bin
28218 { echo "$as_me:$LINENO: result: no" >&5
28219 echo "${ECHO_T}no" >&6; }
28220 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28221 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28222 { (exit 1); exit 1; }; }
28225 if test -f $withval/include/mysql/mysql.h; then
28226 MYSQL_INCDIR=$withval/include/mysql
28227 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28228 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28229 MYSQL_LIBDIR=$withval/lib64/mysql
28230 elif test -f $withval/lib64/libmysqlclient_r.a \
28231 -o -f $withval/lib64/libmysqlclient_r.so; then
28232 MYSQL_LIBDIR=$withval/lib64
28233 elif test -f $withval/lib/libmysqlclient_r.a \
28234 -o -f $withval/lib/libmysqlclient_r.so; then
28235 MYSQL_LIBDIR=$withval/lib
28237 MYSQL_LIBDIR=$withval/lib/mysql
28239 MYSQL_BINDIR=$withval/bin
28240 elif test -f $withval/include/mysql.h; then
28241 MYSQL_INCDIR=$withval/include
28242 if test -f $withval/lib64/libmysqlclient_r.a \
28243 -o -f $withval/lib64/libmysqlclient_r.so; then
28244 MYSQL_LIBDIR=$withval/lib64
28246 MYSQL_LIBDIR=$withval/lib
28248 MYSQL_BINDIR=$withval/bin
28250 { echo "$as_me:$LINENO: result: no" >&5
28251 echo "${ECHO_T}no" >&6; }
28252 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28253 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28254 { (exit 1); exit 1; }; }
28257 SQL_INCLUDE=-I$MYSQL_INCDIR
28258 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28259 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28260 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28261 cat >>confdefs.h <<\_ACEOF
28262 #define HAVE_THREAD_SAFE_MYSQL 1
28266 SQL_BINDIR=$MYSQL_BINDIR
28267 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28269 cat >>confdefs.h <<\_ACEOF
28270 #define HAVE_MYSQL 1
28273 { echo "$as_me:$LINENO: result: yes" >&5
28274 echo "${ECHO_T}yes" >&6; }
28281 { echo "$as_me:$LINENO: result: no" >&5
28282 echo "${ECHO_T}no" >&6; }
28290 # Check whether --with-embedded-mysql was given.
28291 if test "${with_embedded_mysql+set}" = set; then
28292 withval=$with_embedded_mysql;
28293 if test "$withval" != "no"; then
28294 if test "$withval" = "yes"; then
28295 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28296 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28297 if test -d /usr/local/mysql/lib64/mysql; then
28298 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28300 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28302 MYSQL_BINDIR=/usr/local/mysql/bin
28303 elif test -f /usr/include/mysql/mysql.h; then
28304 MYSQL_INCDIR=/usr/include/mysql
28305 if test -d /usr/lib64/mysql; then
28306 MYSQL_LIBDIR=/usr/lib64/mysql
28308 MYSQL_LIBDIR=/usr/lib/mysql
28310 MYSQL_BINDIR=/usr/bin
28311 elif test -f /usr/include/mysql.h; then
28312 MYSQL_INCDIR=/usr/include
28313 if test -d /usr/lib64; then
28314 MYSQL_LIBDIR=/usr/lib64
28316 MYSQL_LIBDIR=/usr/lib
28318 MYSQL_BINDIR=/usr/bin
28319 elif test -f /usr/local/include/mysql/mysql.h; then
28320 MYSQL_INCDIR=/usr/local/include/mysql
28321 if test -d /usr/local/lib64/mysql; then
28322 MYSQL_LIBDIR=/usr/local/lib64/mysql
28324 MYSQL_LIBDIR=/usr/local/lib/mysql
28326 MYSQL_BINDIR=/usr/local/bin
28327 elif test -f /usr/local/include/mysql.h; then
28328 MYSQL_INCDIR=/usr/local/include
28329 if test -d /usr/local/lib64; then
28330 MYSQL_LIBDIR=/usr/local/lib64
28332 MYSQL_LIBDIR=/usr/local/lib
28334 MYSQL_BINDIR=/usr/local/bin
28336 { echo "$as_me:$LINENO: result: no" >&5
28337 echo "${ECHO_T}no" >&6; }
28338 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28339 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28340 { (exit 1); exit 1; }; }
28343 if test -f $withval/include/mysql/mysql.h; then
28344 MYSQL_INCDIR=$withval/include/mysql
28345 if test -d $withval/lib64/mysql; then
28346 MYSQL_LIBDIR=$withval/lib64/mysql
28348 MYSQL_LIBDIR=$withval/lib/mysql
28350 MYSQL_BINDIR=$withval/bin
28351 elif test -f $withval/include/mysql.h; then
28352 MYSQL_INCDIR=$withval/include
28353 if test -d $withval/lib64; then
28354 MYSQL_LIBDIR=$withval/lib64
28356 MYSQL_LIBDIR=$withval/lib
28358 MYSQL_BINDIR=$withval/bin
28360 { echo "$as_me:$LINENO: result: no" >&5
28361 echo "${ECHO_T}no" >&6; }
28362 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28363 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28364 { (exit 1); exit 1; }; }
28367 SQL_INCLUDE=-I$MYSQL_INCDIR
28368 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28369 SQL_BINDIR=$MYSQL_BINDIR
28370 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28372 cat >>confdefs.h <<\_ACEOF
28373 #define HAVE_MYSQL 1
28376 cat >>confdefs.h <<\_ACEOF
28377 #define HAVE_EMBEDDED_MYSQL 1
28380 { echo "$as_me:$LINENO: result: yes" >&5
28381 echo "${ECHO_T}yes" >&6; }
28388 { echo "$as_me:$LINENO: result: no" >&5
28389 echo "${ECHO_T}no" >&6; }
28405 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28406 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28408 # Check whether --with-sqlite3 was given.
28409 if test "${with_sqlite3+set}" = set; then
28410 withval=$with_sqlite3;
28411 if test "$withval" != "no"; then
28412 if test "$withval" = "yes"; then
28413 if test -f /usr/local/include/sqlite3.h; then
28414 SQLITE_INCDIR=/usr/local/include
28415 if test -d /usr/local/lib64; then
28416 SQLITE_LIBDIR=/usr/local/lib64
28418 SQLITE_LIBDIR=/usr/local/lib
28420 SQLITE_BINDIR=/usr/local/bin
28421 elif test -f /usr/include/sqlite3.h; then
28422 SQLITE_INCDIR=/usr/include
28423 if test -d /usr/lib64; then
28424 SQLITE_LIBDIR=/usr/lib64
28426 SQLITE_LIBDIR=/usr/lib
28428 SQLITE_BINDIR=/usr/bin
28429 elif test -f $prefix/include/sqlite3.h; then
28430 SQLITE_INCDIR=$prefix/include
28431 if test -d $prefix/lib64; then
28432 SQLITE_LIBDIR=$prefix/lib64
28434 SQLITE_LIBDIR=$prefix/lib
28436 SQLITE_BINDIR=$prefix/bin
28438 { echo "$as_me:$LINENO: result: no" >&5
28439 echo "${ECHO_T}no" >&6; }
28440 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28441 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28442 { (exit 1); exit 1; }; }
28445 if test -f $withval/sqlite3.h; then
28446 SQLITE_INCDIR=$withval
28447 SQLITE_LIBDIR=$withval
28448 SQLITE_BINDIR=$withval
28449 elif test -f $withval/include/sqlite3.h; then
28450 SQLITE_INCDIR=$withval/include
28451 if test -d $withval/lib64; then
28452 SQLITE_LIBDIR=$withval/lib64
28454 SQLITE_LIBDIR=$withval/lib
28456 SQLITE_BINDIR=$withval/bin
28458 { echo "$as_me:$LINENO: result: no" >&5
28459 echo "${ECHO_T}no" >&6; }
28460 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28461 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28462 { (exit 1); exit 1; }; }
28465 SQL_INCLUDE=-I$SQLITE_INCDIR
28466 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28467 SQL_BINDIR=$SQLITE_BINDIR
28468 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28470 cat >>confdefs.h <<\_ACEOF
28471 #define HAVE_SQLITE3 1
28474 { echo "$as_me:$LINENO: result: yes" >&5
28475 echo "${ECHO_T}yes" >&6; }
28477 support_sqlite3=yes
28482 { echo "$as_me:$LINENO: result: no" >&5
28483 echo "${ECHO_T}no" >&6; }
28488 { echo "$as_me:$LINENO: result: no" >&5
28489 echo "${ECHO_T}no" >&6; }
28501 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28502 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28504 # Check whether --with-sqlite was given.
28505 if test "${with_sqlite+set}" = set; then
28506 withval=$with_sqlite;
28507 if test "$withval" != "no"; then
28508 if test "$withval" = "yes"; then
28509 if test -f /usr/local/include/sqlite.h; then
28510 SQLITE_INCDIR=/usr/local/include
28511 if test -d /usr/local/lib64; then
28512 SQLITE_LIBDIR=/usr/local/lib64
28514 SQLITE_LIBDIR=/usr/local/lib
28516 SQLITE_BINDIR=/usr/local/bin
28517 elif test -f /usr/include/sqlite.h; then
28518 SQLITE_INCDIR=/usr/include
28519 if test -d /usr/lib64; then
28520 SQLITE_LIBDIR=/usr/lib64
28522 SQLITE_LIBDIR=/usr/lib
28524 SQLITE_BINDIR=/usr/bin
28525 elif test -f $prefix/include/sqlite.h; then
28526 SQLITE_INCDIR=$prefix/include
28527 if test -d $prefix/lib64; then
28528 SQLITE_LIBDIR=$prefix/lib64
28530 SQLITE_LIBDIR=$prefix/lib
28532 SQLITE_BINDIR=$prefix/bin
28534 { echo "$as_me:$LINENO: result: no" >&5
28535 echo "${ECHO_T}no" >&6; }
28536 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28537 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28538 { (exit 1); exit 1; }; }
28541 if test -f $withval/sqlite.h; then
28542 SQLITE_INCDIR=$withval
28543 SQLITE_LIBDIR=$withval
28544 SQLITE_BINDIR=$withval
28545 elif test -f $withval/include/sqlite.h; then
28546 SQLITE_INCDIR=$withval/include
28547 if test -d $withval/lib64; then
28548 SQLITE_LIBDIR=$withval/lib64
28550 SQLITE_LIBDIR=$withval/lib
28552 SQLITE_BINDIR=$withval/bin
28554 { echo "$as_me:$LINENO: result: no" >&5
28555 echo "${ECHO_T}no" >&6; }
28556 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28557 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28558 { (exit 1); exit 1; }; }
28561 SQL_INCLUDE=-I$SQLITE_INCDIR
28562 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28563 SQL_BINDIR=$SQLITE_BINDIR
28564 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28566 cat >>confdefs.h <<\_ACEOF
28567 #define HAVE_SQLITE 1
28570 { echo "$as_me:$LINENO: result: yes" >&5
28571 echo "${ECHO_T}yes" >&6; }
28578 { echo "$as_me:$LINENO: result: no" >&5
28579 echo "${ECHO_T}no" >&6; }
28584 { echo "$as_me:$LINENO: result: no" >&5
28585 echo "${ECHO_T}no" >&6; }
28597 { echo "$as_me:$LINENO: checking for DBI support" >&5
28598 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28600 # Check whether --with-dbi was given.
28601 if test "${with_dbi+set}" = set; then
28603 if test "$withval" != "no"; then
28604 if test "$withval" = "yes"; then
28605 if test -f /usr/local/include/dbi/dbi.h; then
28606 DBI_INCDIR=/usr/local/dbi/include
28607 if test -d /usr/local/lib64; then
28608 DBI_LIBDIR=/usr/local/lib64
28610 DBI_LIBDIR=/usr/local/lib
28612 DBI_BINDIR=/usr/local/bin
28613 elif test -f /usr/include/dbi/dbi.h; then
28614 DBI_INCDIR=/usr/include
28615 if test -d /usr/lib64; then
28616 DBI_LIBDIR=/usr/lib64
28618 DBI_LIBDIR=/usr/lib
28620 DBI_BINDIR=/usr/bin
28621 elif test -f $prefix/include/dbi/dbi.h; then
28622 DBI_INCDIR=$prefix/include
28623 if test -d $prefix/lib64; then
28624 DBI_LIBDIR=$prefix/lib64
28626 DBI_LIBDIR=$prefix/lib
28628 DBI_BINDIR=$prefix/bin
28630 { echo "$as_me:$LINENO: result: no" >&5
28631 echo "${ECHO_T}no" >&6; }
28632 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28633 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28634 { (exit 1); exit 1; }; }
28636 if test -d /usr/local/lib/dbd; then
28637 DRIVERDIR=/usr/local/lib/dbd
28638 if test -d /usr/local/lib64/dbd; then
28639 DRIVERDIR=/usr/local/lib64/dbd
28641 DRIVERDIR=/usr/local/lib/dbd
28643 elif test -d /usr/lib/dbd; then
28644 DRIVERDIR=/usr/lib/dbd
28645 if test -d /usr/lib64/dbd; then
28646 DRIVERDIR=/usr/lib64/dbd
28648 DRIVERDIR=/usr/lib/dbd
28650 elif test -d $prefix/lib/dbd; then
28651 if test -d $prefix/lib64/dbd; then
28652 DRIVERDIR=$prefix/lib64/dbd
28654 DRIVERDIR=$prefix/lib/dbd
28657 { echo "$as_me:$LINENO: result: no" >&5
28658 echo "${ECHO_T}no" >&6; }
28659 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28660 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28661 { (exit 1); exit 1; }; }
28664 if test -f $withval/dbi.h; then
28665 DBI_INCDIR=$withval
28666 DBI_LIBDIR=$withval
28667 DBI_BINDIR=$withval
28668 elif test -f $withval/include/dbi/dbi.h; then
28669 DBI_INCDIR=$withval/include
28670 if test -d $withval/lib64; then
28671 DBI_LIBDIR=$withval/lib64
28673 DBI_LIBDIR=$withval/lib
28675 DBI_BINDIR=$withval/bin
28677 { echo "$as_me:$LINENO: result: no" >&5
28678 echo "${ECHO_T}no" >&6; }
28679 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28680 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28681 { (exit 1); exit 1; }; }
28683 if test -d $withval/dbd; then
28684 DRIVERDIR=$withval/dbd
28685 elif test -d $withval/lib/; then
28686 if test -d $withval/lib64/dbd; then
28687 DRIVERDIR=$withval/lib64/dbd
28689 DRIVERDIR=$withval/lib/dbd
28692 { echo "$as_me:$LINENO: result: no" >&5
28693 echo "${ECHO_T}no" >&6; }
28694 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28695 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28696 { (exit 1); exit 1; }; }
28699 SQL_INCLUDE=-I$DBI_INCDIR
28700 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28701 SQL_BINDIR=$DBI_BINDIR
28702 SQL_LIB=$DBI_LIBDIR/libdbi.a
28703 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28706 cat >>confdefs.h <<\_ACEOF
28710 { echo "$as_me:$LINENO: result: yes" >&5
28711 echo "${ECHO_T}yes" >&6; }
28719 { echo "$as_me:$LINENO: result: no" >&5
28720 echo "${ECHO_T}no" >&6; }
28725 { echo "$as_me:$LINENO: result: no" >&5
28726 echo "${ECHO_T}no" >&6; }
28741 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28742 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28744 # Check whether --with-dbi-driver was given.
28745 if test "${with_dbi_driver+set}" = set; then
28746 withval=$with_dbi_driver;
28747 if test "$withval" != "no"; then
28751 if test -f /usr/local/mysql/bin/mysql; then
28752 SQL_BINDIR=/usr/local/mysql/bin
28753 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28754 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28755 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28757 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28759 elif test -f /usr/bin/mysql; then
28760 SQL_BINDIR=/usr/bin
28761 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28762 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28763 SQL_LIBDIR=/usr/lib64/mysql
28764 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28765 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28766 SQL_LIBDIR=/usr/lib/mysql
28768 SQL_LIBDIR=/usr/lib
28770 elif test -f /usr/local/bin/mysql; then
28771 SQL_BINDIR=/usr/local/bin
28772 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28773 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28774 SQL_LIBDIR=/usr/local/lib64/mysql
28775 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28776 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28777 SQL_LIBDIR=/usr/local/lib/mysql
28779 SQL_LIBDIR=/usr/local/lib
28781 elif test -f $withval/bin/mysql; then
28782 SQL_BINDIR=$withval/bin
28783 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28784 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28785 SQL_LIBDIR=$withval/lib64/mysql
28786 elif test -f $withval/lib64/libmysqlclient_r.a \
28787 -o -f $withval/lib64/libmysqlclient_r.so; then
28788 SQL_LIBDIR=$withval/lib64
28789 elif test -f $withval/lib/libmysqlclient_r.a \
28790 -o -f $withval/lib/libmysqlclient_r.so; then
28791 SQL_LIBDIR=$withval/lib/
28793 SQL_LIBDIR=$withval/lib/mysql
28796 { echo "$as_me:$LINENO: result: no" >&5
28797 echo "${ECHO_T}no" >&6; }
28798 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28799 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28800 { (exit 1); exit 1; }; }
28802 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28803 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28805 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28809 db_prog="postgresql"
28810 PG_CONFIG=`which pg_config`
28811 if test -n "$PG_CONFIG"; then
28812 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28813 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28814 elif test -f /usr/local/bin/psql; then
28815 SQL_BINDIR=/usr/local/bin
28816 if test -d /usr/local/lib64; then
28817 SQL_LIBDIR=/usr/local/lib64
28819 SQL_LIBDIR=/usr/local/lib
28821 elif test -f /usr/bin/psql; then
28822 SQL_BINDIR=/usr/local/bin
28823 if test -d /usr/lib64/postgresql; then
28824 SQL_LIBDIR=/usr/lib64/postgresql
28825 elif test -d /usr/lib/postgresql; then
28826 SQL_LIBDIR=/usr/lib/postgresql
28827 elif test -d /usr/lib64; then
28828 SQL_LIBDIR=/usr/lib64
28830 SQL_LIBDIR=/usr/lib
28832 elif test -f $withval/bin/psql; then
28833 SQL_BINDIR=$withval/bin
28834 if test -d $withval/lib64; then
28835 SQL_LIBDIR=$withval/lib64
28837 SQL_LIBDIR=$withval/lib
28840 { echo "$as_me:$LINENO: result: no" >&5
28841 echo "${ECHO_T}no" >&6; }
28842 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28843 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28844 { (exit 1); exit 1; }; }
28846 if test -f $SQL_LIBDIR/libpq.so; then
28847 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28849 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28854 if test -f /usr/local/bin/sqlite; then
28855 SQL_BINDIR=/usr/local/bin
28856 if test -d /usr/local/lib64; then
28857 SQL_LIBDIR=/usr/local/lib64
28859 SQL_LIBDIR=/usr/local/lib
28861 elif test -f /usr/bin/sqlite; then
28862 SQL_BINDIR=/usr/bin
28863 if test -d /usr/lib64; then
28864 SQL_LIBDIR=/usr/lib64
28866 SQL_LIBDIR=/usr/lib
28868 elif test -f $withval/bin/sqlite; then
28869 SQL_BINDIR=$withval/bin
28870 if test -d $withval/lib64; then
28871 SQL_LIBDIR=$withval/lib64
28873 SQL_LIBDIR=$withval/lib
28876 { echo "$as_me:$LINENO: result: no" >&5
28877 echo "${ECHO_T}no" >&6; }
28878 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28879 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28880 { (exit 1); exit 1; }; }
28882 if test -f $SQL_LIBDIR/libsqlite.so; then
28883 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28885 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28890 if test -f /usr/local/bin/sqlite3; then
28891 SQL_BINDIR=/usr/local/bin
28892 if test -d /usr/local/lib64; then
28893 SQL_LIBDIR=/usr/local/lib64
28895 SQL_LIBDIR=/usr/local/lib
28897 elif test -f /usr/bin/sqlite3; then
28898 SQL_BINDIR=/usr/bin
28899 if test -d /usr/lib64; then
28900 SQL_LIBDIR=/usr/lib64
28902 SQL_LIBDIR=/usr/lib
28904 elif test -f $withval/bin/sqlite3; then
28905 SQL_BINDIR=$withval/bin
28906 if test -d $withval/lib64; then
28907 SQL_LIBDIR=$withval/lib64
28909 SQL_LIBDIR=$withval/lib
28912 { echo "$as_me:$LINENO: result: no" >&5
28913 echo "${ECHO_T}no" >&6; }
28914 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28915 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28916 { (exit 1); exit 1; }; }
28918 if test -f $SQL_LIBDIR/libsqlite3.so; then
28919 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28921 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28925 { echo "$as_me:$LINENO: result: no" >&5
28926 echo "${ECHO_T}no" >&6; }
28927 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28928 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28929 { (exit 1); exit 1; }; }
28933 { echo "$as_me:$LINENO: result: yes" >&5
28934 echo "${ECHO_T}yes" >&6; }
28937 { echo "$as_me:$LINENO: result: no" >&5
28938 echo "${ECHO_T}no" >&6; }
28943 { echo "$as_me:$LINENO: result: no" >&5
28944 echo "${ECHO_T}no" >&6; }
28957 support_batch_insert=no
28958 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28960 if test $pkg = 0; then
28961 support_batch_insert=yes
28962 # Check whether --enable-batch-insert was given.
28963 if test "${enable_batch_insert+set}" = set; then
28964 enableval=$enable_batch_insert;
28965 if test x$enableval = xno; then
28966 support_batch_insert=no
28968 support_batch_insert=yes
28976 if test x$DB_TYPE = xpostgresql; then
28977 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28979 if test $pkg != 0; then
28980 support_batch_insert=no
28984 if test x$DB_TYPE = xdbi; then
28988 if test $DB_PROG = postgresql; then
28989 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28993 if test $DB_PROG = mysql; then
28994 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
28998 if test $DB_PROG = sqlite3; then
28999 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29003 if test $pkg = 0; then
29004 # Check whether --enable-batch-insert was given.
29005 if test "${enable_batch_insert+set}" = set; then
29006 enableval=$enable_batch_insert;
29007 if test x$enableval = xno; then
29008 support_batch_insert=no
29010 support_batch_insert=yes
29023 if test $support_batch_insert = yes ; then
29025 cat >>confdefs.h <<\_ACEOF
29026 #define HAVE_BATCH_FILE_INSERT 1
29031 cat >>confdefs.h <<\_ACEOF
29032 #define PROTOTYPES 1
29036 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29037 if test -z "$CCOPTS"; then
29038 CCOPTS='-g -O2 -Wall'
29045 largefile_support="no"
29047 # Check whether --enable-largefile was given.
29048 if test "${enable_largefile+set}" = set; then
29049 enableval=$enable_largefile;
29052 if test "$enable_largefile" != no; then
29053 if test -n "$ac_tool_prefix"; then
29054 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29055 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29058 if test "${ac_cv_prog_GETCONF+set}" = set; then
29059 echo $ECHO_N "(cached) $ECHO_C" >&6
29061 if test -n "$GETCONF"; then
29062 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29065 for as_dir in $PATH
29068 test -z "$as_dir" && as_dir=.
29069 for ac_exec_ext in '' $ac_executable_extensions; do
29070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29071 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29081 GETCONF=$ac_cv_prog_GETCONF
29082 if test -n "$GETCONF"; then
29083 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29084 echo "${ECHO_T}$GETCONF" >&6; }
29086 { echo "$as_me:$LINENO: result: no" >&5
29087 echo "${ECHO_T}no" >&6; }
29092 if test -z "$ac_cv_prog_GETCONF"; then
29093 ac_ct_GETCONF=$GETCONF
29094 # Extract the first word of "getconf", so it can be a program name with args.
29095 set dummy getconf; ac_word=$2
29096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29098 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29099 echo $ECHO_N "(cached) $ECHO_C" >&6
29101 if test -n "$ac_ct_GETCONF"; then
29102 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29105 for as_dir in $PATH
29108 test -z "$as_dir" && as_dir=.
29109 for ac_exec_ext in '' $ac_executable_extensions; do
29110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29111 ac_cv_prog_ac_ct_GETCONF="getconf"
29112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29121 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29122 if test -n "$ac_ct_GETCONF"; then
29123 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29124 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29126 { echo "$as_me:$LINENO: result: no" >&5
29127 echo "${ECHO_T}no" >&6; }
29130 if test "x$ac_ct_GETCONF" = x; then
29133 case $cross_compiling:$ac_tool_warned in
29135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29136 whose name does not start with the host triplet. If you think this
29137 configuration is useful to you, please write to autoconf@gnu.org." >&5
29138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29139 whose name does not start with the host triplet. If you think this
29140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29141 ac_tool_warned=yes ;;
29143 GETCONF=$ac_ct_GETCONF
29146 GETCONF="$ac_cv_prog_GETCONF"
29149 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29150 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29151 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29152 echo $ECHO_N "(cached) $ECHO_C" >&6
29154 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29155 ac_cv_sys_largefile_CFLAGS=no
29157 # IRIX 6.2 and later require cc -n32.
29158 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29159 if test "$GCC" != yes; then
29160 ac_cv_sys_largefile_CFLAGS=-n32
29163 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29164 cat >conftest.$ac_ext <<_ACEOF
29167 cat confdefs.h >>conftest.$ac_ext
29168 cat >>conftest.$ac_ext <<_ACEOF
29169 /* end confdefs.h. */
29179 rm -f conftest.$ac_objext conftest$ac_exeext
29180 if { (ac_try="$ac_link"
29181 case "(($ac_try" in
29182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29183 *) ac_try_echo=$ac_try;;
29185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29186 (eval "$ac_link") 2>conftest.er1
29188 grep -v '^ *+' conftest.er1 >conftest.err
29190 cat conftest.err >&5
29191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29192 (exit $ac_status); } && {
29193 test -z "$ac_c_werror_flag" ||
29194 test ! -s conftest.err
29195 } && test -s conftest$ac_exeext &&
29196 $as_test_x conftest$ac_exeext; then
29199 echo "$as_me: failed program was:" >&5
29200 sed 's/^/| /' conftest.$ac_ext >&5
29202 ac_cv_sys_largefile_CFLAGS=no
29205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29206 conftest$ac_exeext conftest.$ac_ext
29211 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29212 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29213 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29214 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29215 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29216 echo $ECHO_N "(cached) $ECHO_C" >&6
29218 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29219 ac_cv_sys_largefile_LDFLAGS=no
29223 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29224 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29225 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29226 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29227 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29228 echo $ECHO_N "(cached) $ECHO_C" >&6
29230 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29231 ac_cv_sys_largefile_LIBS=no
29235 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29236 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29238 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29241 -D_FILE_OFFSET_BITS=*) ;;
29242 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29243 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29248 case "$CPPFLAGS" in
29249 '') CPPFLAGS="$ac_flag" ;;
29250 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29258 '') CFLAGS="$ac_flag" ;;
29259 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29264 case "$ac_cv_sys_largefile_LDFLAGS" in
29268 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29269 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29272 case "$ac_cv_sys_largefile_LIBS" in
29276 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29277 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29280 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29281 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29282 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29283 echo $ECHO_N "(cached) $ECHO_C" >&6
29285 ac_cv_sys_file_offset_bits=no
29286 ac_cv_sys_file_offset_bits=64
29287 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29289 -D_FILE_OFFSET_BITS)
29290 ac_cv_sys_file_offset_bits=1 ;;
29291 -D_FILE_OFFSET_BITS=*)
29292 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29297 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29298 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29299 if test "$ac_cv_sys_file_offset_bits" != no; then
29301 cat >>confdefs.h <<_ACEOF
29302 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29306 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29307 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29308 if test "${ac_cv_sys_largefile_source+set}" = set; then
29309 echo $ECHO_N "(cached) $ECHO_C" >&6
29311 ac_cv_sys_largefile_source=no
29312 ac_cv_sys_largefile_source=1
29313 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29315 -D_LARGEFILE_SOURCE)
29316 ac_cv_sys_largefile_source=1 ;;
29317 -D_LARGEFILE_SOURCE=*)
29318 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29323 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29324 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29325 if test "$ac_cv_sys_largefile_source" != no; then
29327 cat >>confdefs.h <<_ACEOF
29328 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29332 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29333 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29334 if test "${ac_cv_sys_large_files+set}" = set; then
29335 echo $ECHO_N "(cached) $ECHO_C" >&6
29337 ac_cv_sys_large_files=no
29338 ac_cv_sys_large_files=1
29339 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29342 ac_cv_sys_large_files=1 ;;
29344 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29349 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29350 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29351 if test "$ac_cv_sys_large_files" != no; then
29353 cat >>confdefs.h <<_ACEOF
29354 #define _LARGE_FILES $ac_cv_sys_large_files
29361 { echo "$as_me:$LINENO: checking for X" >&5
29362 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29365 # Check whether --with-x was given.
29366 if test "${with_x+set}" = set; then
29370 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29371 if test "x$with_x" = xno; then
29372 # The user explicitly disabled X.
29375 case $x_includes,$x_libraries in #(
29376 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29377 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29378 { (exit 1); exit 1; }; };; #(
29379 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29380 echo $ECHO_N "(cached) $ECHO_C" >&6
29382 # One or both of the vars are not set, and there is no cached value.
29383 ac_x_includes=no ac_x_libraries=no
29384 rm -f -r conftest.dir
29385 if mkdir conftest.dir; then
29387 cat >Imakefile <<'_ACEOF'
29389 @echo incroot='${INCROOT}'
29391 @echo usrlibdir='${USRLIBDIR}'
29393 @echo libdir='${LIBDIR}'
29395 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29396 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29397 for ac_var in incroot usrlibdir libdir; do
29398 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29400 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29401 for ac_extension in a so sl; do
29402 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29403 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29404 ac_im_usrlibdir=$ac_im_libdir; break
29407 # Screen out bogus values from the imake configuration. They are
29408 # bogus both because they are the default anyway, and because
29409 # using them would break gcc on systems where it needs fixed includes.
29410 case $ac_im_incroot in
29411 /usr/include) ac_x_includes= ;;
29412 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29414 case $ac_im_usrlibdir in
29415 /usr/lib | /lib) ;;
29416 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29420 rm -f -r conftest.dir
29423 # Standard set of common directories for X headers.
29424 # Check X11 before X11Rn because it is often a symlink to the current release.
29436 /usr/local/X11/include
29437 /usr/local/X11R6/include
29438 /usr/local/X11R5/include
29439 /usr/local/X11R4/include
29441 /usr/local/include/X11
29442 /usr/local/include/X11R6
29443 /usr/local/include/X11R5
29444 /usr/local/include/X11R4
29448 /usr/XFree86/include/X11
29452 /usr/unsupported/include
29453 /usr/athena/include
29454 /usr/local/x11r5/include
29455 /usr/lpp/Xamples/include
29457 /usr/openwin/include
29458 /usr/openwin/share/include'
29460 if test "$ac_x_includes" = no; then
29461 # Guess where to find include files, by looking for Xlib.h.
29462 # First, try using that file with no special directory specified.
29463 cat >conftest.$ac_ext <<_ACEOF
29466 cat confdefs.h >>conftest.$ac_ext
29467 cat >>conftest.$ac_ext <<_ACEOF
29468 /* end confdefs.h. */
29469 #include <X11/Xlib.h>
29471 if { (ac_try="$ac_cpp conftest.$ac_ext"
29472 case "(($ac_try" in
29473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29474 *) ac_try_echo=$ac_try;;
29476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29479 grep -v '^ *+' conftest.er1 >conftest.err
29481 cat conftest.err >&5
29482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29483 (exit $ac_status); } >/dev/null && {
29484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29485 test ! -s conftest.err
29487 # We can compile using X headers with no special include directory.
29490 echo "$as_me: failed program was:" >&5
29491 sed 's/^/| /' conftest.$ac_ext >&5
29493 for ac_dir in $ac_x_header_dirs; do
29494 if test -r "$ac_dir/X11/Xlib.h"; then
29495 ac_x_includes=$ac_dir
29501 rm -f conftest.err conftest.$ac_ext
29502 fi # $ac_x_includes = no
29504 if test "$ac_x_libraries" = no; then
29505 # Check for the libraries.
29506 # See if we find them without any special options.
29507 # Don't add to $LIBS permanently.
29510 cat >conftest.$ac_ext <<_ACEOF
29513 cat confdefs.h >>conftest.$ac_ext
29514 cat >>conftest.$ac_ext <<_ACEOF
29515 /* end confdefs.h. */
29516 #include <X11/Xlib.h>
29525 rm -f conftest.$ac_objext conftest$ac_exeext
29526 if { (ac_try="$ac_link"
29527 case "(($ac_try" in
29528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29529 *) ac_try_echo=$ac_try;;
29531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29532 (eval "$ac_link") 2>conftest.er1
29534 grep -v '^ *+' conftest.er1 >conftest.err
29536 cat conftest.err >&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); } && {
29539 test -z "$ac_c_werror_flag" ||
29540 test ! -s conftest.err
29541 } && test -s conftest$ac_exeext &&
29542 $as_test_x conftest$ac_exeext; then
29544 # We can link X programs with no special library path.
29547 echo "$as_me: failed program was:" >&5
29548 sed 's/^/| /' conftest.$ac_ext >&5
29551 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29553 # Don't even attempt the hair of trying to link an X program!
29554 for ac_extension in a so sl; do
29555 if test -r "$ac_dir/libX11.$ac_extension"; then
29556 ac_x_libraries=$ac_dir
29563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29564 conftest$ac_exeext conftest.$ac_ext
29565 fi # $ac_x_libraries = no
29567 case $ac_x_includes,$ac_x_libraries in #(
29568 no,* | *,no | *\'*)
29569 # Didn't find X, or a directory has "'" in its name.
29570 ac_cv_have_x="have_x=no";; #(
29572 # Record where we found X for the cache.
29573 ac_cv_have_x="have_x=yes\
29574 ac_x_includes='$ac_x_includes'\
29575 ac_x_libraries='$ac_x_libraries'"
29581 eval "$ac_cv_have_x"
29584 if test "$have_x" != yes; then
29585 { echo "$as_me:$LINENO: result: $have_x" >&5
29586 echo "${ECHO_T}$have_x" >&6; }
29589 # If each of the values was on the command line, it overrides each guess.
29590 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29591 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29592 # Update the cache value to reflect the command line values.
29593 ac_cv_have_x="have_x=yes\
29594 ac_x_includes='$x_includes'\
29595 ac_x_libraries='$x_libraries'"
29596 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29597 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29600 if test "$no_x" = yes; then
29601 # Not all programs may use this symbol, but it does not hurt to define it.
29603 cat >>confdefs.h <<\_ACEOF
29604 #define X_DISPLAY_MISSING 1
29607 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29609 if test -n "$x_includes"; then
29610 X_CFLAGS="$X_CFLAGS -I$x_includes"
29613 # It would also be nice to do this for all -L options, not just this one.
29614 if test -n "$x_libraries"; then
29615 X_LIBS="$X_LIBS -L$x_libraries"
29616 # For Solaris; some versions of Sun CC require a space after -R and
29617 # others require no space. Words are not sufficient . . . .
29618 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29619 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29620 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29621 ac_xsave_c_werror_flag=$ac_c_werror_flag
29622 ac_c_werror_flag=yes
29623 cat >conftest.$ac_ext <<_ACEOF
29626 cat confdefs.h >>conftest.$ac_ext
29627 cat >>conftest.$ac_ext <<_ACEOF
29628 /* end confdefs.h. */
29638 rm -f conftest.$ac_objext conftest$ac_exeext
29639 if { (ac_try="$ac_link"
29640 case "(($ac_try" in
29641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29642 *) ac_try_echo=$ac_try;;
29644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29645 (eval "$ac_link") 2>conftest.er1
29647 grep -v '^ *+' conftest.er1 >conftest.err
29649 cat conftest.err >&5
29650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29651 (exit $ac_status); } && {
29652 test -z "$ac_c_werror_flag" ||
29653 test ! -s conftest.err
29654 } && test -s conftest$ac_exeext &&
29655 $as_test_x conftest$ac_exeext; then
29656 { echo "$as_me:$LINENO: result: no" >&5
29657 echo "${ECHO_T}no" >&6; }
29658 X_LIBS="$X_LIBS -R$x_libraries"
29660 echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.$ac_ext >&5
29663 LIBS="$ac_xsave_LIBS -R $x_libraries"
29664 cat >conftest.$ac_ext <<_ACEOF
29667 cat confdefs.h >>conftest.$ac_ext
29668 cat >>conftest.$ac_ext <<_ACEOF
29669 /* end confdefs.h. */
29679 rm -f conftest.$ac_objext conftest$ac_exeext
29680 if { (ac_try="$ac_link"
29681 case "(($ac_try" in
29682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29683 *) ac_try_echo=$ac_try;;
29685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29686 (eval "$ac_link") 2>conftest.er1
29688 grep -v '^ *+' conftest.er1 >conftest.err
29690 cat conftest.err >&5
29691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29692 (exit $ac_status); } && {
29693 test -z "$ac_c_werror_flag" ||
29694 test ! -s conftest.err
29695 } && test -s conftest$ac_exeext &&
29696 $as_test_x conftest$ac_exeext; then
29697 { echo "$as_me:$LINENO: result: yes" >&5
29698 echo "${ECHO_T}yes" >&6; }
29699 X_LIBS="$X_LIBS -R $x_libraries"
29701 echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29704 { echo "$as_me:$LINENO: result: neither works" >&5
29705 echo "${ECHO_T}neither works" >&6; }
29708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29709 conftest$ac_exeext conftest.$ac_ext
29712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29713 conftest$ac_exeext conftest.$ac_ext
29714 ac_c_werror_flag=$ac_xsave_c_werror_flag
29715 LIBS=$ac_xsave_LIBS
29718 # Check for system-dependent libraries X programs must link with.
29719 # Do this before checking for the system-independent R6 libraries
29720 # (-lICE), since we may need -lsocket or whatever for X linking.
29722 if test "$ISC" = yes; then
29723 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29725 # Martyn Johnson says this is needed for Ultrix, if the X
29726 # libraries were built with DECnet support. And Karl Berry says
29727 # the Alpha needs dnet_stub (dnet does not exist).
29728 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29729 cat >conftest.$ac_ext <<_ACEOF
29732 cat confdefs.h >>conftest.$ac_ext
29733 cat >>conftest.$ac_ext <<_ACEOF
29734 /* end confdefs.h. */
29736 /* Override any GCC internal prototype to avoid an error.
29737 Use char because int might match the return type of a GCC
29738 builtin and then its argument prototype would still apply. */
29742 char XOpenDisplay ();
29746 return XOpenDisplay ();
29751 rm -f conftest.$ac_objext conftest$ac_exeext
29752 if { (ac_try="$ac_link"
29753 case "(($ac_try" in
29754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29755 *) ac_try_echo=$ac_try;;
29757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29758 (eval "$ac_link") 2>conftest.er1
29760 grep -v '^ *+' conftest.er1 >conftest.err
29762 cat conftest.err >&5
29763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29764 (exit $ac_status); } && {
29765 test -z "$ac_c_werror_flag" ||
29766 test ! -s conftest.err
29767 } && test -s conftest$ac_exeext &&
29768 $as_test_x conftest$ac_exeext; then
29771 echo "$as_me: failed program was:" >&5
29772 sed 's/^/| /' conftest.$ac_ext >&5
29774 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29775 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29776 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29777 echo $ECHO_N "(cached) $ECHO_C" >&6
29779 ac_check_lib_save_LIBS=$LIBS
29780 LIBS="-ldnet $LIBS"
29781 cat >conftest.$ac_ext <<_ACEOF
29784 cat confdefs.h >>conftest.$ac_ext
29785 cat >>conftest.$ac_ext <<_ACEOF
29786 /* end confdefs.h. */
29788 /* Override any GCC internal prototype to avoid an error.
29789 Use char because int might match the return type of a GCC
29790 builtin and then its argument prototype would still apply. */
29798 return dnet_ntoa ();
29803 rm -f conftest.$ac_objext conftest$ac_exeext
29804 if { (ac_try="$ac_link"
29805 case "(($ac_try" in
29806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29807 *) ac_try_echo=$ac_try;;
29809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29810 (eval "$ac_link") 2>conftest.er1
29812 grep -v '^ *+' conftest.er1 >conftest.err
29814 cat conftest.err >&5
29815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29816 (exit $ac_status); } && {
29817 test -z "$ac_c_werror_flag" ||
29818 test ! -s conftest.err
29819 } && test -s conftest$ac_exeext &&
29820 $as_test_x conftest$ac_exeext; then
29821 ac_cv_lib_dnet_dnet_ntoa=yes
29823 echo "$as_me: failed program was:" >&5
29824 sed 's/^/| /' conftest.$ac_ext >&5
29826 ac_cv_lib_dnet_dnet_ntoa=no
29829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29830 conftest$ac_exeext conftest.$ac_ext
29831 LIBS=$ac_check_lib_save_LIBS
29833 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29834 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29835 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29836 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29839 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29840 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29841 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29842 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29843 echo $ECHO_N "(cached) $ECHO_C" >&6
29845 ac_check_lib_save_LIBS=$LIBS
29846 LIBS="-ldnet_stub $LIBS"
29847 cat >conftest.$ac_ext <<_ACEOF
29850 cat confdefs.h >>conftest.$ac_ext
29851 cat >>conftest.$ac_ext <<_ACEOF
29852 /* end confdefs.h. */
29854 /* Override any GCC internal prototype to avoid an error.
29855 Use char because int might match the return type of a GCC
29856 builtin and then its argument prototype would still apply. */
29864 return dnet_ntoa ();
29869 rm -f conftest.$ac_objext conftest$ac_exeext
29870 if { (ac_try="$ac_link"
29871 case "(($ac_try" in
29872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29873 *) ac_try_echo=$ac_try;;
29875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29876 (eval "$ac_link") 2>conftest.er1
29878 grep -v '^ *+' conftest.er1 >conftest.err
29880 cat conftest.err >&5
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); } && {
29883 test -z "$ac_c_werror_flag" ||
29884 test ! -s conftest.err
29885 } && test -s conftest$ac_exeext &&
29886 $as_test_x conftest$ac_exeext; then
29887 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29889 echo "$as_me: failed program was:" >&5
29890 sed 's/^/| /' conftest.$ac_ext >&5
29892 ac_cv_lib_dnet_stub_dnet_ntoa=no
29895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29896 conftest$ac_exeext conftest.$ac_ext
29897 LIBS=$ac_check_lib_save_LIBS
29899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29900 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29901 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29902 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29909 conftest$ac_exeext conftest.$ac_ext
29910 LIBS="$ac_xsave_LIBS"
29912 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29913 # to get the SysV transport functions.
29914 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29916 # The nsl library prevents programs from opening the X display
29917 # on Irix 5.2, according to T.E. Dickey.
29918 # The functions gethostbyname, getservbyname, and inet_addr are
29919 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29920 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29921 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29922 if test "${ac_cv_func_gethostbyname+set}" = set; then
29923 echo $ECHO_N "(cached) $ECHO_C" >&6
29925 cat >conftest.$ac_ext <<_ACEOF
29928 cat confdefs.h >>conftest.$ac_ext
29929 cat >>conftest.$ac_ext <<_ACEOF
29930 /* end confdefs.h. */
29931 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29933 #define gethostbyname innocuous_gethostbyname
29935 /* System header to define __stub macros and hopefully few prototypes,
29936 which can conflict with char gethostbyname (); below.
29937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29938 <limits.h> exists even on freestanding compilers. */
29941 # include <limits.h>
29943 # include <assert.h>
29946 #undef gethostbyname
29948 /* Override any GCC internal prototype to avoid an error.
29949 Use char because int might match the return type of a GCC
29950 builtin and then its argument prototype would still apply. */
29954 char gethostbyname ();
29955 /* The GNU C library defines this for functions which it implements
29956 to always fail with ENOSYS. Some functions are actually named
29957 something starting with __ and the normal name is an alias. */
29958 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29965 return gethostbyname ();
29970 rm -f conftest.$ac_objext conftest$ac_exeext
29971 if { (ac_try="$ac_link"
29972 case "(($ac_try" in
29973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29974 *) ac_try_echo=$ac_try;;
29976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29977 (eval "$ac_link") 2>conftest.er1
29979 grep -v '^ *+' conftest.er1 >conftest.err
29981 cat conftest.err >&5
29982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29983 (exit $ac_status); } && {
29984 test -z "$ac_c_werror_flag" ||
29985 test ! -s conftest.err
29986 } && test -s conftest$ac_exeext &&
29987 $as_test_x conftest$ac_exeext; then
29988 ac_cv_func_gethostbyname=yes
29990 echo "$as_me: failed program was:" >&5
29991 sed 's/^/| /' conftest.$ac_ext >&5
29993 ac_cv_func_gethostbyname=no
29996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29997 conftest$ac_exeext conftest.$ac_ext
29999 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30000 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30002 if test $ac_cv_func_gethostbyname = no; then
30003 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30004 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30005 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30006 echo $ECHO_N "(cached) $ECHO_C" >&6
30008 ac_check_lib_save_LIBS=$LIBS
30010 cat >conftest.$ac_ext <<_ACEOF
30013 cat confdefs.h >>conftest.$ac_ext
30014 cat >>conftest.$ac_ext <<_ACEOF
30015 /* end confdefs.h. */
30017 /* Override any GCC internal prototype to avoid an error.
30018 Use char because int might match the return type of a GCC
30019 builtin and then its argument prototype would still apply. */
30023 char gethostbyname ();
30027 return gethostbyname ();
30032 rm -f conftest.$ac_objext conftest$ac_exeext
30033 if { (ac_try="$ac_link"
30034 case "(($ac_try" in
30035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30036 *) ac_try_echo=$ac_try;;
30038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30039 (eval "$ac_link") 2>conftest.er1
30041 grep -v '^ *+' conftest.er1 >conftest.err
30043 cat conftest.err >&5
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); } && {
30046 test -z "$ac_c_werror_flag" ||
30047 test ! -s conftest.err
30048 } && test -s conftest$ac_exeext &&
30049 $as_test_x conftest$ac_exeext; then
30050 ac_cv_lib_nsl_gethostbyname=yes
30052 echo "$as_me: failed program was:" >&5
30053 sed 's/^/| /' conftest.$ac_ext >&5
30055 ac_cv_lib_nsl_gethostbyname=no
30058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30059 conftest$ac_exeext conftest.$ac_ext
30060 LIBS=$ac_check_lib_save_LIBS
30062 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30063 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30064 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30068 if test $ac_cv_lib_nsl_gethostbyname = no; then
30069 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30070 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30071 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30072 echo $ECHO_N "(cached) $ECHO_C" >&6
30074 ac_check_lib_save_LIBS=$LIBS
30076 cat >conftest.$ac_ext <<_ACEOF
30079 cat confdefs.h >>conftest.$ac_ext
30080 cat >>conftest.$ac_ext <<_ACEOF
30081 /* end confdefs.h. */
30083 /* Override any GCC internal prototype to avoid an error.
30084 Use char because int might match the return type of a GCC
30085 builtin and then its argument prototype would still apply. */
30089 char gethostbyname ();
30093 return gethostbyname ();
30098 rm -f conftest.$ac_objext conftest$ac_exeext
30099 if { (ac_try="$ac_link"
30100 case "(($ac_try" in
30101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30102 *) ac_try_echo=$ac_try;;
30104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30105 (eval "$ac_link") 2>conftest.er1
30107 grep -v '^ *+' conftest.er1 >conftest.err
30109 cat conftest.err >&5
30110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30111 (exit $ac_status); } && {
30112 test -z "$ac_c_werror_flag" ||
30113 test ! -s conftest.err
30114 } && test -s conftest$ac_exeext &&
30115 $as_test_x conftest$ac_exeext; then
30116 ac_cv_lib_bsd_gethostbyname=yes
30118 echo "$as_me: failed program was:" >&5
30119 sed 's/^/| /' conftest.$ac_ext >&5
30121 ac_cv_lib_bsd_gethostbyname=no
30124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30125 conftest$ac_exeext conftest.$ac_ext
30126 LIBS=$ac_check_lib_save_LIBS
30128 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30129 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30130 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30131 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30137 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30138 # socket/setsockopt and other routines are undefined under SCO ODT
30139 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30140 # on later versions), says Simon Leinen: it contains gethostby*
30141 # variants that don't use the name server (or something). -lsocket
30142 # must be given before -lnsl if both are needed. We assume that
30143 # if connect needs -lnsl, so does gethostbyname.
30144 { echo "$as_me:$LINENO: checking for connect" >&5
30145 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30146 if test "${ac_cv_func_connect+set}" = set; then
30147 echo $ECHO_N "(cached) $ECHO_C" >&6
30149 cat >conftest.$ac_ext <<_ACEOF
30152 cat confdefs.h >>conftest.$ac_ext
30153 cat >>conftest.$ac_ext <<_ACEOF
30154 /* end confdefs.h. */
30155 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30157 #define connect innocuous_connect
30159 /* System header to define __stub macros and hopefully few prototypes,
30160 which can conflict with char connect (); below.
30161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30162 <limits.h> exists even on freestanding compilers. */
30165 # include <limits.h>
30167 # include <assert.h>
30172 /* Override any GCC internal prototype to avoid an error.
30173 Use char because int might match the return type of a GCC
30174 builtin and then its argument prototype would still apply. */
30179 /* The GNU C library defines this for functions which it implements
30180 to always fail with ENOSYS. Some functions are actually named
30181 something starting with __ and the normal name is an alias. */
30182 #if defined __stub_connect || defined __stub___connect
30194 rm -f conftest.$ac_objext conftest$ac_exeext
30195 if { (ac_try="$ac_link"
30196 case "(($ac_try" in
30197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30198 *) ac_try_echo=$ac_try;;
30200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30201 (eval "$ac_link") 2>conftest.er1
30203 grep -v '^ *+' conftest.er1 >conftest.err
30205 cat conftest.err >&5
30206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30207 (exit $ac_status); } && {
30208 test -z "$ac_c_werror_flag" ||
30209 test ! -s conftest.err
30210 } && test -s conftest$ac_exeext &&
30211 $as_test_x conftest$ac_exeext; then
30212 ac_cv_func_connect=yes
30214 echo "$as_me: failed program was:" >&5
30215 sed 's/^/| /' conftest.$ac_ext >&5
30217 ac_cv_func_connect=no
30220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30221 conftest$ac_exeext conftest.$ac_ext
30223 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30224 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30226 if test $ac_cv_func_connect = no; then
30227 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30228 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30229 if test "${ac_cv_lib_socket_connect+set}" = set; then
30230 echo $ECHO_N "(cached) $ECHO_C" >&6
30232 ac_check_lib_save_LIBS=$LIBS
30233 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30234 cat >conftest.$ac_ext <<_ACEOF
30237 cat confdefs.h >>conftest.$ac_ext
30238 cat >>conftest.$ac_ext <<_ACEOF
30239 /* end confdefs.h. */
30241 /* Override any GCC internal prototype to avoid an error.
30242 Use char because int might match the return type of a GCC
30243 builtin and then its argument prototype would still apply. */
30256 rm -f conftest.$ac_objext conftest$ac_exeext
30257 if { (ac_try="$ac_link"
30258 case "(($ac_try" in
30259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30260 *) ac_try_echo=$ac_try;;
30262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30263 (eval "$ac_link") 2>conftest.er1
30265 grep -v '^ *+' conftest.er1 >conftest.err
30267 cat conftest.err >&5
30268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30269 (exit $ac_status); } && {
30270 test -z "$ac_c_werror_flag" ||
30271 test ! -s conftest.err
30272 } && test -s conftest$ac_exeext &&
30273 $as_test_x conftest$ac_exeext; then
30274 ac_cv_lib_socket_connect=yes
30276 echo "$as_me: failed program was:" >&5
30277 sed 's/^/| /' conftest.$ac_ext >&5
30279 ac_cv_lib_socket_connect=no
30282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30283 conftest$ac_exeext conftest.$ac_ext
30284 LIBS=$ac_check_lib_save_LIBS
30286 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30287 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30288 if test $ac_cv_lib_socket_connect = yes; then
30289 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30294 # Guillermo Gomez says -lposix is necessary on A/UX.
30295 { echo "$as_me:$LINENO: checking for remove" >&5
30296 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30297 if test "${ac_cv_func_remove+set}" = set; then
30298 echo $ECHO_N "(cached) $ECHO_C" >&6
30300 cat >conftest.$ac_ext <<_ACEOF
30303 cat confdefs.h >>conftest.$ac_ext
30304 cat >>conftest.$ac_ext <<_ACEOF
30305 /* end confdefs.h. */
30306 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30308 #define remove innocuous_remove
30310 /* System header to define __stub macros and hopefully few prototypes,
30311 which can conflict with char remove (); below.
30312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30313 <limits.h> exists even on freestanding compilers. */
30316 # include <limits.h>
30318 # include <assert.h>
30323 /* Override any GCC internal prototype to avoid an error.
30324 Use char because int might match the return type of a GCC
30325 builtin and then its argument prototype would still apply. */
30330 /* The GNU C library defines this for functions which it implements
30331 to always fail with ENOSYS. Some functions are actually named
30332 something starting with __ and the normal name is an alias. */
30333 #if defined __stub_remove || defined __stub___remove
30345 rm -f conftest.$ac_objext conftest$ac_exeext
30346 if { (ac_try="$ac_link"
30347 case "(($ac_try" in
30348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30349 *) ac_try_echo=$ac_try;;
30351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30352 (eval "$ac_link") 2>conftest.er1
30354 grep -v '^ *+' conftest.er1 >conftest.err
30356 cat conftest.err >&5
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); } && {
30359 test -z "$ac_c_werror_flag" ||
30360 test ! -s conftest.err
30361 } && test -s conftest$ac_exeext &&
30362 $as_test_x conftest$ac_exeext; then
30363 ac_cv_func_remove=yes
30365 echo "$as_me: failed program was:" >&5
30366 sed 's/^/| /' conftest.$ac_ext >&5
30368 ac_cv_func_remove=no
30371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30372 conftest$ac_exeext conftest.$ac_ext
30374 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30375 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30377 if test $ac_cv_func_remove = no; then
30378 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30379 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30380 if test "${ac_cv_lib_posix_remove+set}" = set; then
30381 echo $ECHO_N "(cached) $ECHO_C" >&6
30383 ac_check_lib_save_LIBS=$LIBS
30384 LIBS="-lposix $LIBS"
30385 cat >conftest.$ac_ext <<_ACEOF
30388 cat confdefs.h >>conftest.$ac_ext
30389 cat >>conftest.$ac_ext <<_ACEOF
30390 /* end confdefs.h. */
30392 /* Override any GCC internal prototype to avoid an error.
30393 Use char because int might match the return type of a GCC
30394 builtin and then its argument prototype would still apply. */
30407 rm -f conftest.$ac_objext conftest$ac_exeext
30408 if { (ac_try="$ac_link"
30409 case "(($ac_try" in
30410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30411 *) ac_try_echo=$ac_try;;
30413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30414 (eval "$ac_link") 2>conftest.er1
30416 grep -v '^ *+' conftest.er1 >conftest.err
30418 cat conftest.err >&5
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); } && {
30421 test -z "$ac_c_werror_flag" ||
30422 test ! -s conftest.err
30423 } && test -s conftest$ac_exeext &&
30424 $as_test_x conftest$ac_exeext; then
30425 ac_cv_lib_posix_remove=yes
30427 echo "$as_me: failed program was:" >&5
30428 sed 's/^/| /' conftest.$ac_ext >&5
30430 ac_cv_lib_posix_remove=no
30433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30434 conftest$ac_exeext conftest.$ac_ext
30435 LIBS=$ac_check_lib_save_LIBS
30437 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30438 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30439 if test $ac_cv_lib_posix_remove = yes; then
30440 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30445 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30446 { echo "$as_me:$LINENO: checking for shmat" >&5
30447 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30448 if test "${ac_cv_func_shmat+set}" = set; then
30449 echo $ECHO_N "(cached) $ECHO_C" >&6
30451 cat >conftest.$ac_ext <<_ACEOF
30454 cat confdefs.h >>conftest.$ac_ext
30455 cat >>conftest.$ac_ext <<_ACEOF
30456 /* end confdefs.h. */
30457 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30459 #define shmat innocuous_shmat
30461 /* System header to define __stub macros and hopefully few prototypes,
30462 which can conflict with char shmat (); below.
30463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30464 <limits.h> exists even on freestanding compilers. */
30467 # include <limits.h>
30469 # include <assert.h>
30474 /* Override any GCC internal prototype to avoid an error.
30475 Use char because int might match the return type of a GCC
30476 builtin and then its argument prototype would still apply. */
30481 /* The GNU C library defines this for functions which it implements
30482 to always fail with ENOSYS. Some functions are actually named
30483 something starting with __ and the normal name is an alias. */
30484 #if defined __stub_shmat || defined __stub___shmat
30496 rm -f conftest.$ac_objext conftest$ac_exeext
30497 if { (ac_try="$ac_link"
30498 case "(($ac_try" in
30499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30500 *) ac_try_echo=$ac_try;;
30502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30503 (eval "$ac_link") 2>conftest.er1
30505 grep -v '^ *+' conftest.er1 >conftest.err
30507 cat conftest.err >&5
30508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30509 (exit $ac_status); } && {
30510 test -z "$ac_c_werror_flag" ||
30511 test ! -s conftest.err
30512 } && test -s conftest$ac_exeext &&
30513 $as_test_x conftest$ac_exeext; then
30514 ac_cv_func_shmat=yes
30516 echo "$as_me: failed program was:" >&5
30517 sed 's/^/| /' conftest.$ac_ext >&5
30519 ac_cv_func_shmat=no
30522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30523 conftest$ac_exeext conftest.$ac_ext
30525 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30526 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30528 if test $ac_cv_func_shmat = no; then
30529 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30530 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30531 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30532 echo $ECHO_N "(cached) $ECHO_C" >&6
30534 ac_check_lib_save_LIBS=$LIBS
30536 cat >conftest.$ac_ext <<_ACEOF
30539 cat confdefs.h >>conftest.$ac_ext
30540 cat >>conftest.$ac_ext <<_ACEOF
30541 /* end confdefs.h. */
30543 /* Override any GCC internal prototype to avoid an error.
30544 Use char because int might match the return type of a GCC
30545 builtin and then its argument prototype would still apply. */
30558 rm -f conftest.$ac_objext conftest$ac_exeext
30559 if { (ac_try="$ac_link"
30560 case "(($ac_try" in
30561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30562 *) ac_try_echo=$ac_try;;
30564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30565 (eval "$ac_link") 2>conftest.er1
30567 grep -v '^ *+' conftest.er1 >conftest.err
30569 cat conftest.err >&5
30570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30571 (exit $ac_status); } && {
30572 test -z "$ac_c_werror_flag" ||
30573 test ! -s conftest.err
30574 } && test -s conftest$ac_exeext &&
30575 $as_test_x conftest$ac_exeext; then
30576 ac_cv_lib_ipc_shmat=yes
30578 echo "$as_me: failed program was:" >&5
30579 sed 's/^/| /' conftest.$ac_ext >&5
30581 ac_cv_lib_ipc_shmat=no
30584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30585 conftest$ac_exeext conftest.$ac_ext
30586 LIBS=$ac_check_lib_save_LIBS
30588 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30589 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30590 if test $ac_cv_lib_ipc_shmat = yes; then
30591 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30597 # Check for libraries that X11R6 Xt/Xaw programs need.
30598 ac_save_LDFLAGS=$LDFLAGS
30599 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30600 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30601 # check for ICE first), but we must link in the order -lSM -lICE or
30602 # we get undefined symbols. So assume we have SM if we have ICE.
30603 # These have to be linked with before -lX11, unlike the other
30604 # libraries we check for below, so use a different variable.
30605 # John Interrante, Karl Berry
30606 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30607 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30608 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30609 echo $ECHO_N "(cached) $ECHO_C" >&6
30611 ac_check_lib_save_LIBS=$LIBS
30612 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30613 cat >conftest.$ac_ext <<_ACEOF
30616 cat confdefs.h >>conftest.$ac_ext
30617 cat >>conftest.$ac_ext <<_ACEOF
30618 /* end confdefs.h. */
30620 /* Override any GCC internal prototype to avoid an error.
30621 Use char because int might match the return type of a GCC
30622 builtin and then its argument prototype would still apply. */
30626 char IceConnectionNumber ();
30630 return IceConnectionNumber ();
30635 rm -f conftest.$ac_objext conftest$ac_exeext
30636 if { (ac_try="$ac_link"
30637 case "(($ac_try" in
30638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30639 *) ac_try_echo=$ac_try;;
30641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30642 (eval "$ac_link") 2>conftest.er1
30644 grep -v '^ *+' conftest.er1 >conftest.err
30646 cat conftest.err >&5
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); } && {
30649 test -z "$ac_c_werror_flag" ||
30650 test ! -s conftest.err
30651 } && test -s conftest$ac_exeext &&
30652 $as_test_x conftest$ac_exeext; then
30653 ac_cv_lib_ICE_IceConnectionNumber=yes
30655 echo "$as_me: failed program was:" >&5
30656 sed 's/^/| /' conftest.$ac_ext >&5
30658 ac_cv_lib_ICE_IceConnectionNumber=no
30661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30662 conftest$ac_exeext conftest.$ac_ext
30663 LIBS=$ac_check_lib_save_LIBS
30665 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30666 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30667 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30668 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30671 LDFLAGS=$ac_save_LDFLAGS
30737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30742 echo $ECHO_N "(cached) $ECHO_C" >&6
30744 ac_res=`eval echo '${'$as_ac_Header'}'`
30745 { echo "$as_me:$LINENO: result: $ac_res" >&5
30746 echo "${ECHO_T}$ac_res" >&6; }
30748 # Is the header compilable?
30749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30751 cat >conftest.$ac_ext <<_ACEOF
30754 cat confdefs.h >>conftest.$ac_ext
30755 cat >>conftest.$ac_ext <<_ACEOF
30756 /* end confdefs.h. */
30757 $ac_includes_default
30758 #include <$ac_header>
30760 rm -f conftest.$ac_objext
30761 if { (ac_try="$ac_compile"
30762 case "(($ac_try" in
30763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30764 *) ac_try_echo=$ac_try;;
30766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30767 (eval "$ac_compile") 2>conftest.er1
30769 grep -v '^ *+' conftest.er1 >conftest.err
30771 cat conftest.err >&5
30772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30773 (exit $ac_status); } && {
30774 test -z "$ac_c_werror_flag" ||
30775 test ! -s conftest.err
30776 } && test -s conftest.$ac_objext; then
30777 ac_header_compiler=yes
30779 echo "$as_me: failed program was:" >&5
30780 sed 's/^/| /' conftest.$ac_ext >&5
30782 ac_header_compiler=no
30785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30787 echo "${ECHO_T}$ac_header_compiler" >&6; }
30789 # Is the header present?
30790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30792 cat >conftest.$ac_ext <<_ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h. */
30798 #include <$ac_header>
30800 if { (ac_try="$ac_cpp conftest.$ac_ext"
30801 case "(($ac_try" in
30802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30803 *) ac_try_echo=$ac_try;;
30805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30808 grep -v '^ *+' conftest.er1 >conftest.err
30810 cat conftest.err >&5
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); } >/dev/null && {
30813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30814 test ! -s conftest.err
30816 ac_header_preproc=yes
30818 echo "$as_me: failed program was:" >&5
30819 sed 's/^/| /' conftest.$ac_ext >&5
30821 ac_header_preproc=no
30824 rm -f conftest.err conftest.$ac_ext
30825 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30826 echo "${ECHO_T}$ac_header_preproc" >&6; }
30828 # So? What about this header?
30829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30835 ac_header_preproc=yes
30838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30856 echo $ECHO_N "(cached) $ECHO_C" >&6
30858 eval "$as_ac_Header=\$ac_header_preproc"
30860 ac_res=`eval echo '${'$as_ac_Header'}'`
30861 { echo "$as_me:$LINENO: result: $ac_res" >&5
30862 echo "${ECHO_T}$ac_res" >&6; }
30865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30866 cat >>confdefs.h <<_ACEOF
30867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30874 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30875 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30876 if test "${ac_cv_header_stdc+set}" = set; then
30877 echo $ECHO_N "(cached) $ECHO_C" >&6
30879 cat >conftest.$ac_ext <<_ACEOF
30882 cat confdefs.h >>conftest.$ac_ext
30883 cat >>conftest.$ac_ext <<_ACEOF
30884 /* end confdefs.h. */
30885 #include <stdlib.h>
30886 #include <stdarg.h>
30887 #include <string.h>
30898 rm -f conftest.$ac_objext
30899 if { (ac_try="$ac_compile"
30900 case "(($ac_try" in
30901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30902 *) ac_try_echo=$ac_try;;
30904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30905 (eval "$ac_compile") 2>conftest.er1
30907 grep -v '^ *+' conftest.er1 >conftest.err
30909 cat conftest.err >&5
30910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30911 (exit $ac_status); } && {
30912 test -z "$ac_c_werror_flag" ||
30913 test ! -s conftest.err
30914 } && test -s conftest.$ac_objext; then
30915 ac_cv_header_stdc=yes
30917 echo "$as_me: failed program was:" >&5
30918 sed 's/^/| /' conftest.$ac_ext >&5
30920 ac_cv_header_stdc=no
30923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30925 if test $ac_cv_header_stdc = yes; then
30926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30927 cat >conftest.$ac_ext <<_ACEOF
30930 cat confdefs.h >>conftest.$ac_ext
30931 cat >>conftest.$ac_ext <<_ACEOF
30932 /* end confdefs.h. */
30933 #include <string.h>
30936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30937 $EGREP "memchr" >/dev/null 2>&1; then
30940 ac_cv_header_stdc=no
30946 if test $ac_cv_header_stdc = yes; then
30947 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30948 cat >conftest.$ac_ext <<_ACEOF
30951 cat confdefs.h >>conftest.$ac_ext
30952 cat >>conftest.$ac_ext <<_ACEOF
30953 /* end confdefs.h. */
30954 #include <stdlib.h>
30957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30958 $EGREP "free" >/dev/null 2>&1; then
30961 ac_cv_header_stdc=no
30967 if test $ac_cv_header_stdc = yes; then
30968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30969 if test "$cross_compiling" = yes; then
30972 cat >conftest.$ac_ext <<_ACEOF
30975 cat confdefs.h >>conftest.$ac_ext
30976 cat >>conftest.$ac_ext <<_ACEOF
30977 /* end confdefs.h. */
30979 #include <stdlib.h>
30980 #if ((' ' & 0x0FF) == 0x020)
30981 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30982 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30984 # define ISLOWER(c) \
30985 (('a' <= (c) && (c) <= 'i') \
30986 || ('j' <= (c) && (c) <= 'r') \
30987 || ('s' <= (c) && (c) <= 'z'))
30988 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30991 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30996 for (i = 0; i < 256; i++)
30997 if (XOR (islower (i), ISLOWER (i))
30998 || toupper (i) != TOUPPER (i))
31003 rm -f conftest$ac_exeext
31004 if { (ac_try="$ac_link"
31005 case "(($ac_try" in
31006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31007 *) ac_try_echo=$ac_try;;
31009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31010 (eval "$ac_link") 2>&5
31012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31013 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31014 { (case "(($ac_try" in
31015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31016 *) ac_try_echo=$ac_try;;
31018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31019 (eval "$ac_try") 2>&5
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; }; then
31025 echo "$as_me: program exited with status $ac_status" >&5
31026 echo "$as_me: failed program was:" >&5
31027 sed 's/^/| /' conftest.$ac_ext >&5
31029 ( exit $ac_status )
31030 ac_cv_header_stdc=no
31032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31038 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31039 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31040 if test $ac_cv_header_stdc = yes; then
31042 cat >>confdefs.h <<\_ACEOF
31043 #define STDC_HEADERS 1
31048 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31049 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31050 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31051 echo $ECHO_N "(cached) $ECHO_C" >&6
31053 cat >conftest.$ac_ext <<_ACEOF
31056 cat confdefs.h >>conftest.$ac_ext
31057 cat >>conftest.$ac_ext <<_ACEOF
31058 /* end confdefs.h. */
31059 #include <sys/types.h>
31063 return makedev(0, 0);
31068 rm -f conftest.$ac_objext conftest$ac_exeext
31069 if { (ac_try="$ac_link"
31070 case "(($ac_try" in
31071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31072 *) ac_try_echo=$ac_try;;
31074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31075 (eval "$ac_link") 2>conftest.er1
31077 grep -v '^ *+' conftest.er1 >conftest.err
31079 cat conftest.err >&5
31080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31081 (exit $ac_status); } && {
31082 test -z "$ac_c_werror_flag" ||
31083 test ! -s conftest.err
31084 } && test -s conftest$ac_exeext &&
31085 $as_test_x conftest$ac_exeext; then
31086 ac_cv_header_sys_types_h_makedev=yes
31088 echo "$as_me: failed program was:" >&5
31089 sed 's/^/| /' conftest.$ac_ext >&5
31091 ac_cv_header_sys_types_h_makedev=no
31094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31095 conftest$ac_exeext conftest.$ac_ext
31098 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31099 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31101 if test $ac_cv_header_sys_types_h_makedev = no; then
31102 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31103 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31104 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31105 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31106 echo $ECHO_N "(cached) $ECHO_C" >&6
31108 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31109 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31111 # Is the header compilable?
31112 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31113 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31114 cat >conftest.$ac_ext <<_ACEOF
31117 cat confdefs.h >>conftest.$ac_ext
31118 cat >>conftest.$ac_ext <<_ACEOF
31119 /* end confdefs.h. */
31120 $ac_includes_default
31121 #include <sys/mkdev.h>
31123 rm -f conftest.$ac_objext
31124 if { (ac_try="$ac_compile"
31125 case "(($ac_try" in
31126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31127 *) ac_try_echo=$ac_try;;
31129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31130 (eval "$ac_compile") 2>conftest.er1
31132 grep -v '^ *+' conftest.er1 >conftest.err
31134 cat conftest.err >&5
31135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31136 (exit $ac_status); } && {
31137 test -z "$ac_c_werror_flag" ||
31138 test ! -s conftest.err
31139 } && test -s conftest.$ac_objext; then
31140 ac_header_compiler=yes
31142 echo "$as_me: failed program was:" >&5
31143 sed 's/^/| /' conftest.$ac_ext >&5
31145 ac_header_compiler=no
31148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31150 echo "${ECHO_T}$ac_header_compiler" >&6; }
31152 # Is the header present?
31153 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31154 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31155 cat >conftest.$ac_ext <<_ACEOF
31158 cat confdefs.h >>conftest.$ac_ext
31159 cat >>conftest.$ac_ext <<_ACEOF
31160 /* end confdefs.h. */
31161 #include <sys/mkdev.h>
31163 if { (ac_try="$ac_cpp conftest.$ac_ext"
31164 case "(($ac_try" in
31165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31166 *) ac_try_echo=$ac_try;;
31168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31171 grep -v '^ *+' conftest.er1 >conftest.err
31173 cat conftest.err >&5
31174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31175 (exit $ac_status); } >/dev/null && {
31176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31177 test ! -s conftest.err
31179 ac_header_preproc=yes
31181 echo "$as_me: failed program was:" >&5
31182 sed 's/^/| /' conftest.$ac_ext >&5
31184 ac_header_preproc=no
31187 rm -f conftest.err conftest.$ac_ext
31188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31189 echo "${ECHO_T}$ac_header_preproc" >&6; }
31191 # So? What about this header?
31192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31194 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31195 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31196 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31197 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31198 ac_header_preproc=yes
31201 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31202 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31203 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31204 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31205 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31206 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31207 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31208 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31209 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31210 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31211 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31212 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31216 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31217 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31218 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31219 echo $ECHO_N "(cached) $ECHO_C" >&6
31221 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31224 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31227 if test $ac_cv_header_sys_mkdev_h = yes; then
31229 cat >>confdefs.h <<\_ACEOF
31230 #define MAJOR_IN_MKDEV 1
31237 if test $ac_cv_header_sys_mkdev_h = no; then
31238 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31239 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31240 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31241 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31242 echo $ECHO_N "(cached) $ECHO_C" >&6
31244 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31245 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31247 # Is the header compilable?
31248 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31249 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31250 cat >conftest.$ac_ext <<_ACEOF
31253 cat confdefs.h >>conftest.$ac_ext
31254 cat >>conftest.$ac_ext <<_ACEOF
31255 /* end confdefs.h. */
31256 $ac_includes_default
31257 #include <sys/sysmacros.h>
31259 rm -f conftest.$ac_objext
31260 if { (ac_try="$ac_compile"
31261 case "(($ac_try" in
31262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31263 *) ac_try_echo=$ac_try;;
31265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31266 (eval "$ac_compile") 2>conftest.er1
31268 grep -v '^ *+' conftest.er1 >conftest.err
31270 cat conftest.err >&5
31271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31272 (exit $ac_status); } && {
31273 test -z "$ac_c_werror_flag" ||
31274 test ! -s conftest.err
31275 } && test -s conftest.$ac_objext; then
31276 ac_header_compiler=yes
31278 echo "$as_me: failed program was:" >&5
31279 sed 's/^/| /' conftest.$ac_ext >&5
31281 ac_header_compiler=no
31284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31285 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31286 echo "${ECHO_T}$ac_header_compiler" >&6; }
31288 # Is the header present?
31289 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31290 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31291 cat >conftest.$ac_ext <<_ACEOF
31294 cat confdefs.h >>conftest.$ac_ext
31295 cat >>conftest.$ac_ext <<_ACEOF
31296 /* end confdefs.h. */
31297 #include <sys/sysmacros.h>
31299 if { (ac_try="$ac_cpp conftest.$ac_ext"
31300 case "(($ac_try" in
31301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31302 *) ac_try_echo=$ac_try;;
31304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31307 grep -v '^ *+' conftest.er1 >conftest.err
31309 cat conftest.err >&5
31310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31311 (exit $ac_status); } >/dev/null && {
31312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31313 test ! -s conftest.err
31315 ac_header_preproc=yes
31317 echo "$as_me: failed program was:" >&5
31318 sed 's/^/| /' conftest.$ac_ext >&5
31320 ac_header_preproc=no
31323 rm -f conftest.err conftest.$ac_ext
31324 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31325 echo "${ECHO_T}$ac_header_preproc" >&6; }
31327 # So? What about this header?
31328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31330 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31331 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31332 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31333 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31334 ac_header_preproc=yes
31337 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31338 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31339 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31340 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31341 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31342 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31343 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31344 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31345 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31346 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31347 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31348 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31352 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31353 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31354 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31355 echo $ECHO_N "(cached) $ECHO_C" >&6
31357 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31359 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31360 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31363 if test $ac_cv_header_sys_sysmacros_h = yes; then
31365 cat >>confdefs.h <<\_ACEOF
31366 #define MAJOR_IN_SYSMACROS 1
31380 ac_header_dirent=no
31381 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31382 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31383 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31384 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31386 echo $ECHO_N "(cached) $ECHO_C" >&6
31388 cat >conftest.$ac_ext <<_ACEOF
31391 cat confdefs.h >>conftest.$ac_ext
31392 cat >>conftest.$ac_ext <<_ACEOF
31393 /* end confdefs.h. */
31394 #include <sys/types.h>
31406 rm -f conftest.$ac_objext
31407 if { (ac_try="$ac_compile"
31408 case "(($ac_try" in
31409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31410 *) ac_try_echo=$ac_try;;
31412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31413 (eval "$ac_compile") 2>conftest.er1
31415 grep -v '^ *+' conftest.er1 >conftest.err
31417 cat conftest.err >&5
31418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31419 (exit $ac_status); } && {
31420 test -z "$ac_c_werror_flag" ||
31421 test ! -s conftest.err
31422 } && test -s conftest.$ac_objext; then
31423 eval "$as_ac_Header=yes"
31425 echo "$as_me: failed program was:" >&5
31426 sed 's/^/| /' conftest.$ac_ext >&5
31428 eval "$as_ac_Header=no"
31431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31433 ac_res=`eval echo '${'$as_ac_Header'}'`
31434 { echo "$as_me:$LINENO: result: $ac_res" >&5
31435 echo "${ECHO_T}$ac_res" >&6; }
31436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31437 cat >>confdefs.h <<_ACEOF
31438 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31441 ac_header_dirent=$ac_hdr; break
31445 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31446 if test $ac_header_dirent = dirent.h; then
31447 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31448 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31449 if test "${ac_cv_search_opendir+set}" = set; then
31450 echo $ECHO_N "(cached) $ECHO_C" >&6
31452 ac_func_search_save_LIBS=$LIBS
31453 cat >conftest.$ac_ext <<_ACEOF
31456 cat confdefs.h >>conftest.$ac_ext
31457 cat >>conftest.$ac_ext <<_ACEOF
31458 /* end confdefs.h. */
31460 /* Override any GCC internal prototype to avoid an error.
31461 Use char because int might match the return type of a GCC
31462 builtin and then its argument prototype would still apply. */
31475 for ac_lib in '' dir; do
31476 if test -z "$ac_lib"; then
31477 ac_res="none required"
31480 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31482 rm -f conftest.$ac_objext conftest$ac_exeext
31483 if { (ac_try="$ac_link"
31484 case "(($ac_try" in
31485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31486 *) ac_try_echo=$ac_try;;
31488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31489 (eval "$ac_link") 2>conftest.er1
31491 grep -v '^ *+' conftest.er1 >conftest.err
31493 cat conftest.err >&5
31494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31495 (exit $ac_status); } && {
31496 test -z "$ac_c_werror_flag" ||
31497 test ! -s conftest.err
31498 } && test -s conftest$ac_exeext &&
31499 $as_test_x conftest$ac_exeext; then
31500 ac_cv_search_opendir=$ac_res
31502 echo "$as_me: failed program was:" >&5
31503 sed 's/^/| /' conftest.$ac_ext >&5
31508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31510 if test "${ac_cv_search_opendir+set}" = set; then
31514 if test "${ac_cv_search_opendir+set}" = set; then
31517 ac_cv_search_opendir=no
31519 rm conftest.$ac_ext
31520 LIBS=$ac_func_search_save_LIBS
31522 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31523 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31524 ac_res=$ac_cv_search_opendir
31525 if test "$ac_res" != no; then
31526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31531 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31532 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31533 if test "${ac_cv_search_opendir+set}" = set; then
31534 echo $ECHO_N "(cached) $ECHO_C" >&6
31536 ac_func_search_save_LIBS=$LIBS
31537 cat >conftest.$ac_ext <<_ACEOF
31540 cat confdefs.h >>conftest.$ac_ext
31541 cat >>conftest.$ac_ext <<_ACEOF
31542 /* end confdefs.h. */
31544 /* Override any GCC internal prototype to avoid an error.
31545 Use char because int might match the return type of a GCC
31546 builtin and then its argument prototype would still apply. */
31559 for ac_lib in '' x; do
31560 if test -z "$ac_lib"; then
31561 ac_res="none required"
31564 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31566 rm -f conftest.$ac_objext conftest$ac_exeext
31567 if { (ac_try="$ac_link"
31568 case "(($ac_try" in
31569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31570 *) ac_try_echo=$ac_try;;
31572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31573 (eval "$ac_link") 2>conftest.er1
31575 grep -v '^ *+' conftest.er1 >conftest.err
31577 cat conftest.err >&5
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); } && {
31580 test -z "$ac_c_werror_flag" ||
31581 test ! -s conftest.err
31582 } && test -s conftest$ac_exeext &&
31583 $as_test_x conftest$ac_exeext; then
31584 ac_cv_search_opendir=$ac_res
31586 echo "$as_me: failed program was:" >&5
31587 sed 's/^/| /' conftest.$ac_ext >&5
31592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31594 if test "${ac_cv_search_opendir+set}" = set; then
31598 if test "${ac_cv_search_opendir+set}" = set; then
31601 ac_cv_search_opendir=no
31603 rm conftest.$ac_ext
31604 LIBS=$ac_func_search_save_LIBS
31606 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31607 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31608 ac_res=$ac_cv_search_opendir
31609 if test "$ac_res" != no; then
31610 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31616 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31617 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31618 if test "${ac_cv_header_stat_broken+set}" = set; then
31619 echo $ECHO_N "(cached) $ECHO_C" >&6
31621 cat >conftest.$ac_ext <<_ACEOF
31624 cat confdefs.h >>conftest.$ac_ext
31625 cat >>conftest.$ac_ext <<_ACEOF
31626 /* end confdefs.h. */
31627 #include <sys/types.h>
31628 #include <sys/stat.h>
31630 #if defined S_ISBLK && defined S_IFDIR
31631 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31634 #if defined S_ISBLK && defined S_IFCHR
31635 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31638 #if defined S_ISLNK && defined S_IFREG
31639 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31642 #if defined S_ISSOCK && defined S_IFREG
31643 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31647 rm -f conftest.$ac_objext
31648 if { (ac_try="$ac_compile"
31649 case "(($ac_try" in
31650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31651 *) ac_try_echo=$ac_try;;
31653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31654 (eval "$ac_compile") 2>conftest.er1
31656 grep -v '^ *+' conftest.er1 >conftest.err
31658 cat conftest.err >&5
31659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31660 (exit $ac_status); } && {
31661 test -z "$ac_c_werror_flag" ||
31662 test ! -s conftest.err
31663 } && test -s conftest.$ac_objext; then
31664 ac_cv_header_stat_broken=no
31666 echo "$as_me: failed program was:" >&5
31667 sed 's/^/| /' conftest.$ac_ext >&5
31669 ac_cv_header_stat_broken=yes
31672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31674 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31675 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31676 if test $ac_cv_header_stat_broken = yes; then
31678 cat >>confdefs.h <<\_ACEOF
31679 #define STAT_MACROS_BROKEN 1
31684 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31685 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31686 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31687 echo $ECHO_N "(cached) $ECHO_C" >&6
31689 cat >conftest.$ac_ext <<_ACEOF
31692 cat confdefs.h >>conftest.$ac_ext
31693 cat >>conftest.$ac_ext <<_ACEOF
31694 /* end confdefs.h. */
31695 #include <sys/types.h>
31696 #include <sys/wait.h>
31697 #ifndef WEXITSTATUS
31698 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31701 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31709 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31714 rm -f conftest.$ac_objext
31715 if { (ac_try="$ac_compile"
31716 case "(($ac_try" in
31717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31718 *) ac_try_echo=$ac_try;;
31720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31721 (eval "$ac_compile") 2>conftest.er1
31723 grep -v '^ *+' conftest.er1 >conftest.err
31725 cat conftest.err >&5
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); } && {
31728 test -z "$ac_c_werror_flag" ||
31729 test ! -s conftest.err
31730 } && test -s conftest.$ac_objext; then
31731 ac_cv_header_sys_wait_h=yes
31733 echo "$as_me: failed program was:" >&5
31734 sed 's/^/| /' conftest.$ac_ext >&5
31736 ac_cv_header_sys_wait_h=no
31739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31741 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31742 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31743 if test $ac_cv_header_sys_wait_h = yes; then
31745 cat >>confdefs.h <<\_ACEOF
31746 #define HAVE_SYS_WAIT_H 1
31751 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31752 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31753 if test "${ac_cv_header_time+set}" = set; then
31754 echo $ECHO_N "(cached) $ECHO_C" >&6
31756 cat >conftest.$ac_ext <<_ACEOF
31759 cat confdefs.h >>conftest.$ac_ext
31760 cat >>conftest.$ac_ext <<_ACEOF
31761 /* end confdefs.h. */
31762 #include <sys/types.h>
31763 #include <sys/time.h>
31769 if ((struct tm *) 0)
31775 rm -f conftest.$ac_objext
31776 if { (ac_try="$ac_compile"
31777 case "(($ac_try" in
31778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31779 *) ac_try_echo=$ac_try;;
31781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31782 (eval "$ac_compile") 2>conftest.er1
31784 grep -v '^ *+' conftest.er1 >conftest.err
31786 cat conftest.err >&5
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); } && {
31789 test -z "$ac_c_werror_flag" ||
31790 test ! -s conftest.err
31791 } && test -s conftest.$ac_objext; then
31792 ac_cv_header_time=yes
31794 echo "$as_me: failed program was:" >&5
31795 sed 's/^/| /' conftest.$ac_ext >&5
31797 ac_cv_header_time=no
31800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31802 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31803 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31804 if test $ac_cv_header_time = yes; then
31806 cat >>confdefs.h <<\_ACEOF
31807 #define TIME_WITH_SYS_TIME 1
31812 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31813 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31814 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31815 echo $ECHO_N "(cached) $ECHO_C" >&6
31817 cat >conftest.$ac_ext <<_ACEOF
31820 cat confdefs.h >>conftest.$ac_ext
31821 cat >>conftest.$ac_ext <<_ACEOF
31822 /* end confdefs.h. */
31823 $ac_includes_default
31827 static struct stat ac_aggr;
31828 if (ac_aggr.st_blksize)
31834 rm -f conftest.$ac_objext
31835 if { (ac_try="$ac_compile"
31836 case "(($ac_try" in
31837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31838 *) ac_try_echo=$ac_try;;
31840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31841 (eval "$ac_compile") 2>conftest.er1
31843 grep -v '^ *+' conftest.er1 >conftest.err
31845 cat conftest.err >&5
31846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847 (exit $ac_status); } && {
31848 test -z "$ac_c_werror_flag" ||
31849 test ! -s conftest.err
31850 } && test -s conftest.$ac_objext; then
31851 ac_cv_member_struct_stat_st_blksize=yes
31853 echo "$as_me: failed program was:" >&5
31854 sed 's/^/| /' conftest.$ac_ext >&5
31856 cat >conftest.$ac_ext <<_ACEOF
31859 cat confdefs.h >>conftest.$ac_ext
31860 cat >>conftest.$ac_ext <<_ACEOF
31861 /* end confdefs.h. */
31862 $ac_includes_default
31866 static struct stat ac_aggr;
31867 if (sizeof ac_aggr.st_blksize)
31873 rm -f conftest.$ac_objext
31874 if { (ac_try="$ac_compile"
31875 case "(($ac_try" in
31876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31877 *) ac_try_echo=$ac_try;;
31879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31880 (eval "$ac_compile") 2>conftest.er1
31882 grep -v '^ *+' conftest.er1 >conftest.err
31884 cat conftest.err >&5
31885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31886 (exit $ac_status); } && {
31887 test -z "$ac_c_werror_flag" ||
31888 test ! -s conftest.err
31889 } && test -s conftest.$ac_objext; then
31890 ac_cv_member_struct_stat_st_blksize=yes
31892 echo "$as_me: failed program was:" >&5
31893 sed 's/^/| /' conftest.$ac_ext >&5
31895 ac_cv_member_struct_stat_st_blksize=no
31898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31903 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31904 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31905 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31907 cat >>confdefs.h <<_ACEOF
31908 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31912 cat >>confdefs.h <<\_ACEOF
31913 #define HAVE_ST_BLKSIZE 1
31919 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31920 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31921 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31922 echo $ECHO_N "(cached) $ECHO_C" >&6
31924 cat >conftest.$ac_ext <<_ACEOF
31927 cat confdefs.h >>conftest.$ac_ext
31928 cat >>conftest.$ac_ext <<_ACEOF
31929 /* end confdefs.h. */
31930 $ac_includes_default
31934 static struct stat ac_aggr;
31935 if (ac_aggr.st_blocks)
31941 rm -f conftest.$ac_objext
31942 if { (ac_try="$ac_compile"
31943 case "(($ac_try" in
31944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31945 *) ac_try_echo=$ac_try;;
31947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31948 (eval "$ac_compile") 2>conftest.er1
31950 grep -v '^ *+' conftest.er1 >conftest.err
31952 cat conftest.err >&5
31953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31954 (exit $ac_status); } && {
31955 test -z "$ac_c_werror_flag" ||
31956 test ! -s conftest.err
31957 } && test -s conftest.$ac_objext; then
31958 ac_cv_member_struct_stat_st_blocks=yes
31960 echo "$as_me: failed program was:" >&5
31961 sed 's/^/| /' conftest.$ac_ext >&5
31963 cat >conftest.$ac_ext <<_ACEOF
31966 cat confdefs.h >>conftest.$ac_ext
31967 cat >>conftest.$ac_ext <<_ACEOF
31968 /* end confdefs.h. */
31969 $ac_includes_default
31973 static struct stat ac_aggr;
31974 if (sizeof ac_aggr.st_blocks)
31980 rm -f conftest.$ac_objext
31981 if { (ac_try="$ac_compile"
31982 case "(($ac_try" in
31983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31984 *) ac_try_echo=$ac_try;;
31986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31987 (eval "$ac_compile") 2>conftest.er1
31989 grep -v '^ *+' conftest.er1 >conftest.err
31991 cat conftest.err >&5
31992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31993 (exit $ac_status); } && {
31994 test -z "$ac_c_werror_flag" ||
31995 test ! -s conftest.err
31996 } && test -s conftest.$ac_objext; then
31997 ac_cv_member_struct_stat_st_blocks=yes
31999 echo "$as_me: failed program was:" >&5
32000 sed 's/^/| /' conftest.$ac_ext >&5
32002 ac_cv_member_struct_stat_st_blocks=no
32005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32010 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32011 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32012 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32014 cat >>confdefs.h <<_ACEOF
32015 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32019 cat >>confdefs.h <<\_ACEOF
32020 #define HAVE_ST_BLOCKS 1
32024 case " $LIBOBJS " in
32025 *" fileblocks.$ac_objext "* ) ;;
32026 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32033 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32034 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32035 if test "${ac_cv_struct_tm+set}" = set; then
32036 echo $ECHO_N "(cached) $ECHO_C" >&6
32038 cat >conftest.$ac_ext <<_ACEOF
32041 cat confdefs.h >>conftest.$ac_ext
32042 cat >>conftest.$ac_ext <<_ACEOF
32043 /* end confdefs.h. */
32044 #include <sys/types.h>
32051 int *p = &tm.tm_sec;
32057 rm -f conftest.$ac_objext
32058 if { (ac_try="$ac_compile"
32059 case "(($ac_try" in
32060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32061 *) ac_try_echo=$ac_try;;
32063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32064 (eval "$ac_compile") 2>conftest.er1
32066 grep -v '^ *+' conftest.er1 >conftest.err
32068 cat conftest.err >&5
32069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32070 (exit $ac_status); } && {
32071 test -z "$ac_c_werror_flag" ||
32072 test ! -s conftest.err
32073 } && test -s conftest.$ac_objext; then
32074 ac_cv_struct_tm=time.h
32076 echo "$as_me: failed program was:" >&5
32077 sed 's/^/| /' conftest.$ac_ext >&5
32079 ac_cv_struct_tm=sys/time.h
32082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32084 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32085 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32086 if test $ac_cv_struct_tm = sys/time.h; then
32088 cat >>confdefs.h <<\_ACEOF
32089 #define TM_IN_SYS_TIME 1
32094 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32095 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32096 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32097 echo $ECHO_N "(cached) $ECHO_C" >&6
32099 cat >conftest.$ac_ext <<_ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h. */
32105 #include <sys/types.h>
32106 #include <$ac_cv_struct_tm>
32112 static struct tm ac_aggr;
32113 if (ac_aggr.tm_zone)
32119 rm -f conftest.$ac_objext
32120 if { (ac_try="$ac_compile"
32121 case "(($ac_try" in
32122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32123 *) ac_try_echo=$ac_try;;
32125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32126 (eval "$ac_compile") 2>conftest.er1
32128 grep -v '^ *+' conftest.er1 >conftest.err
32130 cat conftest.err >&5
32131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32132 (exit $ac_status); } && {
32133 test -z "$ac_c_werror_flag" ||
32134 test ! -s conftest.err
32135 } && test -s conftest.$ac_objext; then
32136 ac_cv_member_struct_tm_tm_zone=yes
32138 echo "$as_me: failed program was:" >&5
32139 sed 's/^/| /' conftest.$ac_ext >&5
32141 cat >conftest.$ac_ext <<_ACEOF
32144 cat confdefs.h >>conftest.$ac_ext
32145 cat >>conftest.$ac_ext <<_ACEOF
32146 /* end confdefs.h. */
32147 #include <sys/types.h>
32148 #include <$ac_cv_struct_tm>
32154 static struct tm ac_aggr;
32155 if (sizeof ac_aggr.tm_zone)
32161 rm -f conftest.$ac_objext
32162 if { (ac_try="$ac_compile"
32163 case "(($ac_try" in
32164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32165 *) ac_try_echo=$ac_try;;
32167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32168 (eval "$ac_compile") 2>conftest.er1
32170 grep -v '^ *+' conftest.er1 >conftest.err
32172 cat conftest.err >&5
32173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32174 (exit $ac_status); } && {
32175 test -z "$ac_c_werror_flag" ||
32176 test ! -s conftest.err
32177 } && test -s conftest.$ac_objext; then
32178 ac_cv_member_struct_tm_tm_zone=yes
32180 echo "$as_me: failed program was:" >&5
32181 sed 's/^/| /' conftest.$ac_ext >&5
32183 ac_cv_member_struct_tm_tm_zone=no
32186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32191 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32192 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32193 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32195 cat >>confdefs.h <<_ACEOF
32196 #define HAVE_STRUCT_TM_TM_ZONE 1
32202 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32204 cat >>confdefs.h <<\_ACEOF
32205 #define HAVE_TM_ZONE 1
32209 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32210 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32211 if test "${ac_cv_have_decl_tzname+set}" = set; then
32212 echo $ECHO_N "(cached) $ECHO_C" >&6
32214 cat >conftest.$ac_ext <<_ACEOF
32217 cat confdefs.h >>conftest.$ac_ext
32218 cat >>conftest.$ac_ext <<_ACEOF
32219 /* end confdefs.h. */
32233 rm -f conftest.$ac_objext
32234 if { (ac_try="$ac_compile"
32235 case "(($ac_try" in
32236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32237 *) ac_try_echo=$ac_try;;
32239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32240 (eval "$ac_compile") 2>conftest.er1
32242 grep -v '^ *+' conftest.er1 >conftest.err
32244 cat conftest.err >&5
32245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32246 (exit $ac_status); } && {
32247 test -z "$ac_c_werror_flag" ||
32248 test ! -s conftest.err
32249 } && test -s conftest.$ac_objext; then
32250 ac_cv_have_decl_tzname=yes
32252 echo "$as_me: failed program was:" >&5
32253 sed 's/^/| /' conftest.$ac_ext >&5
32255 ac_cv_have_decl_tzname=no
32258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32260 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32261 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32262 if test $ac_cv_have_decl_tzname = yes; then
32264 cat >>confdefs.h <<_ACEOF
32265 #define HAVE_DECL_TZNAME 1
32270 cat >>confdefs.h <<_ACEOF
32271 #define HAVE_DECL_TZNAME 0
32278 { echo "$as_me:$LINENO: checking for tzname" >&5
32279 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32280 if test "${ac_cv_var_tzname+set}" = set; then
32281 echo $ECHO_N "(cached) $ECHO_C" >&6
32283 cat >conftest.$ac_ext <<_ACEOF
32286 cat confdefs.h >>conftest.$ac_ext
32287 cat >>conftest.$ac_ext <<_ACEOF
32288 /* end confdefs.h. */
32290 #if !HAVE_DECL_TZNAME
32291 extern char *tzname[];
32297 return tzname[0][0];
32302 rm -f conftest.$ac_objext conftest$ac_exeext
32303 if { (ac_try="$ac_link"
32304 case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32309 (eval "$ac_link") 2>conftest.er1
32311 grep -v '^ *+' conftest.er1 >conftest.err
32313 cat conftest.err >&5
32314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32315 (exit $ac_status); } && {
32316 test -z "$ac_c_werror_flag" ||
32317 test ! -s conftest.err
32318 } && test -s conftest$ac_exeext &&
32319 $as_test_x conftest$ac_exeext; then
32320 ac_cv_var_tzname=yes
32322 echo "$as_me: failed program was:" >&5
32323 sed 's/^/| /' conftest.$ac_ext >&5
32325 ac_cv_var_tzname=no
32328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32329 conftest$ac_exeext conftest.$ac_ext
32331 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32332 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32333 if test $ac_cv_var_tzname = yes; then
32335 cat >>confdefs.h <<\_ACEOF
32336 #define HAVE_TZNAME 1
32343 { echo "$as_me:$LINENO: checking for utime.h" >&5
32344 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32345 if test "${ba_cv_header_utime_h+set}" = set; then
32346 echo $ECHO_N "(cached) $ECHO_C" >&6
32349 cat >conftest.$ac_ext <<_ACEOF
32352 cat confdefs.h >>conftest.$ac_ext
32353 cat >>conftest.$ac_ext <<_ACEOF
32354 /* end confdefs.h. */
32356 #include <sys/types.h>
32369 rm -f conftest.$ac_objext
32370 if { (ac_try="$ac_compile"
32371 case "(($ac_try" in
32372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32373 *) ac_try_echo=$ac_try;;
32375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32376 (eval "$ac_compile") 2>conftest.er1
32378 grep -v '^ *+' conftest.er1 >conftest.err
32380 cat conftest.err >&5
32381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); } && {
32383 test -z "$ac_c_werror_flag" ||
32384 test ! -s conftest.err
32385 } && test -s conftest.$ac_objext; then
32387 ba_cv_header_utime_h=yes
32390 echo "$as_me: failed program was:" >&5
32391 sed 's/^/| /' conftest.$ac_ext >&5
32394 ba_cv_header_utime_h=no
32399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32403 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32404 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32405 test $ba_cv_header_utime_h = yes &&
32406 cat >>confdefs.h <<\_ACEOF
32407 #define HAVE_UTIME_H 1
32411 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32412 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32413 if test "${ba_cv_header_socklen_t+set}" = set; then
32414 echo $ECHO_N "(cached) $ECHO_C" >&6
32417 cat >conftest.$ac_ext <<_ACEOF
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h. */
32424 #include <sys/types.h>
32425 #include <sys/socket.h>
32437 rm -f conftest.$ac_objext
32438 if { (ac_try="$ac_compile"
32439 case "(($ac_try" in
32440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32441 *) ac_try_echo=$ac_try;;
32443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32444 (eval "$ac_compile") 2>conftest.er1
32446 grep -v '^ *+' conftest.er1 >conftest.err
32448 cat conftest.err >&5
32449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32450 (exit $ac_status); } && {
32451 test -z "$ac_c_werror_flag" ||
32452 test ! -s conftest.err
32453 } && test -s conftest.$ac_objext; then
32455 ba_cv_header_socklen_t=yes
32458 echo "$as_me: failed program was:" >&5
32459 sed 's/^/| /' conftest.$ac_ext >&5
32462 ba_cv_header_socklen_t=no
32467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32471 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32472 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32473 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32474 #define HAVE_SOCKLEN_T 1
32478 { echo "$as_me:$LINENO: checking for bigendian" >&5
32479 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
32480 if test "${ba_cv_bigendian+set}" = set; then
32481 echo $ECHO_N "(cached) $ECHO_C" >&6
32484 if test "$cross_compiling" = yes; then
32490 cat >conftest.$ac_ext <<_ACEOF
32493 cat confdefs.h >>conftest.$ac_ext
32494 cat >>conftest.$ac_ext <<_ACEOF
32495 /* end confdefs.h. */
32497 main(){long a=1L; char *p=(char *)&a; exit(*p);}
32500 rm -f conftest$ac_exeext
32501 if { (ac_try="$ac_link"
32502 case "(($ac_try" in
32503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504 *) ac_try_echo=$ac_try;;
32506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32507 (eval "$ac_link") 2>&5
32509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32511 { (case "(($ac_try" in
32512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32513 *) ac_try_echo=$ac_try;;
32515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32516 (eval "$ac_try") 2>&5
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); }; }; then
32521 ba_cv_bigendian=yes
32524 echo "$as_me: program exited with status $ac_status" >&5
32525 echo "$as_me: failed program was:" >&5
32526 sed 's/^/| /' conftest.$ac_ext >&5
32528 ( exit $ac_status )
32533 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32540 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
32541 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
32542 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
32543 #define HAVE_BIGENDIAN 1
32548 ac_cpp='$CXXCPP $CPPFLAGS'
32549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32553 { echo "$as_me:$LINENO: checking for typeof" >&5
32554 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32555 if test "${ba_cv_have_typeof+set}" = set; then
32556 echo $ECHO_N "(cached) $ECHO_C" >&6
32559 if test "$cross_compiling" = yes; then
32561 ba_cv_have_typeof=no
32565 cat >conftest.$ac_ext <<_ACEOF
32568 cat confdefs.h >>conftest.$ac_ext
32569 cat >>conftest.$ac_ext <<_ACEOF
32570 /* end confdefs.h. */
32572 main(){char *a = 0; a = (typeof a)a;}
32575 rm -f conftest$ac_exeext
32576 if { (ac_try="$ac_link"
32577 case "(($ac_try" in
32578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579 *) ac_try_echo=$ac_try;;
32581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582 (eval "$ac_link") 2>&5
32584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32585 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32586 { (case "(($ac_try" in
32587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32588 *) ac_try_echo=$ac_try;;
32590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32591 (eval "$ac_try") 2>&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); }; }; then
32596 ba_cv_have_typeof=yes
32599 echo "$as_me: program exited with status $ac_status" >&5
32600 echo "$as_me: failed program was:" >&5
32601 sed 's/^/| /' conftest.$ac_ext >&5
32603 ( exit $ac_status )
32605 ba_cv_have_typeof=no
32608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32615 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32616 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32617 test $ba_cv_have_typeof = yes &&
32618 cat >>confdefs.h <<\_ACEOF
32619 #define HAVE_TYPEOF 1
32623 ac_cpp='$CPP $CPPFLAGS'
32624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32629 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32631 if test "${ac_cv_c_const+set}" = set; then
32632 echo $ECHO_N "(cached) $ECHO_C" >&6
32634 cat >conftest.$ac_ext <<_ACEOF
32637 cat confdefs.h >>conftest.$ac_ext
32638 cat >>conftest.$ac_ext <<_ACEOF
32639 /* end confdefs.h. */
32644 /* FIXME: Include the comments suggested by Paul. */
32645 #ifndef __cplusplus
32646 /* Ultrix mips cc rejects this. */
32647 typedef int charset[2];
32649 /* SunOS 4.1.1 cc rejects this. */
32650 char const *const *pcpcc;
32652 /* NEC SVR4.0.2 mips cc rejects this. */
32653 struct point {int x, y;};
32654 static struct point const zero = {0,0};
32655 /* AIX XL C 1.02.0.0 rejects this.
32656 It does not let you subtract one const X* pointer from another in
32657 an arm of an if-expression whose if-part is not a constant
32659 const char *g = "string";
32660 pcpcc = &g + (g ? g-g : 0);
32661 /* HPUX 7.0 cc rejects these. */
32663 ppc = (char**) pcpcc;
32664 pcpcc = (char const *const *) ppc;
32665 { /* SCO 3.2v4 cc rejects this. */
32667 char const *s = 0 ? (char *) 0 : (char const *) 0;
32672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32673 int x[] = {25, 17};
32674 const int *foo = &x[0];
32677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32678 typedef const int *iptr;
32682 { /* AIX XL C 1.02.0.0 rejects this saying
32683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32684 struct s { int j; const int *ap[3]; };
32685 struct s *b; b->j = 5;
32687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32688 const int foo = 10;
32689 if (!foo) return 0;
32691 return !cs[0] && !zero.x;
32698 rm -f conftest.$ac_objext
32699 if { (ac_try="$ac_compile"
32700 case "(($ac_try" in
32701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32702 *) ac_try_echo=$ac_try;;
32704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32705 (eval "$ac_compile") 2>conftest.er1
32707 grep -v '^ *+' conftest.er1 >conftest.err
32709 cat conftest.err >&5
32710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711 (exit $ac_status); } && {
32712 test -z "$ac_c_werror_flag" ||
32713 test ! -s conftest.err
32714 } && test -s conftest.$ac_objext; then
32717 echo "$as_me: failed program was:" >&5
32718 sed 's/^/| /' conftest.$ac_ext >&5
32723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32727 if test $ac_cv_c_const = no; then
32729 cat >>confdefs.h <<\_ACEOF
32736 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32737 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32739 # The order of these tests is important.
32740 cat >conftest.$ac_ext <<_ACEOF
32743 cat confdefs.h >>conftest.$ac_ext
32744 cat >>conftest.$ac_ext <<_ACEOF
32745 /* end confdefs.h. */
32747 #include <sys/statvfs.h>
32748 #include <sys/fstyp.h>
32751 if { (ac_try="$ac_cpp conftest.$ac_ext"
32752 case "(($ac_try" in
32753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32754 *) ac_try_echo=$ac_try;;
32756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32759 grep -v '^ *+' conftest.er1 >conftest.err
32761 cat conftest.err >&5
32762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763 (exit $ac_status); } >/dev/null && {
32764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32765 test ! -s conftest.err
32767 cat >>confdefs.h <<\_ACEOF
32768 #define FSTYPE_STATVFS 1
32773 echo "$as_me: failed program was:" >&5
32774 sed 's/^/| /' conftest.$ac_ext >&5
32779 rm -f conftest.err conftest.$ac_ext
32780 if test $fstype = no; then
32781 cat >conftest.$ac_ext <<_ACEOF
32784 cat confdefs.h >>conftest.$ac_ext
32785 cat >>conftest.$ac_ext <<_ACEOF
32786 /* end confdefs.h. */
32788 #include <sys/statfs.h>
32789 #include <sys/fstyp.h>
32792 if { (ac_try="$ac_cpp conftest.$ac_ext"
32793 case "(($ac_try" in
32794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32795 *) ac_try_echo=$ac_try;;
32797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32800 grep -v '^ *+' conftest.er1 >conftest.err
32802 cat conftest.err >&5
32803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32804 (exit $ac_status); } >/dev/null && {
32805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32806 test ! -s conftest.err
32808 cat >>confdefs.h <<\_ACEOF
32809 #define FSTYPE_USG_STATFS 1
32814 echo "$as_me: failed program was:" >&5
32815 sed 's/^/| /' conftest.$ac_ext >&5
32820 rm -f conftest.err conftest.$ac_ext
32822 if test $fstype = no; then
32823 cat >conftest.$ac_ext <<_ACEOF
32826 cat confdefs.h >>conftest.$ac_ext
32827 cat >>conftest.$ac_ext <<_ACEOF
32828 /* end confdefs.h. */
32830 #include <sys/statfs.h>
32831 #include <sys/vmount.h>
32834 if { (ac_try="$ac_cpp conftest.$ac_ext"
32835 case "(($ac_try" in
32836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32837 *) ac_try_echo=$ac_try;;
32839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32842 grep -v '^ *+' conftest.er1 >conftest.err
32844 cat conftest.err >&5
32845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32846 (exit $ac_status); } >/dev/null && {
32847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32848 test ! -s conftest.err
32850 cat >>confdefs.h <<\_ACEOF
32851 #define FSTYPE_AIX_STATFS 1
32856 echo "$as_me: failed program was:" >&5
32857 sed 's/^/| /' conftest.$ac_ext >&5
32862 rm -f conftest.err conftest.$ac_ext
32864 if test $fstype = no; then
32865 cat >conftest.$ac_ext <<_ACEOF
32868 cat confdefs.h >>conftest.$ac_ext
32869 cat >>conftest.$ac_ext <<_ACEOF
32870 /* end confdefs.h. */
32872 #include <mntent.h>
32875 if { (ac_try="$ac_cpp conftest.$ac_ext"
32876 case "(($ac_try" in
32877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32878 *) ac_try_echo=$ac_try;;
32880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32883 grep -v '^ *+' conftest.er1 >conftest.err
32885 cat conftest.err >&5
32886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32887 (exit $ac_status); } >/dev/null && {
32888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32889 test ! -s conftest.err
32891 cat >>confdefs.h <<\_ACEOF
32892 #define FSTYPE_MNTENT 1
32897 echo "$as_me: failed program was:" >&5
32898 sed 's/^/| /' conftest.$ac_ext >&5
32903 rm -f conftest.err conftest.$ac_ext
32905 if test $fstype = no; then
32906 cat >conftest.$ac_ext <<_ACEOF
32909 cat confdefs.h >>conftest.$ac_ext
32910 cat >>conftest.$ac_ext <<_ACEOF
32911 /* end confdefs.h. */
32912 #include <sys/mount.h>
32915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32916 $EGREP "f_type;" >/dev/null 2>&1; then
32917 cat >>confdefs.h <<\_ACEOF
32918 #define FSTYPE_STATFS 1
32925 if test $fstype = no; then
32926 cat >conftest.$ac_ext <<_ACEOF
32929 cat confdefs.h >>conftest.$ac_ext
32930 cat >>conftest.$ac_ext <<_ACEOF
32931 /* end confdefs.h. */
32933 #include <sys/mount.h>
32934 #include <sys/fs_types.h>
32937 if { (ac_try="$ac_cpp conftest.$ac_ext"
32938 case "(($ac_try" in
32939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32940 *) ac_try_echo=$ac_try;;
32942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32945 grep -v '^ *+' conftest.er1 >conftest.err
32947 cat conftest.err >&5
32948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 (exit $ac_status); } >/dev/null && {
32950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32951 test ! -s conftest.err
32953 cat >>confdefs.h <<\_ACEOF
32954 #define FSTYPE_GETMNT 1
32959 echo "$as_me: failed program was:" >&5
32960 sed 's/^/| /' conftest.$ac_ext >&5
32965 rm -f conftest.err conftest.$ac_ext
32967 { echo "$as_me:$LINENO: result: $fstype" >&5
32968 echo "${ECHO_T}$fstype" >&6; }
32970 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32971 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32972 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32973 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32974 echo $ECHO_N "(cached) $ECHO_C" >&6
32976 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32977 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32979 # Is the header compilable?
32980 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32981 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32982 cat >conftest.$ac_ext <<_ACEOF
32985 cat confdefs.h >>conftest.$ac_ext
32986 cat >>conftest.$ac_ext <<_ACEOF
32987 /* end confdefs.h. */
32988 $ac_includes_default
32989 #include <sys/statvfs.h>
32991 rm -f conftest.$ac_objext
32992 if { (ac_try="$ac_compile"
32993 case "(($ac_try" in
32994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32995 *) ac_try_echo=$ac_try;;
32997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32998 (eval "$ac_compile") 2>conftest.er1
33000 grep -v '^ *+' conftest.er1 >conftest.err
33002 cat conftest.err >&5
33003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004 (exit $ac_status); } && {
33005 test -z "$ac_c_werror_flag" ||
33006 test ! -s conftest.err
33007 } && test -s conftest.$ac_objext; then
33008 ac_header_compiler=yes
33010 echo "$as_me: failed program was:" >&5
33011 sed 's/^/| /' conftest.$ac_ext >&5
33013 ac_header_compiler=no
33016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33017 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33018 echo "${ECHO_T}$ac_header_compiler" >&6; }
33020 # Is the header present?
33021 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33022 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33023 cat >conftest.$ac_ext <<_ACEOF
33026 cat confdefs.h >>conftest.$ac_ext
33027 cat >>conftest.$ac_ext <<_ACEOF
33028 /* end confdefs.h. */
33029 #include <sys/statvfs.h>
33031 if { (ac_try="$ac_cpp conftest.$ac_ext"
33032 case "(($ac_try" in
33033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33034 *) ac_try_echo=$ac_try;;
33036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33037 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33039 grep -v '^ *+' conftest.er1 >conftest.err
33041 cat conftest.err >&5
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); } >/dev/null && {
33044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33045 test ! -s conftest.err
33047 ac_header_preproc=yes
33049 echo "$as_me: failed program was:" >&5
33050 sed 's/^/| /' conftest.$ac_ext >&5
33052 ac_header_preproc=no
33055 rm -f conftest.err conftest.$ac_ext
33056 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33057 echo "${ECHO_T}$ac_header_preproc" >&6; }
33059 # So? What about this header?
33060 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33062 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33063 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33064 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33065 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33066 ac_header_preproc=yes
33069 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33070 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33071 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33072 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33073 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33074 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33075 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33076 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33077 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33078 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33079 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33080 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33084 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33085 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33086 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33087 echo $ECHO_N "(cached) $ECHO_C" >&6
33089 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33091 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33092 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33095 if test $ac_cv_header_sys_statvfs_h = yes; then
33097 cat >>confdefs.h <<\_ACEOF
33098 #define HAVE_SYS_STATVFS_H 1
33105 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33106 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33107 if test "${ac_cv_type_signal+set}" = set; then
33108 echo $ECHO_N "(cached) $ECHO_C" >&6
33110 cat >conftest.$ac_ext <<_ACEOF
33113 cat confdefs.h >>conftest.$ac_ext
33114 cat >>conftest.$ac_ext <<_ACEOF
33115 /* end confdefs.h. */
33116 #include <sys/types.h>
33117 #include <signal.h>
33122 return *(signal (0, 0)) (0) == 1;
33127 rm -f conftest.$ac_objext
33128 if { (ac_try="$ac_compile"
33129 case "(($ac_try" in
33130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_compile") 2>conftest.er1
33136 grep -v '^ *+' conftest.er1 >conftest.err
33138 cat conftest.err >&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } && {
33141 test -z "$ac_c_werror_flag" ||
33142 test ! -s conftest.err
33143 } && test -s conftest.$ac_objext; then
33144 ac_cv_type_signal=int
33146 echo "$as_me: failed program was:" >&5
33147 sed 's/^/| /' conftest.$ac_ext >&5
33149 ac_cv_type_signal=void
33152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33154 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33155 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33157 cat >>confdefs.h <<_ACEOF
33158 #define RETSIGTYPE $ac_cv_type_signal
33163 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33164 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33165 if test "${bash_cv_signal_vintage+set}" = set; then
33166 echo $ECHO_N "(cached) $ECHO_C" >&6
33169 cat >conftest.$ac_ext <<_ACEOF
33172 cat confdefs.h >>conftest.$ac_ext
33173 cat >>conftest.$ac_ext <<_ACEOF
33174 /* end confdefs.h. */
33175 #include <signal.h>
33181 struct sigaction sa;
33182 sigemptyset(&ss); sigsuspend(&ss);
33183 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33184 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33190 rm -f conftest.$ac_objext conftest$ac_exeext
33191 if { (ac_try="$ac_link"
33192 case "(($ac_try" in
33193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33194 *) ac_try_echo=$ac_try;;
33196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33197 (eval "$ac_link") 2>conftest.er1
33199 grep -v '^ *+' conftest.er1 >conftest.err
33201 cat conftest.err >&5
33202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33203 (exit $ac_status); } && {
33204 test -z "$ac_c_werror_flag" ||
33205 test ! -s conftest.err
33206 } && test -s conftest$ac_exeext &&
33207 $as_test_x conftest$ac_exeext; then
33208 bash_cv_signal_vintage="posix"
33210 echo "$as_me: failed program was:" >&5
33211 sed 's/^/| /' conftest.$ac_ext >&5
33214 cat >conftest.$ac_ext <<_ACEOF
33217 cat confdefs.h >>conftest.$ac_ext
33218 cat >>conftest.$ac_ext <<_ACEOF
33219 /* end confdefs.h. */
33220 #include <signal.h>
33225 int mask = sigmask(SIGINT);
33226 sigsetmask(mask); sigblock(mask); sigpause(mask);
33232 rm -f conftest.$ac_objext conftest$ac_exeext
33233 if { (ac_try="$ac_link"
33234 case "(($ac_try" in
33235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33236 *) ac_try_echo=$ac_try;;
33238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33239 (eval "$ac_link") 2>conftest.er1
33241 grep -v '^ *+' conftest.er1 >conftest.err
33243 cat conftest.err >&5
33244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33245 (exit $ac_status); } && {
33246 test -z "$ac_c_werror_flag" ||
33247 test ! -s conftest.err
33248 } && test -s conftest$ac_exeext &&
33249 $as_test_x conftest$ac_exeext; then
33250 bash_cv_signal_vintage="4.2bsd"
33252 echo "$as_me: failed program was:" >&5
33253 sed 's/^/| /' conftest.$ac_ext >&5
33256 cat >conftest.$ac_ext <<_ACEOF
33259 cat confdefs.h >>conftest.$ac_ext
33260 cat >>conftest.$ac_ext <<_ACEOF
33261 /* end confdefs.h. */
33263 #include <signal.h>
33264 RETSIGTYPE foo() { }
33269 int mask = sigmask(SIGINT);
33270 sigset(SIGINT, foo); sigrelse(SIGINT);
33271 sighold(SIGINT); sigpause(SIGINT);
33277 rm -f conftest.$ac_objext conftest$ac_exeext
33278 if { (ac_try="$ac_link"
33279 case "(($ac_try" in
33280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33281 *) ac_try_echo=$ac_try;;
33283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33284 (eval "$ac_link") 2>conftest.er1
33286 grep -v '^ *+' conftest.er1 >conftest.err
33288 cat conftest.err >&5
33289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290 (exit $ac_status); } && {
33291 test -z "$ac_c_werror_flag" ||
33292 test ! -s conftest.err
33293 } && test -s conftest$ac_exeext &&
33294 $as_test_x conftest$ac_exeext; then
33295 bash_cv_signal_vintage="svr3"
33297 echo "$as_me: failed program was:" >&5
33298 sed 's/^/| /' conftest.$ac_ext >&5
33300 bash_cv_signal_vintage="v7"
33304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33305 conftest$ac_exeext conftest.$ac_ext
33309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33310 conftest$ac_exeext conftest.$ac_ext
33314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33315 conftest$ac_exeext conftest.$ac_ext
33319 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33320 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33321 if test "$bash_cv_signal_vintage" = "posix"; then
33322 cat >>confdefs.h <<\_ACEOF
33323 #define HAVE_POSIX_SIGNALS 1
33326 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33327 cat >>confdefs.h <<\_ACEOF
33328 #define HAVE_BSD_SIGNALS 1
33331 elif test "$bash_cv_signal_vintage" = "svr3"; then
33332 cat >>confdefs.h <<\_ACEOF
33333 #define HAVE_USG_SIGHOLD 1
33338 { echo "$as_me:$LINENO: checking for mode_t" >&5
33339 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33340 if test "${ac_cv_type_mode_t+set}" = set; then
33341 echo $ECHO_N "(cached) $ECHO_C" >&6
33343 cat >conftest.$ac_ext <<_ACEOF
33346 cat confdefs.h >>conftest.$ac_ext
33347 cat >>conftest.$ac_ext <<_ACEOF
33348 /* end confdefs.h. */
33349 $ac_includes_default
33350 typedef mode_t ac__type_new_;
33354 if ((ac__type_new_ *) 0)
33356 if (sizeof (ac__type_new_))
33362 rm -f conftest.$ac_objext
33363 if { (ac_try="$ac_compile"
33364 case "(($ac_try" in
33365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33366 *) ac_try_echo=$ac_try;;
33368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33369 (eval "$ac_compile") 2>conftest.er1
33371 grep -v '^ *+' conftest.er1 >conftest.err
33373 cat conftest.err >&5
33374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33375 (exit $ac_status); } && {
33376 test -z "$ac_c_werror_flag" ||
33377 test ! -s conftest.err
33378 } && test -s conftest.$ac_objext; then
33379 ac_cv_type_mode_t=yes
33381 echo "$as_me: failed program was:" >&5
33382 sed 's/^/| /' conftest.$ac_ext >&5
33384 ac_cv_type_mode_t=no
33387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33389 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33390 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33391 if test $ac_cv_type_mode_t = yes; then
33395 cat >>confdefs.h <<_ACEOF
33401 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33402 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33403 if test "${ac_cv_type_uid_t+set}" = set; then
33404 echo $ECHO_N "(cached) $ECHO_C" >&6
33406 cat >conftest.$ac_ext <<_ACEOF
33409 cat confdefs.h >>conftest.$ac_ext
33410 cat >>conftest.$ac_ext <<_ACEOF
33411 /* end confdefs.h. */
33412 #include <sys/types.h>
33415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33416 $EGREP "uid_t" >/dev/null 2>&1; then
33417 ac_cv_type_uid_t=yes
33419 ac_cv_type_uid_t=no
33424 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33425 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33426 if test $ac_cv_type_uid_t = no; then
33428 cat >>confdefs.h <<\_ACEOF
33433 cat >>confdefs.h <<\_ACEOF
33439 { echo "$as_me:$LINENO: checking for size_t" >&5
33440 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33441 if test "${ac_cv_type_size_t+set}" = set; then
33442 echo $ECHO_N "(cached) $ECHO_C" >&6
33444 cat >conftest.$ac_ext <<_ACEOF
33447 cat confdefs.h >>conftest.$ac_ext
33448 cat >>conftest.$ac_ext <<_ACEOF
33449 /* end confdefs.h. */
33450 $ac_includes_default
33451 typedef size_t ac__type_new_;
33455 if ((ac__type_new_ *) 0)
33457 if (sizeof (ac__type_new_))
33463 rm -f conftest.$ac_objext
33464 if { (ac_try="$ac_compile"
33465 case "(($ac_try" in
33466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33467 *) ac_try_echo=$ac_try;;
33469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33470 (eval "$ac_compile") 2>conftest.er1
33472 grep -v '^ *+' conftest.er1 >conftest.err
33474 cat conftest.err >&5
33475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33476 (exit $ac_status); } && {
33477 test -z "$ac_c_werror_flag" ||
33478 test ! -s conftest.err
33479 } && test -s conftest.$ac_objext; then
33480 ac_cv_type_size_t=yes
33482 echo "$as_me: failed program was:" >&5
33483 sed 's/^/| /' conftest.$ac_ext >&5
33485 ac_cv_type_size_t=no
33488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33490 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33491 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33492 if test $ac_cv_type_size_t = yes; then
33496 cat >>confdefs.h <<_ACEOF
33497 #define size_t unsigned int
33502 { echo "$as_me:$LINENO: checking for pid_t" >&5
33503 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33504 if test "${ac_cv_type_pid_t+set}" = set; then
33505 echo $ECHO_N "(cached) $ECHO_C" >&6
33507 cat >conftest.$ac_ext <<_ACEOF
33510 cat confdefs.h >>conftest.$ac_ext
33511 cat >>conftest.$ac_ext <<_ACEOF
33512 /* end confdefs.h. */
33513 $ac_includes_default
33514 typedef pid_t ac__type_new_;
33518 if ((ac__type_new_ *) 0)
33520 if (sizeof (ac__type_new_))
33526 rm -f conftest.$ac_objext
33527 if { (ac_try="$ac_compile"
33528 case "(($ac_try" in
33529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33530 *) ac_try_echo=$ac_try;;
33532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33533 (eval "$ac_compile") 2>conftest.er1
33535 grep -v '^ *+' conftest.er1 >conftest.err
33537 cat conftest.err >&5
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); } && {
33540 test -z "$ac_c_werror_flag" ||
33541 test ! -s conftest.err
33542 } && test -s conftest.$ac_objext; then
33543 ac_cv_type_pid_t=yes
33545 echo "$as_me: failed program was:" >&5
33546 sed 's/^/| /' conftest.$ac_ext >&5
33548 ac_cv_type_pid_t=no
33551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33553 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33554 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33555 if test $ac_cv_type_pid_t = yes; then
33559 cat >>confdefs.h <<_ACEOF
33565 { echo "$as_me:$LINENO: checking for off_t" >&5
33566 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33567 if test "${ac_cv_type_off_t+set}" = set; then
33568 echo $ECHO_N "(cached) $ECHO_C" >&6
33570 cat >conftest.$ac_ext <<_ACEOF
33573 cat confdefs.h >>conftest.$ac_ext
33574 cat >>conftest.$ac_ext <<_ACEOF
33575 /* end confdefs.h. */
33576 $ac_includes_default
33577 typedef off_t ac__type_new_;
33581 if ((ac__type_new_ *) 0)
33583 if (sizeof (ac__type_new_))
33589 rm -f conftest.$ac_objext
33590 if { (ac_try="$ac_compile"
33591 case "(($ac_try" in
33592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593 *) ac_try_echo=$ac_try;;
33595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596 (eval "$ac_compile") 2>conftest.er1
33598 grep -v '^ *+' conftest.er1 >conftest.err
33600 cat conftest.err >&5
33601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602 (exit $ac_status); } && {
33603 test -z "$ac_c_werror_flag" ||
33604 test ! -s conftest.err
33605 } && test -s conftest.$ac_objext; then
33606 ac_cv_type_off_t=yes
33608 echo "$as_me: failed program was:" >&5
33609 sed 's/^/| /' conftest.$ac_ext >&5
33611 ac_cv_type_off_t=no
33614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33616 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33617 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33618 if test $ac_cv_type_off_t = yes; then
33622 cat >>confdefs.h <<_ACEOF
33623 #define off_t long int
33629 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33630 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33631 if test "${ac_cv_type_intptr_t+set}" = set; then
33632 echo $ECHO_N "(cached) $ECHO_C" >&6
33634 cat >conftest.$ac_ext <<_ACEOF
33637 cat confdefs.h >>conftest.$ac_ext
33638 cat >>conftest.$ac_ext <<_ACEOF
33639 /* end confdefs.h. */
33640 $ac_includes_default
33641 typedef intptr_t ac__type_new_;
33645 if ((ac__type_new_ *) 0)
33647 if (sizeof (ac__type_new_))
33653 rm -f conftest.$ac_objext
33654 if { (ac_try="$ac_compile"
33655 case "(($ac_try" in
33656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33657 *) ac_try_echo=$ac_try;;
33659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33660 (eval "$ac_compile") 2>conftest.er1
33662 grep -v '^ *+' conftest.er1 >conftest.err
33664 cat conftest.err >&5
33665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33666 (exit $ac_status); } && {
33667 test -z "$ac_c_werror_flag" ||
33668 test ! -s conftest.err
33669 } && test -s conftest.$ac_objext; then
33670 ac_cv_type_intptr_t=yes
33672 echo "$as_me: failed program was:" >&5
33673 sed 's/^/| /' conftest.$ac_ext >&5
33675 ac_cv_type_intptr_t=no
33678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33680 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33681 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33682 if test $ac_cv_type_intptr_t = yes; then
33684 cat >>confdefs.h <<\_ACEOF
33685 #define HAVE_INTPTR_T 1
33689 for ac_type in 'int' 'long int' 'long long int'; do
33690 cat >conftest.$ac_ext <<_ACEOF
33693 cat confdefs.h >>conftest.$ac_ext
33694 cat >>conftest.$ac_ext <<_ACEOF
33695 /* end confdefs.h. */
33696 $ac_includes_default
33700 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33707 rm -f conftest.$ac_objext
33708 if { (ac_try="$ac_compile"
33709 case "(($ac_try" in
33710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33711 *) ac_try_echo=$ac_try;;
33713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33714 (eval "$ac_compile") 2>conftest.er1
33716 grep -v '^ *+' conftest.er1 >conftest.err
33718 cat conftest.err >&5
33719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33720 (exit $ac_status); } && {
33721 test -z "$ac_c_werror_flag" ||
33722 test ! -s conftest.err
33723 } && test -s conftest.$ac_objext; then
33725 cat >>confdefs.h <<_ACEOF
33726 #define intptr_t $ac_type
33731 echo "$as_me: failed program was:" >&5
33732 sed 's/^/| /' conftest.$ac_ext >&5
33737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33738 test -z "$ac_type" && break
33744 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33745 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33746 if test "${ac_cv_type_uintptr_t+set}" = set; then
33747 echo $ECHO_N "(cached) $ECHO_C" >&6
33749 cat >conftest.$ac_ext <<_ACEOF
33752 cat confdefs.h >>conftest.$ac_ext
33753 cat >>conftest.$ac_ext <<_ACEOF
33754 /* end confdefs.h. */
33755 $ac_includes_default
33756 typedef uintptr_t ac__type_new_;
33760 if ((ac__type_new_ *) 0)
33762 if (sizeof (ac__type_new_))
33768 rm -f conftest.$ac_objext
33769 if { (ac_try="$ac_compile"
33770 case "(($ac_try" in
33771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33772 *) ac_try_echo=$ac_try;;
33774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33775 (eval "$ac_compile") 2>conftest.er1
33777 grep -v '^ *+' conftest.er1 >conftest.err
33779 cat conftest.err >&5
33780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33781 (exit $ac_status); } && {
33782 test -z "$ac_c_werror_flag" ||
33783 test ! -s conftest.err
33784 } && test -s conftest.$ac_objext; then
33785 ac_cv_type_uintptr_t=yes
33787 echo "$as_me: failed program was:" >&5
33788 sed 's/^/| /' conftest.$ac_ext >&5
33790 ac_cv_type_uintptr_t=no
33793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33795 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33796 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33797 if test $ac_cv_type_uintptr_t = yes; then
33799 cat >>confdefs.h <<\_ACEOF
33800 #define HAVE_UINTPTR_T 1
33804 for ac_type in 'unsigned int' 'unsigned long int' \
33805 'unsigned long long int'; do
33806 cat >conftest.$ac_ext <<_ACEOF
33809 cat confdefs.h >>conftest.$ac_ext
33810 cat >>conftest.$ac_ext <<_ACEOF
33811 /* end confdefs.h. */
33812 $ac_includes_default
33816 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33823 rm -f conftest.$ac_objext
33824 if { (ac_try="$ac_compile"
33825 case "(($ac_try" in
33826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33827 *) ac_try_echo=$ac_try;;
33829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33830 (eval "$ac_compile") 2>conftest.er1
33832 grep -v '^ *+' conftest.er1 >conftest.err
33834 cat conftest.err >&5
33835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836 (exit $ac_status); } && {
33837 test -z "$ac_c_werror_flag" ||
33838 test ! -s conftest.err
33839 } && test -s conftest.$ac_objext; then
33841 cat >>confdefs.h <<_ACEOF
33842 #define uintptr_t $ac_type
33847 echo "$as_me: failed program was:" >&5
33848 sed 's/^/| /' conftest.$ac_ext >&5
33853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33854 test -z "$ac_type" && break
33859 { echo "$as_me:$LINENO: checking for ino_t" >&5
33860 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33861 if test "${ac_cv_type_ino_t+set}" = set; then
33862 echo $ECHO_N "(cached) $ECHO_C" >&6
33864 cat >conftest.$ac_ext <<_ACEOF
33867 cat confdefs.h >>conftest.$ac_ext
33868 cat >>conftest.$ac_ext <<_ACEOF
33869 /* end confdefs.h. */
33870 $ac_includes_default
33871 typedef ino_t ac__type_new_;
33875 if ((ac__type_new_ *) 0)
33877 if (sizeof (ac__type_new_))
33883 rm -f conftest.$ac_objext
33884 if { (ac_try="$ac_compile"
33885 case "(($ac_try" in
33886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33887 *) ac_try_echo=$ac_try;;
33889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33890 (eval "$ac_compile") 2>conftest.er1
33892 grep -v '^ *+' conftest.er1 >conftest.err
33894 cat conftest.err >&5
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); } && {
33897 test -z "$ac_c_werror_flag" ||
33898 test ! -s conftest.err
33899 } && test -s conftest.$ac_objext; then
33900 ac_cv_type_ino_t=yes
33902 echo "$as_me: failed program was:" >&5
33903 sed 's/^/| /' conftest.$ac_ext >&5
33905 ac_cv_type_ino_t=no
33908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33910 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33911 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33912 if test $ac_cv_type_ino_t = yes; then
33916 cat >>confdefs.h <<_ACEOF
33917 #define ino_t unsigned long
33922 { echo "$as_me:$LINENO: checking for dev_t" >&5
33923 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33924 if test "${ac_cv_type_dev_t+set}" = set; then
33925 echo $ECHO_N "(cached) $ECHO_C" >&6
33927 cat >conftest.$ac_ext <<_ACEOF
33930 cat confdefs.h >>conftest.$ac_ext
33931 cat >>conftest.$ac_ext <<_ACEOF
33932 /* end confdefs.h. */
33933 $ac_includes_default
33934 typedef dev_t ac__type_new_;
33938 if ((ac__type_new_ *) 0)
33940 if (sizeof (ac__type_new_))
33946 rm -f conftest.$ac_objext
33947 if { (ac_try="$ac_compile"
33948 case "(($ac_try" in
33949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33950 *) ac_try_echo=$ac_try;;
33952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33953 (eval "$ac_compile") 2>conftest.er1
33955 grep -v '^ *+' conftest.er1 >conftest.err
33957 cat conftest.err >&5
33958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959 (exit $ac_status); } && {
33960 test -z "$ac_c_werror_flag" ||
33961 test ! -s conftest.err
33962 } && test -s conftest.$ac_objext; then
33963 ac_cv_type_dev_t=yes
33965 echo "$as_me: failed program was:" >&5
33966 sed 's/^/| /' conftest.$ac_ext >&5
33968 ac_cv_type_dev_t=no
33971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33973 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33974 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33975 if test $ac_cv_type_dev_t = yes; then
33979 cat >>confdefs.h <<_ACEOF
33980 #define dev_t unsigned long
33985 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33986 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33987 if test "${ac_cv_type_daddr_t+set}" = set; then
33988 echo $ECHO_N "(cached) $ECHO_C" >&6
33990 cat >conftest.$ac_ext <<_ACEOF
33993 cat confdefs.h >>conftest.$ac_ext
33994 cat >>conftest.$ac_ext <<_ACEOF
33995 /* end confdefs.h. */
33996 $ac_includes_default
33997 typedef daddr_t ac__type_new_;
34001 if ((ac__type_new_ *) 0)
34003 if (sizeof (ac__type_new_))
34009 rm -f conftest.$ac_objext
34010 if { (ac_try="$ac_compile"
34011 case "(($ac_try" in
34012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34013 *) ac_try_echo=$ac_try;;
34015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34016 (eval "$ac_compile") 2>conftest.er1
34018 grep -v '^ *+' conftest.er1 >conftest.err
34020 cat conftest.err >&5
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); } && {
34023 test -z "$ac_c_werror_flag" ||
34024 test ! -s conftest.err
34025 } && test -s conftest.$ac_objext; then
34026 ac_cv_type_daddr_t=yes
34028 echo "$as_me: failed program was:" >&5
34029 sed 's/^/| /' conftest.$ac_ext >&5
34031 ac_cv_type_daddr_t=no
34034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34036 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34037 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34038 if test $ac_cv_type_daddr_t = yes; then
34042 cat >>confdefs.h <<_ACEOF
34043 #define daddr_t long
34048 { echo "$as_me:$LINENO: checking for major_t" >&5
34049 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34050 if test "${ac_cv_type_major_t+set}" = set; then
34051 echo $ECHO_N "(cached) $ECHO_C" >&6
34053 cat >conftest.$ac_ext <<_ACEOF
34056 cat confdefs.h >>conftest.$ac_ext
34057 cat >>conftest.$ac_ext <<_ACEOF
34058 /* end confdefs.h. */
34059 $ac_includes_default
34060 typedef major_t ac__type_new_;
34064 if ((ac__type_new_ *) 0)
34066 if (sizeof (ac__type_new_))
34072 rm -f conftest.$ac_objext
34073 if { (ac_try="$ac_compile"
34074 case "(($ac_try" in
34075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34076 *) ac_try_echo=$ac_try;;
34078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34079 (eval "$ac_compile") 2>conftest.er1
34081 grep -v '^ *+' conftest.er1 >conftest.err
34083 cat conftest.err >&5
34084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085 (exit $ac_status); } && {
34086 test -z "$ac_c_werror_flag" ||
34087 test ! -s conftest.err
34088 } && test -s conftest.$ac_objext; then
34089 ac_cv_type_major_t=yes
34091 echo "$as_me: failed program was:" >&5
34092 sed 's/^/| /' conftest.$ac_ext >&5
34094 ac_cv_type_major_t=no
34097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34099 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34100 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34101 if test $ac_cv_type_major_t = yes; then
34105 cat >>confdefs.h <<_ACEOF
34106 #define major_t int
34111 { echo "$as_me:$LINENO: checking for minor_t" >&5
34112 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34113 if test "${ac_cv_type_minor_t+set}" = set; then
34114 echo $ECHO_N "(cached) $ECHO_C" >&6
34116 cat >conftest.$ac_ext <<_ACEOF
34119 cat confdefs.h >>conftest.$ac_ext
34120 cat >>conftest.$ac_ext <<_ACEOF
34121 /* end confdefs.h. */
34122 $ac_includes_default
34123 typedef minor_t ac__type_new_;
34127 if ((ac__type_new_ *) 0)
34129 if (sizeof (ac__type_new_))
34135 rm -f conftest.$ac_objext
34136 if { (ac_try="$ac_compile"
34137 case "(($ac_try" in
34138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34139 *) ac_try_echo=$ac_try;;
34141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34142 (eval "$ac_compile") 2>conftest.er1
34144 grep -v '^ *+' conftest.er1 >conftest.err
34146 cat conftest.err >&5
34147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34148 (exit $ac_status); } && {
34149 test -z "$ac_c_werror_flag" ||
34150 test ! -s conftest.err
34151 } && test -s conftest.$ac_objext; then
34152 ac_cv_type_minor_t=yes
34154 echo "$as_me: failed program was:" >&5
34155 sed 's/^/| /' conftest.$ac_ext >&5
34157 ac_cv_type_minor_t=no
34160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34162 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34163 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34164 if test $ac_cv_type_minor_t = yes; then
34168 cat >>confdefs.h <<_ACEOF
34169 #define minor_t int
34174 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34175 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34176 if test "${ac_cv_type_ssize_t+set}" = set; then
34177 echo $ECHO_N "(cached) $ECHO_C" >&6
34179 cat >conftest.$ac_ext <<_ACEOF
34182 cat confdefs.h >>conftest.$ac_ext
34183 cat >>conftest.$ac_ext <<_ACEOF
34184 /* end confdefs.h. */
34185 $ac_includes_default
34186 typedef ssize_t ac__type_new_;
34190 if ((ac__type_new_ *) 0)
34192 if (sizeof (ac__type_new_))
34198 rm -f conftest.$ac_objext
34199 if { (ac_try="$ac_compile"
34200 case "(($ac_try" in
34201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34202 *) ac_try_echo=$ac_try;;
34204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34205 (eval "$ac_compile") 2>conftest.er1
34207 grep -v '^ *+' conftest.er1 >conftest.err
34209 cat conftest.err >&5
34210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34211 (exit $ac_status); } && {
34212 test -z "$ac_c_werror_flag" ||
34213 test ! -s conftest.err
34214 } && test -s conftest.$ac_objext; then
34215 ac_cv_type_ssize_t=yes
34217 echo "$as_me: failed program was:" >&5
34218 sed 's/^/| /' conftest.$ac_ext >&5
34220 ac_cv_type_ssize_t=no
34223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34225 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34226 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34227 if test $ac_cv_type_ssize_t = yes; then
34231 cat >>confdefs.h <<_ACEOF
34232 #define ssize_t int
34237 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34238 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34239 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34240 echo $ECHO_N "(cached) $ECHO_C" >&6
34242 cat >conftest.$ac_ext <<_ACEOF
34245 cat confdefs.h >>conftest.$ac_ext
34246 cat >>conftest.$ac_ext <<_ACEOF
34247 /* end confdefs.h. */
34248 $ac_includes_default
34252 static struct stat ac_aggr;
34253 if (ac_aggr.st_blocks)
34259 rm -f conftest.$ac_objext
34260 if { (ac_try="$ac_compile"
34261 case "(($ac_try" in
34262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34263 *) ac_try_echo=$ac_try;;
34265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34266 (eval "$ac_compile") 2>conftest.er1
34268 grep -v '^ *+' conftest.er1 >conftest.err
34270 cat conftest.err >&5
34271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34272 (exit $ac_status); } && {
34273 test -z "$ac_c_werror_flag" ||
34274 test ! -s conftest.err
34275 } && test -s conftest.$ac_objext; then
34276 ac_cv_member_struct_stat_st_blocks=yes
34278 echo "$as_me: failed program was:" >&5
34279 sed 's/^/| /' conftest.$ac_ext >&5
34281 cat >conftest.$ac_ext <<_ACEOF
34284 cat confdefs.h >>conftest.$ac_ext
34285 cat >>conftest.$ac_ext <<_ACEOF
34286 /* end confdefs.h. */
34287 $ac_includes_default
34291 static struct stat ac_aggr;
34292 if (sizeof ac_aggr.st_blocks)
34298 rm -f conftest.$ac_objext
34299 if { (ac_try="$ac_compile"
34300 case "(($ac_try" in
34301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34302 *) ac_try_echo=$ac_try;;
34304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34305 (eval "$ac_compile") 2>conftest.er1
34307 grep -v '^ *+' conftest.er1 >conftest.err
34309 cat conftest.err >&5
34310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34311 (exit $ac_status); } && {
34312 test -z "$ac_c_werror_flag" ||
34313 test ! -s conftest.err
34314 } && test -s conftest.$ac_objext; then
34315 ac_cv_member_struct_stat_st_blocks=yes
34317 echo "$as_me: failed program was:" >&5
34318 sed 's/^/| /' conftest.$ac_ext >&5
34320 ac_cv_member_struct_stat_st_blocks=no
34323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34328 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34329 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34330 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34332 cat >>confdefs.h <<_ACEOF
34333 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34337 cat >>confdefs.h <<\_ACEOF
34338 #define HAVE_ST_BLOCKS 1
34342 case " $LIBOBJS " in
34343 *" fileblocks.$ac_objext "* ) ;;
34344 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34351 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34352 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34353 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34354 echo $ECHO_N "(cached) $ECHO_C" >&6
34356 cat >conftest.$ac_ext <<_ACEOF
34359 cat confdefs.h >>conftest.$ac_ext
34360 cat >>conftest.$ac_ext <<_ACEOF
34361 /* end confdefs.h. */
34362 $ac_includes_default
34366 static struct stat ac_aggr;
34367 if (ac_aggr.st_rdev)
34373 rm -f conftest.$ac_objext
34374 if { (ac_try="$ac_compile"
34375 case "(($ac_try" in
34376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34377 *) ac_try_echo=$ac_try;;
34379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34380 (eval "$ac_compile") 2>conftest.er1
34382 grep -v '^ *+' conftest.er1 >conftest.err
34384 cat conftest.err >&5
34385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34386 (exit $ac_status); } && {
34387 test -z "$ac_c_werror_flag" ||
34388 test ! -s conftest.err
34389 } && test -s conftest.$ac_objext; then
34390 ac_cv_member_struct_stat_st_rdev=yes
34392 echo "$as_me: failed program was:" >&5
34393 sed 's/^/| /' conftest.$ac_ext >&5
34395 cat >conftest.$ac_ext <<_ACEOF
34398 cat confdefs.h >>conftest.$ac_ext
34399 cat >>conftest.$ac_ext <<_ACEOF
34400 /* end confdefs.h. */
34401 $ac_includes_default
34405 static struct stat ac_aggr;
34406 if (sizeof ac_aggr.st_rdev)
34412 rm -f conftest.$ac_objext
34413 if { (ac_try="$ac_compile"
34414 case "(($ac_try" in
34415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34416 *) ac_try_echo=$ac_try;;
34418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34419 (eval "$ac_compile") 2>conftest.er1
34421 grep -v '^ *+' conftest.er1 >conftest.err
34423 cat conftest.err >&5
34424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34425 (exit $ac_status); } && {
34426 test -z "$ac_c_werror_flag" ||
34427 test ! -s conftest.err
34428 } && test -s conftest.$ac_objext; then
34429 ac_cv_member_struct_stat_st_rdev=yes
34431 echo "$as_me: failed program was:" >&5
34432 sed 's/^/| /' conftest.$ac_ext >&5
34434 ac_cv_member_struct_stat_st_rdev=no
34437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34442 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34443 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34444 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34446 cat >>confdefs.h <<_ACEOF
34447 #define HAVE_STRUCT_STAT_ST_RDEV 1
34451 cat >>confdefs.h <<\_ACEOF
34452 #define HAVE_ST_RDEV 1
34458 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34459 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34460 if test "${ac_cv_struct_tm+set}" = set; then
34461 echo $ECHO_N "(cached) $ECHO_C" >&6
34463 cat >conftest.$ac_ext <<_ACEOF
34466 cat confdefs.h >>conftest.$ac_ext
34467 cat >>conftest.$ac_ext <<_ACEOF
34468 /* end confdefs.h. */
34469 #include <sys/types.h>
34476 int *p = &tm.tm_sec;
34482 rm -f conftest.$ac_objext
34483 if { (ac_try="$ac_compile"
34484 case "(($ac_try" in
34485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34486 *) ac_try_echo=$ac_try;;
34488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34489 (eval "$ac_compile") 2>conftest.er1
34491 grep -v '^ *+' conftest.er1 >conftest.err
34493 cat conftest.err >&5
34494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34495 (exit $ac_status); } && {
34496 test -z "$ac_c_werror_flag" ||
34497 test ! -s conftest.err
34498 } && test -s conftest.$ac_objext; then
34499 ac_cv_struct_tm=time.h
34501 echo "$as_me: failed program was:" >&5
34502 sed 's/^/| /' conftest.$ac_ext >&5
34504 ac_cv_struct_tm=sys/time.h
34507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34509 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34510 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34511 if test $ac_cv_struct_tm = sys/time.h; then
34513 cat >>confdefs.h <<\_ACEOF
34514 #define TM_IN_SYS_TIME 1
34519 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34520 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34521 if test "${ac_cv_c_const+set}" = set; then
34522 echo $ECHO_N "(cached) $ECHO_C" >&6
34524 cat >conftest.$ac_ext <<_ACEOF
34527 cat confdefs.h >>conftest.$ac_ext
34528 cat >>conftest.$ac_ext <<_ACEOF
34529 /* end confdefs.h. */
34534 /* FIXME: Include the comments suggested by Paul. */
34535 #ifndef __cplusplus
34536 /* Ultrix mips cc rejects this. */
34537 typedef int charset[2];
34539 /* SunOS 4.1.1 cc rejects this. */
34540 char const *const *pcpcc;
34542 /* NEC SVR4.0.2 mips cc rejects this. */
34543 struct point {int x, y;};
34544 static struct point const zero = {0,0};
34545 /* AIX XL C 1.02.0.0 rejects this.
34546 It does not let you subtract one const X* pointer from another in
34547 an arm of an if-expression whose if-part is not a constant
34549 const char *g = "string";
34550 pcpcc = &g + (g ? g-g : 0);
34551 /* HPUX 7.0 cc rejects these. */
34553 ppc = (char**) pcpcc;
34554 pcpcc = (char const *const *) ppc;
34555 { /* SCO 3.2v4 cc rejects this. */
34557 char const *s = 0 ? (char *) 0 : (char const *) 0;
34562 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34563 int x[] = {25, 17};
34564 const int *foo = &x[0];
34567 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34568 typedef const int *iptr;
34572 { /* AIX XL C 1.02.0.0 rejects this saying
34573 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34574 struct s { int j; const int *ap[3]; };
34575 struct s *b; b->j = 5;
34577 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34578 const int foo = 10;
34579 if (!foo) return 0;
34581 return !cs[0] && !zero.x;
34588 rm -f conftest.$ac_objext
34589 if { (ac_try="$ac_compile"
34590 case "(($ac_try" in
34591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34592 *) ac_try_echo=$ac_try;;
34594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34595 (eval "$ac_compile") 2>conftest.er1
34597 grep -v '^ *+' conftest.er1 >conftest.err
34599 cat conftest.err >&5
34600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34601 (exit $ac_status); } && {
34602 test -z "$ac_c_werror_flag" ||
34603 test ! -s conftest.err
34604 } && test -s conftest.$ac_objext; then
34607 echo "$as_me: failed program was:" >&5
34608 sed 's/^/| /' conftest.$ac_ext >&5
34613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34615 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34616 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34617 if test $ac_cv_c_const = no; then
34619 cat >>confdefs.h <<\_ACEOF
34626 { echo "$as_me:$LINENO: checking for char" >&5
34627 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34628 if test "${ac_cv_type_char+set}" = set; then
34629 echo $ECHO_N "(cached) $ECHO_C" >&6
34631 cat >conftest.$ac_ext <<_ACEOF
34634 cat confdefs.h >>conftest.$ac_ext
34635 cat >>conftest.$ac_ext <<_ACEOF
34636 /* end confdefs.h. */
34637 $ac_includes_default
34638 typedef char ac__type_new_;
34642 if ((ac__type_new_ *) 0)
34644 if (sizeof (ac__type_new_))
34650 rm -f conftest.$ac_objext
34651 if { (ac_try="$ac_compile"
34652 case "(($ac_try" in
34653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34654 *) ac_try_echo=$ac_try;;
34656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34657 (eval "$ac_compile") 2>conftest.er1
34659 grep -v '^ *+' conftest.er1 >conftest.err
34661 cat conftest.err >&5
34662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34663 (exit $ac_status); } && {
34664 test -z "$ac_c_werror_flag" ||
34665 test ! -s conftest.err
34666 } && test -s conftest.$ac_objext; then
34667 ac_cv_type_char=yes
34669 echo "$as_me: failed program was:" >&5
34670 sed 's/^/| /' conftest.$ac_ext >&5
34675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34677 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34678 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34680 # The cast to long int works around a bug in the HP C Compiler
34681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34683 # This bug is HP SR number 8606223364.
34684 { echo "$as_me:$LINENO: checking size of char" >&5
34685 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34686 if test "${ac_cv_sizeof_char+set}" = set; then
34687 echo $ECHO_N "(cached) $ECHO_C" >&6
34689 if test "$cross_compiling" = yes; then
34690 # Depending upon the size, compute the lo and hi bounds.
34691 cat >conftest.$ac_ext <<_ACEOF
34694 cat confdefs.h >>conftest.$ac_ext
34695 cat >>conftest.$ac_ext <<_ACEOF
34696 /* end confdefs.h. */
34697 $ac_includes_default
34698 typedef char ac__type_sizeof_;
34702 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34709 rm -f conftest.$ac_objext
34710 if { (ac_try="$ac_compile"
34711 case "(($ac_try" in
34712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34713 *) ac_try_echo=$ac_try;;
34715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34716 (eval "$ac_compile") 2>conftest.er1
34718 grep -v '^ *+' conftest.er1 >conftest.err
34720 cat conftest.err >&5
34721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722 (exit $ac_status); } && {
34723 test -z "$ac_c_werror_flag" ||
34724 test ! -s conftest.err
34725 } && test -s conftest.$ac_objext; then
34728 cat >conftest.$ac_ext <<_ACEOF
34731 cat confdefs.h >>conftest.$ac_ext
34732 cat >>conftest.$ac_ext <<_ACEOF
34733 /* end confdefs.h. */
34734 $ac_includes_default
34735 typedef char ac__type_sizeof_;
34739 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34746 rm -f conftest.$ac_objext
34747 if { (ac_try="$ac_compile"
34748 case "(($ac_try" in
34749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34750 *) ac_try_echo=$ac_try;;
34752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34753 (eval "$ac_compile") 2>conftest.er1
34755 grep -v '^ *+' conftest.er1 >conftest.err
34757 cat conftest.err >&5
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); } && {
34760 test -z "$ac_c_werror_flag" ||
34761 test ! -s conftest.err
34762 } && test -s conftest.$ac_objext; then
34763 ac_hi=$ac_mid; break
34765 echo "$as_me: failed program was:" >&5
34766 sed 's/^/| /' conftest.$ac_ext >&5
34768 ac_lo=`expr $ac_mid + 1`
34769 if test $ac_lo -le $ac_mid; then
34773 ac_mid=`expr 2 '*' $ac_mid + 1`
34776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34779 echo "$as_me: failed program was:" >&5
34780 sed 's/^/| /' conftest.$ac_ext >&5
34782 cat >conftest.$ac_ext <<_ACEOF
34785 cat confdefs.h >>conftest.$ac_ext
34786 cat >>conftest.$ac_ext <<_ACEOF
34787 /* end confdefs.h. */
34788 $ac_includes_default
34789 typedef char ac__type_sizeof_;
34793 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34800 rm -f conftest.$ac_objext
34801 if { (ac_try="$ac_compile"
34802 case "(($ac_try" in
34803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34804 *) ac_try_echo=$ac_try;;
34806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34807 (eval "$ac_compile") 2>conftest.er1
34809 grep -v '^ *+' conftest.er1 >conftest.err
34811 cat conftest.err >&5
34812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34813 (exit $ac_status); } && {
34814 test -z "$ac_c_werror_flag" ||
34815 test ! -s conftest.err
34816 } && test -s conftest.$ac_objext; then
34819 cat >conftest.$ac_ext <<_ACEOF
34822 cat confdefs.h >>conftest.$ac_ext
34823 cat >>conftest.$ac_ext <<_ACEOF
34824 /* end confdefs.h. */
34825 $ac_includes_default
34826 typedef char ac__type_sizeof_;
34830 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34837 rm -f conftest.$ac_objext
34838 if { (ac_try="$ac_compile"
34839 case "(($ac_try" in
34840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34841 *) ac_try_echo=$ac_try;;
34843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34844 (eval "$ac_compile") 2>conftest.er1
34846 grep -v '^ *+' conftest.er1 >conftest.err
34848 cat conftest.err >&5
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); } && {
34851 test -z "$ac_c_werror_flag" ||
34852 test ! -s conftest.err
34853 } && test -s conftest.$ac_objext; then
34854 ac_lo=$ac_mid; break
34856 echo "$as_me: failed program was:" >&5
34857 sed 's/^/| /' conftest.$ac_ext >&5
34859 ac_hi=`expr '(' $ac_mid ')' - 1`
34860 if test $ac_mid -le $ac_hi; then
34864 ac_mid=`expr 2 '*' $ac_mid`
34867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34870 echo "$as_me: failed program was:" >&5
34871 sed 's/^/| /' conftest.$ac_ext >&5
34876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34880 # Binary search between lo and hi bounds.
34881 while test "x$ac_lo" != "x$ac_hi"; do
34882 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34883 cat >conftest.$ac_ext <<_ACEOF
34886 cat confdefs.h >>conftest.$ac_ext
34887 cat >>conftest.$ac_ext <<_ACEOF
34888 /* end confdefs.h. */
34889 $ac_includes_default
34890 typedef char ac__type_sizeof_;
34894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34901 rm -f conftest.$ac_objext
34902 if { (ac_try="$ac_compile"
34903 case "(($ac_try" in
34904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34905 *) ac_try_echo=$ac_try;;
34907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34908 (eval "$ac_compile") 2>conftest.er1
34910 grep -v '^ *+' conftest.er1 >conftest.err
34912 cat conftest.err >&5
34913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); } && {
34915 test -z "$ac_c_werror_flag" ||
34916 test ! -s conftest.err
34917 } && test -s conftest.$ac_objext; then
34920 echo "$as_me: failed program was:" >&5
34921 sed 's/^/| /' conftest.$ac_ext >&5
34923 ac_lo=`expr '(' $ac_mid ')' + 1`
34926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34929 ?*) ac_cv_sizeof_char=$ac_lo;;
34930 '') if test "$ac_cv_type_char" = yes; then
34931 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34932 See \`config.log' for more details." >&5
34933 echo "$as_me: error: cannot compute sizeof (char)
34934 See \`config.log' for more details." >&2;}
34935 { (exit 77); exit 77; }; }
34937 ac_cv_sizeof_char=0
34941 cat >conftest.$ac_ext <<_ACEOF
34944 cat confdefs.h >>conftest.$ac_ext
34945 cat >>conftest.$ac_ext <<_ACEOF
34946 /* end confdefs.h. */
34947 $ac_includes_default
34948 typedef char ac__type_sizeof_;
34949 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34950 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34952 #include <stdlib.h>
34957 FILE *f = fopen ("conftest.val", "w");
34960 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34962 long int i = longval ();
34963 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34965 fprintf (f, "%ld\n", i);
34969 unsigned long int i = ulongval ();
34970 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34972 fprintf (f, "%lu\n", i);
34974 return ferror (f) || fclose (f) != 0;
34980 rm -f conftest$ac_exeext
34981 if { (ac_try="$ac_link"
34982 case "(($ac_try" in
34983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34984 *) ac_try_echo=$ac_try;;
34986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34987 (eval "$ac_link") 2>&5
34989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34990 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34991 { (case "(($ac_try" in
34992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34993 *) ac_try_echo=$ac_try;;
34995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34996 (eval "$ac_try") 2>&5
34998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34999 (exit $ac_status); }; }; then
35000 ac_cv_sizeof_char=`cat conftest.val`
35002 echo "$as_me: program exited with status $ac_status" >&5
35003 echo "$as_me: failed program was:" >&5
35004 sed 's/^/| /' conftest.$ac_ext >&5
35006 ( exit $ac_status )
35007 if test "$ac_cv_type_char" = yes; then
35008 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35009 See \`config.log' for more details." >&5
35010 echo "$as_me: error: cannot compute sizeof (char)
35011 See \`config.log' for more details." >&2;}
35012 { (exit 77); exit 77; }; }
35014 ac_cv_sizeof_char=0
35017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35021 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35022 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35026 cat >>confdefs.h <<_ACEOF
35027 #define SIZEOF_CHAR $ac_cv_sizeof_char
35031 { echo "$as_me:$LINENO: checking for short int" >&5
35032 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35033 if test "${ac_cv_type_short_int+set}" = set; then
35034 echo $ECHO_N "(cached) $ECHO_C" >&6
35036 cat >conftest.$ac_ext <<_ACEOF
35039 cat confdefs.h >>conftest.$ac_ext
35040 cat >>conftest.$ac_ext <<_ACEOF
35041 /* end confdefs.h. */
35042 $ac_includes_default
35043 typedef short int ac__type_new_;
35047 if ((ac__type_new_ *) 0)
35049 if (sizeof (ac__type_new_))
35055 rm -f conftest.$ac_objext
35056 if { (ac_try="$ac_compile"
35057 case "(($ac_try" in
35058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35059 *) ac_try_echo=$ac_try;;
35061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35062 (eval "$ac_compile") 2>conftest.er1
35064 grep -v '^ *+' conftest.er1 >conftest.err
35066 cat conftest.err >&5
35067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35068 (exit $ac_status); } && {
35069 test -z "$ac_c_werror_flag" ||
35070 test ! -s conftest.err
35071 } && test -s conftest.$ac_objext; then
35072 ac_cv_type_short_int=yes
35074 echo "$as_me: failed program was:" >&5
35075 sed 's/^/| /' conftest.$ac_ext >&5
35077 ac_cv_type_short_int=no
35080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35082 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35083 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35085 # The cast to long int works around a bug in the HP C Compiler
35086 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35087 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35088 # This bug is HP SR number 8606223364.
35089 { echo "$as_me:$LINENO: checking size of short int" >&5
35090 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35091 if test "${ac_cv_sizeof_short_int+set}" = set; then
35092 echo $ECHO_N "(cached) $ECHO_C" >&6
35094 if test "$cross_compiling" = yes; then
35095 # Depending upon the size, compute the lo and hi bounds.
35096 cat >conftest.$ac_ext <<_ACEOF
35099 cat confdefs.h >>conftest.$ac_ext
35100 cat >>conftest.$ac_ext <<_ACEOF
35101 /* end confdefs.h. */
35102 $ac_includes_default
35103 typedef short int ac__type_sizeof_;
35107 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35114 rm -f conftest.$ac_objext
35115 if { (ac_try="$ac_compile"
35116 case "(($ac_try" in
35117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35118 *) ac_try_echo=$ac_try;;
35120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35121 (eval "$ac_compile") 2>conftest.er1
35123 grep -v '^ *+' conftest.er1 >conftest.err
35125 cat conftest.err >&5
35126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127 (exit $ac_status); } && {
35128 test -z "$ac_c_werror_flag" ||
35129 test ! -s conftest.err
35130 } && test -s conftest.$ac_objext; then
35133 cat >conftest.$ac_ext <<_ACEOF
35136 cat confdefs.h >>conftest.$ac_ext
35137 cat >>conftest.$ac_ext <<_ACEOF
35138 /* end confdefs.h. */
35139 $ac_includes_default
35140 typedef short int ac__type_sizeof_;
35144 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35151 rm -f conftest.$ac_objext
35152 if { (ac_try="$ac_compile"
35153 case "(($ac_try" in
35154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35155 *) ac_try_echo=$ac_try;;
35157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35158 (eval "$ac_compile") 2>conftest.er1
35160 grep -v '^ *+' conftest.er1 >conftest.err
35162 cat conftest.err >&5
35163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35164 (exit $ac_status); } && {
35165 test -z "$ac_c_werror_flag" ||
35166 test ! -s conftest.err
35167 } && test -s conftest.$ac_objext; then
35168 ac_hi=$ac_mid; break
35170 echo "$as_me: failed program was:" >&5
35171 sed 's/^/| /' conftest.$ac_ext >&5
35173 ac_lo=`expr $ac_mid + 1`
35174 if test $ac_lo -le $ac_mid; then
35178 ac_mid=`expr 2 '*' $ac_mid + 1`
35181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35184 echo "$as_me: failed program was:" >&5
35185 sed 's/^/| /' conftest.$ac_ext >&5
35187 cat >conftest.$ac_ext <<_ACEOF
35190 cat confdefs.h >>conftest.$ac_ext
35191 cat >>conftest.$ac_ext <<_ACEOF
35192 /* end confdefs.h. */
35193 $ac_includes_default
35194 typedef short int ac__type_sizeof_;
35198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35205 rm -f conftest.$ac_objext
35206 if { (ac_try="$ac_compile"
35207 case "(($ac_try" in
35208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35209 *) ac_try_echo=$ac_try;;
35211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35212 (eval "$ac_compile") 2>conftest.er1
35214 grep -v '^ *+' conftest.er1 >conftest.err
35216 cat conftest.err >&5
35217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35218 (exit $ac_status); } && {
35219 test -z "$ac_c_werror_flag" ||
35220 test ! -s conftest.err
35221 } && test -s conftest.$ac_objext; then
35224 cat >conftest.$ac_ext <<_ACEOF
35227 cat confdefs.h >>conftest.$ac_ext
35228 cat >>conftest.$ac_ext <<_ACEOF
35229 /* end confdefs.h. */
35230 $ac_includes_default
35231 typedef short int ac__type_sizeof_;
35235 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35242 rm -f conftest.$ac_objext
35243 if { (ac_try="$ac_compile"
35244 case "(($ac_try" in
35245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35246 *) ac_try_echo=$ac_try;;
35248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35249 (eval "$ac_compile") 2>conftest.er1
35251 grep -v '^ *+' conftest.er1 >conftest.err
35253 cat conftest.err >&5
35254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255 (exit $ac_status); } && {
35256 test -z "$ac_c_werror_flag" ||
35257 test ! -s conftest.err
35258 } && test -s conftest.$ac_objext; then
35259 ac_lo=$ac_mid; break
35261 echo "$as_me: failed program was:" >&5
35262 sed 's/^/| /' conftest.$ac_ext >&5
35264 ac_hi=`expr '(' $ac_mid ')' - 1`
35265 if test $ac_mid -le $ac_hi; then
35269 ac_mid=`expr 2 '*' $ac_mid`
35272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35275 echo "$as_me: failed program was:" >&5
35276 sed 's/^/| /' conftest.$ac_ext >&5
35281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35285 # Binary search between lo and hi bounds.
35286 while test "x$ac_lo" != "x$ac_hi"; do
35287 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35288 cat >conftest.$ac_ext <<_ACEOF
35291 cat confdefs.h >>conftest.$ac_ext
35292 cat >>conftest.$ac_ext <<_ACEOF
35293 /* end confdefs.h. */
35294 $ac_includes_default
35295 typedef short int ac__type_sizeof_;
35299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35306 rm -f conftest.$ac_objext
35307 if { (ac_try="$ac_compile"
35308 case "(($ac_try" in
35309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35310 *) ac_try_echo=$ac_try;;
35312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35313 (eval "$ac_compile") 2>conftest.er1
35315 grep -v '^ *+' conftest.er1 >conftest.err
35317 cat conftest.err >&5
35318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35319 (exit $ac_status); } && {
35320 test -z "$ac_c_werror_flag" ||
35321 test ! -s conftest.err
35322 } && test -s conftest.$ac_objext; then
35325 echo "$as_me: failed program was:" >&5
35326 sed 's/^/| /' conftest.$ac_ext >&5
35328 ac_lo=`expr '(' $ac_mid ')' + 1`
35331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35334 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35335 '') if test "$ac_cv_type_short_int" = yes; then
35336 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35337 See \`config.log' for more details." >&5
35338 echo "$as_me: error: cannot compute sizeof (short int)
35339 See \`config.log' for more details." >&2;}
35340 { (exit 77); exit 77; }; }
35342 ac_cv_sizeof_short_int=0
35346 cat >conftest.$ac_ext <<_ACEOF
35349 cat confdefs.h >>conftest.$ac_ext
35350 cat >>conftest.$ac_ext <<_ACEOF
35351 /* end confdefs.h. */
35352 $ac_includes_default
35353 typedef short int ac__type_sizeof_;
35354 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35355 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35357 #include <stdlib.h>
35362 FILE *f = fopen ("conftest.val", "w");
35365 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35367 long int i = longval ();
35368 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35370 fprintf (f, "%ld\n", i);
35374 unsigned long int i = ulongval ();
35375 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35377 fprintf (f, "%lu\n", i);
35379 return ferror (f) || fclose (f) != 0;
35385 rm -f conftest$ac_exeext
35386 if { (ac_try="$ac_link"
35387 case "(($ac_try" in
35388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35389 *) ac_try_echo=$ac_try;;
35391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35392 (eval "$ac_link") 2>&5
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35396 { (case "(($ac_try" in
35397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35398 *) ac_try_echo=$ac_try;;
35400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35401 (eval "$ac_try") 2>&5
35403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35404 (exit $ac_status); }; }; then
35405 ac_cv_sizeof_short_int=`cat conftest.val`
35407 echo "$as_me: program exited with status $ac_status" >&5
35408 echo "$as_me: failed program was:" >&5
35409 sed 's/^/| /' conftest.$ac_ext >&5
35411 ( exit $ac_status )
35412 if test "$ac_cv_type_short_int" = yes; then
35413 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35414 See \`config.log' for more details." >&5
35415 echo "$as_me: error: cannot compute sizeof (short int)
35416 See \`config.log' for more details." >&2;}
35417 { (exit 77); exit 77; }; }
35419 ac_cv_sizeof_short_int=0
35422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35426 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35427 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35431 cat >>confdefs.h <<_ACEOF
35432 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35436 { echo "$as_me:$LINENO: checking for int" >&5
35437 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35438 if test "${ac_cv_type_int+set}" = set; then
35439 echo $ECHO_N "(cached) $ECHO_C" >&6
35441 cat >conftest.$ac_ext <<_ACEOF
35444 cat confdefs.h >>conftest.$ac_ext
35445 cat >>conftest.$ac_ext <<_ACEOF
35446 /* end confdefs.h. */
35447 $ac_includes_default
35448 typedef int ac__type_new_;
35452 if ((ac__type_new_ *) 0)
35454 if (sizeof (ac__type_new_))
35460 rm -f conftest.$ac_objext
35461 if { (ac_try="$ac_compile"
35462 case "(($ac_try" in
35463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35464 *) ac_try_echo=$ac_try;;
35466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35467 (eval "$ac_compile") 2>conftest.er1
35469 grep -v '^ *+' conftest.er1 >conftest.err
35471 cat conftest.err >&5
35472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35473 (exit $ac_status); } && {
35474 test -z "$ac_c_werror_flag" ||
35475 test ! -s conftest.err
35476 } && test -s conftest.$ac_objext; then
35479 echo "$as_me: failed program was:" >&5
35480 sed 's/^/| /' conftest.$ac_ext >&5
35485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35487 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35488 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35490 # The cast to long int works around a bug in the HP C Compiler
35491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35493 # This bug is HP SR number 8606223364.
35494 { echo "$as_me:$LINENO: checking size of int" >&5
35495 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35496 if test "${ac_cv_sizeof_int+set}" = set; then
35497 echo $ECHO_N "(cached) $ECHO_C" >&6
35499 if test "$cross_compiling" = yes; then
35500 # Depending upon the size, compute the lo and hi bounds.
35501 cat >conftest.$ac_ext <<_ACEOF
35504 cat confdefs.h >>conftest.$ac_ext
35505 cat >>conftest.$ac_ext <<_ACEOF
35506 /* end confdefs.h. */
35507 $ac_includes_default
35508 typedef int ac__type_sizeof_;
35512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35519 rm -f conftest.$ac_objext
35520 if { (ac_try="$ac_compile"
35521 case "(($ac_try" in
35522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35523 *) ac_try_echo=$ac_try;;
35525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35526 (eval "$ac_compile") 2>conftest.er1
35528 grep -v '^ *+' conftest.er1 >conftest.err
35530 cat conftest.err >&5
35531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35532 (exit $ac_status); } && {
35533 test -z "$ac_c_werror_flag" ||
35534 test ! -s conftest.err
35535 } && test -s conftest.$ac_objext; then
35538 cat >conftest.$ac_ext <<_ACEOF
35541 cat confdefs.h >>conftest.$ac_ext
35542 cat >>conftest.$ac_ext <<_ACEOF
35543 /* end confdefs.h. */
35544 $ac_includes_default
35545 typedef int ac__type_sizeof_;
35549 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35556 rm -f conftest.$ac_objext
35557 if { (ac_try="$ac_compile"
35558 case "(($ac_try" in
35559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35560 *) ac_try_echo=$ac_try;;
35562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35563 (eval "$ac_compile") 2>conftest.er1
35565 grep -v '^ *+' conftest.er1 >conftest.err
35567 cat conftest.err >&5
35568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35569 (exit $ac_status); } && {
35570 test -z "$ac_c_werror_flag" ||
35571 test ! -s conftest.err
35572 } && test -s conftest.$ac_objext; then
35573 ac_hi=$ac_mid; break
35575 echo "$as_me: failed program was:" >&5
35576 sed 's/^/| /' conftest.$ac_ext >&5
35578 ac_lo=`expr $ac_mid + 1`
35579 if test $ac_lo -le $ac_mid; then
35583 ac_mid=`expr 2 '*' $ac_mid + 1`
35586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35589 echo "$as_me: failed program was:" >&5
35590 sed 's/^/| /' conftest.$ac_ext >&5
35592 cat >conftest.$ac_ext <<_ACEOF
35595 cat confdefs.h >>conftest.$ac_ext
35596 cat >>conftest.$ac_ext <<_ACEOF
35597 /* end confdefs.h. */
35598 $ac_includes_default
35599 typedef int ac__type_sizeof_;
35603 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35610 rm -f conftest.$ac_objext
35611 if { (ac_try="$ac_compile"
35612 case "(($ac_try" in
35613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35614 *) ac_try_echo=$ac_try;;
35616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35617 (eval "$ac_compile") 2>conftest.er1
35619 grep -v '^ *+' conftest.er1 >conftest.err
35621 cat conftest.err >&5
35622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35623 (exit $ac_status); } && {
35624 test -z "$ac_c_werror_flag" ||
35625 test ! -s conftest.err
35626 } && test -s conftest.$ac_objext; then
35629 cat >conftest.$ac_ext <<_ACEOF
35632 cat confdefs.h >>conftest.$ac_ext
35633 cat >>conftest.$ac_ext <<_ACEOF
35634 /* end confdefs.h. */
35635 $ac_includes_default
35636 typedef int ac__type_sizeof_;
35640 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35647 rm -f conftest.$ac_objext
35648 if { (ac_try="$ac_compile"
35649 case "(($ac_try" in
35650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35651 *) ac_try_echo=$ac_try;;
35653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35654 (eval "$ac_compile") 2>conftest.er1
35656 grep -v '^ *+' conftest.er1 >conftest.err
35658 cat conftest.err >&5
35659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35660 (exit $ac_status); } && {
35661 test -z "$ac_c_werror_flag" ||
35662 test ! -s conftest.err
35663 } && test -s conftest.$ac_objext; then
35664 ac_lo=$ac_mid; break
35666 echo "$as_me: failed program was:" >&5
35667 sed 's/^/| /' conftest.$ac_ext >&5
35669 ac_hi=`expr '(' $ac_mid ')' - 1`
35670 if test $ac_mid -le $ac_hi; then
35674 ac_mid=`expr 2 '*' $ac_mid`
35677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35680 echo "$as_me: failed program was:" >&5
35681 sed 's/^/| /' conftest.$ac_ext >&5
35686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35690 # Binary search between lo and hi bounds.
35691 while test "x$ac_lo" != "x$ac_hi"; do
35692 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35693 cat >conftest.$ac_ext <<_ACEOF
35696 cat confdefs.h >>conftest.$ac_ext
35697 cat >>conftest.$ac_ext <<_ACEOF
35698 /* end confdefs.h. */
35699 $ac_includes_default
35700 typedef int ac__type_sizeof_;
35704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35711 rm -f conftest.$ac_objext
35712 if { (ac_try="$ac_compile"
35713 case "(($ac_try" in
35714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35715 *) ac_try_echo=$ac_try;;
35717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35718 (eval "$ac_compile") 2>conftest.er1
35720 grep -v '^ *+' conftest.er1 >conftest.err
35722 cat conftest.err >&5
35723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35724 (exit $ac_status); } && {
35725 test -z "$ac_c_werror_flag" ||
35726 test ! -s conftest.err
35727 } && test -s conftest.$ac_objext; then
35730 echo "$as_me: failed program was:" >&5
35731 sed 's/^/| /' conftest.$ac_ext >&5
35733 ac_lo=`expr '(' $ac_mid ')' + 1`
35736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35739 ?*) ac_cv_sizeof_int=$ac_lo;;
35740 '') if test "$ac_cv_type_int" = yes; then
35741 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35742 See \`config.log' for more details." >&5
35743 echo "$as_me: error: cannot compute sizeof (int)
35744 See \`config.log' for more details." >&2;}
35745 { (exit 77); exit 77; }; }
35751 cat >conftest.$ac_ext <<_ACEOF
35754 cat confdefs.h >>conftest.$ac_ext
35755 cat >>conftest.$ac_ext <<_ACEOF
35756 /* end confdefs.h. */
35757 $ac_includes_default
35758 typedef int ac__type_sizeof_;
35759 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35760 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35762 #include <stdlib.h>
35767 FILE *f = fopen ("conftest.val", "w");
35770 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35772 long int i = longval ();
35773 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35775 fprintf (f, "%ld\n", i);
35779 unsigned long int i = ulongval ();
35780 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35782 fprintf (f, "%lu\n", i);
35784 return ferror (f) || fclose (f) != 0;
35790 rm -f conftest$ac_exeext
35791 if { (ac_try="$ac_link"
35792 case "(($ac_try" in
35793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35794 *) ac_try_echo=$ac_try;;
35796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35797 (eval "$ac_link") 2>&5
35799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35801 { (case "(($ac_try" in
35802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35803 *) ac_try_echo=$ac_try;;
35805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35806 (eval "$ac_try") 2>&5
35808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35809 (exit $ac_status); }; }; then
35810 ac_cv_sizeof_int=`cat conftest.val`
35812 echo "$as_me: program exited with status $ac_status" >&5
35813 echo "$as_me: failed program was:" >&5
35814 sed 's/^/| /' conftest.$ac_ext >&5
35816 ( exit $ac_status )
35817 if test "$ac_cv_type_int" = yes; then
35818 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35819 See \`config.log' for more details." >&5
35820 echo "$as_me: error: cannot compute sizeof (int)
35821 See \`config.log' for more details." >&2;}
35822 { (exit 77); exit 77; }; }
35827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35831 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35832 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35836 cat >>confdefs.h <<_ACEOF
35837 #define SIZEOF_INT $ac_cv_sizeof_int
35841 { echo "$as_me:$LINENO: checking for long int" >&5
35842 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35843 if test "${ac_cv_type_long_int+set}" = set; then
35844 echo $ECHO_N "(cached) $ECHO_C" >&6
35846 cat >conftest.$ac_ext <<_ACEOF
35849 cat confdefs.h >>conftest.$ac_ext
35850 cat >>conftest.$ac_ext <<_ACEOF
35851 /* end confdefs.h. */
35852 $ac_includes_default
35853 typedef long int ac__type_new_;
35857 if ((ac__type_new_ *) 0)
35859 if (sizeof (ac__type_new_))
35865 rm -f conftest.$ac_objext
35866 if { (ac_try="$ac_compile"
35867 case "(($ac_try" in
35868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35869 *) ac_try_echo=$ac_try;;
35871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35872 (eval "$ac_compile") 2>conftest.er1
35874 grep -v '^ *+' conftest.er1 >conftest.err
35876 cat conftest.err >&5
35877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35878 (exit $ac_status); } && {
35879 test -z "$ac_c_werror_flag" ||
35880 test ! -s conftest.err
35881 } && test -s conftest.$ac_objext; then
35882 ac_cv_type_long_int=yes
35884 echo "$as_me: failed program was:" >&5
35885 sed 's/^/| /' conftest.$ac_ext >&5
35887 ac_cv_type_long_int=no
35890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35892 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35893 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35895 # The cast to long int works around a bug in the HP C Compiler
35896 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35897 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35898 # This bug is HP SR number 8606223364.
35899 { echo "$as_me:$LINENO: checking size of long int" >&5
35900 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35901 if test "${ac_cv_sizeof_long_int+set}" = set; then
35902 echo $ECHO_N "(cached) $ECHO_C" >&6
35904 if test "$cross_compiling" = yes; then
35905 # Depending upon the size, compute the lo and hi bounds.
35906 cat >conftest.$ac_ext <<_ACEOF
35909 cat confdefs.h >>conftest.$ac_ext
35910 cat >>conftest.$ac_ext <<_ACEOF
35911 /* end confdefs.h. */
35912 $ac_includes_default
35913 typedef long int ac__type_sizeof_;
35917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35924 rm -f conftest.$ac_objext
35925 if { (ac_try="$ac_compile"
35926 case "(($ac_try" in
35927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35928 *) ac_try_echo=$ac_try;;
35930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35931 (eval "$ac_compile") 2>conftest.er1
35933 grep -v '^ *+' conftest.er1 >conftest.err
35935 cat conftest.err >&5
35936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); } && {
35938 test -z "$ac_c_werror_flag" ||
35939 test ! -s conftest.err
35940 } && test -s conftest.$ac_objext; then
35943 cat >conftest.$ac_ext <<_ACEOF
35946 cat confdefs.h >>conftest.$ac_ext
35947 cat >>conftest.$ac_ext <<_ACEOF
35948 /* end confdefs.h. */
35949 $ac_includes_default
35950 typedef long int ac__type_sizeof_;
35954 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35961 rm -f conftest.$ac_objext
35962 if { (ac_try="$ac_compile"
35963 case "(($ac_try" in
35964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35965 *) ac_try_echo=$ac_try;;
35967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35968 (eval "$ac_compile") 2>conftest.er1
35970 grep -v '^ *+' conftest.er1 >conftest.err
35972 cat conftest.err >&5
35973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35974 (exit $ac_status); } && {
35975 test -z "$ac_c_werror_flag" ||
35976 test ! -s conftest.err
35977 } && test -s conftest.$ac_objext; then
35978 ac_hi=$ac_mid; break
35980 echo "$as_me: failed program was:" >&5
35981 sed 's/^/| /' conftest.$ac_ext >&5
35983 ac_lo=`expr $ac_mid + 1`
35984 if test $ac_lo -le $ac_mid; then
35988 ac_mid=`expr 2 '*' $ac_mid + 1`
35991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35994 echo "$as_me: failed program was:" >&5
35995 sed 's/^/| /' conftest.$ac_ext >&5
35997 cat >conftest.$ac_ext <<_ACEOF
36000 cat confdefs.h >>conftest.$ac_ext
36001 cat >>conftest.$ac_ext <<_ACEOF
36002 /* end confdefs.h. */
36003 $ac_includes_default
36004 typedef long int ac__type_sizeof_;
36008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36015 rm -f conftest.$ac_objext
36016 if { (ac_try="$ac_compile"
36017 case "(($ac_try" in
36018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36019 *) ac_try_echo=$ac_try;;
36021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36022 (eval "$ac_compile") 2>conftest.er1
36024 grep -v '^ *+' conftest.er1 >conftest.err
36026 cat conftest.err >&5
36027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36028 (exit $ac_status); } && {
36029 test -z "$ac_c_werror_flag" ||
36030 test ! -s conftest.err
36031 } && test -s conftest.$ac_objext; then
36034 cat >conftest.$ac_ext <<_ACEOF
36037 cat confdefs.h >>conftest.$ac_ext
36038 cat >>conftest.$ac_ext <<_ACEOF
36039 /* end confdefs.h. */
36040 $ac_includes_default
36041 typedef long int ac__type_sizeof_;
36045 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36052 rm -f conftest.$ac_objext
36053 if { (ac_try="$ac_compile"
36054 case "(($ac_try" in
36055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36056 *) ac_try_echo=$ac_try;;
36058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36059 (eval "$ac_compile") 2>conftest.er1
36061 grep -v '^ *+' conftest.er1 >conftest.err
36063 cat conftest.err >&5
36064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065 (exit $ac_status); } && {
36066 test -z "$ac_c_werror_flag" ||
36067 test ! -s conftest.err
36068 } && test -s conftest.$ac_objext; then
36069 ac_lo=$ac_mid; break
36071 echo "$as_me: failed program was:" >&5
36072 sed 's/^/| /' conftest.$ac_ext >&5
36074 ac_hi=`expr '(' $ac_mid ')' - 1`
36075 if test $ac_mid -le $ac_hi; then
36079 ac_mid=`expr 2 '*' $ac_mid`
36082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36085 echo "$as_me: failed program was:" >&5
36086 sed 's/^/| /' conftest.$ac_ext >&5
36091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36095 # Binary search between lo and hi bounds.
36096 while test "x$ac_lo" != "x$ac_hi"; do
36097 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36098 cat >conftest.$ac_ext <<_ACEOF
36101 cat confdefs.h >>conftest.$ac_ext
36102 cat >>conftest.$ac_ext <<_ACEOF
36103 /* end confdefs.h. */
36104 $ac_includes_default
36105 typedef long int ac__type_sizeof_;
36109 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36116 rm -f conftest.$ac_objext
36117 if { (ac_try="$ac_compile"
36118 case "(($ac_try" in
36119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36120 *) ac_try_echo=$ac_try;;
36122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36123 (eval "$ac_compile") 2>conftest.er1
36125 grep -v '^ *+' conftest.er1 >conftest.err
36127 cat conftest.err >&5
36128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36129 (exit $ac_status); } && {
36130 test -z "$ac_c_werror_flag" ||
36131 test ! -s conftest.err
36132 } && test -s conftest.$ac_objext; then
36135 echo "$as_me: failed program was:" >&5
36136 sed 's/^/| /' conftest.$ac_ext >&5
36138 ac_lo=`expr '(' $ac_mid ')' + 1`
36141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36144 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36145 '') if test "$ac_cv_type_long_int" = yes; then
36146 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36147 See \`config.log' for more details." >&5
36148 echo "$as_me: error: cannot compute sizeof (long int)
36149 See \`config.log' for more details." >&2;}
36150 { (exit 77); exit 77; }; }
36152 ac_cv_sizeof_long_int=0
36156 cat >conftest.$ac_ext <<_ACEOF
36159 cat confdefs.h >>conftest.$ac_ext
36160 cat >>conftest.$ac_ext <<_ACEOF
36161 /* end confdefs.h. */
36162 $ac_includes_default
36163 typedef long int ac__type_sizeof_;
36164 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36165 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36167 #include <stdlib.h>
36172 FILE *f = fopen ("conftest.val", "w");
36175 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36177 long int i = longval ();
36178 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36180 fprintf (f, "%ld\n", i);
36184 unsigned long int i = ulongval ();
36185 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36187 fprintf (f, "%lu\n", i);
36189 return ferror (f) || fclose (f) != 0;
36195 rm -f conftest$ac_exeext
36196 if { (ac_try="$ac_link"
36197 case "(($ac_try" in
36198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36199 *) ac_try_echo=$ac_try;;
36201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36202 (eval "$ac_link") 2>&5
36204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36206 { (case "(($ac_try" in
36207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36208 *) ac_try_echo=$ac_try;;
36210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36211 (eval "$ac_try") 2>&5
36213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36214 (exit $ac_status); }; }; then
36215 ac_cv_sizeof_long_int=`cat conftest.val`
36217 echo "$as_me: program exited with status $ac_status" >&5
36218 echo "$as_me: failed program was:" >&5
36219 sed 's/^/| /' conftest.$ac_ext >&5
36221 ( exit $ac_status )
36222 if test "$ac_cv_type_long_int" = yes; then
36223 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36224 See \`config.log' for more details." >&5
36225 echo "$as_me: error: cannot compute sizeof (long int)
36226 See \`config.log' for more details." >&2;}
36227 { (exit 77); exit 77; }; }
36229 ac_cv_sizeof_long_int=0
36232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36236 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36237 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36241 cat >>confdefs.h <<_ACEOF
36242 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36246 { echo "$as_me:$LINENO: checking for long long int" >&5
36247 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36248 if test "${ac_cv_type_long_long_int+set}" = set; then
36249 echo $ECHO_N "(cached) $ECHO_C" >&6
36251 cat >conftest.$ac_ext <<_ACEOF
36254 cat confdefs.h >>conftest.$ac_ext
36255 cat >>conftest.$ac_ext <<_ACEOF
36256 /* end confdefs.h. */
36257 $ac_includes_default
36258 typedef long long int ac__type_new_;
36262 if ((ac__type_new_ *) 0)
36264 if (sizeof (ac__type_new_))
36270 rm -f conftest.$ac_objext
36271 if { (ac_try="$ac_compile"
36272 case "(($ac_try" in
36273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36274 *) ac_try_echo=$ac_try;;
36276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36277 (eval "$ac_compile") 2>conftest.er1
36279 grep -v '^ *+' conftest.er1 >conftest.err
36281 cat conftest.err >&5
36282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36283 (exit $ac_status); } && {
36284 test -z "$ac_c_werror_flag" ||
36285 test ! -s conftest.err
36286 } && test -s conftest.$ac_objext; then
36287 ac_cv_type_long_long_int=yes
36289 echo "$as_me: failed program was:" >&5
36290 sed 's/^/| /' conftest.$ac_ext >&5
36292 ac_cv_type_long_long_int=no
36295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36297 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36298 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36300 # The cast to long int works around a bug in the HP C Compiler
36301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36303 # This bug is HP SR number 8606223364.
36304 { echo "$as_me:$LINENO: checking size of long long int" >&5
36305 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36306 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36307 echo $ECHO_N "(cached) $ECHO_C" >&6
36309 if test "$cross_compiling" = yes; then
36310 # Depending upon the size, compute the lo and hi bounds.
36311 cat >conftest.$ac_ext <<_ACEOF
36314 cat confdefs.h >>conftest.$ac_ext
36315 cat >>conftest.$ac_ext <<_ACEOF
36316 /* end confdefs.h. */
36317 $ac_includes_default
36318 typedef long long int ac__type_sizeof_;
36322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36329 rm -f conftest.$ac_objext
36330 if { (ac_try="$ac_compile"
36331 case "(($ac_try" in
36332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36333 *) ac_try_echo=$ac_try;;
36335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36336 (eval "$ac_compile") 2>conftest.er1
36338 grep -v '^ *+' conftest.er1 >conftest.err
36340 cat conftest.err >&5
36341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36342 (exit $ac_status); } && {
36343 test -z "$ac_c_werror_flag" ||
36344 test ! -s conftest.err
36345 } && test -s conftest.$ac_objext; then
36348 cat >conftest.$ac_ext <<_ACEOF
36351 cat confdefs.h >>conftest.$ac_ext
36352 cat >>conftest.$ac_ext <<_ACEOF
36353 /* end confdefs.h. */
36354 $ac_includes_default
36355 typedef long long int ac__type_sizeof_;
36359 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36366 rm -f conftest.$ac_objext
36367 if { (ac_try="$ac_compile"
36368 case "(($ac_try" in
36369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36370 *) ac_try_echo=$ac_try;;
36372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36373 (eval "$ac_compile") 2>conftest.er1
36375 grep -v '^ *+' conftest.er1 >conftest.err
36377 cat conftest.err >&5
36378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36379 (exit $ac_status); } && {
36380 test -z "$ac_c_werror_flag" ||
36381 test ! -s conftest.err
36382 } && test -s conftest.$ac_objext; then
36383 ac_hi=$ac_mid; break
36385 echo "$as_me: failed program was:" >&5
36386 sed 's/^/| /' conftest.$ac_ext >&5
36388 ac_lo=`expr $ac_mid + 1`
36389 if test $ac_lo -le $ac_mid; then
36393 ac_mid=`expr 2 '*' $ac_mid + 1`
36396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36399 echo "$as_me: failed program was:" >&5
36400 sed 's/^/| /' conftest.$ac_ext >&5
36402 cat >conftest.$ac_ext <<_ACEOF
36405 cat confdefs.h >>conftest.$ac_ext
36406 cat >>conftest.$ac_ext <<_ACEOF
36407 /* end confdefs.h. */
36408 $ac_includes_default
36409 typedef long long int ac__type_sizeof_;
36413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36420 rm -f conftest.$ac_objext
36421 if { (ac_try="$ac_compile"
36422 case "(($ac_try" in
36423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36424 *) ac_try_echo=$ac_try;;
36426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36427 (eval "$ac_compile") 2>conftest.er1
36429 grep -v '^ *+' conftest.er1 >conftest.err
36431 cat conftest.err >&5
36432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433 (exit $ac_status); } && {
36434 test -z "$ac_c_werror_flag" ||
36435 test ! -s conftest.err
36436 } && test -s conftest.$ac_objext; then
36439 cat >conftest.$ac_ext <<_ACEOF
36442 cat confdefs.h >>conftest.$ac_ext
36443 cat >>conftest.$ac_ext <<_ACEOF
36444 /* end confdefs.h. */
36445 $ac_includes_default
36446 typedef long long int ac__type_sizeof_;
36450 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36457 rm -f conftest.$ac_objext
36458 if { (ac_try="$ac_compile"
36459 case "(($ac_try" in
36460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36461 *) ac_try_echo=$ac_try;;
36463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36464 (eval "$ac_compile") 2>conftest.er1
36466 grep -v '^ *+' conftest.er1 >conftest.err
36468 cat conftest.err >&5
36469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36470 (exit $ac_status); } && {
36471 test -z "$ac_c_werror_flag" ||
36472 test ! -s conftest.err
36473 } && test -s conftest.$ac_objext; then
36474 ac_lo=$ac_mid; break
36476 echo "$as_me: failed program was:" >&5
36477 sed 's/^/| /' conftest.$ac_ext >&5
36479 ac_hi=`expr '(' $ac_mid ')' - 1`
36480 if test $ac_mid -le $ac_hi; then
36484 ac_mid=`expr 2 '*' $ac_mid`
36487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36490 echo "$as_me: failed program was:" >&5
36491 sed 's/^/| /' conftest.$ac_ext >&5
36496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36500 # Binary search between lo and hi bounds.
36501 while test "x$ac_lo" != "x$ac_hi"; do
36502 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36503 cat >conftest.$ac_ext <<_ACEOF
36506 cat confdefs.h >>conftest.$ac_ext
36507 cat >>conftest.$ac_ext <<_ACEOF
36508 /* end confdefs.h. */
36509 $ac_includes_default
36510 typedef long long int ac__type_sizeof_;
36514 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36521 rm -f conftest.$ac_objext
36522 if { (ac_try="$ac_compile"
36523 case "(($ac_try" in
36524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36525 *) ac_try_echo=$ac_try;;
36527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36528 (eval "$ac_compile") 2>conftest.er1
36530 grep -v '^ *+' conftest.er1 >conftest.err
36532 cat conftest.err >&5
36533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36534 (exit $ac_status); } && {
36535 test -z "$ac_c_werror_flag" ||
36536 test ! -s conftest.err
36537 } && test -s conftest.$ac_objext; then
36540 echo "$as_me: failed program was:" >&5
36541 sed 's/^/| /' conftest.$ac_ext >&5
36543 ac_lo=`expr '(' $ac_mid ')' + 1`
36546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36549 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36550 '') if test "$ac_cv_type_long_long_int" = yes; then
36551 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36552 See \`config.log' for more details." >&5
36553 echo "$as_me: error: cannot compute sizeof (long long int)
36554 See \`config.log' for more details." >&2;}
36555 { (exit 77); exit 77; }; }
36557 ac_cv_sizeof_long_long_int=0
36561 cat >conftest.$ac_ext <<_ACEOF
36564 cat confdefs.h >>conftest.$ac_ext
36565 cat >>conftest.$ac_ext <<_ACEOF
36566 /* end confdefs.h. */
36567 $ac_includes_default
36568 typedef long long int ac__type_sizeof_;
36569 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36570 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36572 #include <stdlib.h>
36577 FILE *f = fopen ("conftest.val", "w");
36580 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36582 long int i = longval ();
36583 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36585 fprintf (f, "%ld\n", i);
36589 unsigned long int i = ulongval ();
36590 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36592 fprintf (f, "%lu\n", i);
36594 return ferror (f) || fclose (f) != 0;
36600 rm -f conftest$ac_exeext
36601 if { (ac_try="$ac_link"
36602 case "(($ac_try" in
36603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36604 *) ac_try_echo=$ac_try;;
36606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36607 (eval "$ac_link") 2>&5
36609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36611 { (case "(($ac_try" in
36612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36613 *) ac_try_echo=$ac_try;;
36615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36616 (eval "$ac_try") 2>&5
36618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36619 (exit $ac_status); }; }; then
36620 ac_cv_sizeof_long_long_int=`cat conftest.val`
36622 echo "$as_me: program exited with status $ac_status" >&5
36623 echo "$as_me: failed program was:" >&5
36624 sed 's/^/| /' conftest.$ac_ext >&5
36626 ( exit $ac_status )
36627 if test "$ac_cv_type_long_long_int" = yes; then
36628 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36629 See \`config.log' for more details." >&5
36630 echo "$as_me: error: cannot compute sizeof (long long int)
36631 See \`config.log' for more details." >&2;}
36632 { (exit 77); exit 77; }; }
36634 ac_cv_sizeof_long_long_int=0
36637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36641 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36642 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36646 cat >>confdefs.h <<_ACEOF
36647 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36651 { echo "$as_me:$LINENO: checking for int *" >&5
36652 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36653 if test "${ac_cv_type_int_p+set}" = set; then
36654 echo $ECHO_N "(cached) $ECHO_C" >&6
36656 cat >conftest.$ac_ext <<_ACEOF
36659 cat confdefs.h >>conftest.$ac_ext
36660 cat >>conftest.$ac_ext <<_ACEOF
36661 /* end confdefs.h. */
36662 $ac_includes_default
36663 typedef int * ac__type_new_;
36667 if ((ac__type_new_ *) 0)
36669 if (sizeof (ac__type_new_))
36675 rm -f conftest.$ac_objext
36676 if { (ac_try="$ac_compile"
36677 case "(($ac_try" in
36678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36679 *) ac_try_echo=$ac_try;;
36681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36682 (eval "$ac_compile") 2>conftest.er1
36684 grep -v '^ *+' conftest.er1 >conftest.err
36686 cat conftest.err >&5
36687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688 (exit $ac_status); } && {
36689 test -z "$ac_c_werror_flag" ||
36690 test ! -s conftest.err
36691 } && test -s conftest.$ac_objext; then
36692 ac_cv_type_int_p=yes
36694 echo "$as_me: failed program was:" >&5
36695 sed 's/^/| /' conftest.$ac_ext >&5
36697 ac_cv_type_int_p=no
36700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36702 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36703 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36705 # The cast to long int works around a bug in the HP C Compiler
36706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36708 # This bug is HP SR number 8606223364.
36709 { echo "$as_me:$LINENO: checking size of int *" >&5
36710 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36711 if test "${ac_cv_sizeof_int_p+set}" = set; then
36712 echo $ECHO_N "(cached) $ECHO_C" >&6
36714 if test "$cross_compiling" = yes; then
36715 # Depending upon the size, compute the lo and hi bounds.
36716 cat >conftest.$ac_ext <<_ACEOF
36719 cat confdefs.h >>conftest.$ac_ext
36720 cat >>conftest.$ac_ext <<_ACEOF
36721 /* end confdefs.h. */
36722 $ac_includes_default
36723 typedef int * ac__type_sizeof_;
36727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36734 rm -f conftest.$ac_objext
36735 if { (ac_try="$ac_compile"
36736 case "(($ac_try" in
36737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36738 *) ac_try_echo=$ac_try;;
36740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36741 (eval "$ac_compile") 2>conftest.er1
36743 grep -v '^ *+' conftest.er1 >conftest.err
36745 cat conftest.err >&5
36746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36747 (exit $ac_status); } && {
36748 test -z "$ac_c_werror_flag" ||
36749 test ! -s conftest.err
36750 } && test -s conftest.$ac_objext; then
36753 cat >conftest.$ac_ext <<_ACEOF
36756 cat confdefs.h >>conftest.$ac_ext
36757 cat >>conftest.$ac_ext <<_ACEOF
36758 /* end confdefs.h. */
36759 $ac_includes_default
36760 typedef int * ac__type_sizeof_;
36764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36771 rm -f conftest.$ac_objext
36772 if { (ac_try="$ac_compile"
36773 case "(($ac_try" in
36774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36775 *) ac_try_echo=$ac_try;;
36777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36778 (eval "$ac_compile") 2>conftest.er1
36780 grep -v '^ *+' conftest.er1 >conftest.err
36782 cat conftest.err >&5
36783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36784 (exit $ac_status); } && {
36785 test -z "$ac_c_werror_flag" ||
36786 test ! -s conftest.err
36787 } && test -s conftest.$ac_objext; then
36788 ac_hi=$ac_mid; break
36790 echo "$as_me: failed program was:" >&5
36791 sed 's/^/| /' conftest.$ac_ext >&5
36793 ac_lo=`expr $ac_mid + 1`
36794 if test $ac_lo -le $ac_mid; then
36798 ac_mid=`expr 2 '*' $ac_mid + 1`
36801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36804 echo "$as_me: failed program was:" >&5
36805 sed 's/^/| /' conftest.$ac_ext >&5
36807 cat >conftest.$ac_ext <<_ACEOF
36810 cat confdefs.h >>conftest.$ac_ext
36811 cat >>conftest.$ac_ext <<_ACEOF
36812 /* end confdefs.h. */
36813 $ac_includes_default
36814 typedef int * ac__type_sizeof_;
36818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36825 rm -f conftest.$ac_objext
36826 if { (ac_try="$ac_compile"
36827 case "(($ac_try" in
36828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36829 *) ac_try_echo=$ac_try;;
36831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36832 (eval "$ac_compile") 2>conftest.er1
36834 grep -v '^ *+' conftest.er1 >conftest.err
36836 cat conftest.err >&5
36837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36838 (exit $ac_status); } && {
36839 test -z "$ac_c_werror_flag" ||
36840 test ! -s conftest.err
36841 } && test -s conftest.$ac_objext; then
36844 cat >conftest.$ac_ext <<_ACEOF
36847 cat confdefs.h >>conftest.$ac_ext
36848 cat >>conftest.$ac_ext <<_ACEOF
36849 /* end confdefs.h. */
36850 $ac_includes_default
36851 typedef int * ac__type_sizeof_;
36855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36862 rm -f conftest.$ac_objext
36863 if { (ac_try="$ac_compile"
36864 case "(($ac_try" in
36865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36866 *) ac_try_echo=$ac_try;;
36868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36869 (eval "$ac_compile") 2>conftest.er1
36871 grep -v '^ *+' conftest.er1 >conftest.err
36873 cat conftest.err >&5
36874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36875 (exit $ac_status); } && {
36876 test -z "$ac_c_werror_flag" ||
36877 test ! -s conftest.err
36878 } && test -s conftest.$ac_objext; then
36879 ac_lo=$ac_mid; break
36881 echo "$as_me: failed program was:" >&5
36882 sed 's/^/| /' conftest.$ac_ext >&5
36884 ac_hi=`expr '(' $ac_mid ')' - 1`
36885 if test $ac_mid -le $ac_hi; then
36889 ac_mid=`expr 2 '*' $ac_mid`
36892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36895 echo "$as_me: failed program was:" >&5
36896 sed 's/^/| /' conftest.$ac_ext >&5
36901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36905 # Binary search between lo and hi bounds.
36906 while test "x$ac_lo" != "x$ac_hi"; do
36907 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36908 cat >conftest.$ac_ext <<_ACEOF
36911 cat confdefs.h >>conftest.$ac_ext
36912 cat >>conftest.$ac_ext <<_ACEOF
36913 /* end confdefs.h. */
36914 $ac_includes_default
36915 typedef int * ac__type_sizeof_;
36919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36926 rm -f conftest.$ac_objext
36927 if { (ac_try="$ac_compile"
36928 case "(($ac_try" in
36929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36930 *) ac_try_echo=$ac_try;;
36932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36933 (eval "$ac_compile") 2>conftest.er1
36935 grep -v '^ *+' conftest.er1 >conftest.err
36937 cat conftest.err >&5
36938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36939 (exit $ac_status); } && {
36940 test -z "$ac_c_werror_flag" ||
36941 test ! -s conftest.err
36942 } && test -s conftest.$ac_objext; then
36945 echo "$as_me: failed program was:" >&5
36946 sed 's/^/| /' conftest.$ac_ext >&5
36948 ac_lo=`expr '(' $ac_mid ')' + 1`
36951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36954 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36955 '') if test "$ac_cv_type_int_p" = yes; then
36956 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36957 See \`config.log' for more details." >&5
36958 echo "$as_me: error: cannot compute sizeof (int *)
36959 See \`config.log' for more details." >&2;}
36960 { (exit 77); exit 77; }; }
36962 ac_cv_sizeof_int_p=0
36966 cat >conftest.$ac_ext <<_ACEOF
36969 cat confdefs.h >>conftest.$ac_ext
36970 cat >>conftest.$ac_ext <<_ACEOF
36971 /* end confdefs.h. */
36972 $ac_includes_default
36973 typedef int * ac__type_sizeof_;
36974 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36975 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36977 #include <stdlib.h>
36982 FILE *f = fopen ("conftest.val", "w");
36985 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36987 long int i = longval ();
36988 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36990 fprintf (f, "%ld\n", i);
36994 unsigned long int i = ulongval ();
36995 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36997 fprintf (f, "%lu\n", i);
36999 return ferror (f) || fclose (f) != 0;
37005 rm -f conftest$ac_exeext
37006 if { (ac_try="$ac_link"
37007 case "(($ac_try" in
37008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37009 *) ac_try_echo=$ac_try;;
37011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37012 (eval "$ac_link") 2>&5
37014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37016 { (case "(($ac_try" in
37017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37018 *) ac_try_echo=$ac_try;;
37020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37021 (eval "$ac_try") 2>&5
37023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37024 (exit $ac_status); }; }; then
37025 ac_cv_sizeof_int_p=`cat conftest.val`
37027 echo "$as_me: program exited with status $ac_status" >&5
37028 echo "$as_me: failed program was:" >&5
37029 sed 's/^/| /' conftest.$ac_ext >&5
37031 ( exit $ac_status )
37032 if test "$ac_cv_type_int_p" = yes; then
37033 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37034 See \`config.log' for more details." >&5
37035 echo "$as_me: error: cannot compute sizeof (int *)
37036 See \`config.log' for more details." >&2;}
37037 { (exit 77); exit 77; }; }
37039 ac_cv_sizeof_int_p=0
37042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37046 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37047 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37051 cat >>confdefs.h <<_ACEOF
37052 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37057 { echo "$as_me:$LINENO: checking for u_int type" >&5
37058 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37059 if test "${ac_cv_have_u_int+set}" = set; then
37060 echo $ECHO_N "(cached) $ECHO_C" >&6
37063 cat >conftest.$ac_ext <<_ACEOF
37066 cat confdefs.h >>conftest.$ac_ext
37067 cat >>conftest.$ac_ext <<_ACEOF
37068 /* end confdefs.h. */
37070 #include <sys/types.h>
37082 rm -f conftest.$ac_objext
37083 if { (ac_try="$ac_compile"
37084 case "(($ac_try" in
37085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37086 *) ac_try_echo=$ac_try;;
37088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37089 (eval "$ac_compile") 2>conftest.er1
37091 grep -v '^ *+' conftest.er1 >conftest.err
37093 cat conftest.err >&5
37094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37095 (exit $ac_status); } && {
37096 test -z "$ac_c_werror_flag" ||
37097 test ! -s conftest.err
37098 } && test -s conftest.$ac_objext; then
37100 ac_cv_have_u_int="yes"
37103 echo "$as_me: failed program was:" >&5
37104 sed 's/^/| /' conftest.$ac_ext >&5
37107 ac_cv_have_u_int="no"
37112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37116 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37117 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37118 if test "x$ac_cv_have_u_int" = "xyes" ; then
37119 cat >>confdefs.h <<\_ACEOF
37120 #define HAVE_U_INT 1
37126 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37127 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37128 if test "${ac_cv_have_intmax_t+set}" = set; then
37129 echo $ECHO_N "(cached) $ECHO_C" >&6
37132 cat >conftest.$ac_ext <<_ACEOF
37135 cat confdefs.h >>conftest.$ac_ext
37136 cat >>conftest.$ac_ext <<_ACEOF
37137 /* end confdefs.h. */
37139 #include <sys/types.h>
37151 rm -f conftest.$ac_objext
37152 if { (ac_try="$ac_compile"
37153 case "(($ac_try" in
37154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37155 *) ac_try_echo=$ac_try;;
37157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37158 (eval "$ac_compile") 2>conftest.er1
37160 grep -v '^ *+' conftest.er1 >conftest.err
37162 cat conftest.err >&5
37163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37164 (exit $ac_status); } && {
37165 test -z "$ac_c_werror_flag" ||
37166 test ! -s conftest.err
37167 } && test -s conftest.$ac_objext; then
37169 ac_cv_have_intmax_t="yes"
37172 echo "$as_me: failed program was:" >&5
37173 sed 's/^/| /' conftest.$ac_ext >&5
37176 cat >conftest.$ac_ext <<_ACEOF
37179 cat confdefs.h >>conftest.$ac_ext
37180 cat >>conftest.$ac_ext <<_ACEOF
37181 /* end confdefs.h. */
37183 #include <stdint.h>
37195 rm -f conftest.$ac_objext
37196 if { (ac_try="$ac_compile"
37197 case "(($ac_try" in
37198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37199 *) ac_try_echo=$ac_try;;
37201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37202 (eval "$ac_compile") 2>conftest.er1
37204 grep -v '^ *+' conftest.er1 >conftest.err
37206 cat conftest.err >&5
37207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37208 (exit $ac_status); } && {
37209 test -z "$ac_c_werror_flag" ||
37210 test ! -s conftest.err
37211 } && test -s conftest.$ac_objext; then
37213 ac_cv_have_intmax_t="yes"
37216 echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.$ac_ext >&5
37220 ac_cv_have_intmax_t="no"
37225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37234 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37235 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37236 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37237 cat >>confdefs.h <<\_ACEOF
37238 #define HAVE_INTMAX_T 1
37244 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37245 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37246 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37247 echo $ECHO_N "(cached) $ECHO_C" >&6
37250 cat >conftest.$ac_ext <<_ACEOF
37253 cat confdefs.h >>conftest.$ac_ext
37254 cat >>conftest.$ac_ext <<_ACEOF
37255 /* end confdefs.h. */
37257 #include <sys/types.h>
37263 u_intmax_t a; a = 1;
37269 rm -f conftest.$ac_objext
37270 if { (ac_try="$ac_compile"
37271 case "(($ac_try" in
37272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37273 *) ac_try_echo=$ac_try;;
37275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37276 (eval "$ac_compile") 2>conftest.er1
37278 grep -v '^ *+' conftest.er1 >conftest.err
37280 cat conftest.err >&5
37281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37282 (exit $ac_status); } && {
37283 test -z "$ac_c_werror_flag" ||
37284 test ! -s conftest.err
37285 } && test -s conftest.$ac_objext; then
37287 ac_cv_have_u_intmax_t="yes"
37290 echo "$as_me: failed program was:" >&5
37291 sed 's/^/| /' conftest.$ac_ext >&5
37294 cat >conftest.$ac_ext <<_ACEOF
37297 cat confdefs.h >>conftest.$ac_ext
37298 cat >>conftest.$ac_ext <<_ACEOF
37299 /* end confdefs.h. */
37301 #include <stdint.h>
37307 u_intmax_t a; a = 1;
37313 rm -f conftest.$ac_objext
37314 if { (ac_try="$ac_compile"
37315 case "(($ac_try" in
37316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37317 *) ac_try_echo=$ac_try;;
37319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37320 (eval "$ac_compile") 2>conftest.er1
37322 grep -v '^ *+' conftest.er1 >conftest.err
37324 cat conftest.err >&5
37325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326 (exit $ac_status); } && {
37327 test -z "$ac_c_werror_flag" ||
37328 test ! -s conftest.err
37329 } && test -s conftest.$ac_objext; then
37331 ac_cv_have_u_intmax_t="yes"
37334 echo "$as_me: failed program was:" >&5
37335 sed 's/^/| /' conftest.$ac_ext >&5
37338 ac_cv_have_u_intmax_t="no"
37343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37352 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37353 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37354 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37355 cat >>confdefs.h <<\_ACEOF
37356 #define HAVE_U_INTMAX_T 1
37362 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37363 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37364 if test "${ac_cv_have_intxx_t+set}" = set; then
37365 echo $ECHO_N "(cached) $ECHO_C" >&6
37368 cat >conftest.$ac_ext <<_ACEOF
37371 cat confdefs.h >>conftest.$ac_ext
37372 cat >>conftest.$ac_ext <<_ACEOF
37373 /* end confdefs.h. */
37375 #include <sys/types.h>
37381 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37387 rm -f conftest.$ac_objext
37388 if { (ac_try="$ac_compile"
37389 case "(($ac_try" in
37390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37391 *) ac_try_echo=$ac_try;;
37393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37394 (eval "$ac_compile") 2>conftest.er1
37396 grep -v '^ *+' conftest.er1 >conftest.err
37398 cat conftest.err >&5
37399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37400 (exit $ac_status); } && {
37401 test -z "$ac_c_werror_flag" ||
37402 test ! -s conftest.err
37403 } && test -s conftest.$ac_objext; then
37405 ac_cv_have_intxx_t="yes"
37408 echo "$as_me: failed program was:" >&5
37409 sed 's/^/| /' conftest.$ac_ext >&5
37412 ac_cv_have_intxx_t="no"
37417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37421 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37422 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37423 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37424 cat >>confdefs.h <<\_ACEOF
37425 #define HAVE_INTXX_T 1
37431 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37432 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37433 if test "${ac_cv_have_int64_t+set}" = set; then
37434 echo $ECHO_N "(cached) $ECHO_C" >&6
37437 cat >conftest.$ac_ext <<_ACEOF
37440 cat confdefs.h >>conftest.$ac_ext
37441 cat >>conftest.$ac_ext <<_ACEOF
37442 /* end confdefs.h. */
37444 #include <sys/types.h>
37456 rm -f conftest.$ac_objext
37457 if { (ac_try="$ac_compile"
37458 case "(($ac_try" in
37459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37460 *) ac_try_echo=$ac_try;;
37462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37463 (eval "$ac_compile") 2>conftest.er1
37465 grep -v '^ *+' conftest.er1 >conftest.err
37467 cat conftest.err >&5
37468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37469 (exit $ac_status); } && {
37470 test -z "$ac_c_werror_flag" ||
37471 test ! -s conftest.err
37472 } && test -s conftest.$ac_objext; then
37474 ac_cv_have_int64_t="yes"
37477 echo "$as_me: failed program was:" >&5
37478 sed 's/^/| /' conftest.$ac_ext >&5
37481 ac_cv_have_int64_t="no"
37486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37490 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37491 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37492 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37493 cat >>confdefs.h <<\_ACEOF
37494 #define HAVE_INT64_T 1
37500 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37501 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37502 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37503 echo $ECHO_N "(cached) $ECHO_C" >&6
37506 cat >conftest.$ac_ext <<_ACEOF
37509 cat confdefs.h >>conftest.$ac_ext
37510 cat >>conftest.$ac_ext <<_ACEOF
37511 /* end confdefs.h. */
37513 #include <sys/types.h>
37519 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37525 rm -f conftest.$ac_objext
37526 if { (ac_try="$ac_compile"
37527 case "(($ac_try" in
37528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37529 *) ac_try_echo=$ac_try;;
37531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37532 (eval "$ac_compile") 2>conftest.er1
37534 grep -v '^ *+' conftest.er1 >conftest.err
37536 cat conftest.err >&5
37537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37538 (exit $ac_status); } && {
37539 test -z "$ac_c_werror_flag" ||
37540 test ! -s conftest.err
37541 } && test -s conftest.$ac_objext; then
37543 ac_cv_have_u_intxx_t="yes"
37546 echo "$as_me: failed program was:" >&5
37547 sed 's/^/| /' conftest.$ac_ext >&5
37550 ac_cv_have_u_intxx_t="no"
37555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37559 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37560 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37561 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37562 cat >>confdefs.h <<\_ACEOF
37563 #define HAVE_U_INTXX_T 1
37569 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37570 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37571 if test "${ac_cv_have_u_int64_t+set}" = set; then
37572 echo $ECHO_N "(cached) $ECHO_C" >&6
37575 cat >conftest.$ac_ext <<_ACEOF
37578 cat confdefs.h >>conftest.$ac_ext
37579 cat >>conftest.$ac_ext <<_ACEOF
37580 /* end confdefs.h. */
37582 #include <sys/types.h>
37588 u_int64_t a; a = 1;
37594 rm -f conftest.$ac_objext
37595 if { (ac_try="$ac_compile"
37596 case "(($ac_try" in
37597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37598 *) ac_try_echo=$ac_try;;
37600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37601 (eval "$ac_compile") 2>conftest.er1
37603 grep -v '^ *+' conftest.er1 >conftest.err
37605 cat conftest.err >&5
37606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37607 (exit $ac_status); } && {
37608 test -z "$ac_c_werror_flag" ||
37609 test ! -s conftest.err
37610 } && test -s conftest.$ac_objext; then
37612 ac_cv_have_u_int64_t="yes"
37615 echo "$as_me: failed program was:" >&5
37616 sed 's/^/| /' conftest.$ac_ext >&5
37619 ac_cv_have_u_int64_t="no"
37624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37628 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37629 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37630 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37631 cat >>confdefs.h <<\_ACEOF
37632 #define HAVE_U_INT64_T 1
37638 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37639 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37641 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37642 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37643 cat >conftest.$ac_ext <<_ACEOF
37646 cat confdefs.h >>conftest.$ac_ext
37647 cat >>conftest.$ac_ext <<_ACEOF
37648 /* end confdefs.h. */
37650 #include <sys/bitypes.h>
37656 int8_t a; int16_t b; int32_t c;
37657 u_int8_t e; u_int16_t f; u_int32_t g;
37658 a = b = c = e = f = g = 1;
37664 rm -f conftest.$ac_objext
37665 if { (ac_try="$ac_compile"
37666 case "(($ac_try" in
37667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37668 *) ac_try_echo=$ac_try;;
37670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37671 (eval "$ac_compile") 2>conftest.er1
37673 grep -v '^ *+' conftest.er1 >conftest.err
37675 cat conftest.err >&5
37676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37677 (exit $ac_status); } && {
37678 test -z "$ac_c_werror_flag" ||
37679 test ! -s conftest.err
37680 } && test -s conftest.$ac_objext; then
37682 cat >>confdefs.h <<\_ACEOF
37683 #define HAVE_U_INTXX_T 1
37686 cat >>confdefs.h <<\_ACEOF
37687 #define HAVE_INTXX_T 1
37690 cat >>confdefs.h <<\_ACEOF
37691 #define HAVE_SYS_BITYPES_H 1
37694 { echo "$as_me:$LINENO: result: yes" >&5
37695 echo "${ECHO_T}yes" >&6; }
37698 echo "$as_me: failed program was:" >&5
37699 sed 's/^/| /' conftest.$ac_ext >&5
37702 { echo "$as_me:$LINENO: result: no" >&5
37703 echo "${ECHO_T}no" >&6; }
37708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37711 if test -z "$have_u_intxx_t" ; then
37712 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37713 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37714 if test "${ac_cv_have_uintxx_t+set}" = set; then
37715 echo $ECHO_N "(cached) $ECHO_C" >&6
37718 cat >conftest.$ac_ext <<_ACEOF
37721 cat confdefs.h >>conftest.$ac_ext
37722 cat >>conftest.$ac_ext <<_ACEOF
37723 /* end confdefs.h. */
37725 #include <sys/types.h>
37731 uint8_t a; uint16_t b;
37732 uint32_t c; a = b = c = 1;
37738 rm -f conftest.$ac_objext
37739 if { (ac_try="$ac_compile"
37740 case "(($ac_try" in
37741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37742 *) ac_try_echo=$ac_try;;
37744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37745 (eval "$ac_compile") 2>conftest.er1
37747 grep -v '^ *+' conftest.er1 >conftest.err
37749 cat conftest.err >&5
37750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37751 (exit $ac_status); } && {
37752 test -z "$ac_c_werror_flag" ||
37753 test ! -s conftest.err
37754 } && test -s conftest.$ac_objext; then
37756 ac_cv_have_uintxx_t="yes"
37759 echo "$as_me: failed program was:" >&5
37760 sed 's/^/| /' conftest.$ac_ext >&5
37763 ac_cv_have_uintxx_t="no"
37768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37772 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37773 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37774 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37775 cat >>confdefs.h <<\_ACEOF
37776 #define HAVE_UINTXX_T 1
37782 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37783 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37785 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37786 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37787 cat >conftest.$ac_ext <<_ACEOF
37790 cat confdefs.h >>conftest.$ac_ext
37791 cat >>conftest.$ac_ext <<_ACEOF
37792 /* end confdefs.h. */
37794 #include <sys/bitypes.h>
37800 int64_t a; u_int64_t b;
37807 rm -f conftest.$ac_objext
37808 if { (ac_try="$ac_compile"
37809 case "(($ac_try" in
37810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37811 *) ac_try_echo=$ac_try;;
37813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37814 (eval "$ac_compile") 2>conftest.er1
37816 grep -v '^ *+' conftest.er1 >conftest.err
37818 cat conftest.err >&5
37819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37820 (exit $ac_status); } && {
37821 test -z "$ac_c_werror_flag" ||
37822 test ! -s conftest.err
37823 } && test -s conftest.$ac_objext; then
37825 cat >>confdefs.h <<\_ACEOF
37826 #define HAVE_U_INT64_T 1
37829 cat >>confdefs.h <<\_ACEOF
37830 #define HAVE_INT64_T 1
37833 { echo "$as_me:$LINENO: result: yes" >&5
37834 echo "${ECHO_T}yes" >&6; }
37837 echo "$as_me: failed program was:" >&5
37838 sed 's/^/| /' conftest.$ac_ext >&5
37841 { echo "$as_me:$LINENO: result: no" >&5
37842 echo "${ECHO_T}no" >&6; }
37847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37850 if (test -z "$have_uintxx_t" && \
37851 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37853 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37854 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37855 cat >conftest.$ac_ext <<_ACEOF
37858 cat confdefs.h >>conftest.$ac_ext
37859 cat >>conftest.$ac_ext <<_ACEOF
37860 /* end confdefs.h. */
37862 #include <sys/bitypes.h>
37868 uint8_t a; uint16_t b;
37869 uint32_t c; a = b = c = 1;
37875 rm -f conftest.$ac_objext
37876 if { (ac_try="$ac_compile"
37877 case "(($ac_try" in
37878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37879 *) ac_try_echo=$ac_try;;
37881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37882 (eval "$ac_compile") 2>conftest.er1
37884 grep -v '^ *+' conftest.er1 >conftest.err
37886 cat conftest.err >&5
37887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37888 (exit $ac_status); } && {
37889 test -z "$ac_c_werror_flag" ||
37890 test ! -s conftest.err
37891 } && test -s conftest.$ac_objext; then
37893 cat >>confdefs.h <<\_ACEOF
37894 #define HAVE_UINTXX_T 1
37897 { echo "$as_me:$LINENO: result: yes" >&5
37898 echo "${ECHO_T}yes" >&6; }
37901 echo "$as_me: failed program was:" >&5
37902 sed 's/^/| /' conftest.$ac_ext >&5
37905 { echo "$as_me:$LINENO: result: no" >&5
37906 echo "${ECHO_T}no" >&6; }
37911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37947 echo $ECHO_N "(cached) $ECHO_C" >&6
37949 cat >conftest.$ac_ext <<_ACEOF
37952 cat confdefs.h >>conftest.$ac_ext
37953 cat >>conftest.$ac_ext <<_ACEOF
37954 /* end confdefs.h. */
37955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37957 #define $ac_func innocuous_$ac_func
37959 /* System header to define __stub macros and hopefully few prototypes,
37960 which can conflict with char $ac_func (); below.
37961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37962 <limits.h> exists even on freestanding compilers. */
37965 # include <limits.h>
37967 # include <assert.h>
37972 /* Override any GCC internal prototype to avoid an error.
37973 Use char because int might match the return type of a GCC
37974 builtin and then its argument prototype would still apply. */
37979 /* The GNU C library defines this for functions which it implements
37980 to always fail with ENOSYS. Some functions are actually named
37981 something starting with __ and the normal name is an alias. */
37982 #if defined __stub_$ac_func || defined __stub___$ac_func
37989 return $ac_func ();
37994 rm -f conftest.$ac_objext conftest$ac_exeext
37995 if { (ac_try="$ac_link"
37996 case "(($ac_try" in
37997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37998 *) ac_try_echo=$ac_try;;
38000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38001 (eval "$ac_link") 2>conftest.er1
38003 grep -v '^ *+' conftest.er1 >conftest.err
38005 cat conftest.err >&5
38006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38007 (exit $ac_status); } && {
38008 test -z "$ac_c_werror_flag" ||
38009 test ! -s conftest.err
38010 } && test -s conftest$ac_exeext &&
38011 $as_test_x conftest$ac_exeext; then
38012 eval "$as_ac_var=yes"
38014 echo "$as_me: failed program was:" >&5
38015 sed 's/^/| /' conftest.$ac_ext >&5
38017 eval "$as_ac_var=no"
38020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38021 conftest$ac_exeext conftest.$ac_ext
38023 ac_res=`eval echo '${'$as_ac_var'}'`
38024 { echo "$as_me:$LINENO: result: $ac_res" >&5
38025 echo "${ECHO_T}$ac_res" >&6; }
38026 if test `eval echo '${'$as_ac_var'}'` = yes; then
38027 cat >>confdefs.h <<_ACEOF
38028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38032 echo 'configure: cannot find needed function.'; exit 1
38039 for ac_func in fchdir
38041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38045 echo $ECHO_N "(cached) $ECHO_C" >&6
38047 cat >conftest.$ac_ext <<_ACEOF
38050 cat confdefs.h >>conftest.$ac_ext
38051 cat >>conftest.$ac_ext <<_ACEOF
38052 /* end confdefs.h. */
38053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38055 #define $ac_func innocuous_$ac_func
38057 /* System header to define __stub macros and hopefully few prototypes,
38058 which can conflict with char $ac_func (); below.
38059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38060 <limits.h> exists even on freestanding compilers. */
38063 # include <limits.h>
38065 # include <assert.h>
38070 /* Override any GCC internal prototype to avoid an error.
38071 Use char because int might match the return type of a GCC
38072 builtin and then its argument prototype would still apply. */
38077 /* The GNU C library defines this for functions which it implements
38078 to always fail with ENOSYS. Some functions are actually named
38079 something starting with __ and the normal name is an alias. */
38080 #if defined __stub_$ac_func || defined __stub___$ac_func
38087 return $ac_func ();
38092 rm -f conftest.$ac_objext conftest$ac_exeext
38093 if { (ac_try="$ac_link"
38094 case "(($ac_try" in
38095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38096 *) ac_try_echo=$ac_try;;
38098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38099 (eval "$ac_link") 2>conftest.er1
38101 grep -v '^ *+' conftest.er1 >conftest.err
38103 cat conftest.err >&5
38104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38105 (exit $ac_status); } && {
38106 test -z "$ac_c_werror_flag" ||
38107 test ! -s conftest.err
38108 } && test -s conftest$ac_exeext &&
38109 $as_test_x conftest$ac_exeext; then
38110 eval "$as_ac_var=yes"
38112 echo "$as_me: failed program was:" >&5
38113 sed 's/^/| /' conftest.$ac_ext >&5
38115 eval "$as_ac_var=no"
38118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38119 conftest$ac_exeext conftest.$ac_ext
38121 ac_res=`eval echo '${'$as_ac_var'}'`
38122 { echo "$as_me:$LINENO: result: $ac_res" >&5
38123 echo "${ECHO_T}$ac_res" >&6; }
38124 if test `eval echo '${'$as_ac_var'}'` = yes; then
38125 cat >>confdefs.h <<_ACEOF
38126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38128 cat >>confdefs.h <<\_ACEOF
38129 #define HAVE_FCHDIR 1
38136 for ac_func in strtoll
38138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38139 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38141 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38142 echo $ECHO_N "(cached) $ECHO_C" >&6
38144 cat >conftest.$ac_ext <<_ACEOF
38147 cat confdefs.h >>conftest.$ac_ext
38148 cat >>conftest.$ac_ext <<_ACEOF
38149 /* end confdefs.h. */
38150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38152 #define $ac_func innocuous_$ac_func
38154 /* System header to define __stub macros and hopefully few prototypes,
38155 which can conflict with char $ac_func (); below.
38156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38157 <limits.h> exists even on freestanding compilers. */
38160 # include <limits.h>
38162 # include <assert.h>
38167 /* Override any GCC internal prototype to avoid an error.
38168 Use char because int might match the return type of a GCC
38169 builtin and then its argument prototype would still apply. */
38174 /* The GNU C library defines this for functions which it implements
38175 to always fail with ENOSYS. Some functions are actually named
38176 something starting with __ and the normal name is an alias. */
38177 #if defined __stub_$ac_func || defined __stub___$ac_func
38184 return $ac_func ();
38189 rm -f conftest.$ac_objext conftest$ac_exeext
38190 if { (ac_try="$ac_link"
38191 case "(($ac_try" in
38192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38193 *) ac_try_echo=$ac_try;;
38195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38196 (eval "$ac_link") 2>conftest.er1
38198 grep -v '^ *+' conftest.er1 >conftest.err
38200 cat conftest.err >&5
38201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38202 (exit $ac_status); } && {
38203 test -z "$ac_c_werror_flag" ||
38204 test ! -s conftest.err
38205 } && test -s conftest$ac_exeext &&
38206 $as_test_x conftest$ac_exeext; then
38207 eval "$as_ac_var=yes"
38209 echo "$as_me: failed program was:" >&5
38210 sed 's/^/| /' conftest.$ac_ext >&5
38212 eval "$as_ac_var=no"
38215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38216 conftest$ac_exeext conftest.$ac_ext
38218 ac_res=`eval echo '${'$as_ac_var'}'`
38219 { echo "$as_me:$LINENO: result: $ac_res" >&5
38220 echo "${ECHO_T}$ac_res" >&6; }
38221 if test `eval echo '${'$as_ac_var'}'` = yes; then
38222 cat >>confdefs.h <<_ACEOF
38223 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38225 cat >>confdefs.h <<\_ACEOF
38226 #define HAVE_STRTOLL 1
38233 for ac_func in posix_fadvise
38235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38239 echo $ECHO_N "(cached) $ECHO_C" >&6
38241 cat >conftest.$ac_ext <<_ACEOF
38244 cat confdefs.h >>conftest.$ac_ext
38245 cat >>conftest.$ac_ext <<_ACEOF
38246 /* end confdefs.h. */
38247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38249 #define $ac_func innocuous_$ac_func
38251 /* System header to define __stub macros and hopefully few prototypes,
38252 which can conflict with char $ac_func (); below.
38253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38254 <limits.h> exists even on freestanding compilers. */
38257 # include <limits.h>
38259 # include <assert.h>
38264 /* Override any GCC internal prototype to avoid an error.
38265 Use char because int might match the return type of a GCC
38266 builtin and then its argument prototype would still apply. */
38271 /* The GNU C library defines this for functions which it implements
38272 to always fail with ENOSYS. Some functions are actually named
38273 something starting with __ and the normal name is an alias. */
38274 #if defined __stub_$ac_func || defined __stub___$ac_func
38281 return $ac_func ();
38286 rm -f conftest.$ac_objext conftest$ac_exeext
38287 if { (ac_try="$ac_link"
38288 case "(($ac_try" in
38289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38290 *) ac_try_echo=$ac_try;;
38292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38293 (eval "$ac_link") 2>conftest.er1
38295 grep -v '^ *+' conftest.er1 >conftest.err
38297 cat conftest.err >&5
38298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38299 (exit $ac_status); } && {
38300 test -z "$ac_c_werror_flag" ||
38301 test ! -s conftest.err
38302 } && test -s conftest$ac_exeext &&
38303 $as_test_x conftest$ac_exeext; then
38304 eval "$as_ac_var=yes"
38306 echo "$as_me: failed program was:" >&5
38307 sed 's/^/| /' conftest.$ac_ext >&5
38309 eval "$as_ac_var=no"
38312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38313 conftest$ac_exeext conftest.$ac_ext
38315 ac_res=`eval echo '${'$as_ac_var'}'`
38316 { echo "$as_me:$LINENO: result: $ac_res" >&5
38317 echo "${ECHO_T}$ac_res" >&6; }
38318 if test `eval echo '${'$as_ac_var'}'` = yes; then
38319 cat >>confdefs.h <<_ACEOF
38320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38327 for ac_func in fdatasync
38329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38330 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38332 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38333 echo $ECHO_N "(cached) $ECHO_C" >&6
38335 cat >conftest.$ac_ext <<_ACEOF
38338 cat confdefs.h >>conftest.$ac_ext
38339 cat >>conftest.$ac_ext <<_ACEOF
38340 /* end confdefs.h. */
38341 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38343 #define $ac_func innocuous_$ac_func
38345 /* System header to define __stub macros and hopefully few prototypes,
38346 which can conflict with char $ac_func (); below.
38347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38348 <limits.h> exists even on freestanding compilers. */
38351 # include <limits.h>
38353 # include <assert.h>
38358 /* Override any GCC internal prototype to avoid an error.
38359 Use char because int might match the return type of a GCC
38360 builtin and then its argument prototype would still apply. */
38365 /* The GNU C library defines this for functions which it implements
38366 to always fail with ENOSYS. Some functions are actually named
38367 something starting with __ and the normal name is an alias. */
38368 #if defined __stub_$ac_func || defined __stub___$ac_func
38375 return $ac_func ();
38380 rm -f conftest.$ac_objext conftest$ac_exeext
38381 if { (ac_try="$ac_link"
38382 case "(($ac_try" in
38383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38384 *) ac_try_echo=$ac_try;;
38386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38387 (eval "$ac_link") 2>conftest.er1
38389 grep -v '^ *+' conftest.er1 >conftest.err
38391 cat conftest.err >&5
38392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38393 (exit $ac_status); } && {
38394 test -z "$ac_c_werror_flag" ||
38395 test ! -s conftest.err
38396 } && test -s conftest$ac_exeext &&
38397 $as_test_x conftest$ac_exeext; then
38398 eval "$as_ac_var=yes"
38400 echo "$as_me: failed program was:" >&5
38401 sed 's/^/| /' conftest.$ac_ext >&5
38403 eval "$as_ac_var=no"
38406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38407 conftest$ac_exeext conftest.$ac_ext
38409 ac_res=`eval echo '${'$as_ac_var'}'`
38410 { echo "$as_me:$LINENO: result: $ac_res" >&5
38411 echo "${ECHO_T}$ac_res" >&6; }
38412 if test `eval echo '${'$as_ac_var'}'` = yes; then
38413 cat >>confdefs.h <<_ACEOF
38414 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38422 for ac_func in chflags
38424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38428 echo $ECHO_N "(cached) $ECHO_C" >&6
38430 cat >conftest.$ac_ext <<_ACEOF
38433 cat confdefs.h >>conftest.$ac_ext
38434 cat >>conftest.$ac_ext <<_ACEOF
38435 /* end confdefs.h. */
38436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38438 #define $ac_func innocuous_$ac_func
38440 /* System header to define __stub macros and hopefully few prototypes,
38441 which can conflict with char $ac_func (); below.
38442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38443 <limits.h> exists even on freestanding compilers. */
38446 # include <limits.h>
38448 # include <assert.h>
38453 /* Override any GCC internal prototype to avoid an error.
38454 Use char because int might match the return type of a GCC
38455 builtin and then its argument prototype would still apply. */
38460 /* The GNU C library defines this for functions which it implements
38461 to always fail with ENOSYS. Some functions are actually named
38462 something starting with __ and the normal name is an alias. */
38463 #if defined __stub_$ac_func || defined __stub___$ac_func
38470 return $ac_func ();
38475 rm -f conftest.$ac_objext conftest$ac_exeext
38476 if { (ac_try="$ac_link"
38477 case "(($ac_try" in
38478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38479 *) ac_try_echo=$ac_try;;
38481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38482 (eval "$ac_link") 2>conftest.er1
38484 grep -v '^ *+' conftest.er1 >conftest.err
38486 cat conftest.err >&5
38487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38488 (exit $ac_status); } && {
38489 test -z "$ac_c_werror_flag" ||
38490 test ! -s conftest.err
38491 } && test -s conftest$ac_exeext &&
38492 $as_test_x conftest$ac_exeext; then
38493 eval "$as_ac_var=yes"
38495 echo "$as_me: failed program was:" >&5
38496 sed 's/^/| /' conftest.$ac_ext >&5
38498 eval "$as_ac_var=no"
38501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38502 conftest$ac_exeext conftest.$ac_ext
38504 ac_res=`eval echo '${'$as_ac_var'}'`
38505 { echo "$as_me:$LINENO: result: $ac_res" >&5
38506 echo "${ECHO_T}$ac_res" >&6; }
38507 if test `eval echo '${'$as_ac_var'}'` = yes; then
38508 cat >>confdefs.h <<_ACEOF
38509 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38520 for ac_func in snprintf vsnprintf gethostid fseeko
38522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38526 echo $ECHO_N "(cached) $ECHO_C" >&6
38528 cat >conftest.$ac_ext <<_ACEOF
38531 cat confdefs.h >>conftest.$ac_ext
38532 cat >>conftest.$ac_ext <<_ACEOF
38533 /* end confdefs.h. */
38534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38536 #define $ac_func innocuous_$ac_func
38538 /* System header to define __stub macros and hopefully few prototypes,
38539 which can conflict with char $ac_func (); below.
38540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38541 <limits.h> exists even on freestanding compilers. */
38544 # include <limits.h>
38546 # include <assert.h>
38551 /* Override any GCC internal prototype to avoid an error.
38552 Use char because int might match the return type of a GCC
38553 builtin and then its argument prototype would still apply. */
38558 /* The GNU C library defines this for functions which it implements
38559 to always fail with ENOSYS. Some functions are actually named
38560 something starting with __ and the normal name is an alias. */
38561 #if defined __stub_$ac_func || defined __stub___$ac_func
38568 return $ac_func ();
38573 rm -f conftest.$ac_objext conftest$ac_exeext
38574 if { (ac_try="$ac_link"
38575 case "(($ac_try" in
38576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38577 *) ac_try_echo=$ac_try;;
38579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38580 (eval "$ac_link") 2>conftest.er1
38582 grep -v '^ *+' conftest.er1 >conftest.err
38584 cat conftest.err >&5
38585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38586 (exit $ac_status); } && {
38587 test -z "$ac_c_werror_flag" ||
38588 test ! -s conftest.err
38589 } && test -s conftest$ac_exeext &&
38590 $as_test_x conftest$ac_exeext; then
38591 eval "$as_ac_var=yes"
38593 echo "$as_me: failed program was:" >&5
38594 sed 's/^/| /' conftest.$ac_ext >&5
38596 eval "$as_ac_var=no"
38599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38600 conftest$ac_exeext conftest.$ac_ext
38602 ac_res=`eval echo '${'$as_ac_var'}'`
38603 { echo "$as_me:$LINENO: result: $ac_res" >&5
38604 echo "${ECHO_T}$ac_res" >&6; }
38605 if test `eval echo '${'$as_ac_var'}'` = yes; then
38606 cat >>confdefs.h <<_ACEOF
38607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38614 { echo "$as_me:$LINENO: checking for va_copy" >&5
38615 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38616 if test "${ba_cv_va_copy+set}" = set; then
38617 echo $ECHO_N "(cached) $ECHO_C" >&6
38620 cat >conftest.$ac_ext <<_ACEOF
38623 cat confdefs.h >>conftest.$ac_ext
38624 cat >>conftest.$ac_ext <<_ACEOF
38625 /* end confdefs.h. */
38627 #include <stdarg.h>
38628 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38629 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38635 call_use_va_copy(1,2,3)
38641 rm -f conftest.$ac_objext conftest$ac_exeext
38642 if { (ac_try="$ac_link"
38643 case "(($ac_try" in
38644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38645 *) ac_try_echo=$ac_try;;
38647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38648 (eval "$ac_link") 2>conftest.er1
38650 grep -v '^ *+' conftest.er1 >conftest.err
38652 cat conftest.err >&5
38653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38654 (exit $ac_status); } && {
38655 test -z "$ac_c_werror_flag" ||
38656 test ! -s conftest.err
38657 } && test -s conftest$ac_exeext &&
38658 $as_test_x conftest$ac_exeext; then
38663 echo "$as_me: failed program was:" >&5
38664 sed 's/^/| /' conftest.$ac_ext >&5
38672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38673 conftest$ac_exeext conftest.$ac_ext
38677 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38678 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38679 test $ba_cv_va_copy = yes &&
38680 cat >>confdefs.h <<\_ACEOF
38681 #define HAVE_VA_COPY 1
38689 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38691 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38692 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38693 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38694 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38695 echo $ECHO_N "(cached) $ECHO_C" >&6
38697 cat >conftest.$ac_ext <<_ACEOF
38700 cat confdefs.h >>conftest.$ac_ext
38701 cat >>conftest.$ac_ext <<_ACEOF
38702 /* end confdefs.h. */
38703 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38705 #define $ac_func innocuous_$ac_func
38707 /* System header to define __stub macros and hopefully few prototypes,
38708 which can conflict with char $ac_func (); below.
38709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38710 <limits.h> exists even on freestanding compilers. */
38713 # include <limits.h>
38715 # include <assert.h>
38720 /* Override any GCC internal prototype to avoid an error.
38721 Use char because int might match the return type of a GCC
38722 builtin and then its argument prototype would still apply. */
38727 /* The GNU C library defines this for functions which it implements
38728 to always fail with ENOSYS. Some functions are actually named
38729 something starting with __ and the normal name is an alias. */
38730 #if defined __stub_$ac_func || defined __stub___$ac_func
38737 return $ac_func ();
38742 rm -f conftest.$ac_objext conftest$ac_exeext
38743 if { (ac_try="$ac_link"
38744 case "(($ac_try" in
38745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38746 *) ac_try_echo=$ac_try;;
38748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38749 (eval "$ac_link") 2>conftest.er1
38751 grep -v '^ *+' conftest.er1 >conftest.err
38753 cat conftest.err >&5
38754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38755 (exit $ac_status); } && {
38756 test -z "$ac_c_werror_flag" ||
38757 test ! -s conftest.err
38758 } && test -s conftest$ac_exeext &&
38759 $as_test_x conftest$ac_exeext; then
38760 eval "$as_ac_var=yes"
38762 echo "$as_me: failed program was:" >&5
38763 sed 's/^/| /' conftest.$ac_ext >&5
38765 eval "$as_ac_var=no"
38768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38769 conftest$ac_exeext conftest.$ac_ext
38771 ac_res=`eval echo '${'$as_ac_var'}'`
38772 { echo "$as_me:$LINENO: result: $ac_res" >&5
38773 echo "${ECHO_T}$ac_res" >&6; }
38774 if test `eval echo '${'$as_ac_var'}'` = yes; then
38775 cat >>confdefs.h <<_ACEOF
38776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38783 # If resolver functions are not in libc check for -lnsl or -lresolv.
38784 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38785 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38786 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38787 echo $ECHO_N "(cached) $ECHO_C" >&6
38789 cat >conftest.$ac_ext <<_ACEOF
38792 cat confdefs.h >>conftest.$ac_ext
38793 cat >>conftest.$ac_ext <<_ACEOF
38794 /* end confdefs.h. */
38795 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38797 #define gethostbyname_r innocuous_gethostbyname_r
38799 /* System header to define __stub macros and hopefully few prototypes,
38800 which can conflict with char gethostbyname_r (); below.
38801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38802 <limits.h> exists even on freestanding compilers. */
38805 # include <limits.h>
38807 # include <assert.h>
38810 #undef gethostbyname_r
38812 /* Override any GCC internal prototype to avoid an error.
38813 Use char because int might match the return type of a GCC
38814 builtin and then its argument prototype would still apply. */
38818 char gethostbyname_r ();
38819 /* The GNU C library defines this for functions which it implements
38820 to always fail with ENOSYS. Some functions are actually named
38821 something starting with __ and the normal name is an alias. */
38822 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38829 return gethostbyname_r ();
38834 rm -f conftest.$ac_objext conftest$ac_exeext
38835 if { (ac_try="$ac_link"
38836 case "(($ac_try" in
38837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38838 *) ac_try_echo=$ac_try;;
38840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38841 (eval "$ac_link") 2>conftest.er1
38843 grep -v '^ *+' conftest.er1 >conftest.err
38845 cat conftest.err >&5
38846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38847 (exit $ac_status); } && {
38848 test -z "$ac_c_werror_flag" ||
38849 test ! -s conftest.err
38850 } && test -s conftest$ac_exeext &&
38851 $as_test_x conftest$ac_exeext; then
38852 ac_cv_func_gethostbyname_r=yes
38854 echo "$as_me: failed program was:" >&5
38855 sed 's/^/| /' conftest.$ac_ext >&5
38857 ac_cv_func_gethostbyname_r=no
38860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38861 conftest$ac_exeext conftest.$ac_ext
38863 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38864 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38865 if test $ac_cv_func_gethostbyname_r = yes; then
38866 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38867 echo "${ECHO_T}using libc's resolver" >&6; }
38870 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38871 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38872 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38873 echo $ECHO_N "(cached) $ECHO_C" >&6
38875 ac_check_lib_save_LIBS=$LIBS
38877 cat >conftest.$ac_ext <<_ACEOF
38880 cat confdefs.h >>conftest.$ac_ext
38881 cat >>conftest.$ac_ext <<_ACEOF
38882 /* end confdefs.h. */
38884 /* Override any GCC internal prototype to avoid an error.
38885 Use char because int might match the return type of a GCC
38886 builtin and then its argument prototype would still apply. */
38890 char gethostbyname_r ();
38894 return gethostbyname_r ();
38899 rm -f conftest.$ac_objext conftest$ac_exeext
38900 if { (ac_try="$ac_link"
38901 case "(($ac_try" in
38902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38903 *) ac_try_echo=$ac_try;;
38905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38906 (eval "$ac_link") 2>conftest.er1
38908 grep -v '^ *+' conftest.er1 >conftest.err
38910 cat conftest.err >&5
38911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38912 (exit $ac_status); } && {
38913 test -z "$ac_c_werror_flag" ||
38914 test ! -s conftest.err
38915 } && test -s conftest$ac_exeext &&
38916 $as_test_x conftest$ac_exeext; then
38917 ac_cv_lib_nsl_gethostbyname_r=yes
38919 echo "$as_me: failed program was:" >&5
38920 sed 's/^/| /' conftest.$ac_ext >&5
38922 ac_cv_lib_nsl_gethostbyname_r=no
38925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38926 conftest$ac_exeext conftest.$ac_ext
38927 LIBS=$ac_check_lib_save_LIBS
38929 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38930 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38931 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38932 cat >>confdefs.h <<_ACEOF
38933 #define HAVE_LIBNSL 1
38941 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38942 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38943 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38944 echo $ECHO_N "(cached) $ECHO_C" >&6
38946 ac_check_lib_save_LIBS=$LIBS
38947 LIBS="-lresolv $LIBS"
38948 cat >conftest.$ac_ext <<_ACEOF
38951 cat confdefs.h >>conftest.$ac_ext
38952 cat >>conftest.$ac_ext <<_ACEOF
38953 /* end confdefs.h. */
38955 /* Override any GCC internal prototype to avoid an error.
38956 Use char because int might match the return type of a GCC
38957 builtin and then its argument prototype would still apply. */
38961 char gethostbyname_r ();
38965 return gethostbyname_r ();
38970 rm -f conftest.$ac_objext conftest$ac_exeext
38971 if { (ac_try="$ac_link"
38972 case "(($ac_try" in
38973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38974 *) ac_try_echo=$ac_try;;
38976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38977 (eval "$ac_link") 2>conftest.er1
38979 grep -v '^ *+' conftest.er1 >conftest.err
38981 cat conftest.err >&5
38982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38983 (exit $ac_status); } && {
38984 test -z "$ac_c_werror_flag" ||
38985 test ! -s conftest.err
38986 } && test -s conftest$ac_exeext &&
38987 $as_test_x conftest$ac_exeext; then
38988 ac_cv_lib_resolv_gethostbyname_r=yes
38990 echo "$as_me: failed program was:" >&5
38991 sed 's/^/| /' conftest.$ac_ext >&5
38993 ac_cv_lib_resolv_gethostbyname_r=no
38996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38997 conftest$ac_exeext conftest.$ac_ext
38998 LIBS=$ac_check_lib_save_LIBS
39000 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39001 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39002 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39003 cat >>confdefs.h <<_ACEOF
39004 #define HAVE_LIBRESOLV 1
39007 LIBS="-lresolv $LIBS"
39015 for ac_func in inet_pton
39017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39018 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39020 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39021 echo $ECHO_N "(cached) $ECHO_C" >&6
39023 cat >conftest.$ac_ext <<_ACEOF
39026 cat confdefs.h >>conftest.$ac_ext
39027 cat >>conftest.$ac_ext <<_ACEOF
39028 /* end confdefs.h. */
39029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39031 #define $ac_func innocuous_$ac_func
39033 /* System header to define __stub macros and hopefully few prototypes,
39034 which can conflict with char $ac_func (); below.
39035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39036 <limits.h> exists even on freestanding compilers. */
39039 # include <limits.h>
39041 # include <assert.h>
39046 /* Override any GCC internal prototype to avoid an error.
39047 Use char because int might match the return type of a GCC
39048 builtin and then its argument prototype would still apply. */
39053 /* The GNU C library defines this for functions which it implements
39054 to always fail with ENOSYS. Some functions are actually named
39055 something starting with __ and the normal name is an alias. */
39056 #if defined __stub_$ac_func || defined __stub___$ac_func
39063 return $ac_func ();
39068 rm -f conftest.$ac_objext conftest$ac_exeext
39069 if { (ac_try="$ac_link"
39070 case "(($ac_try" in
39071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39072 *) ac_try_echo=$ac_try;;
39074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39075 (eval "$ac_link") 2>conftest.er1
39077 grep -v '^ *+' conftest.er1 >conftest.err
39079 cat conftest.err >&5
39080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39081 (exit $ac_status); } && {
39082 test -z "$ac_c_werror_flag" ||
39083 test ! -s conftest.err
39084 } && test -s conftest$ac_exeext &&
39085 $as_test_x conftest$ac_exeext; then
39086 eval "$as_ac_var=yes"
39088 echo "$as_me: failed program was:" >&5
39089 sed 's/^/| /' conftest.$ac_ext >&5
39091 eval "$as_ac_var=no"
39094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39095 conftest$ac_exeext conftest.$ac_ext
39097 ac_res=`eval echo '${'$as_ac_var'}'`
39098 { echo "$as_me:$LINENO: result: $ac_res" >&5
39099 echo "${ECHO_T}$ac_res" >&6; }
39100 if test `eval echo '${'$as_ac_var'}'` = yes; then
39101 cat >>confdefs.h <<_ACEOF
39102 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39104 cat >>confdefs.h <<\_ACEOF
39105 #define HAVE_INET_PTON 1
39112 for ac_func in inet_ntop
39114 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39115 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39116 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39117 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39118 echo $ECHO_N "(cached) $ECHO_C" >&6
39120 cat >conftest.$ac_ext <<_ACEOF
39123 cat confdefs.h >>conftest.$ac_ext
39124 cat >>conftest.$ac_ext <<_ACEOF
39125 /* end confdefs.h. */
39126 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39128 #define $ac_func innocuous_$ac_func
39130 /* System header to define __stub macros and hopefully few prototypes,
39131 which can conflict with char $ac_func (); below.
39132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39133 <limits.h> exists even on freestanding compilers. */
39136 # include <limits.h>
39138 # include <assert.h>
39143 /* Override any GCC internal prototype to avoid an error.
39144 Use char because int might match the return type of a GCC
39145 builtin and then its argument prototype would still apply. */
39150 /* The GNU C library defines this for functions which it implements
39151 to always fail with ENOSYS. Some functions are actually named
39152 something starting with __ and the normal name is an alias. */
39153 #if defined __stub_$ac_func || defined __stub___$ac_func
39160 return $ac_func ();
39165 rm -f conftest.$ac_objext conftest$ac_exeext
39166 if { (ac_try="$ac_link"
39167 case "(($ac_try" in
39168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39169 *) ac_try_echo=$ac_try;;
39171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39172 (eval "$ac_link") 2>conftest.er1
39174 grep -v '^ *+' conftest.er1 >conftest.err
39176 cat conftest.err >&5
39177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39178 (exit $ac_status); } && {
39179 test -z "$ac_c_werror_flag" ||
39180 test ! -s conftest.err
39181 } && test -s conftest$ac_exeext &&
39182 $as_test_x conftest$ac_exeext; then
39183 eval "$as_ac_var=yes"
39185 echo "$as_me: failed program was:" >&5
39186 sed 's/^/| /' conftest.$ac_ext >&5
39188 eval "$as_ac_var=no"
39191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39192 conftest$ac_exeext conftest.$ac_ext
39194 ac_res=`eval echo '${'$as_ac_var'}'`
39195 { echo "$as_me:$LINENO: result: $ac_res" >&5
39196 echo "${ECHO_T}$ac_res" >&6; }
39197 if test `eval echo '${'$as_ac_var'}'` = yes; then
39198 cat >>confdefs.h <<_ACEOF
39199 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39201 cat >>confdefs.h <<\_ACEOF
39202 #define HAVE_INET_NTOP 1
39209 for ac_func in gethostbyname2
39211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39215 echo $ECHO_N "(cached) $ECHO_C" >&6
39217 cat >conftest.$ac_ext <<_ACEOF
39220 cat confdefs.h >>conftest.$ac_ext
39221 cat >>conftest.$ac_ext <<_ACEOF
39222 /* end confdefs.h. */
39223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39225 #define $ac_func innocuous_$ac_func
39227 /* System header to define __stub macros and hopefully few prototypes,
39228 which can conflict with char $ac_func (); below.
39229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39230 <limits.h> exists even on freestanding compilers. */
39233 # include <limits.h>
39235 # include <assert.h>
39240 /* Override any GCC internal prototype to avoid an error.
39241 Use char because int might match the return type of a GCC
39242 builtin and then its argument prototype would still apply. */
39247 /* The GNU C library defines this for functions which it implements
39248 to always fail with ENOSYS. Some functions are actually named
39249 something starting with __ and the normal name is an alias. */
39250 #if defined __stub_$ac_func || defined __stub___$ac_func
39257 return $ac_func ();
39262 rm -f conftest.$ac_objext conftest$ac_exeext
39263 if { (ac_try="$ac_link"
39264 case "(($ac_try" in
39265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39266 *) ac_try_echo=$ac_try;;
39268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39269 (eval "$ac_link") 2>conftest.er1
39271 grep -v '^ *+' conftest.er1 >conftest.err
39273 cat conftest.err >&5
39274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39275 (exit $ac_status); } && {
39276 test -z "$ac_c_werror_flag" ||
39277 test ! -s conftest.err
39278 } && test -s conftest$ac_exeext &&
39279 $as_test_x conftest$ac_exeext; then
39280 eval "$as_ac_var=yes"
39282 echo "$as_me: failed program was:" >&5
39283 sed 's/^/| /' conftest.$ac_ext >&5
39285 eval "$as_ac_var=no"
39288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39289 conftest$ac_exeext conftest.$ac_ext
39291 ac_res=`eval echo '${'$as_ac_var'}'`
39292 { echo "$as_me:$LINENO: result: $ac_res" >&5
39293 echo "${ECHO_T}$ac_res" >&6; }
39294 if test `eval echo '${'$as_ac_var'}'` = yes; then
39295 cat >>confdefs.h <<_ACEOF
39296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39298 cat >>confdefs.h <<\_ACEOF
39299 #define HAVE_GETHOSTBYNAME2 1
39306 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39307 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39308 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39309 echo $ECHO_N "(cached) $ECHO_C" >&6
39312 cat >conftest.$ac_ext <<_ACEOF
39315 cat confdefs.h >>conftest.$ac_ext
39316 cat >>conftest.$ac_ext <<_ACEOF
39317 /* end confdefs.h. */
39319 #include <sys/socket.h>
39325 struct sockaddr s; s.sa_len;
39331 rm -f conftest.$ac_objext
39332 if { (ac_try="$ac_compile"
39333 case "(($ac_try" in
39334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39335 *) ac_try_echo=$ac_try;;
39337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39338 (eval "$ac_compile") 2>conftest.er1
39340 grep -v '^ *+' conftest.er1 >conftest.err
39342 cat conftest.err >&5
39343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39344 (exit $ac_status); } && {
39345 test -z "$ac_c_werror_flag" ||
39346 test ! -s conftest.err
39347 } && test -s conftest.$ac_objext; then
39349 ac_cv_struct_sockaddr_sa_len=yes
39352 echo "$as_me: failed program was:" >&5
39353 sed 's/^/| /' conftest.$ac_ext >&5
39355 ac_cv_struct_sockaddr_sa_len=no
39360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39364 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39365 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39367 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39369 cat >>confdefs.h <<\_ACEOF
39370 #define HAVE_SA_LEN 1
39376 for ac_func in strftime
39378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39382 echo $ECHO_N "(cached) $ECHO_C" >&6
39384 cat >conftest.$ac_ext <<_ACEOF
39387 cat confdefs.h >>conftest.$ac_ext
39388 cat >>conftest.$ac_ext <<_ACEOF
39389 /* end confdefs.h. */
39390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39392 #define $ac_func innocuous_$ac_func
39394 /* System header to define __stub macros and hopefully few prototypes,
39395 which can conflict with char $ac_func (); below.
39396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39397 <limits.h> exists even on freestanding compilers. */
39400 # include <limits.h>
39402 # include <assert.h>
39407 /* Override any GCC internal prototype to avoid an error.
39408 Use char because int might match the return type of a GCC
39409 builtin and then its argument prototype would still apply. */
39414 /* The GNU C library defines this for functions which it implements
39415 to always fail with ENOSYS. Some functions are actually named
39416 something starting with __ and the normal name is an alias. */
39417 #if defined __stub_$ac_func || defined __stub___$ac_func
39424 return $ac_func ();
39429 rm -f conftest.$ac_objext conftest$ac_exeext
39430 if { (ac_try="$ac_link"
39431 case "(($ac_try" in
39432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39433 *) ac_try_echo=$ac_try;;
39435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39436 (eval "$ac_link") 2>conftest.er1
39438 grep -v '^ *+' conftest.er1 >conftest.err
39440 cat conftest.err >&5
39441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39442 (exit $ac_status); } && {
39443 test -z "$ac_c_werror_flag" ||
39444 test ! -s conftest.err
39445 } && test -s conftest$ac_exeext &&
39446 $as_test_x conftest$ac_exeext; then
39447 eval "$as_ac_var=yes"
39449 echo "$as_me: failed program was:" >&5
39450 sed 's/^/| /' conftest.$ac_ext >&5
39452 eval "$as_ac_var=no"
39455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39456 conftest$ac_exeext conftest.$ac_ext
39458 ac_res=`eval echo '${'$as_ac_var'}'`
39459 { echo "$as_me:$LINENO: result: $ac_res" >&5
39460 echo "${ECHO_T}$ac_res" >&6; }
39461 if test `eval echo '${'$as_ac_var'}'` = yes; then
39462 cat >>confdefs.h <<_ACEOF
39463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39467 # strftime is in -lintl on SCO UNIX.
39468 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39469 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39470 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39471 echo $ECHO_N "(cached) $ECHO_C" >&6
39473 ac_check_lib_save_LIBS=$LIBS
39474 LIBS="-lintl $LIBS"
39475 cat >conftest.$ac_ext <<_ACEOF
39478 cat confdefs.h >>conftest.$ac_ext
39479 cat >>conftest.$ac_ext <<_ACEOF
39480 /* end confdefs.h. */
39482 /* Override any GCC internal prototype to avoid an error.
39483 Use char because int might match the return type of a GCC
39484 builtin and then its argument prototype would still apply. */
39492 return strftime ();
39497 rm -f conftest.$ac_objext conftest$ac_exeext
39498 if { (ac_try="$ac_link"
39499 case "(($ac_try" in
39500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39501 *) ac_try_echo=$ac_try;;
39503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39504 (eval "$ac_link") 2>conftest.er1
39506 grep -v '^ *+' conftest.er1 >conftest.err
39508 cat conftest.err >&5
39509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39510 (exit $ac_status); } && {
39511 test -z "$ac_c_werror_flag" ||
39512 test ! -s conftest.err
39513 } && test -s conftest$ac_exeext &&
39514 $as_test_x conftest$ac_exeext; then
39515 ac_cv_lib_intl_strftime=yes
39517 echo "$as_me: failed program was:" >&5
39518 sed 's/^/| /' conftest.$ac_ext >&5
39520 ac_cv_lib_intl_strftime=no
39523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39524 conftest$ac_exeext conftest.$ac_ext
39525 LIBS=$ac_check_lib_save_LIBS
39527 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39528 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39529 if test $ac_cv_lib_intl_strftime = yes; then
39530 cat >>confdefs.h <<\_ACEOF
39531 #define HAVE_STRFTIME 1
39534 LIBS="-lintl $LIBS"
39541 for ac_func in vprintf
39543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39547 echo $ECHO_N "(cached) $ECHO_C" >&6
39549 cat >conftest.$ac_ext <<_ACEOF
39552 cat confdefs.h >>conftest.$ac_ext
39553 cat >>conftest.$ac_ext <<_ACEOF
39554 /* end confdefs.h. */
39555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39557 #define $ac_func innocuous_$ac_func
39559 /* System header to define __stub macros and hopefully few prototypes,
39560 which can conflict with char $ac_func (); below.
39561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39562 <limits.h> exists even on freestanding compilers. */
39565 # include <limits.h>
39567 # include <assert.h>
39572 /* Override any GCC internal prototype to avoid an error.
39573 Use char because int might match the return type of a GCC
39574 builtin and then its argument prototype would still apply. */
39579 /* The GNU C library defines this for functions which it implements
39580 to always fail with ENOSYS. Some functions are actually named
39581 something starting with __ and the normal name is an alias. */
39582 #if defined __stub_$ac_func || defined __stub___$ac_func
39589 return $ac_func ();
39594 rm -f conftest.$ac_objext conftest$ac_exeext
39595 if { (ac_try="$ac_link"
39596 case "(($ac_try" in
39597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39598 *) ac_try_echo=$ac_try;;
39600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39601 (eval "$ac_link") 2>conftest.er1
39603 grep -v '^ *+' conftest.er1 >conftest.err
39605 cat conftest.err >&5
39606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607 (exit $ac_status); } && {
39608 test -z "$ac_c_werror_flag" ||
39609 test ! -s conftest.err
39610 } && test -s conftest$ac_exeext &&
39611 $as_test_x conftest$ac_exeext; then
39612 eval "$as_ac_var=yes"
39614 echo "$as_me: failed program was:" >&5
39615 sed 's/^/| /' conftest.$ac_ext >&5
39617 eval "$as_ac_var=no"
39620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39621 conftest$ac_exeext conftest.$ac_ext
39623 ac_res=`eval echo '${'$as_ac_var'}'`
39624 { echo "$as_me:$LINENO: result: $ac_res" >&5
39625 echo "${ECHO_T}$ac_res" >&6; }
39626 if test `eval echo '${'$as_ac_var'}'` = yes; then
39627 cat >>confdefs.h <<_ACEOF
39628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39631 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39632 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39633 if test "${ac_cv_func__doprnt+set}" = set; then
39634 echo $ECHO_N "(cached) $ECHO_C" >&6
39636 cat >conftest.$ac_ext <<_ACEOF
39639 cat confdefs.h >>conftest.$ac_ext
39640 cat >>conftest.$ac_ext <<_ACEOF
39641 /* end confdefs.h. */
39642 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39644 #define _doprnt innocuous__doprnt
39646 /* System header to define __stub macros and hopefully few prototypes,
39647 which can conflict with char _doprnt (); below.
39648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39649 <limits.h> exists even on freestanding compilers. */
39652 # include <limits.h>
39654 # include <assert.h>
39659 /* Override any GCC internal prototype to avoid an error.
39660 Use char because int might match the return type of a GCC
39661 builtin and then its argument prototype would still apply. */
39666 /* The GNU C library defines this for functions which it implements
39667 to always fail with ENOSYS. Some functions are actually named
39668 something starting with __ and the normal name is an alias. */
39669 #if defined __stub__doprnt || defined __stub____doprnt
39681 rm -f conftest.$ac_objext conftest$ac_exeext
39682 if { (ac_try="$ac_link"
39683 case "(($ac_try" in
39684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39685 *) ac_try_echo=$ac_try;;
39687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39688 (eval "$ac_link") 2>conftest.er1
39690 grep -v '^ *+' conftest.er1 >conftest.err
39692 cat conftest.err >&5
39693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39694 (exit $ac_status); } && {
39695 test -z "$ac_c_werror_flag" ||
39696 test ! -s conftest.err
39697 } && test -s conftest$ac_exeext &&
39698 $as_test_x conftest$ac_exeext; then
39699 ac_cv_func__doprnt=yes
39701 echo "$as_me: failed program was:" >&5
39702 sed 's/^/| /' conftest.$ac_ext >&5
39704 ac_cv_func__doprnt=no
39707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39708 conftest$ac_exeext conftest.$ac_ext
39710 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39711 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39712 if test $ac_cv_func__doprnt = yes; then
39714 cat >>confdefs.h <<\_ACEOF
39715 #define HAVE_DOPRNT 1
39724 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39725 # for constant arguments. Useless!
39726 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39727 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39728 if test "${ac_cv_working_alloca_h+set}" = set; then
39729 echo $ECHO_N "(cached) $ECHO_C" >&6
39731 cat >conftest.$ac_ext <<_ACEOF
39734 cat confdefs.h >>conftest.$ac_ext
39735 cat >>conftest.$ac_ext <<_ACEOF
39736 /* end confdefs.h. */
39737 #include <alloca.h>
39741 char *p = (char *) alloca (2 * sizeof (int));
39747 rm -f conftest.$ac_objext conftest$ac_exeext
39748 if { (ac_try="$ac_link"
39749 case "(($ac_try" in
39750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39751 *) ac_try_echo=$ac_try;;
39753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39754 (eval "$ac_link") 2>conftest.er1
39756 grep -v '^ *+' conftest.er1 >conftest.err
39758 cat conftest.err >&5
39759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39760 (exit $ac_status); } && {
39761 test -z "$ac_c_werror_flag" ||
39762 test ! -s conftest.err
39763 } && test -s conftest$ac_exeext &&
39764 $as_test_x conftest$ac_exeext; then
39765 ac_cv_working_alloca_h=yes
39767 echo "$as_me: failed program was:" >&5
39768 sed 's/^/| /' conftest.$ac_ext >&5
39770 ac_cv_working_alloca_h=no
39773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39774 conftest$ac_exeext conftest.$ac_ext
39776 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
39777 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39778 if test $ac_cv_working_alloca_h = yes; then
39780 cat >>confdefs.h <<\_ACEOF
39781 #define HAVE_ALLOCA_H 1
39786 { echo "$as_me:$LINENO: checking for alloca" >&5
39787 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39788 if test "${ac_cv_func_alloca_works+set}" = set; then
39789 echo $ECHO_N "(cached) $ECHO_C" >&6
39791 cat >conftest.$ac_ext <<_ACEOF
39794 cat confdefs.h >>conftest.$ac_ext
39795 cat >>conftest.$ac_ext <<_ACEOF
39796 /* end confdefs.h. */
39798 # define alloca __builtin_alloca
39801 # include <malloc.h>
39802 # define alloca _alloca
39804 # ifdef HAVE_ALLOCA_H
39805 # include <alloca.h>
39810 # ifndef alloca /* predefined by HP cc +Olibcalls */
39821 char *p = (char *) alloca (1);
39827 rm -f conftest.$ac_objext conftest$ac_exeext
39828 if { (ac_try="$ac_link"
39829 case "(($ac_try" in
39830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39831 *) ac_try_echo=$ac_try;;
39833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39834 (eval "$ac_link") 2>conftest.er1
39836 grep -v '^ *+' conftest.er1 >conftest.err
39838 cat conftest.err >&5
39839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39840 (exit $ac_status); } && {
39841 test -z "$ac_c_werror_flag" ||
39842 test ! -s conftest.err
39843 } && test -s conftest$ac_exeext &&
39844 $as_test_x conftest$ac_exeext; then
39845 ac_cv_func_alloca_works=yes
39847 echo "$as_me: failed program was:" >&5
39848 sed 's/^/| /' conftest.$ac_ext >&5
39850 ac_cv_func_alloca_works=no
39853 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39854 conftest$ac_exeext conftest.$ac_ext
39856 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39857 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39859 if test $ac_cv_func_alloca_works = yes; then
39861 cat >>confdefs.h <<\_ACEOF
39862 #define HAVE_ALLOCA 1
39866 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39867 # that cause trouble. Some versions do not even contain alloca or
39868 # contain a buggy version. If you still want to use their alloca,
39869 # use ar to extract alloca.o from them instead of compiling alloca.c.
39871 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39873 cat >>confdefs.h <<\_ACEOF
39878 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39879 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39880 if test "${ac_cv_os_cray+set}" = set; then
39881 echo $ECHO_N "(cached) $ECHO_C" >&6
39883 cat >conftest.$ac_ext <<_ACEOF
39886 cat confdefs.h >>conftest.$ac_ext
39887 cat >>conftest.$ac_ext <<_ACEOF
39888 /* end confdefs.h. */
39889 #if defined CRAY && ! defined CRAY2
39896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39897 $EGREP "webecray" >/dev/null 2>&1; then
39905 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39906 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39907 if test $ac_cv_os_cray = yes; then
39908 for ac_func in _getb67 GETB67 getb67; do
39909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39913 echo $ECHO_N "(cached) $ECHO_C" >&6
39915 cat >conftest.$ac_ext <<_ACEOF
39918 cat confdefs.h >>conftest.$ac_ext
39919 cat >>conftest.$ac_ext <<_ACEOF
39920 /* end confdefs.h. */
39921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39923 #define $ac_func innocuous_$ac_func
39925 /* System header to define __stub macros and hopefully few prototypes,
39926 which can conflict with char $ac_func (); below.
39927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39928 <limits.h> exists even on freestanding compilers. */
39931 # include <limits.h>
39933 # include <assert.h>
39938 /* Override any GCC internal prototype to avoid an error.
39939 Use char because int might match the return type of a GCC
39940 builtin and then its argument prototype would still apply. */
39945 /* The GNU C library defines this for functions which it implements
39946 to always fail with ENOSYS. Some functions are actually named
39947 something starting with __ and the normal name is an alias. */
39948 #if defined __stub_$ac_func || defined __stub___$ac_func
39955 return $ac_func ();
39960 rm -f conftest.$ac_objext conftest$ac_exeext
39961 if { (ac_try="$ac_link"
39962 case "(($ac_try" in
39963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39964 *) ac_try_echo=$ac_try;;
39966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39967 (eval "$ac_link") 2>conftest.er1
39969 grep -v '^ *+' conftest.er1 >conftest.err
39971 cat conftest.err >&5
39972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973 (exit $ac_status); } && {
39974 test -z "$ac_c_werror_flag" ||
39975 test ! -s conftest.err
39976 } && test -s conftest$ac_exeext &&
39977 $as_test_x conftest$ac_exeext; then
39978 eval "$as_ac_var=yes"
39980 echo "$as_me: failed program was:" >&5
39981 sed 's/^/| /' conftest.$ac_ext >&5
39983 eval "$as_ac_var=no"
39986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39987 conftest$ac_exeext conftest.$ac_ext
39989 ac_res=`eval echo '${'$as_ac_var'}'`
39990 { echo "$as_me:$LINENO: result: $ac_res" >&5
39991 echo "${ECHO_T}$ac_res" >&6; }
39992 if test `eval echo '${'$as_ac_var'}'` = yes; then
39994 cat >>confdefs.h <<_ACEOF
39995 #define CRAY_STACKSEG_END $ac_func
40004 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40005 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40006 if test "${ac_cv_c_stack_direction+set}" = set; then
40007 echo $ECHO_N "(cached) $ECHO_C" >&6
40009 if test "$cross_compiling" = yes; then
40010 ac_cv_c_stack_direction=0
40012 cat >conftest.$ac_ext <<_ACEOF
40015 cat confdefs.h >>conftest.$ac_ext
40016 cat >>conftest.$ac_ext <<_ACEOF
40017 /* end confdefs.h. */
40018 $ac_includes_default
40020 find_stack_direction ()
40022 static char *addr = 0;
40027 return find_stack_direction ();
40030 return (&dummy > addr) ? 1 : -1;
40036 return find_stack_direction () < 0;
40039 rm -f conftest$ac_exeext
40040 if { (ac_try="$ac_link"
40041 case "(($ac_try" in
40042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40043 *) ac_try_echo=$ac_try;;
40045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40046 (eval "$ac_link") 2>&5
40048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40050 { (case "(($ac_try" in
40051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40052 *) ac_try_echo=$ac_try;;
40054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40055 (eval "$ac_try") 2>&5
40057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058 (exit $ac_status); }; }; then
40059 ac_cv_c_stack_direction=1
40061 echo "$as_me: program exited with status $ac_status" >&5
40062 echo "$as_me: failed program was:" >&5
40063 sed 's/^/| /' conftest.$ac_ext >&5
40065 ( exit $ac_status )
40066 ac_cv_c_stack_direction=-1
40068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40073 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40074 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40076 cat >>confdefs.h <<_ACEOF
40077 #define STACK_DIRECTION $ac_cv_c_stack_direction
40083 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40084 # -lseq on Dynix/PTX, -lgen on Unixware.
40085 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40086 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40087 if test "${ac_cv_search_getmntent+set}" = set; then
40088 echo $ECHO_N "(cached) $ECHO_C" >&6
40090 ac_func_search_save_LIBS=$LIBS
40091 cat >conftest.$ac_ext <<_ACEOF
40094 cat confdefs.h >>conftest.$ac_ext
40095 cat >>conftest.$ac_ext <<_ACEOF
40096 /* end confdefs.h. */
40098 /* Override any GCC internal prototype to avoid an error.
40099 Use char because int might match the return type of a GCC
40100 builtin and then its argument prototype would still apply. */
40108 return getmntent ();
40113 for ac_lib in '' sun seq gen; do
40114 if test -z "$ac_lib"; then
40115 ac_res="none required"
40118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40120 rm -f conftest.$ac_objext conftest$ac_exeext
40121 if { (ac_try="$ac_link"
40122 case "(($ac_try" in
40123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40124 *) ac_try_echo=$ac_try;;
40126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40127 (eval "$ac_link") 2>conftest.er1
40129 grep -v '^ *+' conftest.er1 >conftest.err
40131 cat conftest.err >&5
40132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40133 (exit $ac_status); } && {
40134 test -z "$ac_c_werror_flag" ||
40135 test ! -s conftest.err
40136 } && test -s conftest$ac_exeext &&
40137 $as_test_x conftest$ac_exeext; then
40138 ac_cv_search_getmntent=$ac_res
40140 echo "$as_me: failed program was:" >&5
40141 sed 's/^/| /' conftest.$ac_ext >&5
40146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40148 if test "${ac_cv_search_getmntent+set}" = set; then
40152 if test "${ac_cv_search_getmntent+set}" = set; then
40155 ac_cv_search_getmntent=no
40157 rm conftest.$ac_ext
40158 LIBS=$ac_func_search_save_LIBS
40160 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40161 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40162 ac_res=$ac_cv_search_getmntent
40163 if test "$ac_res" != no; then
40164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40165 ac_cv_func_getmntent=yes
40167 cat >>confdefs.h <<\_ACEOF
40168 #define HAVE_GETMNTENT 1
40172 ac_cv_func_getmntent=no
40176 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40177 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40178 if test "${ac_cv_func_closedir_void+set}" = set; then
40179 echo $ECHO_N "(cached) $ECHO_C" >&6
40181 if test "$cross_compiling" = yes; then
40182 ac_cv_func_closedir_void=yes
40184 cat >conftest.$ac_ext <<_ACEOF
40187 cat confdefs.h >>conftest.$ac_ext
40188 cat >>conftest.$ac_ext <<_ACEOF
40189 /* end confdefs.h. */
40190 $ac_includes_default
40191 #include <$ac_header_dirent>
40192 #ifndef __cplusplus
40199 return closedir (opendir (".")) != 0;
40204 rm -f conftest$ac_exeext
40205 if { (ac_try="$ac_link"
40206 case "(($ac_try" in
40207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40208 *) ac_try_echo=$ac_try;;
40210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40211 (eval "$ac_link") 2>&5
40213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40214 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40215 { (case "(($ac_try" in
40216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40217 *) ac_try_echo=$ac_try;;
40219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40220 (eval "$ac_try") 2>&5
40222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223 (exit $ac_status); }; }; then
40224 ac_cv_func_closedir_void=no
40226 echo "$as_me: program exited with status $ac_status" >&5
40227 echo "$as_me: failed program was:" >&5
40228 sed 's/^/| /' conftest.$ac_ext >&5
40230 ( exit $ac_status )
40231 ac_cv_func_closedir_void=yes
40233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40238 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40239 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40240 if test $ac_cv_func_closedir_void = yes; then
40242 cat >>confdefs.h <<\_ACEOF
40243 #define CLOSEDIR_VOID 1
40248 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40249 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40250 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40251 echo $ECHO_N "(cached) $ECHO_C" >&6
40253 if test "$cross_compiling" = yes; then
40254 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40255 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40256 { (exit 1); exit 1; }; }
40258 cat >conftest.$ac_ext <<_ACEOF
40261 cat confdefs.h >>conftest.$ac_ext
40262 cat >>conftest.$ac_ext <<_ACEOF
40263 /* end confdefs.h. */
40264 $ac_includes_default
40268 /* If this system has a BSD-style setpgrp which takes arguments,
40269 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40270 exit successfully. */
40271 return setpgrp (1,1) != -1;
40276 rm -f conftest$ac_exeext
40277 if { (ac_try="$ac_link"
40278 case "(($ac_try" in
40279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40280 *) ac_try_echo=$ac_try;;
40282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40283 (eval "$ac_link") 2>&5
40285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40286 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40287 { (case "(($ac_try" in
40288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40289 *) ac_try_echo=$ac_try;;
40291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40292 (eval "$ac_try") 2>&5
40294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40295 (exit $ac_status); }; }; then
40296 ac_cv_func_setpgrp_void=no
40298 echo "$as_me: program exited with status $ac_status" >&5
40299 echo "$as_me: failed program was:" >&5
40300 sed 's/^/| /' conftest.$ac_ext >&5
40302 ( exit $ac_status )
40303 ac_cv_func_setpgrp_void=yes
40305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40310 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40311 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40312 if test $ac_cv_func_setpgrp_void = yes; then
40314 cat >>confdefs.h <<\_ACEOF
40315 #define SETPGRP_VOID 1
40319 # AC_FUNC_FNMATCH dnl use local version
40321 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40322 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40323 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40324 echo $ECHO_N "(cached) $ECHO_C" >&6
40326 ac_check_lib_save_LIBS=$LIBS
40327 LIBS="-lintl $LIBS"
40328 cat >conftest.$ac_ext <<_ACEOF
40331 cat confdefs.h >>conftest.$ac_ext
40332 cat >>conftest.$ac_ext <<_ACEOF
40333 /* end confdefs.h. */
40335 /* Override any GCC internal prototype to avoid an error.
40336 Use char because int might match the return type of a GCC
40337 builtin and then its argument prototype would still apply. */
40350 rm -f conftest.$ac_objext conftest$ac_exeext
40351 if { (ac_try="$ac_link"
40352 case "(($ac_try" in
40353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40354 *) ac_try_echo=$ac_try;;
40356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40357 (eval "$ac_link") 2>conftest.er1
40359 grep -v '^ *+' conftest.er1 >conftest.err
40361 cat conftest.err >&5
40362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40363 (exit $ac_status); } && {
40364 test -z "$ac_c_werror_flag" ||
40365 test ! -s conftest.err
40366 } && test -s conftest$ac_exeext &&
40367 $as_test_x conftest$ac_exeext; then
40368 ac_cv_lib_intl_gettext=yes
40370 echo "$as_me: failed program was:" >&5
40371 sed 's/^/| /' conftest.$ac_ext >&5
40373 ac_cv_lib_intl_gettext=no
40376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40377 conftest$ac_exeext conftest.$ac_ext
40378 LIBS=$ac_check_lib_save_LIBS
40380 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40381 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40382 if test $ac_cv_lib_intl_gettext = yes; then
40383 LIBS="$LIBS -lintl"
40388 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40389 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40390 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40391 echo $ECHO_N "(cached) $ECHO_C" >&6
40393 ac_check_lib_save_LIBS=$LIBS
40395 cat >conftest.$ac_ext <<_ACEOF
40398 cat confdefs.h >>conftest.$ac_ext
40399 cat >>conftest.$ac_ext <<_ACEOF
40400 /* end confdefs.h. */
40402 /* Override any GCC internal prototype to avoid an error.
40403 Use char because int might match the return type of a GCC
40404 builtin and then its argument prototype would still apply. */
40412 return getpwnam ();
40417 rm -f conftest.$ac_objext conftest$ac_exeext
40418 if { (ac_try="$ac_link"
40419 case "(($ac_try" in
40420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40421 *) ac_try_echo=$ac_try;;
40423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40424 (eval "$ac_link") 2>conftest.er1
40426 grep -v '^ *+' conftest.er1 >conftest.err
40428 cat conftest.err >&5
40429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40430 (exit $ac_status); } && {
40431 test -z "$ac_c_werror_flag" ||
40432 test ! -s conftest.err
40433 } && test -s conftest$ac_exeext &&
40434 $as_test_x conftest$ac_exeext; then
40435 ac_cv_lib_sun_getpwnam=yes
40437 echo "$as_me: failed program was:" >&5
40438 sed 's/^/| /' conftest.$ac_ext >&5
40440 ac_cv_lib_sun_getpwnam=no
40443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40444 conftest$ac_exeext conftest.$ac_ext
40445 LIBS=$ac_check_lib_save_LIBS
40447 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40448 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40449 if test $ac_cv_lib_sun_getpwnam = yes; then
40450 cat >>confdefs.h <<_ACEOF
40451 #define HAVE_LIBSUN 1
40460 for ac_header in zlib.h
40462 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40467 echo $ECHO_N "(cached) $ECHO_C" >&6
40469 ac_res=`eval echo '${'$as_ac_Header'}'`
40470 { echo "$as_me:$LINENO: result: $ac_res" >&5
40471 echo "${ECHO_T}$ac_res" >&6; }
40473 # Is the header compilable?
40474 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40475 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40476 cat >conftest.$ac_ext <<_ACEOF
40479 cat confdefs.h >>conftest.$ac_ext
40480 cat >>conftest.$ac_ext <<_ACEOF
40481 /* end confdefs.h. */
40482 $ac_includes_default
40483 #include <$ac_header>
40485 rm -f conftest.$ac_objext
40486 if { (ac_try="$ac_compile"
40487 case "(($ac_try" in
40488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40489 *) ac_try_echo=$ac_try;;
40491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40492 (eval "$ac_compile") 2>conftest.er1
40494 grep -v '^ *+' conftest.er1 >conftest.err
40496 cat conftest.err >&5
40497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40498 (exit $ac_status); } && {
40499 test -z "$ac_c_werror_flag" ||
40500 test ! -s conftest.err
40501 } && test -s conftest.$ac_objext; then
40502 ac_header_compiler=yes
40504 echo "$as_me: failed program was:" >&5
40505 sed 's/^/| /' conftest.$ac_ext >&5
40507 ac_header_compiler=no
40510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40512 echo "${ECHO_T}$ac_header_compiler" >&6; }
40514 # Is the header present?
40515 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40517 cat >conftest.$ac_ext <<_ACEOF
40520 cat confdefs.h >>conftest.$ac_ext
40521 cat >>conftest.$ac_ext <<_ACEOF
40522 /* end confdefs.h. */
40523 #include <$ac_header>
40525 if { (ac_try="$ac_cpp conftest.$ac_ext"
40526 case "(($ac_try" in
40527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40528 *) ac_try_echo=$ac_try;;
40530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40533 grep -v '^ *+' conftest.er1 >conftest.err
40535 cat conftest.err >&5
40536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40537 (exit $ac_status); } >/dev/null && {
40538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40539 test ! -s conftest.err
40541 ac_header_preproc=yes
40543 echo "$as_me: failed program was:" >&5
40544 sed 's/^/| /' conftest.$ac_ext >&5
40546 ac_header_preproc=no
40549 rm -f conftest.err conftest.$ac_ext
40550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40551 echo "${ECHO_T}$ac_header_preproc" >&6; }
40553 # So? What about this header?
40554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40556 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40557 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40559 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40560 ac_header_preproc=yes
40563 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40564 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40565 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40566 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40567 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40568 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40569 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40570 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40573 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40574 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40578 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40579 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40581 echo $ECHO_N "(cached) $ECHO_C" >&6
40583 eval "$as_ac_Header=\$ac_header_preproc"
40585 ac_res=`eval echo '${'$as_ac_Header'}'`
40586 { echo "$as_me:$LINENO: result: $ac_res" >&5
40587 echo "${ECHO_T}$ac_res" >&6; }
40590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40591 cat >>confdefs.h <<_ACEOF
40592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40599 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40600 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40601 if test "${ac_cv_lib_z_deflate+set}" = set; then
40602 echo $ECHO_N "(cached) $ECHO_C" >&6
40604 ac_check_lib_save_LIBS=$LIBS
40606 cat >conftest.$ac_ext <<_ACEOF
40609 cat confdefs.h >>conftest.$ac_ext
40610 cat >>conftest.$ac_ext <<_ACEOF
40611 /* end confdefs.h. */
40613 /* Override any GCC internal prototype to avoid an error.
40614 Use char because int might match the return type of a GCC
40615 builtin and then its argument prototype would still apply. */
40628 rm -f conftest.$ac_objext conftest$ac_exeext
40629 if { (ac_try="$ac_link"
40630 case "(($ac_try" in
40631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40632 *) ac_try_echo=$ac_try;;
40634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40635 (eval "$ac_link") 2>conftest.er1
40637 grep -v '^ *+' conftest.er1 >conftest.err
40639 cat conftest.err >&5
40640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40641 (exit $ac_status); } && {
40642 test -z "$ac_c_werror_flag" ||
40643 test ! -s conftest.err
40644 } && test -s conftest$ac_exeext &&
40645 $as_test_x conftest$ac_exeext; then
40646 ac_cv_lib_z_deflate=yes
40648 echo "$as_me: failed program was:" >&5
40649 sed 's/^/| /' conftest.$ac_ext >&5
40651 ac_cv_lib_z_deflate=no
40654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40655 conftest$ac_exeext conftest.$ac_ext
40656 LIBS=$ac_check_lib_save_LIBS
40658 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40659 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40660 if test $ac_cv_lib_z_deflate = yes; then
40665 if test x$FDLIBS = x-lz; then
40666 cat >>confdefs.h <<\_ACEOF
40667 #define HAVE_LIBZ 1
40674 # Check whether --enable-acl was given.
40675 if test "${enable_acl+set}" = set; then
40676 enableval=$enable_acl;
40677 if test x$enableval = xyes; then
40679 elif test x$enableval = xno; then
40688 have_extended_acl=no
40689 if test x$support_acl = xyes -o x$support_acl = xauto; then
40690 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40691 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40692 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40693 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40694 echo $ECHO_N "(cached) $ECHO_C" >&6
40696 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40697 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40699 # Is the header compilable?
40700 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40701 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40702 cat >conftest.$ac_ext <<_ACEOF
40705 cat confdefs.h >>conftest.$ac_ext
40706 cat >>conftest.$ac_ext <<_ACEOF
40707 /* end confdefs.h. */
40708 $ac_includes_default
40709 #include <sys/acl.h>
40711 rm -f conftest.$ac_objext
40712 if { (ac_try="$ac_compile"
40713 case "(($ac_try" in
40714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40715 *) ac_try_echo=$ac_try;;
40717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40718 (eval "$ac_compile") 2>conftest.er1
40720 grep -v '^ *+' conftest.er1 >conftest.err
40722 cat conftest.err >&5
40723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724 (exit $ac_status); } && {
40725 test -z "$ac_c_werror_flag" ||
40726 test ! -s conftest.err
40727 } && test -s conftest.$ac_objext; then
40728 ac_header_compiler=yes
40730 echo "$as_me: failed program was:" >&5
40731 sed 's/^/| /' conftest.$ac_ext >&5
40733 ac_header_compiler=no
40736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40737 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40738 echo "${ECHO_T}$ac_header_compiler" >&6; }
40740 # Is the header present?
40741 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40742 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40743 cat >conftest.$ac_ext <<_ACEOF
40746 cat confdefs.h >>conftest.$ac_ext
40747 cat >>conftest.$ac_ext <<_ACEOF
40748 /* end confdefs.h. */
40749 #include <sys/acl.h>
40751 if { (ac_try="$ac_cpp conftest.$ac_ext"
40752 case "(($ac_try" in
40753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40754 *) ac_try_echo=$ac_try;;
40756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40759 grep -v '^ *+' conftest.er1 >conftest.err
40761 cat conftest.err >&5
40762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40763 (exit $ac_status); } >/dev/null && {
40764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40765 test ! -s conftest.err
40767 ac_header_preproc=yes
40769 echo "$as_me: failed program was:" >&5
40770 sed 's/^/| /' conftest.$ac_ext >&5
40772 ac_header_preproc=no
40775 rm -f conftest.err conftest.$ac_ext
40776 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40777 echo "${ECHO_T}$ac_header_preproc" >&6; }
40779 # So? What about this header?
40780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40782 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40783 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40784 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40785 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40786 ac_header_preproc=yes
40789 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40790 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40791 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40792 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40793 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40794 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40795 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40796 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40797 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40798 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40799 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40800 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40804 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40805 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40806 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40807 echo $ECHO_N "(cached) $ECHO_C" >&6
40809 ac_cv_header_sys_acl_h=$ac_header_preproc
40811 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40812 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40815 if test $ac_cv_header_sys_acl_h = yes; then
40817 cat >>confdefs.h <<\_ACEOF
40818 #define HAVE_SYS_ACL_H 1
40824 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40825 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40826 if test "${ac_cv_func_acl_get_file+set}" = set; then
40827 echo $ECHO_N "(cached) $ECHO_C" >&6
40829 cat >conftest.$ac_ext <<_ACEOF
40832 cat confdefs.h >>conftest.$ac_ext
40833 cat >>conftest.$ac_ext <<_ACEOF
40834 /* end confdefs.h. */
40835 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40837 #define acl_get_file innocuous_acl_get_file
40839 /* System header to define __stub macros and hopefully few prototypes,
40840 which can conflict with char acl_get_file (); below.
40841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40842 <limits.h> exists even on freestanding compilers. */
40845 # include <limits.h>
40847 # include <assert.h>
40850 #undef acl_get_file
40852 /* Override any GCC internal prototype to avoid an error.
40853 Use char because int might match the return type of a GCC
40854 builtin and then its argument prototype would still apply. */
40858 char acl_get_file ();
40859 /* The GNU C library defines this for functions which it implements
40860 to always fail with ENOSYS. Some functions are actually named
40861 something starting with __ and the normal name is an alias. */
40862 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40869 return acl_get_file ();
40874 rm -f conftest.$ac_objext conftest$ac_exeext
40875 if { (ac_try="$ac_link"
40876 case "(($ac_try" in
40877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40878 *) ac_try_echo=$ac_try;;
40880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40881 (eval "$ac_link") 2>conftest.er1
40883 grep -v '^ *+' conftest.er1 >conftest.err
40885 cat conftest.err >&5
40886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887 (exit $ac_status); } && {
40888 test -z "$ac_c_werror_flag" ||
40889 test ! -s conftest.err
40890 } && test -s conftest$ac_exeext &&
40891 $as_test_x conftest$ac_exeext; then
40892 ac_cv_func_acl_get_file=yes
40894 echo "$as_me: failed program was:" >&5
40895 sed 's/^/| /' conftest.$ac_ext >&5
40897 ac_cv_func_acl_get_file=no
40900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40901 conftest$ac_exeext conftest.$ac_ext
40903 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40904 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40905 if test $ac_cv_func_acl_get_file = yes; then
40911 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40912 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40913 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40914 echo $ECHO_N "(cached) $ECHO_C" >&6
40916 ac_check_lib_save_LIBS=$LIBS
40918 cat >conftest.$ac_ext <<_ACEOF
40921 cat confdefs.h >>conftest.$ac_ext
40922 cat >>conftest.$ac_ext <<_ACEOF
40923 /* end confdefs.h. */
40925 /* Override any GCC internal prototype to avoid an error.
40926 Use char because int might match the return type of a GCC
40927 builtin and then its argument prototype would still apply. */
40931 char acl_get_file ();
40935 return acl_get_file ();
40940 rm -f conftest.$ac_objext conftest$ac_exeext
40941 if { (ac_try="$ac_link"
40942 case "(($ac_try" in
40943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40944 *) ac_try_echo=$ac_try;;
40946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40947 (eval "$ac_link") 2>conftest.er1
40949 grep -v '^ *+' conftest.er1 >conftest.err
40951 cat conftest.err >&5
40952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40953 (exit $ac_status); } && {
40954 test -z "$ac_c_werror_flag" ||
40955 test ! -s conftest.err
40956 } && test -s conftest$ac_exeext &&
40957 $as_test_x conftest$ac_exeext; then
40958 ac_cv_lib_acl_acl_get_file=yes
40960 echo "$as_me: failed program was:" >&5
40961 sed 's/^/| /' conftest.$ac_ext >&5
40963 ac_cv_lib_acl_acl_get_file=no
40966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40967 conftest$ac_exeext conftest.$ac_ext
40968 LIBS=$ac_check_lib_save_LIBS
40970 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40971 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40972 if test $ac_cv_lib_acl_acl_get_file = yes; then
40975 FDLIBS="-lacl $FDLIBS"
40979 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40980 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40981 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40982 echo $ECHO_N "(cached) $ECHO_C" >&6
40984 ac_check_lib_save_LIBS=$LIBS
40985 LIBS="-lpacl $LIBS"
40986 cat >conftest.$ac_ext <<_ACEOF
40989 cat confdefs.h >>conftest.$ac_ext
40990 cat >>conftest.$ac_ext <<_ACEOF
40991 /* end confdefs.h. */
40993 /* Override any GCC internal prototype to avoid an error.
40994 Use char because int might match the return type of a GCC
40995 builtin and then its argument prototype would still apply. */
40999 char acl_get_file ();
41003 return acl_get_file ();
41008 rm -f conftest.$ac_objext conftest$ac_exeext
41009 if { (ac_try="$ac_link"
41010 case "(($ac_try" in
41011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41012 *) ac_try_echo=$ac_try;;
41014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41015 (eval "$ac_link") 2>conftest.er1
41017 grep -v '^ *+' conftest.er1 >conftest.err
41019 cat conftest.err >&5
41020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41021 (exit $ac_status); } && {
41022 test -z "$ac_c_werror_flag" ||
41023 test ! -s conftest.err
41024 } && test -s conftest$ac_exeext &&
41025 $as_test_x conftest$ac_exeext; then
41026 ac_cv_lib_pacl_acl_get_file=yes
41028 echo "$as_me: failed program was:" >&5
41029 sed 's/^/| /' conftest.$ac_ext >&5
41031 ac_cv_lib_pacl_acl_get_file=no
41034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41035 conftest$ac_exeext conftest.$ac_ext
41036 LIBS=$ac_check_lib_save_LIBS
41038 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41039 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41040 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41043 FDLIBS="-lpacl $FDLIBS"
41047 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41048 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41049 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41050 echo $ECHO_N "(cached) $ECHO_C" >&6
41052 ac_check_lib_save_LIBS=$LIBS
41054 cat >conftest.$ac_ext <<_ACEOF
41057 cat confdefs.h >>conftest.$ac_ext
41058 cat >>conftest.$ac_ext <<_ACEOF
41059 /* end confdefs.h. */
41061 /* Override any GCC internal prototype to avoid an error.
41062 Use char because int might match the return type of a GCC
41063 builtin and then its argument prototype would still apply. */
41071 return acltotext ();
41076 rm -f conftest.$ac_objext conftest$ac_exeext
41077 if { (ac_try="$ac_link"
41078 case "(($ac_try" in
41079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41080 *) ac_try_echo=$ac_try;;
41082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41083 (eval "$ac_link") 2>conftest.er1
41085 grep -v '^ *+' conftest.er1 >conftest.err
41087 cat conftest.err >&5
41088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41089 (exit $ac_status); } && {
41090 test -z "$ac_c_werror_flag" ||
41091 test ! -s conftest.err
41092 } && test -s conftest$ac_exeext &&
41093 $as_test_x conftest$ac_exeext; then
41094 ac_cv_lib_sec_acltotext=yes
41096 echo "$as_me: failed program was:" >&5
41097 sed 's/^/| /' conftest.$ac_ext >&5
41099 ac_cv_lib_sec_acltotext=no
41102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41103 conftest$ac_exeext conftest.$ac_ext
41104 LIBS=$ac_check_lib_save_LIBS
41106 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41107 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41108 if test $ac_cv_lib_sec_acltotext = yes; then
41111 FDLIBS="-lsec $FDLIBS"
41113 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41114 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41115 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41116 echo $ECHO_N "(cached) $ECHO_C" >&6
41118 ac_check_lib_save_LIBS=$LIBS
41120 cat >conftest.$ac_ext <<_ACEOF
41123 cat confdefs.h >>conftest.$ac_ext
41124 cat >>conftest.$ac_ext <<_ACEOF
41125 /* end confdefs.h. */
41127 /* Override any GCC internal prototype to avoid an error.
41128 Use char because int might match the return type of a GCC
41129 builtin and then its argument prototype would still apply. */
41133 char acl_totext ();
41137 return acl_totext ();
41142 rm -f conftest.$ac_objext conftest$ac_exeext
41143 if { (ac_try="$ac_link"
41144 case "(($ac_try" in
41145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41146 *) ac_try_echo=$ac_try;;
41148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41149 (eval "$ac_link") 2>conftest.er1
41151 grep -v '^ *+' conftest.er1 >conftest.err
41153 cat conftest.err >&5
41154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41155 (exit $ac_status); } && {
41156 test -z "$ac_c_werror_flag" ||
41157 test ! -s conftest.err
41158 } && test -s conftest$ac_exeext &&
41159 $as_test_x conftest$ac_exeext; then
41160 ac_cv_lib_sec_acl_totext=yes
41162 echo "$as_me: failed program was:" >&5
41163 sed 's/^/| /' conftest.$ac_ext >&5
41165 ac_cv_lib_sec_acl_totext=no
41168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41169 conftest$ac_exeext conftest.$ac_ext
41170 LIBS=$ac_check_lib_save_LIBS
41172 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41173 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41174 if test $ac_cv_lib_sec_acl_totext = yes; then
41176 have_extended_acl=yes
41198 if test x$support_acl = xyes -a $have_acl != yes; then
41199 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41200 please either load the acl libraries or rerun configure without --enable-acl" >&5
41201 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41202 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41203 { (exit 1); exit 1; }; }
41205 if test $have_acl = yes; then
41207 cat >>confdefs.h <<\_ACEOF
41213 if test $have_extended_acl = yes; then
41215 cat >>confdefs.h <<\_ACEOF
41216 #define HAVE_EXTENDED_ACL
41224 # Check whether --enable-xattr was given.
41225 if test "${enable_xattr+set}" = set; then
41226 enableval=$enable_xattr;
41227 if test x$enableval = xyes; then
41229 elif test x$enableval = xno; then
41238 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41239 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41240 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41241 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41242 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41243 echo $ECHO_N "(cached) $ECHO_C" >&6
41245 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41246 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41248 # Is the header compilable?
41249 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41250 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41251 cat >conftest.$ac_ext <<_ACEOF
41254 cat confdefs.h >>conftest.$ac_ext
41255 cat >>conftest.$ac_ext <<_ACEOF
41256 /* end confdefs.h. */
41257 $ac_includes_default
41258 #include <sys/xattr.h>
41260 rm -f conftest.$ac_objext
41261 if { (ac_try="$ac_compile"
41262 case "(($ac_try" in
41263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41264 *) ac_try_echo=$ac_try;;
41266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41267 (eval "$ac_compile") 2>conftest.er1
41269 grep -v '^ *+' conftest.er1 >conftest.err
41271 cat conftest.err >&5
41272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41273 (exit $ac_status); } && {
41274 test -z "$ac_c_werror_flag" ||
41275 test ! -s conftest.err
41276 } && test -s conftest.$ac_objext; then
41277 ac_header_compiler=yes
41279 echo "$as_me: failed program was:" >&5
41280 sed 's/^/| /' conftest.$ac_ext >&5
41282 ac_header_compiler=no
41285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41286 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41287 echo "${ECHO_T}$ac_header_compiler" >&6; }
41289 # Is the header present?
41290 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41291 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41292 cat >conftest.$ac_ext <<_ACEOF
41295 cat confdefs.h >>conftest.$ac_ext
41296 cat >>conftest.$ac_ext <<_ACEOF
41297 /* end confdefs.h. */
41298 #include <sys/xattr.h>
41300 if { (ac_try="$ac_cpp conftest.$ac_ext"
41301 case "(($ac_try" in
41302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41303 *) ac_try_echo=$ac_try;;
41305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41308 grep -v '^ *+' conftest.er1 >conftest.err
41310 cat conftest.err >&5
41311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41312 (exit $ac_status); } >/dev/null && {
41313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41314 test ! -s conftest.err
41316 ac_header_preproc=yes
41318 echo "$as_me: failed program was:" >&5
41319 sed 's/^/| /' conftest.$ac_ext >&5
41321 ac_header_preproc=no
41324 rm -f conftest.err conftest.$ac_ext
41325 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41326 echo "${ECHO_T}$ac_header_preproc" >&6; }
41328 # So? What about this header?
41329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41331 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41332 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41333 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41334 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41335 ac_header_preproc=yes
41338 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41339 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41340 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
41341 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
41342 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41343 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41344 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
41345 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41346 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41347 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41348 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41349 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41353 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41354 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41355 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41356 echo $ECHO_N "(cached) $ECHO_C" >&6
41358 ac_cv_header_sys_xattr_h=$ac_header_preproc
41360 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41361 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41364 if test $ac_cv_header_sys_xattr_h = yes; then
41366 cat >>confdefs.h <<\_ACEOF
41367 #define HAVE_SYS_XATTR_H 1
41376 for ac_func in llistxattr lgetxattr lsetxattr
41378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41382 echo $ECHO_N "(cached) $ECHO_C" >&6
41384 cat >conftest.$ac_ext <<_ACEOF
41387 cat confdefs.h >>conftest.$ac_ext
41388 cat >>conftest.$ac_ext <<_ACEOF
41389 /* end confdefs.h. */
41390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41392 #define $ac_func innocuous_$ac_func
41394 /* System header to define __stub macros and hopefully few prototypes,
41395 which can conflict with char $ac_func (); below.
41396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41397 <limits.h> exists even on freestanding compilers. */
41400 # include <limits.h>
41402 # include <assert.h>
41407 /* Override any GCC internal prototype to avoid an error.
41408 Use char because int might match the return type of a GCC
41409 builtin and then its argument prototype would still apply. */
41414 /* The GNU C library defines this for functions which it implements
41415 to always fail with ENOSYS. Some functions are actually named
41416 something starting with __ and the normal name is an alias. */
41417 #if defined __stub_$ac_func || defined __stub___$ac_func
41424 return $ac_func ();
41429 rm -f conftest.$ac_objext conftest$ac_exeext
41430 if { (ac_try="$ac_link"
41431 case "(($ac_try" in
41432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41433 *) ac_try_echo=$ac_try;;
41435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41436 (eval "$ac_link") 2>conftest.er1
41438 grep -v '^ *+' conftest.er1 >conftest.err
41440 cat conftest.err >&5
41441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41442 (exit $ac_status); } && {
41443 test -z "$ac_c_werror_flag" ||
41444 test ! -s conftest.err
41445 } && test -s conftest$ac_exeext &&
41446 $as_test_x conftest$ac_exeext; then
41447 eval "$as_ac_var=yes"
41449 echo "$as_me: failed program was:" >&5
41450 sed 's/^/| /' conftest.$ac_ext >&5
41452 eval "$as_ac_var=no"
41455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41456 conftest$ac_exeext conftest.$ac_ext
41458 ac_res=`eval echo '${'$as_ac_var'}'`
41459 { echo "$as_me:$LINENO: result: $ac_res" >&5
41460 echo "${ECHO_T}$ac_res" >&6; }
41461 if test `eval echo '${'$as_ac_var'}'` = yes; then
41462 cat >>confdefs.h <<_ACEOF
41463 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41468 cat >>confdefs.h <<\_ACEOF
41469 #define HAVE_LLISTXATTR
41473 cat >>confdefs.h <<\_ACEOF
41474 #define HAVE_LGETXATTR
41478 cat >>confdefs.h <<\_ACEOF
41479 #define HAVE_LSETXATTR
41491 if test $have_xattr = no; then
41495 for ac_func in listxattr getxattr setxattr
41497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41501 echo $ECHO_N "(cached) $ECHO_C" >&6
41503 cat >conftest.$ac_ext <<_ACEOF
41506 cat confdefs.h >>conftest.$ac_ext
41507 cat >>conftest.$ac_ext <<_ACEOF
41508 /* end confdefs.h. */
41509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41511 #define $ac_func innocuous_$ac_func
41513 /* System header to define __stub macros and hopefully few prototypes,
41514 which can conflict with char $ac_func (); below.
41515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41516 <limits.h> exists even on freestanding compilers. */
41519 # include <limits.h>
41521 # include <assert.h>
41526 /* Override any GCC internal prototype to avoid an error.
41527 Use char because int might match the return type of a GCC
41528 builtin and then its argument prototype would still apply. */
41533 /* The GNU C library defines this for functions which it implements
41534 to always fail with ENOSYS. Some functions are actually named
41535 something starting with __ and the normal name is an alias. */
41536 #if defined __stub_$ac_func || defined __stub___$ac_func
41543 return $ac_func ();
41548 rm -f conftest.$ac_objext conftest$ac_exeext
41549 if { (ac_try="$ac_link"
41550 case "(($ac_try" in
41551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41552 *) ac_try_echo=$ac_try;;
41554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41555 (eval "$ac_link") 2>conftest.er1
41557 grep -v '^ *+' conftest.er1 >conftest.err
41559 cat conftest.err >&5
41560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41561 (exit $ac_status); } && {
41562 test -z "$ac_c_werror_flag" ||
41563 test ! -s conftest.err
41564 } && test -s conftest$ac_exeext &&
41565 $as_test_x conftest$ac_exeext; then
41566 eval "$as_ac_var=yes"
41568 echo "$as_me: failed program was:" >&5
41569 sed 's/^/| /' conftest.$ac_ext >&5
41571 eval "$as_ac_var=no"
41574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41575 conftest$ac_exeext conftest.$ac_ext
41577 ac_res=`eval echo '${'$as_ac_var'}'`
41578 { echo "$as_me:$LINENO: result: $ac_res" >&5
41579 echo "${ECHO_T}$ac_res" >&6; }
41580 if test `eval echo '${'$as_ac_var'}'` = yes; then
41581 cat >>confdefs.h <<_ACEOF
41582 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41587 cat >>confdefs.h <<\_ACEOF
41588 #define HAVE_LLISTXATTR
41592 cat >>confdefs.h <<\_ACEOF
41593 #define HAVE_LGETXATTR
41597 cat >>confdefs.h <<\_ACEOF
41598 #define HAVE_LSETXATTR
41611 if test $have_xattr = no; then
41612 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41613 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41614 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41615 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41616 echo $ECHO_N "(cached) $ECHO_C" >&6
41618 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41619 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41621 # Is the header compilable?
41622 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
41623 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
41624 cat >conftest.$ac_ext <<_ACEOF
41627 cat confdefs.h >>conftest.$ac_ext
41628 cat >>conftest.$ac_ext <<_ACEOF
41629 /* end confdefs.h. */
41630 $ac_includes_default
41631 #include <sys/attr.h>
41633 rm -f conftest.$ac_objext
41634 if { (ac_try="$ac_compile"
41635 case "(($ac_try" in
41636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41637 *) ac_try_echo=$ac_try;;
41639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41640 (eval "$ac_compile") 2>conftest.er1
41642 grep -v '^ *+' conftest.er1 >conftest.err
41644 cat conftest.err >&5
41645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41646 (exit $ac_status); } && {
41647 test -z "$ac_c_werror_flag" ||
41648 test ! -s conftest.err
41649 } && test -s conftest.$ac_objext; then
41650 ac_header_compiler=yes
41652 echo "$as_me: failed program was:" >&5
41653 sed 's/^/| /' conftest.$ac_ext >&5
41655 ac_header_compiler=no
41658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41659 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41660 echo "${ECHO_T}$ac_header_compiler" >&6; }
41662 # Is the header present?
41663 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
41664 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
41665 cat >conftest.$ac_ext <<_ACEOF
41668 cat confdefs.h >>conftest.$ac_ext
41669 cat >>conftest.$ac_ext <<_ACEOF
41670 /* end confdefs.h. */
41671 #include <sys/attr.h>
41673 if { (ac_try="$ac_cpp conftest.$ac_ext"
41674 case "(($ac_try" in
41675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41676 *) ac_try_echo=$ac_try;;
41678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41681 grep -v '^ *+' conftest.er1 >conftest.err
41683 cat conftest.err >&5
41684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41685 (exit $ac_status); } >/dev/null && {
41686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41687 test ! -s conftest.err
41689 ac_header_preproc=yes
41691 echo "$as_me: failed program was:" >&5
41692 sed 's/^/| /' conftest.$ac_ext >&5
41694 ac_header_preproc=no
41697 rm -f conftest.err conftest.$ac_ext
41698 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41699 echo "${ECHO_T}$ac_header_preproc" >&6; }
41701 # So? What about this header?
41702 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41704 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41705 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41706 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
41707 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
41708 ac_header_preproc=yes
41711 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
41712 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
41713 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
41714 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
41715 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
41716 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
41717 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
41718 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41719 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
41720 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
41721 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
41722 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
41726 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
41727 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
41728 if test "${ac_cv_header_sys_attr_h+set}" = set; then
41729 echo $ECHO_N "(cached) $ECHO_C" >&6
41731 ac_cv_header_sys_attr_h=$ac_header_preproc
41733 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
41734 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
41737 if test $ac_cv_header_sys_attr_h = yes; then
41739 cat >>confdefs.h <<\_ACEOF
41740 #define HAVE_SYS_ATTR_H 1
41746 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41747 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41748 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41749 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41750 echo $ECHO_N "(cached) $ECHO_C" >&6
41752 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41753 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41755 # Is the header compilable?
41756 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
41757 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
41758 cat >conftest.$ac_ext <<_ACEOF
41761 cat confdefs.h >>conftest.$ac_ext
41762 cat >>conftest.$ac_ext <<_ACEOF
41763 /* end confdefs.h. */
41764 $ac_includes_default
41765 #include <sys/nvpair.h>
41767 rm -f conftest.$ac_objext
41768 if { (ac_try="$ac_compile"
41769 case "(($ac_try" in
41770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41771 *) ac_try_echo=$ac_try;;
41773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41774 (eval "$ac_compile") 2>conftest.er1
41776 grep -v '^ *+' conftest.er1 >conftest.err
41778 cat conftest.err >&5
41779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41780 (exit $ac_status); } && {
41781 test -z "$ac_c_werror_flag" ||
41782 test ! -s conftest.err
41783 } && test -s conftest.$ac_objext; then
41784 ac_header_compiler=yes
41786 echo "$as_me: failed program was:" >&5
41787 sed 's/^/| /' conftest.$ac_ext >&5
41789 ac_header_compiler=no
41792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41794 echo "${ECHO_T}$ac_header_compiler" >&6; }
41796 # Is the header present?
41797 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
41798 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
41799 cat >conftest.$ac_ext <<_ACEOF
41802 cat confdefs.h >>conftest.$ac_ext
41803 cat >>conftest.$ac_ext <<_ACEOF
41804 /* end confdefs.h. */
41805 #include <sys/nvpair.h>
41807 if { (ac_try="$ac_cpp conftest.$ac_ext"
41808 case "(($ac_try" in
41809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41810 *) ac_try_echo=$ac_try;;
41812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41815 grep -v '^ *+' conftest.er1 >conftest.err
41817 cat conftest.err >&5
41818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41819 (exit $ac_status); } >/dev/null && {
41820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41821 test ! -s conftest.err
41823 ac_header_preproc=yes
41825 echo "$as_me: failed program was:" >&5
41826 sed 's/^/| /' conftest.$ac_ext >&5
41828 ac_header_preproc=no
41831 rm -f conftest.err conftest.$ac_ext
41832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41833 echo "${ECHO_T}$ac_header_preproc" >&6; }
41835 # So? What about this header?
41836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41838 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
41839 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41840 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
41841 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
41842 ac_header_preproc=yes
41845 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
41846 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
41847 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
41848 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
41849 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
41850 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
41851 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
41852 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
41853 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
41854 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
41855 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
41856 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
41860 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
41861 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
41862 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
41863 echo $ECHO_N "(cached) $ECHO_C" >&6
41865 ac_cv_header_sys_nvpair_h=$ac_header_preproc
41867 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
41868 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
41871 if test $ac_cv_header_sys_nvpair_h = yes; then
41873 cat >>confdefs.h <<\_ACEOF
41874 #define HAVE_SYS_NVPAIR_H 1
41880 if test "${ac_cv_header_attr_h+set}" = set; then
41881 { echo "$as_me:$LINENO: checking for attr.h" >&5
41882 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41883 if test "${ac_cv_header_attr_h+set}" = set; then
41884 echo $ECHO_N "(cached) $ECHO_C" >&6
41886 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
41887 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
41889 # Is the header compilable?
41890 { echo "$as_me:$LINENO: checking attr.h usability" >&5
41891 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
41892 cat >conftest.$ac_ext <<_ACEOF
41895 cat confdefs.h >>conftest.$ac_ext
41896 cat >>conftest.$ac_ext <<_ACEOF
41897 /* end confdefs.h. */
41898 $ac_includes_default
41901 rm -f conftest.$ac_objext
41902 if { (ac_try="$ac_compile"
41903 case "(($ac_try" in
41904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41905 *) ac_try_echo=$ac_try;;
41907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41908 (eval "$ac_compile") 2>conftest.er1
41910 grep -v '^ *+' conftest.er1 >conftest.err
41912 cat conftest.err >&5
41913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41914 (exit $ac_status); } && {
41915 test -z "$ac_c_werror_flag" ||
41916 test ! -s conftest.err
41917 } && test -s conftest.$ac_objext; then
41918 ac_header_compiler=yes
41920 echo "$as_me: failed program was:" >&5
41921 sed 's/^/| /' conftest.$ac_ext >&5
41923 ac_header_compiler=no
41926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41928 echo "${ECHO_T}$ac_header_compiler" >&6; }
41930 # Is the header present?
41931 { echo "$as_me:$LINENO: checking attr.h presence" >&5
41932 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
41933 cat >conftest.$ac_ext <<_ACEOF
41936 cat confdefs.h >>conftest.$ac_ext
41937 cat >>conftest.$ac_ext <<_ACEOF
41938 /* end confdefs.h. */
41941 if { (ac_try="$ac_cpp conftest.$ac_ext"
41942 case "(($ac_try" in
41943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41944 *) ac_try_echo=$ac_try;;
41946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41949 grep -v '^ *+' conftest.er1 >conftest.err
41951 cat conftest.err >&5
41952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953 (exit $ac_status); } >/dev/null && {
41954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41955 test ! -s conftest.err
41957 ac_header_preproc=yes
41959 echo "$as_me: failed program was:" >&5
41960 sed 's/^/| /' conftest.$ac_ext >&5
41962 ac_header_preproc=no
41965 rm -f conftest.err conftest.$ac_ext
41966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41967 echo "${ECHO_T}$ac_header_preproc" >&6; }
41969 # So? What about this header?
41970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41972 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41973 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41974 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
41975 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
41976 ac_header_preproc=yes
41979 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
41980 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
41981 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
41982 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
41983 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
41984 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
41985 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
41986 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41987 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
41988 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
41989 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
41990 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
41994 { echo "$as_me:$LINENO: checking for attr.h" >&5
41995 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
41996 if test "${ac_cv_header_attr_h+set}" = set; then
41997 echo $ECHO_N "(cached) $ECHO_C" >&6
41999 ac_cv_header_attr_h=$ac_header_preproc
42001 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42002 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42005 if test $ac_cv_header_attr_h = yes; then
42007 cat >>confdefs.h <<\_ACEOF
42008 #define HAVE_ATTR_H 1
42020 for ac_func in openat fstatat unlinkat fchownat futimesat
42022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42023 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42026 echo $ECHO_N "(cached) $ECHO_C" >&6
42028 cat >conftest.$ac_ext <<_ACEOF
42031 cat confdefs.h >>conftest.$ac_ext
42032 cat >>conftest.$ac_ext <<_ACEOF
42033 /* end confdefs.h. */
42034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42036 #define $ac_func innocuous_$ac_func
42038 /* System header to define __stub macros and hopefully few prototypes,
42039 which can conflict with char $ac_func (); below.
42040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42041 <limits.h> exists even on freestanding compilers. */
42044 # include <limits.h>
42046 # include <assert.h>
42051 /* Override any GCC internal prototype to avoid an error.
42052 Use char because int might match the return type of a GCC
42053 builtin and then its argument prototype would still apply. */
42058 /* The GNU C library defines this for functions which it implements
42059 to always fail with ENOSYS. Some functions are actually named
42060 something starting with __ and the normal name is an alias. */
42061 #if defined __stub_$ac_func || defined __stub___$ac_func
42068 return $ac_func ();
42073 rm -f conftest.$ac_objext conftest$ac_exeext
42074 if { (ac_try="$ac_link"
42075 case "(($ac_try" in
42076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42077 *) ac_try_echo=$ac_try;;
42079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42080 (eval "$ac_link") 2>conftest.er1
42082 grep -v '^ *+' conftest.er1 >conftest.err
42084 cat conftest.err >&5
42085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42086 (exit $ac_status); } && {
42087 test -z "$ac_c_werror_flag" ||
42088 test ! -s conftest.err
42089 } && test -s conftest$ac_exeext &&
42090 $as_test_x conftest$ac_exeext; then
42091 eval "$as_ac_var=yes"
42093 echo "$as_me: failed program was:" >&5
42094 sed 's/^/| /' conftest.$ac_ext >&5
42096 eval "$as_ac_var=no"
42099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42100 conftest$ac_exeext conftest.$ac_ext
42102 ac_res=`eval echo '${'$as_ac_var'}'`
42103 { echo "$as_me:$LINENO: result: $ac_res" >&5
42104 echo "${ECHO_T}$ac_res" >&6; }
42105 if test `eval echo '${'$as_ac_var'}'` = yes; then
42106 cat >>confdefs.h <<_ACEOF
42107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42112 cat >>confdefs.h <<\_ACEOF
42113 #define HAVE_OPENAT
42117 cat >>confdefs.h <<\_ACEOF
42118 #define HAVE_FSTATAT
42122 cat >>confdefs.h <<\_ACEOF
42123 #define HAVE_UNLINKAT
42127 cat >>confdefs.h <<\_ACEOF
42128 #define HAVE_FCHOWNAT
42132 cat >>confdefs.h <<\_ACEOF
42133 #define HAVE_FUTIMESAT
42142 if test $have_xattr = yes; then
42143 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42144 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42145 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42146 echo $ECHO_N "(cached) $ECHO_C" >&6
42148 ac_check_lib_save_LIBS=$LIBS
42149 LIBS="-lnvpair $LIBS"
42150 cat >conftest.$ac_ext <<_ACEOF
42153 cat confdefs.h >>conftest.$ac_ext
42154 cat >>conftest.$ac_ext <<_ACEOF
42155 /* end confdefs.h. */
42157 /* Override any GCC internal prototype to avoid an error.
42158 Use char because int might match the return type of a GCC
42159 builtin and then its argument prototype would still apply. */
42163 char nvlist_next_nvpair ();
42167 return nvlist_next_nvpair ();
42172 rm -f conftest.$ac_objext conftest$ac_exeext
42173 if { (ac_try="$ac_link"
42174 case "(($ac_try" in
42175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42176 *) ac_try_echo=$ac_try;;
42178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42179 (eval "$ac_link") 2>conftest.er1
42181 grep -v '^ *+' conftest.er1 >conftest.err
42183 cat conftest.err >&5
42184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42185 (exit $ac_status); } && {
42186 test -z "$ac_c_werror_flag" ||
42187 test ! -s conftest.err
42188 } && test -s conftest$ac_exeext &&
42189 $as_test_x conftest$ac_exeext; then
42190 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42192 echo "$as_me: failed program was:" >&5
42193 sed 's/^/| /' conftest.$ac_ext >&5
42195 ac_cv_lib_nvpair_nvlist_next_nvpair=no
42198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42199 conftest$ac_exeext conftest.$ac_ext
42200 LIBS=$ac_check_lib_save_LIBS
42202 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42203 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42204 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42206 FDLIBS="-lnvpair $FDLIBS"
42214 if test x$support_xattr = xyes -a $have_xattr != yes; then
42215 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42216 please either load the xattr libraries or rerun configure without --enable-xatt" >&5
42217 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42218 please either load the xattr libraries or rerun configure without --enable-xatt" >&2;}
42219 { (exit 1); exit 1; }; }
42221 if test $have_xattr = yes; then
42223 cat >>confdefs.h <<\_ACEOF
42232 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42233 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42234 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42235 echo $ECHO_N "(cached) $ECHO_C" >&6
42237 ac_check_lib_save_LIBS=$LIBS
42238 LIBS="-lpthread $LIBS"
42239 cat >conftest.$ac_ext <<_ACEOF
42242 cat confdefs.h >>conftest.$ac_ext
42243 cat >>conftest.$ac_ext <<_ACEOF
42244 /* end confdefs.h. */
42246 /* Override any GCC internal prototype to avoid an error.
42247 Use char because int might match the return type of a GCC
42248 builtin and then its argument prototype would still apply. */
42252 char pthread_create ();
42256 return pthread_create ();
42261 rm -f conftest.$ac_objext conftest$ac_exeext
42262 if { (ac_try="$ac_link"
42263 case "(($ac_try" in
42264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42265 *) ac_try_echo=$ac_try;;
42267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42268 (eval "$ac_link") 2>conftest.er1
42270 grep -v '^ *+' conftest.er1 >conftest.err
42272 cat conftest.err >&5
42273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42274 (exit $ac_status); } && {
42275 test -z "$ac_c_werror_flag" ||
42276 test ! -s conftest.err
42277 } && test -s conftest$ac_exeext &&
42278 $as_test_x conftest$ac_exeext; then
42279 ac_cv_lib_pthread_pthread_create=yes
42281 echo "$as_me: failed program was:" >&5
42282 sed 's/^/| /' conftest.$ac_ext >&5
42284 ac_cv_lib_pthread_pthread_create=no
42287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42288 conftest$ac_exeext conftest.$ac_ext
42289 LIBS=$ac_check_lib_save_LIBS
42291 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42292 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42293 if test $ac_cv_lib_pthread_pthread_create = yes; then
42294 PTHREAD_LIB="-lpthread"
42297 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42298 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42299 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42300 echo $ECHO_N "(cached) $ECHO_C" >&6
42302 ac_check_lib_save_LIBS=$LIBS
42303 LIBS="-lpthreads $LIBS"
42304 cat >conftest.$ac_ext <<_ACEOF
42307 cat confdefs.h >>conftest.$ac_ext
42308 cat >>conftest.$ac_ext <<_ACEOF
42309 /* end confdefs.h. */
42311 /* Override any GCC internal prototype to avoid an error.
42312 Use char because int might match the return type of a GCC
42313 builtin and then its argument prototype would still apply. */
42317 char pthread_create ();
42321 return pthread_create ();
42326 rm -f conftest.$ac_objext conftest$ac_exeext
42327 if { (ac_try="$ac_link"
42328 case "(($ac_try" in
42329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42330 *) ac_try_echo=$ac_try;;
42332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42333 (eval "$ac_link") 2>conftest.er1
42335 grep -v '^ *+' conftest.er1 >conftest.err
42337 cat conftest.err >&5
42338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42339 (exit $ac_status); } && {
42340 test -z "$ac_c_werror_flag" ||
42341 test ! -s conftest.err
42342 } && test -s conftest$ac_exeext &&
42343 $as_test_x conftest$ac_exeext; then
42344 ac_cv_lib_pthreads_pthread_create=yes
42346 echo "$as_me: failed program was:" >&5
42347 sed 's/^/| /' conftest.$ac_ext >&5
42349 ac_cv_lib_pthreads_pthread_create=no
42352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42353 conftest$ac_exeext conftest.$ac_ext
42354 LIBS=$ac_check_lib_save_LIBS
42356 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42357 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42358 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42359 PTHREAD_LIB="-lpthreads"
42362 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42363 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42364 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42365 echo $ECHO_N "(cached) $ECHO_C" >&6
42367 ac_check_lib_save_LIBS=$LIBS
42369 cat >conftest.$ac_ext <<_ACEOF
42372 cat confdefs.h >>conftest.$ac_ext
42373 cat >>conftest.$ac_ext <<_ACEOF
42374 /* end confdefs.h. */
42376 /* Override any GCC internal prototype to avoid an error.
42377 Use char because int might match the return type of a GCC
42378 builtin and then its argument prototype would still apply. */
42382 char pthread_create ();
42386 return pthread_create ();
42391 rm -f conftest.$ac_objext conftest$ac_exeext
42392 if { (ac_try="$ac_link"
42393 case "(($ac_try" in
42394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42395 *) ac_try_echo=$ac_try;;
42397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42398 (eval "$ac_link") 2>conftest.er1
42400 grep -v '^ *+' conftest.er1 >conftest.err
42402 cat conftest.err >&5
42403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42404 (exit $ac_status); } && {
42405 test -z "$ac_c_werror_flag" ||
42406 test ! -s conftest.err
42407 } && test -s conftest$ac_exeext &&
42408 $as_test_x conftest$ac_exeext; then
42409 ac_cv_lib_c_r_pthread_create=yes
42411 echo "$as_me: failed program was:" >&5
42412 sed 's/^/| /' conftest.$ac_ext >&5
42414 ac_cv_lib_c_r_pthread_create=no
42417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42418 conftest$ac_exeext conftest.$ac_ext
42419 LIBS=$ac_check_lib_save_LIBS
42421 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
42422 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
42423 if test $ac_cv_lib_c_r_pthread_create = yes; then
42424 PTHREAD_LIB="-lc_r"
42427 { echo "$as_me:$LINENO: checking for pthread_create" >&5
42428 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
42429 if test "${ac_cv_func_pthread_create+set}" = set; then
42430 echo $ECHO_N "(cached) $ECHO_C" >&6
42432 cat >conftest.$ac_ext <<_ACEOF
42435 cat confdefs.h >>conftest.$ac_ext
42436 cat >>conftest.$ac_ext <<_ACEOF
42437 /* end confdefs.h. */
42438 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
42439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42440 #define pthread_create innocuous_pthread_create
42442 /* System header to define __stub macros and hopefully few prototypes,
42443 which can conflict with char pthread_create (); below.
42444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42445 <limits.h> exists even on freestanding compilers. */
42448 # include <limits.h>
42450 # include <assert.h>
42453 #undef pthread_create
42455 /* Override any GCC internal prototype to avoid an error.
42456 Use char because int might match the return type of a GCC
42457 builtin and then its argument prototype would still apply. */
42461 char pthread_create ();
42462 /* The GNU C library defines this for functions which it implements
42463 to always fail with ENOSYS. Some functions are actually named
42464 something starting with __ and the normal name is an alias. */
42465 #if defined __stub_pthread_create || defined __stub___pthread_create
42472 return pthread_create ();
42477 rm -f conftest.$ac_objext conftest$ac_exeext
42478 if { (ac_try="$ac_link"
42479 case "(($ac_try" in
42480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42481 *) ac_try_echo=$ac_try;;
42483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42484 (eval "$ac_link") 2>conftest.er1
42486 grep -v '^ *+' conftest.er1 >conftest.err
42488 cat conftest.err >&5
42489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42490 (exit $ac_status); } && {
42491 test -z "$ac_c_werror_flag" ||
42492 test ! -s conftest.err
42493 } && test -s conftest$ac_exeext &&
42494 $as_test_x conftest$ac_exeext; then
42495 ac_cv_func_pthread_create=yes
42497 echo "$as_me: failed program was:" >&5
42498 sed 's/^/| /' conftest.$ac_ext >&5
42500 ac_cv_func_pthread_create=no
42503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42504 conftest$ac_exeext conftest.$ac_ext
42506 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
42507 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
42523 cat >>confdefs.h <<\_ACEOF
42528 CFLAGS=${CFLAGS--O}
42530 if test x$have_gcc = xyes ; then
42531 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42532 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
42534 LDFLAGS=${LDFLAGS--O}
42535 DB_LIBS="${SQL_LFLAGS}"
42536 CPPFLAGS="$CPPFLAGS"
42563 PFILES="platforms/Makefile"
42568 hostname=`uname -n | cut -d '.' -f 1`
42569 if test x${hostname} = x ; then
42570 hostname="localhost"
42572 ping -c 1 $hostname 2>/dev/null 1>/dev/null
42573 if test ! $? = 0; then
42574 hostname="localhost"
42577 case "$DISTNAME" in
42580 PSCMD="ps -e -o pid,comm"
42581 PFILES="${PFILES} \
42582 platforms/aix/Makefile"
42583 TAPEDRIVE="/dev/rmt0.1"
42587 PTHREAD_LIB="-lpthread -lexc"
42588 if test "${CC}" = "gcc" ; then
42595 TAPEDRIVE="/dev/nrmt0"
42598 DISTVER=`uname -a |awk '{print $3}'`
42599 TAPEDRIVE="/dev/nrmt0"
42600 PTHREAD_LIB="-pthread"
42601 CFLAGS="${CFLAGS} -pthread"
42602 PSCMD="ps -ax -o pid,command"
42605 PFILES="${PFILES} \
42606 platforms/bsdi/Makefile \
42607 platforms/bsdi/bacula-fd \
42608 platforms/bsdi/bacula-sd \
42609 platforms/bsdi/bacula-dir"
42610 largefile_support="yes"
42613 DISTVER=`uname -a |awk '{print $3}'`
42614 TAPEDRIVE="/dev/nrst0"
42616 WCFLAGS="-mwindows"
42617 WLDFLAGS="-mwindows"
42621 TAPEDRIVE="/dev/nst0"
42622 PSCMD="ps -e -o pid,command"
42624 PFILES="${PFILES} \
42625 platforms/darwin/Makefile"
42628 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
42631 DISTVER=`cat /etc/debian_version`
42632 if test -f /etc/lsb-release ; then
42634 if test "x$DISTRIB_ID" != "x" ; then
42635 DISTNAME=$DISTRIB_ID
42637 if test "x$DISTRIB_RELEASE" != "x" ; then
42638 DISTVER=$DISTRIB_RELEASE
42641 if test "$DISTNAME" = "Ubuntu" ; then
42644 TAPEDRIVE="/dev/nst0"
42645 PSCMD="ps -e -o pid,command"
42646 if test "$DISTNAME" = "ubuntu" ; then
42647 PFILES="${PFILES} \
42648 platforms/ubuntu/Makefile \
42649 platforms/ubuntu/bacula-fd \
42650 platforms/ubuntu/bacula-sd \
42651 platforms/ubuntu/bacula-dir"
42653 PFILES="${PFILES} \
42654 platforms/debian/Makefile \
42655 platforms/debian/bacula-fd \
42656 platforms/debian/bacula-sd \
42657 platforms/debian/bacula-dir"
42661 DISTVER=`uname -a |awk '{print $3}'`
42662 VER=`echo $DISTVER | cut -c 1`
42663 if test x$VER = x4 ; then
42664 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
42665 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
42669 TAPEDRIVE="/dev/nrsa0"
42670 PSCMD="ps -ax -o pid,command"
42671 PFILES="${PFILES} \
42672 platforms/freebsd/Makefile \
42673 platforms/freebsd/bacula-fd \
42674 platforms/freebsd/bacula-sd \
42675 platforms/freebsd/bacula-dir"
42676 largefile_support="yes"
42679 PSCMD="UNIX95=1; ps -e -o pid,comm"
42680 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
42682 TAPEDRIVE="/dev/rmt/0hnb"
42683 PTHREAD_LIB="-lpthread"
42684 cat >>confdefs.h <<\_ACEOF
42685 #define _INCLUDE_LONGLONG 1
42691 TAPEDRIVE="/dev/rmt/0cbn"
42692 PSCMD="ps -e -o pid,comm"
42693 PFILES="${PFILES} \
42694 platforms/irix/Makefile \
42695 platforms/irix/bacula-fd \
42696 platforms/irix/bacula-sd \
42697 platforms/irix/bacula-dir"
42700 DISTVER=`uname -a |awk '{print $3}'`
42703 TAPEDRIVE="/dev/nrst0"
42704 PSCMD="ps -ax -o pid,command"
42705 PTHREAD_LIB="-pthread"
42706 CFLAGS="${CFLAGS} -pthread"
42709 DISTVER=`uname -a |awk '{print $3}'`
42712 TAPEDRIVE="/dev/nrst0"
42713 PSCMD="ps -ax -o pid,command"
42714 PTHREAD_LIB="-pthread"
42715 CFLAGS="${CFLAGS} -pthread"
42716 PFILES="${PFILES} \
42717 platforms/openbsd/Makefile \
42718 platforms/openbsd/bacula-fd \
42719 platforms/openbsd/bacula-sd \
42720 platforms/openbsd/bacula-dir"
42723 if test -f /etc/whitebox-release ; then
42724 f=/etc/whitebox-release
42726 f=/etc/redhat-release
42728 if test `cat $f | grep release |\
42729 cut -f 3 -d ' '`x = "Enterprise"x ; then
42730 DISTVER="Enterprise "`cat $f | grep release |\
42733 DISTVER=`cat /etc/redhat-release | grep release |\
42736 TAPEDRIVE="/dev/nst0"
42737 PSCMD="ps -e -o pid,command"
42738 PFILES="${PFILES} \
42739 platforms/redhat/Makefile \
42740 platforms/redhat/bacula-fd \
42741 platforms/redhat/bacula-sd \
42742 platforms/redhat/bacula-dir
42746 DISTVER=`cat /etc/mandrake-release | grep release |\
42748 TAPEDRIVE="/dev/nst0"
42749 PSCMD="ps -e -o pid,command"
42750 PFILES="${PFILES} \
42751 platforms/mandrake/Makefile \
42752 platforms/mandrake/bacula-fd \
42753 platforms/mandrake/bacula-sd \
42754 platforms/mandrake/bacula-dir \
42755 platforms/mandrake/bacula.spec \
42759 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
42760 TAPEDRIVE="/dev/nst0"
42761 PSCMD="ps -e -o pid,command"
42762 PFILES="${PFILES} \
42763 platforms/gentoo/Makefile \
42764 platforms/gentoo/bacula-init \
42765 platforms/gentoo/bacula-fd \
42766 platforms/gentoo/bacula-sd \
42767 platforms/gentoo/bacula-dir"
42770 DISTVER=`cat /etc/slackware-version`
42771 TAPEDRIVE="/dev/nst0"
42772 PSCMD="ps -e -o pid,command"
42773 PFILES="${PFILES} \
42774 platforms/slackware/Makefile \
42775 platforms/slackware/rc.bacula-fd \
42776 platforms/slackware/rc.bacula-sd \
42777 platforms/slackware/rc.bacula-dir\
42778 platforms/slackware/functions.bacula"
42782 TAPEDRIVE="/dev/rmt/0cbn"
42783 PSCMD="ps -e -o pid,comm"
42784 PFILES="${PFILES} \
42785 platforms/solaris/Makefile \
42786 platforms/solaris/bacula-fd \
42787 platforms/solaris/bacula-sd \
42788 platforms/solaris/bacula-dir"
42789 if test x$DISTVER = x5.6 ; then
42790 cat >>confdefs.h <<\_ACEOF
42791 #define HAVE_OLD_SOCKOPT 1
42795 LIBS="$LIBS -lresolv"
42798 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
42800 TAPEDRIVE="/dev/nst0"
42801 PSCMD="ps -e -o pid,command"
42802 PFILES="${PFILES} \
42803 platforms/suse/Makefile \
42804 platforms/suse/bacula-fd \
42805 platforms/suse/bacula-sd \
42806 platforms/suse/bacula-dir \
42807 platforms/suse/bacula \
42808 platforms/suse/bacula.spec"
42813 TAPEDRIVE="/dev/nst0"
42814 PSCMD="ps -e -o pid,command"
42815 PFILES="${PFILES} \
42816 platforms/suse/Makefile \
42817 platforms/suse/bacula-fd \
42818 platforms/suse/bacula-sd \
42819 platforms/suse/bacula-dir"
42823 TAPEDRIVE="/dev/nst0"
42826 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
42832 LIBS="$PTHREAD_LIB $LIBS"
42834 cat >>confdefs.h <<_ACEOF
42838 cat >>confdefs.h <<_ACEOF
42849 MCOMMON=./autoconf/Make.common
42852 if test "x${subsysdir}" = "x${sbindir}" ; then
42855 echo "You have set both --sbindir and --with-subsys-dir"
42856 echo " equal to: ${subsysdir} "
42857 echo "This is not permitted. Please reconfigure."
42859 echo "Aborting configuration ..."
42865 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/gnome2-console/Makefile src/gnome2-console/bgnome-console.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"
42867 ac_config_commands="$ac_config_commands default"
42869 cat >confcache <<\_ACEOF
42870 # This file is a shell script that caches the results of configure
42871 # tests run on this system so they can be shared between configure
42872 # scripts and configure runs, see configure's option --config-cache.
42873 # It is not useful on other systems. If it contains results you don't
42874 # want to keep, you may remove or edit it.
42876 # config.status only pays attention to the cache file if you give it
42877 # the --recheck option to rerun configure.
42879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
42880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
42881 # following values.
42885 # The following way of writing the cache mishandles newlines in values,
42886 # but we know of no workaround that is simple, portable, and efficient.
42887 # So, we kill variables containing newlines.
42888 # Ultrix sh set writes to stderr and can't be redirected directly,
42889 # and sets the high bit in the cache file unless we assign to the vars.
42891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
42892 eval ac_val=\$$ac_var
42896 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
42897 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
42900 _ | IFS | as_nl) ;; #(
42901 *) $as_unset $ac_var ;;
42907 case $as_nl`(ac_space=' '; set) 2>&1` in #(
42908 *${as_nl}ac_space=\ *)
42909 # `set' does not quote correctly, so add quotes (double-quote
42910 # substitution turns \\\\ into \\, and sed turns \\ into \).
42913 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42916 # `set' quotes correctly as required by POSIX, so do not add quotes.
42917 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
42926 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
42928 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
42930 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
42931 if test -w "$cache_file"; then
42932 test "x$cache_file" != "x/dev/null" &&
42933 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
42934 echo "$as_me: updating cache $cache_file" >&6;}
42935 cat confcache >$cache_file
42937 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
42938 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
42943 test "x$prefix" = xNONE && prefix=$ac_default_prefix
42944 # Let make expand exec_prefix.
42945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
42947 DEFS=-DHAVE_CONFIG_H
42951 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
42952 # 1. Remove the extension, and $U if already installed.
42953 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
42954 ac_i=`echo "$ac_i" | sed "$ac_script"`
42955 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
42956 # will be set to the directory where LIBOBJS objects are built.
42957 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
42958 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
42960 LIBOBJS=$ac_libobjs
42962 LTLIBOBJS=$ac_ltlibobjs
42966 : ${CONFIG_STATUS=./config.status}
42967 ac_clean_files_save=$ac_clean_files
42968 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
42969 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
42970 echo "$as_me: creating $CONFIG_STATUS" >&6;}
42971 cat >$CONFIG_STATUS <<_ACEOF
42973 # Generated by $as_me.
42974 # Run this file to recreate the current configuration.
42975 # Compiler output produced by configure, useful for debugging
42976 # configure, is in config.log if it exists.
42979 ac_cs_recheck=false
42981 SHELL=\${CONFIG_SHELL-$SHELL}
42984 cat >>$CONFIG_STATUS <<\_ACEOF
42985 ## --------------------- ##
42986 ## M4sh Initialization. ##
42987 ## --------------------- ##
42989 # Be more Bourne compatible
42990 DUALCASE=1; export DUALCASE # for MKS sh
42991 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42994 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
42995 # is contrary to our usage. Disable this feature.
42996 alias -g '${1+"$@"}'='"$@"'
42997 setopt NO_GLOB_SUBST
42999 case `(set -o) 2>/dev/null` in
43000 *posix*) set -o posix ;;
43009 # Avoid depending upon Character Ranges.
43010 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43011 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43012 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43013 as_cr_digits='0123456789'
43014 as_cr_alnum=$as_cr_Letters$as_cr_digits
43016 # The user is always right.
43017 if test "${PATH_SEPARATOR+set}" != set; then
43018 echo "#! /bin/sh" >conf$$.sh
43019 echo "exit 0" >>conf$$.sh
43021 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43029 # Support unset when possible.
43030 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43038 # We need space, tab and new line, in precisely that order. Quoting is
43039 # there to prevent editors from complaining about space-tab.
43040 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43041 # splitting by setting IFS to empty value.)
43046 # Find who we are. Look in the path if we contain no directory separator.
43048 *[\\/]* ) as_myself=$0 ;;
43049 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43050 for as_dir in $PATH
43053 test -z "$as_dir" && as_dir=.
43054 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43060 # We did not find ourselves, most probably we were run as `sh COMMAND'
43061 # in which case we are not to be found in the path.
43062 if test "x$as_myself" = x; then
43065 if test ! -f "$as_myself"; then
43066 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43067 { (exit 1); exit 1; }
43070 # Work around bugs in pre-3.0 UWIN ksh.
43071 for as_var in ENV MAIL MAILPATH
43072 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43080 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43081 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43082 LC_TELEPHONE LC_TIME
43084 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43085 eval $as_var=C; export $as_var
43087 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
43091 # Required to use basename.
43092 if expr a : '\(a\)' >/dev/null 2>&1 &&
43093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43099 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43100 as_basename=basename
43106 # Name of the executable.
43107 as_me=`$as_basename -- "$0" ||
43108 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43109 X"$0" : 'X\(//\)$' \| \
43110 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43112 sed '/^.*\/\([^/][^/]*\)\/*$/{
43131 as_lineno_1=$LINENO
43132 as_lineno_2=$LINENO
43133 test "x$as_lineno_1" != "x$as_lineno_2" &&
43134 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
43136 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43137 # uniformly replaced by the line number. The first 'sed' inserts a
43138 # line-number line after each line using $LINENO; the second 'sed'
43139 # does the real work. The second script uses 'N' to pair each
43140 # line-number line with the line containing $LINENO, and appends
43141 # trailing '-' during substitution so that $LINENO is not a special
43142 # case at line end.
43143 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43144 # scripts with optimization help from Paolo Bonzini. Blame Lee
43145 # E. McMahon (1931-1989) for sed's syntax. :-)
43157 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
43160 ' >$as_me.lineno &&
43161 chmod +x "$as_me.lineno" ||
43162 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
43163 { (exit 1); exit 1; }; }
43165 # Don't try to exec as it changes $[0], causing all sort of problems
43166 # (the dirname of $[0] is not the place where we might find the
43167 # original and so on. Autoconf is especially sensitive to this).
43168 . "./$as_me.lineno"
43169 # Exit status is that of the last command.
43174 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43180 ECHO_C= ECHO_N= ECHO_T=
43181 case `echo -n x` in
43183 case `echo 'x\c'` in
43184 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
43191 if expr a : '\(a\)' >/dev/null 2>&1 &&
43192 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43198 rm -f conf$$ conf$$.exe conf$$.file
43199 if test -d conf$$.dir; then
43200 rm -f conf$$.dir/conf$$.file
43206 if ln -s conf$$.file conf$$ 2>/dev/null; then
43208 # ... but there are two gotchas:
43209 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43210 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43211 # In both cases, we have to default to `cp -p'.
43212 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43214 elif ln conf$$.file conf$$ 2>/dev/null; then
43219 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43220 rmdir conf$$.dir 2>/dev/null
43222 if mkdir -p . 2>/dev/null; then
43225 test -d ./-p && rmdir ./-p
43229 if test -x / >/dev/null 2>&1; then
43230 as_test_x='test -x'
43232 if ls -dL / >/dev/null 2>&1; then
43239 if test -d "$1"; then
43245 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
43246 ???[sx]*):;;*)false;;esac;fi
43250 as_executable_p=$as_test_x
43252 # Sed expression to map a string onto a valid CPP name.
43253 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43255 # Sed expression to map a string onto a valid variable name.
43256 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43261 # Save the log message, to keep $[0] and so on meaningful, and to
43262 # report actual input values of CONFIG_FILES etc. instead of their
43263 # values after options handling.
43265 This file was extended by $as_me, which was
43266 generated by GNU Autoconf 2.61. Invocation command line was
43268 CONFIG_FILES = $CONFIG_FILES
43269 CONFIG_HEADERS = $CONFIG_HEADERS
43270 CONFIG_LINKS = $CONFIG_LINKS
43271 CONFIG_COMMANDS = $CONFIG_COMMANDS
43274 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43279 cat >>$CONFIG_STATUS <<_ACEOF
43280 # Files that config.status was made for.
43281 config_files="$ac_config_files"
43282 config_headers="$ac_config_headers"
43283 config_commands="$ac_config_commands"
43287 cat >>$CONFIG_STATUS <<\_ACEOF
43289 \`$as_me' instantiates files from templates according to the
43290 current configuration.
43292 Usage: $0 [OPTIONS] [FILE]...
43294 -h, --help print this help, then exit
43295 -V, --version print version number and configuration settings, then exit
43296 -q, --quiet do not print progress messages
43297 -d, --debug don't remove temporary files
43298 --recheck update $as_me by reconfiguring in the same conditions
43299 --file=FILE[:TEMPLATE]
43300 instantiate the configuration file FILE
43301 --header=FILE[:TEMPLATE]
43302 instantiate the configuration header FILE
43304 Configuration files:
43307 Configuration headers:
43310 Configuration commands:
43313 Report bugs to <bug-autoconf@gnu.org>."
43316 cat >>$CONFIG_STATUS <<_ACEOF
43319 configured by $0, generated by GNU Autoconf 2.61,
43320 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
43322 Copyright (C) 2006 Free Software Foundation, Inc.
43323 This config.status script is free software; the Free Software Foundation
43324 gives unlimited permission to copy, distribute and modify it."
43331 cat >>$CONFIG_STATUS <<\_ACEOF
43332 # If no file are specified by the user, then we need to provide default
43333 # value. By we need to know if files were specified by the user.
43339 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43340 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43351 # Handling of the options.
43352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43354 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43355 echo "$ac_cs_version"; exit ;;
43356 --debug | --debu | --deb | --de | --d | -d )
43358 --file | --fil | --fi | --f )
43360 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
43361 ac_need_defaults=false;;
43362 --header | --heade | --head | --hea )
43364 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
43365 ac_need_defaults=false;;
43367 # Conflict between --help and --header
43368 { echo "$as_me: error: ambiguous option: $1
43369 Try \`$0 --help' for more information." >&2
43370 { (exit 1); exit 1; }; };;
43371 --help | --hel | -h )
43372 echo "$ac_cs_usage"; exit ;;
43373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43374 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43377 # This is an error.
43378 -*) { echo "$as_me: error: unrecognized option: $1
43379 Try \`$0 --help' for more information." >&2
43380 { (exit 1); exit 1; }; } ;;
43382 *) ac_config_targets="$ac_config_targets $1"
43383 ac_need_defaults=false ;;
43389 ac_configure_extra_args=
43391 if $ac_cs_silent; then
43393 ac_configure_extra_args="$ac_configure_extra_args --silent"
43397 cat >>$CONFIG_STATUS <<_ACEOF
43398 if \$ac_cs_recheck; then
43399 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
43400 CONFIG_SHELL=$SHELL
43401 export CONFIG_SHELL
43402 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43406 cat >>$CONFIG_STATUS <<\_ACEOF
43410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43411 ## Running $as_me. ##
43417 cat >>$CONFIG_STATUS <<_ACEOF
43423 # The HP-UX ksh and POSIX shell print the target directory to stdout
43424 # if CDPATH is set.
43425 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43427 sed_quote_subst='$sed_quote_subst'
43428 double_quote_subst='$double_quote_subst'
43429 delay_variable_subst='$delay_variable_subst'
43430 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
43431 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
43432 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
43433 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
43434 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
43435 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
43436 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
43437 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
43438 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
43439 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
43440 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
43441 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
43442 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
43443 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
43444 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
43445 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
43446 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
43447 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
43448 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
43449 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
43450 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
43451 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
43452 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
43453 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
43454 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
43455 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
43456 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
43457 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43458 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
43459 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
43460 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
43461 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
43462 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43463 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
43464 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
43465 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43466 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43467 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43468 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
43469 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
43470 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
43471 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
43472 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
43473 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
43474 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"`'
43475 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"`'
43476 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
43477 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
43478 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
43479 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
43480 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
43481 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
43482 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
43483 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
43484 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
43485 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
43486 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
43487 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
43488 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
43489 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
43490 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
43491 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
43492 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43493 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43494 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
43495 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
43496 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43497 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43498 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
43499 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43500 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43501 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43502 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43503 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43504 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43505 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
43506 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43507 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
43508 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
43509 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
43510 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
43511 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
43512 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
43513 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
43514 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43515 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
43516 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
43517 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
43518 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
43519 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
43520 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43521 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43522 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
43523 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43524 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
43525 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
43526 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
43527 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
43528 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
43529 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43530 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
43531 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
43532 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43533 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
43534 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
43535 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43536 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43537 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
43538 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
43539 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
43540 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43541 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
43542 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
43543 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
43544 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
43545 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
43546 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
43547 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
43548 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
43549 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43550 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
43551 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
43552 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
43553 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
43554 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43555 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43556 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43557 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43558 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43559 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43560 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43561 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43562 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43563 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43564 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43565 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43566 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43567 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43568 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43569 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43570 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43571 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43572 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43573 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43574 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43575 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43576 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43577 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43578 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43579 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43580 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43581 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43582 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43583 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43584 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43585 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43586 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43587 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43588 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43589 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43590 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43591 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43592 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43593 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43594 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43595 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43596 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43597 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43598 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43599 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43600 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
43603 LTCFLAGS='$LTCFLAGS'
43604 compiler='$compiler_DEFAULT'
43606 # Quote evaled strings.
43618 deplibs_check_method \
43627 lt_cv_sys_global_symbol_pipe \
43628 lt_cv_sys_global_symbol_to_cdecl \
43629 lt_cv_sys_global_symbol_to_c_name_address \
43630 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
43633 lt_prog_compiler_no_builtin_flag \
43634 lt_prog_compiler_wl \
43635 lt_prog_compiler_pic \
43636 lt_prog_compiler_static \
43637 lt_cv_prog_compiler_c_o \
43645 export_dynamic_flag_spec \
43646 whole_archive_flag_spec \
43647 compiler_needs_object \
43649 allow_undefined_flag \
43650 no_undefined_flag \
43651 hardcode_libdir_flag_spec \
43652 hardcode_libdir_flag_spec_ld \
43653 hardcode_libdir_separator \
43658 variables_saved_for_relink \
43660 library_names_spec \
43665 compiler_lib_search_dirs \
43670 compiler_lib_search_path \
43673 lt_prog_compiler_no_builtin_flag_CXX \
43674 lt_prog_compiler_wl_CXX \
43675 lt_prog_compiler_pic_CXX \
43676 lt_prog_compiler_static_CXX \
43677 lt_cv_prog_compiler_c_o_CXX \
43678 export_dynamic_flag_spec_CXX \
43679 whole_archive_flag_spec_CXX \
43680 compiler_needs_object_CXX \
43682 allow_undefined_flag_CXX \
43683 no_undefined_flag_CXX \
43684 hardcode_libdir_flag_spec_CXX \
43685 hardcode_libdir_flag_spec_ld_CXX \
43686 hardcode_libdir_separator_CXX \
43687 fix_srcfile_path_CXX \
43688 exclude_expsyms_CXX \
43689 include_expsyms_CXX \
43690 file_list_spec_CXX \
43691 compiler_lib_search_dirs_CXX \
43692 predep_objects_CXX \
43693 postdep_objects_CXX \
43696 compiler_lib_search_path_CXX; do
43697 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43698 *[\\\\\\\`\\"\\\$]*)
43699 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
43702 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43707 # Double-quote double-evaled strings.
43708 for var in reload_cmds \
43709 old_postinstall_cmds \
43710 old_postuninstall_cmds \
43712 extract_expsyms_cmds \
43713 old_archive_from_new_cmds \
43714 old_archive_from_expsyms_cmds \
43716 archive_expsym_cmds \
43718 module_expsym_cmds \
43719 export_symbols_cmds \
43722 postuninstall_cmds \
43724 sys_lib_search_path_spec \
43725 sys_lib_dlsearch_path_spec \
43726 old_archive_cmds_CXX \
43727 old_archive_from_new_cmds_CXX \
43728 old_archive_from_expsyms_cmds_CXX \
43730 archive_expsym_cmds_CXX \
43732 module_expsym_cmds_CXX \
43733 export_symbols_cmds_CXX \
43734 prelink_cmds_CXX; do
43735 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
43736 *[\\\\\\\`\\"\\\$]*)
43737 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
43740 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
43745 # Fix-up fallback echo if it was mangled by the above quoting rules.
43747 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
43751 ac_aux_dir='$ac_aux_dir'
43752 xsi_shell='$xsi_shell'
43753 lt_shell_append='$lt_shell_append'
43755 # See if we are running on zsh, and set the options which allow our
43756 # commands through without removal of \ escapes INIT.
43757 if test -n "\${ZSH_VERSION+set}" ; then
43758 setopt NO_GLOB_SUBST
43764 TIMESTAMP='$TIMESTAMP'
43772 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
43773 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
43775 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
43776 # Capture the value of LINGUAS because we need it to compute CATALOGS.
43777 LINGUAS="${LINGUAS-%UNSET%}"
43782 cat >>$CONFIG_STATUS <<\_ACEOF
43784 # Handling of arguments.
43785 for ac_config_target in $ac_config_targets
43787 case $ac_config_target in
43788 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
43789 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
43790 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
43791 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
43792 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
43793 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
43794 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
43795 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
43796 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
43797 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
43798 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
43799 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
43800 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
43801 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
43802 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
43803 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
43804 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
43805 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
43806 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
43807 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
43808 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
43809 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
43810 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
43811 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
43812 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
43813 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
43814 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
43815 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
43816 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
43817 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
43818 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
43819 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
43820 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
43821 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
43822 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
43823 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
43824 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
43825 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
43826 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
43827 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
43828 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
43829 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
43830 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
43831 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
43832 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
43833 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
43834 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
43835 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
43836 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
43837 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
43838 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
43839 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
43840 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
43841 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
43842 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
43843 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
43844 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
43845 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
43846 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
43847 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
43848 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
43849 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
43850 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
43851 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
43852 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
43853 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
43854 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
43855 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
43856 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
43857 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
43858 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
43859 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
43860 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
43861 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
43862 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
43863 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
43864 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
43865 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
43866 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
43867 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
43868 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
43869 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
43870 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
43871 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
43872 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
43873 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
43874 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
43875 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
43876 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
43877 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
43878 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
43879 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
43880 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
43881 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
43882 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
43883 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
43884 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
43885 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
43886 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
43887 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
43888 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
43889 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
43890 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
43891 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
43892 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
43893 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
43894 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
43895 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
43896 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
43897 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
43898 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
43899 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
43900 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
43901 "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
43902 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
43903 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
43904 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
43905 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
43906 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
43907 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
43909 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
43910 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
43911 { (exit 1); exit 1; }; };;
43916 # If the user did not use the arguments to specify the items to instantiate,
43917 # then the envvar interface is used. Set only those that are not.
43918 # We use the long form for the default assignment because of an extremely
43919 # bizarre bug on SunOS 4.1.3.
43920 if $ac_need_defaults; then
43921 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
43922 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
43923 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
43926 # Have a temporary directory for convenience. Make it in the build tree
43927 # simply because there is no reason against having it here, and in addition,
43928 # creating and moving files from /tmp can sometimes cause problems.
43929 # Hook for its removal unless debugging.
43930 # Note that there is a small window in which the directory will not be cleaned:
43931 # after its creation but before its name has been assigned to `$tmp'.
43935 trap 'exit_status=$?
43936 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
43938 trap '{ (exit 1); exit 1; }' 1 2 13 15
43940 # Create a (secure) tmp directory for tmp files.
43943 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
43944 test -n "$tmp" && test -d "$tmp"
43947 tmp=./conf$$-$RANDOM
43948 (umask 077 && mkdir "$tmp")
43951 echo "$me: cannot create a temporary directory in ." >&2
43952 { (exit 1); exit 1; }
43956 # Set up the sed scripts for CONFIG_FILES section.
43959 # No need to generate the scripts if there are no CONFIG_FILES.
43960 # This happens for instance when ./config.status config.h
43961 if test -n "$CONFIG_FILES"; then
43965 # Create sed commands to just substitute file output variables.
43967 # Remaining file output variables are in a fragment that also has non-file
43973 for ac_last_try in false false false false false :; do
43974 cat >conf$$subs.sed <<_ACEOF
43975 SHELL!$SHELL$ac_delim
43976 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
43977 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
43978 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
43979 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
43980 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
43981 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
43982 exec_prefix!$exec_prefix$ac_delim
43983 prefix!$prefix$ac_delim
43984 program_transform_name!$program_transform_name$ac_delim
43985 bindir!$bindir$ac_delim
43986 sbindir!$sbindir$ac_delim
43987 libexecdir!$libexecdir$ac_delim
43988 datarootdir!$datarootdir$ac_delim
43989 datadir!$datadir$ac_delim
43990 sysconfdir!$sysconfdir$ac_delim
43991 sharedstatedir!$sharedstatedir$ac_delim
43992 localstatedir!$localstatedir$ac_delim
43993 includedir!$includedir$ac_delim
43994 oldincludedir!$oldincludedir$ac_delim
43995 docdir!$docdir$ac_delim
43996 infodir!$infodir$ac_delim
43997 htmldir!$htmldir$ac_delim
43998 dvidir!$dvidir$ac_delim
43999 pdfdir!$pdfdir$ac_delim
44000 psdir!$psdir$ac_delim
44001 libdir!$libdir$ac_delim
44002 localedir!$localedir$ac_delim
44003 mandir!$mandir$ac_delim
44004 DEFS!$DEFS$ac_delim
44005 ECHO_C!$ECHO_C$ac_delim
44006 ECHO_N!$ECHO_N$ac_delim
44007 ECHO_T!$ECHO_T$ac_delim
44008 LIBS!$LIBS$ac_delim
44009 build_alias!$build_alias$ac_delim
44010 host_alias!$host_alias$ac_delim
44011 target_alias!$target_alias$ac_delim
44012 BUILD_DIR!$BUILD_DIR$ac_delim
44013 TOP_DIR!$TOP_DIR$ac_delim
44014 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44015 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44016 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44017 TRUEPRG!$TRUEPRG$ac_delim
44018 FALSEPRG!$FALSEPRG$ac_delim
44019 VERSION!$VERSION$ac_delim
44020 DATE!$DATE$ac_delim
44021 LSMDATE!$LSMDATE$ac_delim
44022 BACULA!$BACULA$ac_delim
44023 post_host!$post_host$ac_delim
44025 CFLAGS!$CFLAGS$ac_delim
44026 LDFLAGS!$LDFLAGS$ac_delim
44027 CPPFLAGS!$CPPFLAGS$ac_delim
44028 ac_ct_CC!$ac_ct_CC$ac_delim
44029 EXEEXT!$EXEEXT$ac_delim
44030 OBJEXT!$OBJEXT$ac_delim
44032 CXXFLAGS!$CXXFLAGS$ac_delim
44033 ac_ct_CXX!$ac_ct_CXX$ac_delim
44035 GREP!$GREP$ac_delim
44036 EGREP!$EGREP$ac_delim
44037 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44038 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44039 INSTALL_DATA!$INSTALL_DATA$ac_delim
44041 REMOVE!$REMOVE$ac_delim
44044 ECHO!$ECHO$ac_delim
44048 OPENSSL!$OPENSSL$ac_delim
44051 MKISOFS!$MKISOFS$ac_delim
44052 PYTHON!$PYTHON$ac_delim
44053 GROWISOFS!$GROWISOFS$ac_delim
44054 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
44055 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
44056 PKGCONFIG!$PKGCONFIG$ac_delim
44057 QMAKE!$QMAKE$ac_delim
44058 QMAKEQT4!$QMAKEQT4$ac_delim
44059 GMAKE!$GMAKE$ac_delim
44060 WXCONFIG!$WXCONFIG$ac_delim
44061 WXFLAGS!$WXFLAGS$ac_delim
44062 CDRECORD!$CDRECORD$ac_delim
44063 PIDOF!$PIDOF$ac_delim
44065 ARFLAGS!$ARFLAGS$ac_delim
44066 MAKE_SHELL!$MAKE_SHELL$ac_delim
44067 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
44068 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
44071 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
44073 elif $ac_last_try; then
44074 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44075 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44076 { (exit 1); exit 1; }; }
44078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44082 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44083 if test -n "$ac_eof"; then
44084 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44085 ac_eof=`expr $ac_eof + 1`
44088 cat >>$CONFIG_STATUS <<_ACEOF
44089 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
44090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44091 /^[ ]*@MCOMMON@[ ]*$/{
44097 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44098 s/^/s,@/; s/!/@,|#_!!_#|/
44101 s/'"$ac_delim"'$/,g/; t
44103 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44104 ' >>$CONFIG_STATUS <conf$$subs.sed
44105 rm -f conf$$subs.sed
44106 cat >>$CONFIG_STATUS <<_ACEOF
44112 for ac_last_try in false false false false false :; do
44113 cat >conf$$subs.sed <<_ACEOF
44114 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
44115 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
44116 LIBTOOL!$LIBTOOL$ac_delim
44117 build!$build$ac_delim
44118 build_cpu!$build_cpu$ac_delim
44119 build_vendor!$build_vendor$ac_delim
44120 build_os!$build_os$ac_delim
44121 host!$host$ac_delim
44122 host_cpu!$host_cpu$ac_delim
44123 host_vendor!$host_vendor$ac_delim
44124 host_os!$host_os$ac_delim
44125 FGREP!$FGREP$ac_delim
44127 DUMPBIN!$DUMPBIN$ac_delim
44128 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
44130 LN_S!$LN_S$ac_delim
44131 OBJDUMP!$OBJDUMP$ac_delim
44132 STRIP!$STRIP$ac_delim
44133 RANLIB!$RANLIB$ac_delim
44134 lt_ECHO!$lt_ECHO$ac_delim
44135 DSYMUTIL!$DSYMUTIL$ac_delim
44136 NMEDIT!$NMEDIT$ac_delim
44137 LIPO!$LIPO$ac_delim
44138 OTOOL!$OTOOL$ac_delim
44139 OTOOL64!$OTOOL64$ac_delim
44140 CXXCPP!$CXXCPP$ac_delim
44141 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
44142 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
44143 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
44144 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
44145 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
44146 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
44147 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
44148 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
44149 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
44150 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
44151 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
44152 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
44153 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
44154 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
44155 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
44156 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
44157 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
44158 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
44159 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
44160 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
44161 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
44162 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
44163 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
44164 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
44165 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
44166 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
44167 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
44168 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
44169 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
44170 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
44171 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
44172 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
44173 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
44174 SET_MAKE!$SET_MAKE$ac_delim
44175 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
44176 USE_NLS!$USE_NLS$ac_delim
44177 MSGFMT!$MSGFMT$ac_delim
44178 GMSGFMT!$GMSGFMT$ac_delim
44179 XGETTEXT!$XGETTEXT$ac_delim
44180 MSGMERGE!$MSGMERGE$ac_delim
44181 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
44182 LIBICONV!$LIBICONV$ac_delim
44183 LTLIBICONV!$LTLIBICONV$ac_delim
44184 INTLLIBS!$INTLLIBS$ac_delim
44185 LIBINTL!$LIBINTL$ac_delim
44186 LTLIBINTL!$LTLIBINTL$ac_delim
44187 POSUB!$POSUB$ac_delim
44188 GLIBC2!$GLIBC2$ac_delim
44189 ALLOCA!$ALLOCA$ac_delim
44190 GLIBC21!$GLIBC21$ac_delim
44191 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
44192 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
44193 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
44194 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
44195 INTLBISON!$INTLBISON$ac_delim
44196 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
44197 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
44198 CATOBJEXT!$CATOBJEXT$ac_delim
44199 DATADIRNAME!$DATADIRNAME$ac_delim
44200 INSTOBJEXT!$INSTOBJEXT$ac_delim
44201 GENCAT!$GENCAT$ac_delim
44202 INTLOBJS!$INTLOBJS$ac_delim
44203 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
44204 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
44205 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
44206 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
44207 GNOME_LIBS!$GNOME_LIBS$ac_delim
44208 GNOME_DIR!$GNOME_DIR$ac_delim
44209 BAT_DIR!$BAT_DIR$ac_delim
44210 QWT_INC!$QWT_INC$ac_delim
44213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
44215 elif $ac_last_try; then
44216 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44217 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44218 { (exit 1); exit 1; }; }
44220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44224 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44225 if test -n "$ac_eof"; then
44226 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44227 ac_eof=`expr $ac_eof + 1`
44230 cat >>$CONFIG_STATUS <<_ACEOF
44231 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
44232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44235 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44236 s/^/s,@/; s/!/@,|#_!!_#|/
44239 s/'"$ac_delim"'$/,g/; t
44241 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44242 ' >>$CONFIG_STATUS <conf$$subs.sed
44243 rm -f conf$$subs.sed
44244 cat >>$CONFIG_STATUS <<_ACEOF
44250 for ac_last_try in false false false false false :; do
44251 cat >conf$$subs.sed <<_ACEOF
44252 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
44253 QWT_LIB!$QWT_LIB$ac_delim
44255 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
44256 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
44257 WX_DIR!$WX_DIR$ac_delim
44258 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
44259 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
44260 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
44261 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
44262 STATIC_FD!$STATIC_FD$ac_delim
44263 STATIC_SD!$STATIC_SD$ac_delim
44264 STATIC_DIR!$STATIC_DIR$ac_delim
44265 STATIC_CONS!$STATIC_CONS$ac_delim
44266 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
44267 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
44268 ALL_DIRS!$ALL_DIRS$ac_delim
44269 DIRD_DIR!$DIRD_DIR$ac_delim
44270 DIR_TOOLS!$DIR_TOOLS$ac_delim
44271 STORED_DIR!$STORED_DIR$ac_delim
44272 CONS_INC!$CONS_INC$ac_delim
44273 CONS_OBJ!$CONS_OBJ$ac_delim
44274 CONS_SRC!$CONS_SRC$ac_delim
44275 CONS_LIBS!$CONS_LIBS$ac_delim
44276 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
44277 READLINE_SRC!$READLINE_SRC$ac_delim
44278 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
44279 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
44280 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
44281 OPENSSL_INC!$OPENSSL_INC$ac_delim
44282 working_dir!$working_dir$ac_delim
44283 archivedir!$archivedir$ac_delim
44284 basename!$basename$ac_delim
44285 hostname!$hostname$ac_delim
44286 scriptdir!$scriptdir$ac_delim
44287 bsrdir!$bsrdir$ac_delim
44288 logdir!$logdir$ac_delim
44289 plugindir!$plugindir$ac_delim
44290 dump_email!$dump_email$ac_delim
44291 job_email!$job_email$ac_delim
44292 smtp_host!$smtp_host$ac_delim
44293 piddir!$piddir$ac_delim
44294 subsysdir!$subsysdir$ac_delim
44295 baseport!$baseport$ac_delim
44296 dir_port!$dir_port$ac_delim
44297 fd_port!$fd_port$ac_delim
44298 sd_port!$sd_port$ac_delim
44299 dir_password!$dir_password$ac_delim
44300 fd_password!$fd_password$ac_delim
44301 sd_password!$sd_password$ac_delim
44302 mon_dir_password!$mon_dir_password$ac_delim
44303 mon_fd_password!$mon_fd_password$ac_delim
44304 mon_sd_password!$mon_sd_password$ac_delim
44305 db_name!$db_name$ac_delim
44306 db_user!$db_user$ac_delim
44307 db_password!$db_password$ac_delim
44308 db_port!$db_port$ac_delim
44309 dir_user!$dir_user$ac_delim
44310 dir_group!$dir_group$ac_delim
44311 sd_user!$sd_user$ac_delim
44312 sd_group!$sd_group$ac_delim
44313 fd_user!$fd_user$ac_delim
44314 fd_group!$fd_group$ac_delim
44315 SBINPERM!$SBINPERM$ac_delim
44316 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
44317 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
44318 SQL_BINDIR!$SQL_BINDIR$ac_delim
44319 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
44320 uncomment_dbi!$uncomment_dbi$ac_delim
44321 DB_PROG!$DB_PROG$ac_delim
44322 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
44323 cats!$cats$ac_delim
44324 DB_TYPE!$DB_TYPE$ac_delim
44325 GETCONF!$GETCONF$ac_delim
44326 XMKMF!$XMKMF$ac_delim
44327 X_CFLAGS!$X_CFLAGS$ac_delim
44328 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
44329 X_LIBS!$X_LIBS$ac_delim
44330 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
44331 LIBOBJS!$LIBOBJS$ac_delim
44332 FDLIBS!$FDLIBS$ac_delim
44333 DEBUG!$DEBUG$ac_delim
44334 DINCLUDE!$DINCLUDE$ac_delim
44335 DLIB!$DLIB$ac_delim
44336 DB_LIBS!$DB_LIBS$ac_delim
44337 WCFLAGS!$WCFLAGS$ac_delim
44338 WLDFLAGS!$WLDFLAGS$ac_delim
44339 WRAPLIBS!$WRAPLIBS$ac_delim
44340 OBJLIST!$OBJLIST$ac_delim
44341 TAPEDRIVE!$TAPEDRIVE$ac_delim
44342 PSCMD!$PSCMD$ac_delim
44343 WIN32!$WIN32$ac_delim
44344 MACOSX!$MACOSX$ac_delim
44345 DISTNAME!$DISTNAME$ac_delim
44346 DISTVER!$DISTVER$ac_delim
44347 LTLIBOBJS!$LTLIBOBJS$ac_delim
44350 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
44352 elif $ac_last_try; then
44353 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
44354 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
44355 { (exit 1); exit 1; }; }
44357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44361 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
44362 if test -n "$ac_eof"; then
44363 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
44364 ac_eof=`expr $ac_eof + 1`
44367 cat >>$CONFIG_STATUS <<_ACEOF
44368 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
44369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44372 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
44373 s/^/s,@/; s/!/@,|#_!!_#|/
44376 s/'"$ac_delim"'$/,g/; t
44378 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
44379 ' >>$CONFIG_STATUS <conf$$subs.sed
44380 rm -f conf$$subs.sed
44381 cat >>$CONFIG_STATUS <<_ACEOF
44386 # VPATH may cause trouble with some makes, so we remove $(srcdir),
44387 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
44388 # trailing colons and then remove the whole line if VPATH becomes empty
44389 # (actually we leave an empty line to preserve line numbers).
44390 if test "x$srcdir" = x.; then
44391 ac_vpsub='/^[ ]*VPATH[ ]*=/{
44392 s/:*\$(srcdir):*/:/
44393 s/:*\${srcdir}:*/:/
44395 s/^\([^=]*=[ ]*\):*/\1/
44401 cat >>$CONFIG_STATUS <<\_ACEOF
44402 fi # test -n "$CONFIG_FILES"
44405 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
44408 :[FHLC]) ac_mode=$ac_tag; continue;;
44410 case $ac_mode$ac_tag in
44412 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
44413 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
44414 { (exit 1); exit 1; }; };;
44415 :[FH]-) ac_tag=-:-;;
44416 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44433 -) ac_f="$tmp/stdin";;
44434 *) # Look for the file first in the build tree, then in the source tree
44435 # (if the path is not absolute). The absolute path cannot be DOS-style,
44436 # because $ac_f cannot contain `:'.
44440 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44442 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
44443 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
44444 { (exit 1); exit 1; }; };;
44446 ac_file_inputs="$ac_file_inputs $ac_f"
44449 # Let's still pretend it is `configure' which instantiates (i.e., don't
44450 # use $as_me), people would be surprised to read:
44451 # /* config.h. Generated by config.status. */
44452 configure_input="Generated from "`IFS=:
44453 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
44454 if test x"$ac_file" != x-; then
44455 configure_input="$ac_file. $configure_input"
44456 { echo "$as_me:$LINENO: creating $ac_file" >&5
44457 echo "$as_me: creating $ac_file" >&6;}
44461 *:-:* | *:-) cat >"$tmp/stdin";;
44466 ac_dir=`$as_dirname -- "$ac_file" ||
44467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44468 X"$ac_file" : 'X\(//\)[^/]' \| \
44469 X"$ac_file" : 'X\(//\)$' \| \
44470 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44476 /^X\(\/\/\)[^/].*/{
44491 -*) as_dir=./$as_dir;;
44493 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
44497 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
44498 *) as_qdir=$as_dir;;
44500 as_dirs="'$as_qdir' $as_dirs"
44501 as_dir=`$as_dirname -- "$as_dir" ||
44502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44503 X"$as_dir" : 'X\(//\)[^/]' \| \
44504 X"$as_dir" : 'X\(//\)$' \| \
44505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
44507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44511 /^X\(\/\/\)[^/].*/{
44524 test -d "$as_dir" && break
44526 test -z "$as_dirs" || eval "mkdir $as_dirs"
44527 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
44528 echo "$as_me: error: cannot create directory $as_dir" >&2;}
44529 { (exit 1); exit 1; }; }; }
44533 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44535 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44536 # A ".." for each directory in $ac_dir_suffix.
44537 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
44538 case $ac_top_builddir_sub in
44539 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44540 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44543 ac_abs_top_builddir=$ac_pwd
44544 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44545 # for backward compatibility:
44546 ac_top_builddir=$ac_top_build_prefix
44549 .) # We are building in place.
44551 ac_top_srcdir=$ac_top_builddir_sub
44552 ac_abs_top_srcdir=$ac_pwd ;;
44553 [\\/]* | ?:[\\/]* ) # Absolute name.
44554 ac_srcdir=$srcdir$ac_dir_suffix;
44555 ac_top_srcdir=$srcdir
44556 ac_abs_top_srcdir=$srcdir ;;
44557 *) # Relative name.
44558 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44559 ac_top_srcdir=$ac_top_build_prefix$srcdir
44560 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44562 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44572 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44573 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44577 cat >>$CONFIG_STATUS <<\_ACEOF
44578 # If the template does not know about datarootdir, expand it.
44579 # FIXME: This hack should be removed a few years after 2.60.
44580 ac_datarootdir_hack=; ac_datarootdir_seen=
44582 case `sed -n '/datarootdir/ {
44591 ' $ac_file_inputs` in
44592 *datarootdir*) ac_datarootdir_seen=yes;;
44593 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44594 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44595 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44597 cat >>$CONFIG_STATUS <<_ACEOF
44598 ac_datarootdir_hack='
44599 s&@datadir@&$datadir&g
44600 s&@docdir@&$docdir&g
44601 s&@infodir@&$infodir&g
44602 s&@localedir@&$localedir&g
44603 s&@mandir@&$mandir&g
44604 s&\\\${datarootdir}&$datarootdir&g' ;;
44608 # Neutralize VPATH when `$srcdir' = `.'.
44609 # Shell code in configure.ac might set extrasub.
44610 # FIXME: do we really want to maintain this feature?
44611 cat >>$CONFIG_STATUS <<_ACEOF
44615 cat >>$CONFIG_STATUS <<\_ACEOF
44617 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44618 s&@configure_input@&$configure_input&;t t
44619 s&@top_builddir@&$ac_top_builddir_sub&;t t
44620 s&@srcdir@&$ac_srcdir&;t t
44621 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44622 s&@top_srcdir@&$ac_top_srcdir&;t t
44623 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44624 s&@builddir@&$ac_builddir&;t t
44625 s&@abs_builddir@&$ac_abs_builddir&;t t
44626 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44627 s&@INSTALL@&$ac_INSTALL&;t t
44628 $ac_datarootdir_hack
44629 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed 's/|#_!!_#|//g' >$tmp/out
44631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44632 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
44633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
44634 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44635 which seems to be undefined. Please make sure it is defined." >&5
44636 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44637 which seems to be undefined. Please make sure it is defined." >&2;}
44641 -) cat "$tmp/out"; rm -f "$tmp/out";;
44642 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
44651 # Transform confdefs.h into a sed script `conftest.defines', that
44652 # substitutes the proper values into config.h.in to produce config.h.
44653 rm -f conftest.defines conftest.tail
44654 # First, append a space to every undef/define line, to ease matching.
44655 echo 's/$/ /' >conftest.defines
44656 # Then, protect against being on the right side of a sed subst, or in
44657 # an unquoted here document, in config.status. If some macros were
44658 # called several times there might be several #defines for the same
44659 # symbol, which is useless. But do not sort them, since the last
44660 # AC_DEFINE must be honored.
44661 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44662 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
44663 # NAME is the cpp macro being defined, VALUE is the value it is being given.
44664 # PARAMS is the parameter list in the macro definition--in most cases, it's
44665 # just an empty string.
44666 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
44667 ac_dB='\\)[ (].*,\\1define\\2'
44675 s/^[ ]*#[ ]*define[ ][ ]*//
44680 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
44681 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
44682 ' >>conftest.defines
44684 # Remove the space that was appended to ease matching.
44685 # Then replace #undef with comments. This is necessary, for
44686 # example, in the case of _POSIX_SOURCE, which is predefined and required
44687 # on some systems where configure will not decide to define it.
44688 # (The regexp can be short, since the line contains either #define or #undef.)
44690 s,^[ #]*u.*,/* & */,' >>conftest.defines
44692 # Break up conftest.defines:
44693 ac_max_sed_lines=50
44695 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
44696 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
44697 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
44699 ac_in='$ac_file_inputs'
44700 ac_out='"$tmp/out1"'
44701 ac_nxt='"$tmp/out2"'
44705 # Write a here document:
44706 cat >>$CONFIG_STATUS <<_ACEOF
44707 # First, check the format of the line:
44708 cat >"\$tmp/defines.sed" <<\\CEOF
44709 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
44710 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
44714 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
44716 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
44717 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
44718 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
44719 grep . conftest.tail >/dev/null || break
44720 rm -f conftest.defines
44721 mv conftest.tail conftest.defines
44723 rm -f conftest.defines conftest.tail
44725 echo "ac_result=$ac_in" >>$CONFIG_STATUS
44726 cat >>$CONFIG_STATUS <<\_ACEOF
44727 if test x"$ac_file" != x-; then
44728 echo "/* $configure_input */" >"$tmp/config.h"
44729 cat "$ac_result" >>"$tmp/config.h"
44730 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
44731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44732 echo "$as_me: $ac_file is unchanged" >&6;}
44735 mv "$tmp/config.h" $ac_file
44738 echo "/* $configure_input */"
44744 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
44745 echo "$as_me: executing $ac_file commands" >&6;}
44750 case $ac_file$ac_mode in
44753 # See if we are running on zsh, and set the options which allow our
44754 # commands through without removal of \ escapes.
44755 if test -n "${ZSH_VERSION+set}" ; then
44756 setopt NO_GLOB_SUBST
44759 cfgfile="${ofile}T"
44760 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44763 cat <<_LT_EOF >> "$cfgfile"
44766 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
44767 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
44768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
44769 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44771 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
44772 # 2006, 2007, 2008 Free Software Foundation, Inc.
44773 # Written by Gordon Matzigkeit, 1996
44775 # This file is part of GNU Libtool.
44777 # GNU Libtool is free software; you can redistribute it and/or
44778 # modify it under the terms of the GNU General Public License as
44779 # published by the Free Software Foundation; either version 2 of
44780 # the License, or (at your option) any later version.
44782 # As a special exception to the GNU General Public License,
44783 # if you distribute this file as part of a program or library that
44784 # is built using GNU Libtool, you may include this file under the
44785 # same distribution terms that you use for the rest of that program.
44787 # GNU Libtool is distributed in the hope that it will be useful,
44788 # but WITHOUT ANY WARRANTY; without even the implied warranty of
44789 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44790 # GNU General Public License for more details.
44792 # You should have received a copy of the GNU General Public License
44793 # along with GNU Libtool; see the file COPYING. If not, a copy
44794 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
44795 # obtained by writing to the Free Software Foundation, Inc.,
44796 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
44799 # The names of the tagged configurations supported by this script.
44800 available_tags="CXX "
44802 # ### BEGIN LIBTOOL CONFIG
44804 # Which release of libtool.m4 was used?
44805 macro_version=$macro_version
44806 macro_revision=$macro_revision
44808 # Whether or not to build shared libraries.
44809 build_libtool_libs=$enable_shared
44811 # Whether or not to build static libraries.
44812 build_old_libs=$enable_static
44814 # What type of objects to build.
44817 # Whether or not to optimize for fast installation.
44818 fast_install=$enable_fast_install
44821 host_alias=$host_alias
44825 # The build system.
44826 build_alias=$build_alias
44830 # A sed program that does not truncate output.
44833 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
44834 Xsed="\$SED -e 1s/^X//"
44836 # A grep program that handles long lines.
44842 # A literal string matcher.
44845 # A BSD- or MS-compatible name lister.
44848 # Whether we need soft or hard links.
44851 # What is the maximum length of a command?
44852 max_cmd_len=$max_cmd_len
44854 # Object file suffix (normally "o").
44857 # Executable file suffix (normally "").
44860 # whether the shell understands "unset".
44863 # turn spaces into newlines.
44866 # turn newlines into spaces.
44869 # How to create reloadable object files.
44870 reload_flag=$lt_reload_flag
44871 reload_cmds=$lt_reload_cmds
44873 # An object symbol dumper.
44874 OBJDUMP=$lt_OBJDUMP
44876 # Method to check whether dependent libraries are shared objects.
44877 deplibs_check_method=$lt_deplibs_check_method
44879 # Command to use when deplibs_check_method == "file_magic".
44880 file_magic_cmd=$lt_file_magic_cmd
44884 AR_FLAGS=$lt_AR_FLAGS
44886 # A symbol stripping program.
44889 # Commands used to install an old-style archive.
44891 old_postinstall_cmds=$lt_old_postinstall_cmds
44892 old_postuninstall_cmds=$lt_old_postuninstall_cmds
44897 # LTCC compiler flags.
44898 LTCFLAGS=$lt_CFLAGS
44900 # Take the output of nm and produce a listing of raw symbols and C names.
44901 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
44903 # Transform the output of nm in a proper C declaration.
44904 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
44906 # Transform the output of nm in a C name address pair.
44907 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
44909 # Transform the output of nm in a C name address pair when lib prefix is needed.
44910 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
44912 # The name of the directory that contains temporary libtool files.
44915 # Shell to use when invoking shell scripts.
44918 # An echo program that does not interpret backslashes.
44921 # Used to examine libraries when file_magic_cmd begins with "file".
44922 MAGIC_CMD=$MAGIC_CMD
44924 # Must we lock files when doing compilation?
44925 need_locks=$lt_need_locks
44927 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
44928 DSYMUTIL=$lt_DSYMUTIL
44930 # Tool to change global to local symbols on Mac OS X.
44933 # Tool to manipulate fat objects and archives on Mac OS X.
44936 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
44939 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
44940 OTOOL64=$lt_OTOOL64
44942 # Old archive suffix (normally "a").
44945 # Shared library suffix (normally ".so").
44946 shrext_cmds=$lt_shrext_cmds
44948 # The commands to extract the exported symbol list from a shared archive.
44949 extract_expsyms_cmds=$lt_extract_expsyms_cmds
44951 # Variables whose values should be saved in libtool wrapper scripts and
44952 # restored at link time.
44953 variables_saved_for_relink=$lt_variables_saved_for_relink
44955 # Do we need the "lib" prefix for modules?
44956 need_lib_prefix=$need_lib_prefix
44958 # Do we need a version for libraries?
44959 need_version=$need_version
44961 # Library versioning type.
44962 version_type=$version_type
44964 # Shared library runtime path variable.
44965 runpath_var=$runpath_var
44967 # Shared library path variable.
44968 shlibpath_var=$shlibpath_var
44970 # Is shlibpath searched before the hard-coded library search path?
44971 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
44973 # Format of library name prefix.
44974 libname_spec=$lt_libname_spec
44976 # List of archive names. First name is the real one, the rest are links.
44977 # The last name is the one that the linker finds with -lNAME
44978 library_names_spec=$lt_library_names_spec
44980 # The coded name of the library, if different from the real name.
44981 soname_spec=$lt_soname_spec
44983 # Command to use after installation of a shared archive.
44984 postinstall_cmds=$lt_postinstall_cmds
44986 # Command to use after uninstallation of a shared archive.
44987 postuninstall_cmds=$lt_postuninstall_cmds
44989 # Commands used to finish a libtool library installation in a directory.
44990 finish_cmds=$lt_finish_cmds
44992 # As "finish_cmds", except a single script fragment to be evaled but
44994 finish_eval=$lt_finish_eval
44996 # Whether we should hardcode library paths into libraries.
44997 hardcode_into_libs=$hardcode_into_libs
44999 # Compile-time system search path for libraries.
45000 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45002 # Run-time system search path for libraries.
45003 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45005 # Whether dlopen is supported.
45006 dlopen_support=$enable_dlopen
45008 # Whether dlopen of programs is supported.
45009 dlopen_self=$enable_dlopen_self
45011 # Whether dlopen of statically linked programs is supported.
45012 dlopen_self_static=$enable_dlopen_self_static
45014 # Commands to strip libraries.
45015 old_striplib=$lt_old_striplib
45016 striplib=$lt_striplib
45019 # The linker used to build libraries.
45022 # Commands used to build an old-style archive.
45023 old_archive_cmds=$lt_old_archive_cmds
45025 # A language specific compiler.
45028 # Is the compiler the GNU compiler?
45031 # Compiler flag to turn off builtin functions.
45032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45034 # How to pass a linker flag through the compiler.
45035 wl=$lt_lt_prog_compiler_wl
45037 # Additional compiler flags for building library objects.
45038 pic_flag=$lt_lt_prog_compiler_pic
45040 # Compiler flag to prevent dynamic linking.
45041 link_static_flag=$lt_lt_prog_compiler_static
45043 # Does compiler simultaneously support -c and -o options?
45044 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45046 # Whether or not to add -lc for building shared libraries.
45047 build_libtool_need_lc=$archive_cmds_need_lc
45049 # Whether or not to disallow shared libs when runtime libs are static.
45050 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45052 # Compiler flag to allow reflexive dlopens.
45053 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45055 # Compiler flag to generate shared objects directly from archives.
45056 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45058 # Whether the compiler copes with passing no objects directly.
45059 compiler_needs_object=$lt_compiler_needs_object
45061 # Create an old-style archive from a shared archive.
45062 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45064 # Create a temporary old-style archive to link instead of a shared archive.
45065 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45067 # Commands used to build a shared archive.
45068 archive_cmds=$lt_archive_cmds
45069 archive_expsym_cmds=$lt_archive_expsym_cmds
45071 # Commands used to build a loadable module if different from building
45072 # a shared archive.
45073 module_cmds=$lt_module_cmds
45074 module_expsym_cmds=$lt_module_expsym_cmds
45076 # Whether we are building with GNU ld or not.
45077 with_gnu_ld=$lt_with_gnu_ld
45079 # Flag that allows shared libraries with undefined symbols to be built.
45080 allow_undefined_flag=$lt_allow_undefined_flag
45082 # Flag that enforces no undefined symbols.
45083 no_undefined_flag=$lt_no_undefined_flag
45085 # Flag to hardcode \$libdir into a binary during linking.
45086 # This must work even if \$libdir does not exist
45087 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45089 # If ld is used when linking, flag to hardcode \$libdir into a binary
45090 # during linking. This must work even if \$libdir does not exist.
45091 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
45093 # Whether we need a single "-rpath" flag with a separated argument.
45094 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45097 # DIR into the resulting binary.
45098 hardcode_direct=$hardcode_direct
45100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45101 # DIR into the resulting binary and the resulting library dependency is
45102 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45103 # library is relocated.
45104 hardcode_direct_absolute=$hardcode_direct_absolute
45106 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45107 # into the resulting binary.
45108 hardcode_minus_L=$hardcode_minus_L
45110 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45111 # into the resulting binary.
45112 hardcode_shlibpath_var=$hardcode_shlibpath_var
45114 # Set to "yes" if building a shared library automatically hardcodes DIR
45115 # into the library and all subsequent libraries and executables linked
45117 hardcode_automatic=$hardcode_automatic
45119 # Set to yes if linker adds runtime paths of dependent libraries
45120 # to runtime path list.
45121 inherit_rpath=$inherit_rpath
45123 # Whether libtool must link a program against all its dependency libraries.
45124 link_all_deplibs=$link_all_deplibs
45126 # Fix the shell variable \$srcfile for the compiler.
45127 fix_srcfile_path=$lt_fix_srcfile_path
45129 # Set to "yes" if exported symbols are required.
45130 always_export_symbols=$always_export_symbols
45132 # The commands to list exported symbols.
45133 export_symbols_cmds=$lt_export_symbols_cmds
45135 # Symbols that should not be listed in the preloaded symbols.
45136 exclude_expsyms=$lt_exclude_expsyms
45138 # Symbols that must always be exported.
45139 include_expsyms=$lt_include_expsyms
45141 # Commands necessary for linking programs (against libraries) with templates.
45142 prelink_cmds=$lt_prelink_cmds
45144 # Specify filename containing input files.
45145 file_list_spec=$lt_file_list_spec
45147 # How to hardcode a shared library path into an executable.
45148 hardcode_action=$hardcode_action
45150 # The directories searched by this compiler when creating a shared library.
45151 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
45153 # Dependencies to place before and after the objects being linked to
45154 # create a shared library.
45155 predep_objects=$lt_predep_objects
45156 postdep_objects=$lt_postdep_objects
45157 predeps=$lt_predeps
45158 postdeps=$lt_postdeps
45160 # The library search path used internally by the compiler when linking
45161 # a shared library.
45162 compiler_lib_search_path=$lt_compiler_lib_search_path
45164 # ### END LIBTOOL CONFIG
45170 cat <<\_LT_EOF >> "$cfgfile"
45171 # AIX sometimes has problems with the GCC collect2 program. For some
45172 # reason, if we set the COLLECT_NAMES environment variable, the problems
45173 # vanish in a puff of smoke.
45174 if test "X${COLLECT_NAMES+set}" != Xset; then
45176 export COLLECT_NAMES
45183 ltmain="$ac_aux_dir/ltmain.sh"
45186 # We use sed instead of cat because bash on DJGPP gets confused if
45187 # if finds mixed CR/LF and LF-only lines. Since sed operates in
45188 # text mode, it properly converts lines to CR/LF. This bash problem
45189 # is reportedly fixed, but why not run on old versions too?
45190 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
45191 || (rm -f "$cfgfile"; exit 1)
45195 cat << \_LT_EOF >> "$cfgfile"
45197 # func_dirname file append nondir_replacement
45198 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45199 # otherwise set result to NONDIR_REPLACEMENT.
45203 */*) func_dirname_result="${1%/*}${2}" ;;
45204 * ) func_dirname_result="${3}" ;;
45208 # func_basename file
45211 func_basename_result="${1##*/}"
45214 # func_dirname_and_basename file append nondir_replacement
45215 # perform func_basename and func_dirname in a single function
45217 # dirname: Compute the dirname of FILE. If nonempty,
45218 # add APPEND to the result, otherwise set result
45219 # to NONDIR_REPLACEMENT.
45220 # value returned in "$func_dirname_result"
45221 # basename: Compute filename of FILE.
45222 # value retuned in "$func_basename_result"
45223 # Implementation must be kept synchronized with func_dirname
45224 # and func_basename. For efficiency, we do not delegate to
45225 # those functions but instead duplicate the functionality here.
45226 func_dirname_and_basename ()
45229 */*) func_dirname_result="${1%/*}${2}" ;;
45230 * ) func_dirname_result="${3}" ;;
45232 func_basename_result="${1##*/}"
45235 # func_stripname prefix suffix name
45236 # strip PREFIX and SUFFIX off of NAME.
45237 # PREFIX and SUFFIX must not contain globbing or regex special
45238 # characters, hashes, percent signs, but SUFFIX may contain a leading
45239 # dot (in which case that matches only a dot).
45242 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
45243 # positional parameters, so assign one to ordinary parameter first.
45244 func_stripname_result=${3}
45245 func_stripname_result=${func_stripname_result#"${1}"}
45246 func_stripname_result=${func_stripname_result%"${2}"}
45252 func_opt_split_opt=${1%%=*}
45253 func_opt_split_arg=${1#*=}
45260 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
45261 *) func_lo2o_result=${1} ;;
45265 # func_xform libobj-or-source
45268 func_xform_result=${1%.*}.lo
45271 # func_arith arithmetic-term...
45274 func_arith_result=$(( $* ))
45278 # STRING may not start with a hyphen.
45281 func_len_result=${#1}
45286 *) # Bourne compatible functions.
45287 cat << \_LT_EOF >> "$cfgfile"
45289 # func_dirname file append nondir_replacement
45290 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
45291 # otherwise set result to NONDIR_REPLACEMENT.
45294 # Extract subdirectory from the argument.
45295 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
45296 if test "X$func_dirname_result" = "X${1}"; then
45297 func_dirname_result="${3}"
45299 func_dirname_result="$func_dirname_result${2}"
45303 # func_basename file
45306 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
45310 # func_stripname prefix suffix name
45311 # strip PREFIX and SUFFIX off of NAME.
45312 # PREFIX and SUFFIX must not contain globbing or regex special
45313 # characters, hashes, percent signs, but SUFFIX may contain a leading
45314 # dot (in which case that matches only a dot).
45315 # func_strip_suffix prefix name
45319 .*) func_stripname_result=`$ECHO "X${3}" \
45320 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
45321 *) func_stripname_result=`$ECHO "X${3}" \
45322 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
45327 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
45328 my_sed_long_arg='1s/^-[^=]*=//'
45333 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
45334 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
45340 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
45343 # func_xform libobj-or-source
45346 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
45349 # func_arith arithmetic-term...
45352 func_arith_result=`expr "$@"`
45356 # STRING may not start with a hyphen.
45359 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
45365 case $lt_shell_append in
45367 cat << \_LT_EOF >> "$cfgfile"
45369 # func_append var value
45370 # Append VALUE to the end of shell variable VAR.
45378 cat << \_LT_EOF >> "$cfgfile"
45380 # func_append var value
45381 # Append VALUE to the end of shell variable VAR.
45392 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
45393 || (rm -f "$cfgfile"; exit 1)
45395 mv -f "$cfgfile" "$ofile" ||
45396 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45400 cat <<_LT_EOF >> "$ofile"
45402 # ### BEGIN LIBTOOL TAG CONFIG: CXX
45404 # The linker used to build libraries.
45407 # Commands used to build an old-style archive.
45408 old_archive_cmds=$lt_old_archive_cmds_CXX
45410 # A language specific compiler.
45411 CC=$lt_compiler_CXX
45413 # Is the compiler the GNU compiler?
45416 # Compiler flag to turn off builtin functions.
45417 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
45419 # How to pass a linker flag through the compiler.
45420 wl=$lt_lt_prog_compiler_wl_CXX
45422 # Additional compiler flags for building library objects.
45423 pic_flag=$lt_lt_prog_compiler_pic_CXX
45425 # Compiler flag to prevent dynamic linking.
45426 link_static_flag=$lt_lt_prog_compiler_static_CXX
45428 # Does compiler simultaneously support -c and -o options?
45429 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
45431 # Whether or not to add -lc for building shared libraries.
45432 build_libtool_need_lc=$archive_cmds_need_lc_CXX
45434 # Whether or not to disallow shared libs when runtime libs are static.
45435 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
45437 # Compiler flag to allow reflexive dlopens.
45438 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
45440 # Compiler flag to generate shared objects directly from archives.
45441 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
45443 # Whether the compiler copes with passing no objects directly.
45444 compiler_needs_object=$lt_compiler_needs_object_CXX
45446 # Create an old-style archive from a shared archive.
45447 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
45449 # Create a temporary old-style archive to link instead of a shared archive.
45450 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
45452 # Commands used to build a shared archive.
45453 archive_cmds=$lt_archive_cmds_CXX
45454 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
45456 # Commands used to build a loadable module if different from building
45457 # a shared archive.
45458 module_cmds=$lt_module_cmds_CXX
45459 module_expsym_cmds=$lt_module_expsym_cmds_CXX
45461 # Whether we are building with GNU ld or not.
45462 with_gnu_ld=$lt_with_gnu_ld_CXX
45464 # Flag that allows shared libraries with undefined symbols to be built.
45465 allow_undefined_flag=$lt_allow_undefined_flag_CXX
45467 # Flag that enforces no undefined symbols.
45468 no_undefined_flag=$lt_no_undefined_flag_CXX
45470 # Flag to hardcode \$libdir into a binary during linking.
45471 # This must work even if \$libdir does not exist
45472 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
45474 # If ld is used when linking, flag to hardcode \$libdir into a binary
45475 # during linking. This must work even if \$libdir does not exist.
45476 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
45478 # Whether we need a single "-rpath" flag with a separated argument.
45479 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
45481 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45482 # DIR into the resulting binary.
45483 hardcode_direct=$hardcode_direct_CXX
45485 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
45486 # DIR into the resulting binary and the resulting library dependency is
45487 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
45488 # library is relocated.
45489 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
45491 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45492 # into the resulting binary.
45493 hardcode_minus_L=$hardcode_minus_L_CXX
45495 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45496 # into the resulting binary.
45497 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
45499 # Set to "yes" if building a shared library automatically hardcodes DIR
45500 # into the library and all subsequent libraries and executables linked
45502 hardcode_automatic=$hardcode_automatic_CXX
45504 # Set to yes if linker adds runtime paths of dependent libraries
45505 # to runtime path list.
45506 inherit_rpath=$inherit_rpath_CXX
45508 # Whether libtool must link a program against all its dependency libraries.
45509 link_all_deplibs=$link_all_deplibs_CXX
45511 # Fix the shell variable \$srcfile for the compiler.
45512 fix_srcfile_path=$lt_fix_srcfile_path_CXX
45514 # Set to "yes" if exported symbols are required.
45515 always_export_symbols=$always_export_symbols_CXX
45517 # The commands to list exported symbols.
45518 export_symbols_cmds=$lt_export_symbols_cmds_CXX
45520 # Symbols that should not be listed in the preloaded symbols.
45521 exclude_expsyms=$lt_exclude_expsyms_CXX
45523 # Symbols that must always be exported.
45524 include_expsyms=$lt_include_expsyms_CXX
45526 # Commands necessary for linking programs (against libraries) with templates.
45527 prelink_cmds=$lt_prelink_cmds_CXX
45529 # Specify filename containing input files.
45530 file_list_spec=$lt_file_list_spec_CXX
45532 # How to hardcode a shared library path into an executable.
45533 hardcode_action=$hardcode_action_CXX
45535 # The directories searched by this compiler when creating a shared library.
45536 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
45538 # Dependencies to place before and after the objects being linked to
45539 # create a shared library.
45540 predep_objects=$lt_predep_objects_CXX
45541 postdep_objects=$lt_postdep_objects_CXX
45542 predeps=$lt_predeps_CXX
45543 postdeps=$lt_postdeps_CXX
45545 # The library search path used internally by the compiler when linking
45546 # a shared library.
45547 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
45549 # ### END LIBTOOL TAG CONFIG: CXX
45554 for ac_file in $CONFIG_FILES; do
45555 # Support "outfile[:infile[:infile...]]"
45557 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
45559 # PO directories have a Makefile.in generated from Makefile.in.in.
45560 case "$ac_file" in */Makefile.in)
45561 # Adjust a relative srcdir.
45562 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
45563 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
45564 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
45565 # In autoconf-2.13 it is called $ac_given_srcdir.
45566 # In autoconf-2.50 it is called $srcdir.
45567 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
45568 case "$ac_given_srcdir" in
45569 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
45570 /*) top_srcdir="$ac_given_srcdir" ;;
45571 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
45573 # Treat a directory as a PO directory if and only if it has a
45574 # POTFILES.in file. This allows packages to have multiple PO
45575 # directories under different names or in different locations.
45576 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
45577 rm -f "$ac_dir/POTFILES"
45578 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
45579 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
45580 POMAKEFILEDEPS="POTFILES.in"
45581 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
45582 # on $ac_dir but don't depend on user-specified configuration
45584 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
45585 # The LINGUAS file contains the set of available languages.
45586 if test -n "$OBSOLETE_ALL_LINGUAS"; then
45587 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
45589 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
45590 # Hide the ALL_LINGUAS assigment from automake.
45591 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
45592 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
45594 # The set of available languages was given in configure.in.
45595 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
45598 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
45599 # Compute UPDATEPOFILES
45600 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
45601 # Compute DUMMYPOFILES
45602 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
45604 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
45605 case "$ac_given_srcdir" in
45607 *) srcdirpre='$(srcdir)/' ;;
45613 for lang in $ALL_LINGUAS; do
45614 POFILES="$POFILES $srcdirpre$lang.po"
45615 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
45616 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
45617 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
45619 # CATALOGS depends on both $ac_dir and the user's LINGUAS
45620 # environment variable.
45622 if test -n "$ALL_LINGUAS"; then
45623 for presentlang in $ALL_LINGUAS; do
45625 if test "%UNSET%" != "$LINGUAS"; then
45626 desiredlanguages="$LINGUAS"
45628 desiredlanguages="$ALL_LINGUAS"
45630 for desiredlang in $desiredlanguages; do
45631 # Use the presentlang catalog if desiredlang is
45632 # a. equal to presentlang, or
45633 # b. a variant of presentlang (because in this case,
45634 # presentlang can be used as a fallback for messages
45635 # which are not translated in the desiredlang catalog).
45636 case "$desiredlang" in
45637 "$presentlang"*) useit=yes;;
45640 if test $useit = yes; then
45641 INST_LINGUAS="$INST_LINGUAS $presentlang"
45646 if test -n "$INST_LINGUAS"; then
45647 for lang in $INST_LINGUAS; do
45648 CATALOGS="$CATALOGS $lang.gmo"
45651 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
45652 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"
45653 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
45654 if test -f "$f"; then
45656 *.orig | *.bak | *~) ;;
45657 *) cat "$f" >> "$ac_dir/Makefile" ;;
45672 { (exit 0); exit 0; }
45674 chmod +x $CONFIG_STATUS
45675 ac_clean_files=$ac_clean_files_save
45678 # configure is writing to config.log, and then calls config.status.
45679 # config.status does its own redirection, appending to config.log.
45680 # Unfortunately, on DOS this fails, as config.log is still kept open
45681 # by configure, so config.status won't be able to write to it; its
45682 # output is simply discarded. So we exec the FD to /dev/null,
45683 # effectively closing config.log, so it can be properly (re)opened and
45684 # appended to by config.status. When coming back to configure, we
45685 # need to make the FD available again.
45686 if test "$no_create" != yes; then
45688 ac_config_status_args=
45689 test "$silent" = yes &&
45690 ac_config_status_args="$ac_config_status_args --quiet"
45692 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45694 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45695 # would make configure fail if this is the last instruction.
45696 $ac_cs_success || { (exit 1); exit 1; }
45700 if test "${support_bat}" = "yes" ; then
45701 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
45702 { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
45703 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
45704 { (exit 1); exit 1; }; }
45709 if test "x$QMAKEQT4" != "xnone"; then
45714 echo "Creating bat Makefile"
45722 if test X"$GCC" = "Xyes" ; then
45723 echo "Doing make of dependencies"
45724 ${MAKE:-make} depend
45728 chmod 755 install_conf_file build-depkgs-qt-console
45732 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
45733 chmod 755 dvd-handler dvd-simulator
45734 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
45738 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
45739 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
45743 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
45744 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
45746 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
45747 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
45749 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
45750 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
45752 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
45753 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
45755 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
45756 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
45758 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
45759 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
45761 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
45762 chmod 755 $c/sqlite
45765 chmod 755 src/win32/build-depkgs-mingw32
45767 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
45768 largefile_support="yes"
45771 if test X"$GCC" = "Xyes" ; then
45772 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45773 if test "x${CCVERSION}" = "x" ; then
45774 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45776 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
45777 if test x"${CXXVERSION}" = x ; then
45778 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
45782 # clean up any old junk
45788 if test "x${db_type}" = "xInternal" ; then
45791 echo "You have not specified either --enable-client-only or one of the"
45792 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
45793 echo " This is not permitted. Please reconfigure."
45795 echo "Aborting the configuration ..."
45802 Configuration on `date`:
45804 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
45805 Bacula version: ${BACULA} ${VERSION} (${DATE})
45806 Source code location: ${srcdir}
45807 Install binaries: ${sbindir}
45808 Install libraries: ${libdir}
45809 Install config files: ${sysconfdir}
45810 Scripts directory: ${scriptdir}
45811 Archive directory: ${archivedir}
45812 Working directory: ${working_dir}
45813 PID directory: ${piddir}
45814 Subsys directory: ${subsysdir}
45815 Man directory: ${mandir}
45816 Data directory: ${datarootdir}
45817 Plugin directory: ${plugindir}
45818 C Compiler: ${CC} ${CCVERSION}
45819 C++ Compiler: ${CXX} ${CXXVERSION}
45820 Compiler flags: ${WCFLAGS} ${CFLAGS}
45821 Linker flags: ${WLDFLAGS} ${LDFLAGS}
45823 Statically Linked Tools: ${support_static_tools}
45824 Statically Linked FD: ${support_static_fd}
45825 Statically Linked SD: ${support_static_sd}
45826 Statically Linked DIR: ${support_static_dir}
45827 Statically Linked CONS: ${support_static_cons}
45828 Database type: ${db_type}
45829 Database port: ${db_port}
45830 Database lib: ${DB_LIBS}
45831 Database name: ${db_name}
45832 Database user: ${db_user}
45834 Job Output Email: ${job_email}
45835 Traceback Email: ${dump_email}
45836 SMTP Host Address: ${smtp_host}
45838 Director Port: ${dir_port}
45839 File daemon Port: ${fd_port}
45840 Storage daemon Port: ${sd_port}
45842 Director User: ${dir_user}
45843 Director Group: ${dir_group}
45844 Storage Daemon User: ${sd_user}
45845 Storage DaemonGroup: ${sd_group}
45846 File Daemon User: ${fd_user}
45847 File Daemon Group: ${fd_group}
45849 SQL binaries Directory ${SQL_BINDIR}
45851 Large file support: $largefile_support
45852 Bacula conio support: ${got_conio} ${CONS_LIBS}
45853 readline support: ${got_readline} ${PRTREADLINE_SRC}
45854 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
45855 TLS support: ${support_tls}
45856 Encryption support: ${support_crypto}
45857 ZLIB support: ${have_zlib}
45858 enable-smartalloc: ${support_smartalloc}
45859 enable-lockmgr: ${support_lockmgr}
45860 bat support: ${support_bat} ${QWT_LDFLAGS}
45861 enable-gnome: ${support_gnome} ${gnome_version}
45862 enable-bwx-console: ${support_wx_console} ${wx_version}
45863 enable-tray-monitor: ${support_tray_monitor}
45864 client-only: ${build_client_only}
45865 build-dird: ${build_dird}
45866 build-stored: ${build_stored}
45867 ACL support: ${have_acl}
45868 XATTR support: ${have_xattr}
45869 Python support: ${support_python} ${PYTHON_LIBS}
45870 Batch insert enabled: ${support_batch_insert}