2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
613 # So, first we look for a working echo in the user's PATH.
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
666 # maybe with a smaller string...
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 # Oops. We lost completely, so just stick with echo.
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 exec 7<&0 </dev/null 6>&1
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711 ac_default_prefix=/usr/local
713 ac_config_libobj_dir=.
719 SHELL=${CONFIG_SHELL-/bin/sh}
721 # Identity of this package.
728 ac_unique_file="src/version.h"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
742 # ifdef HAVE_STDLIB_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
774 program_transform_name
888 DEFAULT_SHARED_OBJECT_TYPE
889 LIBTOOL_INSTALL_TARGET
890 LIBTOOL_UNINSTALL_TARGET
893 INCLUDE_INSTALL_TARGET
894 INCLUDE_UNINSTALL_TARGET
906 HAVE_FREEBSD_OS_FALSE
910 HAVE_OPENBSD_OS_FALSE
941 BUILD_INCLUDED_LIBINTL
948 INTL_LIBTOOL_SUFFIX_PREFIX
957 TRAY_MONITOR_CPPFLAGS
1048 ac_subst_files='MCOMMON'
1049 ac_precious_vars='build_alias
1067 # Initialize some variables set by options.
1069 ac_init_version=false
1070 # The variables have the same names as the options, with
1071 # dashes changed to underlines.
1072 cache_file=/dev/null
1079 program_transform_name=s,x,x,
1087 # Installation directory options.
1088 # These are left unexpanded so users can "make install exec_prefix=/foo"
1089 # and all the variables that are supposed to be based on exec_prefix
1090 # by default will actually change.
1091 # Use braces instead of parens because sh, perl, etc. also accept them.
1092 # (The list follows the same order as the GNU Coding Standards.)
1093 bindir='${exec_prefix}/bin'
1094 sbindir='${exec_prefix}/sbin'
1095 libexecdir='${exec_prefix}/libexec'
1096 datarootdir='${prefix}/share'
1097 datadir='${datarootdir}'
1098 sysconfdir='${prefix}/etc'
1099 sharedstatedir='${prefix}/com'
1100 localstatedir='${prefix}/var'
1101 includedir='${prefix}/include'
1102 oldincludedir='/usr/include'
1103 docdir='${datarootdir}/doc/${PACKAGE}'
1104 infodir='${datarootdir}/info'
1109 libdir='${exec_prefix}/lib'
1110 localedir='${datarootdir}/locale'
1111 mandir='${datarootdir}/man'
1117 # If the previous option needs an argument, assign it.
1118 if test -n "$ac_prev"; then
1119 eval $ac_prev=\$ac_option
1125 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1129 # Accept the important Cygnus configure options, so we can diagnose typos.
1131 case $ac_dashdash$ac_option in
1135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1138 bindir=$ac_optarg ;;
1140 -build | --build | --buil | --bui | --bu)
1141 ac_prev=build_alias ;;
1142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1143 build_alias=$ac_optarg ;;
1145 -cache-file | --cache-file | --cache-fil | --cache-fi \
1146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147 ac_prev=cache_file ;;
1148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1150 cache_file=$ac_optarg ;;
1152 --config-cache | -C)
1153 cache_file=config.cache ;;
1155 -datadir | --datadir | --datadi | --datad)
1157 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1158 datadir=$ac_optarg ;;
1160 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161 | --dataroo | --dataro | --datar)
1162 ac_prev=datarootdir ;;
1163 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165 datarootdir=$ac_optarg ;;
1167 -disable-* | --disable-*)
1168 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1172 { (exit 1); exit 1; }; }
1173 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1174 eval enable_$ac_feature=no ;;
1176 -docdir | --docdir | --docdi | --doc | --do)
1178 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1179 docdir=$ac_optarg ;;
1181 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1183 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1184 dvidir=$ac_optarg ;;
1186 -enable-* | --enable-*)
1187 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1190 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1191 { (exit 1); exit 1; }; }
1192 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1193 eval enable_$ac_feature=\$ac_optarg ;;
1195 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1196 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1197 | --exec | --exe | --ex)
1198 ac_prev=exec_prefix ;;
1199 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1200 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1201 | --exec=* | --exe=* | --ex=*)
1202 exec_prefix=$ac_optarg ;;
1204 -gas | --gas | --ga | --g)
1205 # Obsolete; use --with-gas.
1208 -help | --help | --hel | --he | -h)
1209 ac_init_help=long ;;
1210 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1211 ac_init_help=recursive ;;
1212 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1213 ac_init_help=short ;;
1215 -host | --host | --hos | --ho)
1216 ac_prev=host_alias ;;
1217 -host=* | --host=* | --hos=* | --ho=*)
1218 host_alias=$ac_optarg ;;
1220 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1222 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1224 htmldir=$ac_optarg ;;
1226 -includedir | --includedir | --includedi | --included | --include \
1227 | --includ | --inclu | --incl | --inc)
1228 ac_prev=includedir ;;
1229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1230 | --includ=* | --inclu=* | --incl=* | --inc=*)
1231 includedir=$ac_optarg ;;
1233 -infodir | --infodir | --infodi | --infod | --info | --inf)
1235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1236 infodir=$ac_optarg ;;
1238 -libdir | --libdir | --libdi | --libd)
1240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1241 libdir=$ac_optarg ;;
1243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1244 | --libexe | --libex | --libe)
1245 ac_prev=libexecdir ;;
1246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1247 | --libexe=* | --libex=* | --libe=*)
1248 libexecdir=$ac_optarg ;;
1250 -localedir | --localedir | --localedi | --localed | --locale)
1251 ac_prev=localedir ;;
1252 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1253 localedir=$ac_optarg ;;
1255 -localstatedir | --localstatedir | --localstatedi | --localstated \
1256 | --localstate | --localstat | --localsta | --localst | --locals)
1257 ac_prev=localstatedir ;;
1258 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1259 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1260 localstatedir=$ac_optarg ;;
1262 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1264 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1265 mandir=$ac_optarg ;;
1267 -nfp | --nfp | --nf)
1268 # Obsolete; use --without-fp.
1271 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1272 | --no-cr | --no-c | -n)
1275 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1276 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1279 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1280 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1281 | --oldin | --oldi | --old | --ol | --o)
1282 ac_prev=oldincludedir ;;
1283 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1284 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1285 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1286 oldincludedir=$ac_optarg ;;
1288 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1290 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1291 prefix=$ac_optarg ;;
1293 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1294 | --program-pre | --program-pr | --program-p)
1295 ac_prev=program_prefix ;;
1296 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1297 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1298 program_prefix=$ac_optarg ;;
1300 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1301 | --program-suf | --program-su | --program-s)
1302 ac_prev=program_suffix ;;
1303 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1304 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1305 program_suffix=$ac_optarg ;;
1307 -program-transform-name | --program-transform-name \
1308 | --program-transform-nam | --program-transform-na \
1309 | --program-transform-n | --program-transform- \
1310 | --program-transform | --program-transfor \
1311 | --program-transfo | --program-transf \
1312 | --program-trans | --program-tran \
1313 | --progr-tra | --program-tr | --program-t)
1314 ac_prev=program_transform_name ;;
1315 -program-transform-name=* | --program-transform-name=* \
1316 | --program-transform-nam=* | --program-transform-na=* \
1317 | --program-transform-n=* | --program-transform-=* \
1318 | --program-transform=* | --program-transfor=* \
1319 | --program-transfo=* | --program-transf=* \
1320 | --program-trans=* | --program-tran=* \
1321 | --progr-tra=* | --program-tr=* | --program-t=*)
1322 program_transform_name=$ac_optarg ;;
1324 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1326 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1327 pdfdir=$ac_optarg ;;
1329 -psdir | --psdir | --psdi | --psd | --ps)
1331 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1335 | -silent | --silent | --silen | --sile | --sil)
1338 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1340 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1342 sbindir=$ac_optarg ;;
1344 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1345 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1346 | --sharedst | --shareds | --shared | --share | --shar \
1348 ac_prev=sharedstatedir ;;
1349 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1350 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1351 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1353 sharedstatedir=$ac_optarg ;;
1355 -site | --site | --sit)
1357 -site=* | --site=* | --sit=*)
1360 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1362 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1363 srcdir=$ac_optarg ;;
1365 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1366 | --syscon | --sysco | --sysc | --sys | --sy)
1367 ac_prev=sysconfdir ;;
1368 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1369 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1370 sysconfdir=$ac_optarg ;;
1372 -target | --target | --targe | --targ | --tar | --ta | --t)
1373 ac_prev=target_alias ;;
1374 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1375 target_alias=$ac_optarg ;;
1377 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1380 -version | --version | --versio | --versi | --vers | -V)
1381 ac_init_version=: ;;
1384 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1387 { echo "$as_me: error: invalid package name: $ac_package" >&2
1388 { (exit 1); exit 1; }; }
1389 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1390 eval with_$ac_package=\$ac_optarg ;;
1392 -without-* | --without-*)
1393 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1394 # Reject names that are not valid shell variable names.
1395 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1396 { echo "$as_me: error: invalid package name: $ac_package" >&2
1397 { (exit 1); exit 1; }; }
1398 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1399 eval with_$ac_package=no ;;
1402 # Obsolete; use --with-x.
1405 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1406 | --x-incl | --x-inc | --x-in | --x-i)
1407 ac_prev=x_includes ;;
1408 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1409 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1410 x_includes=$ac_optarg ;;
1412 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1413 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1414 ac_prev=x_libraries ;;
1415 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1416 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1417 x_libraries=$ac_optarg ;;
1419 -*) { echo "$as_me: error: unrecognized option: $ac_option
1420 Try \`$0 --help' for more information." >&2
1421 { (exit 1); exit 1; }; }
1425 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1426 # Reject names that are not valid shell variable names.
1427 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1428 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1429 { (exit 1); exit 1; }; }
1430 eval $ac_envvar=\$ac_optarg
1431 export $ac_envvar ;;
1434 # FIXME: should be removed in autoconf 3.0.
1435 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1437 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1444 if test -n "$ac_prev"; then
1445 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1446 { echo "$as_me: error: missing argument to $ac_option" >&2
1447 { (exit 1); exit 1; }; }
1450 # Be sure to have absolute directory names.
1451 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452 datadir sysconfdir sharedstatedir localstatedir includedir \
1453 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454 libdir localedir mandir
1456 eval ac_val=\$$ac_var
1458 [\\/$]* | ?:[\\/]* ) continue;;
1459 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1461 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1462 { (exit 1); exit 1; }; }
1465 # There might be people who depend on the old broken behavior: `$host'
1466 # used to hold the argument of --host etc.
1467 # FIXME: To remove some day.
1470 target=$target_alias
1472 # FIXME: To remove some day.
1473 if test "x$host_alias" != x; then
1474 if test "x$build_alias" = x; then
1475 cross_compiling=maybe
1476 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1477 If a cross compiler is detected then cross compile mode will be used." >&2
1478 elif test "x$build_alias" != "x$host_alias"; then
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486 test "$silent" = yes && exec 6>/dev/null
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492 { echo "$as_me: error: Working directory cannot be determined" >&2
1493 { (exit 1); exit 1; }; }
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495 { echo "$as_me: error: pwd does not report name of working directory" >&2
1496 { (exit 1); exit 1; }; }
1499 # Find the source files, if location was not specified.
1500 if test -z "$srcdir"; then
1501 ac_srcdir_defaulted=yes
1502 # Try the directory containing this script, then the parent directory.
1503 ac_confdir=`$as_dirname -- "$0" ||
1504 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1505 X"$0" : 'X\(//\)[^/]' \| \
1506 X"$0" : 'X\(//\)$' \| \
1507 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1531 ac_srcdir_defaulted=no
1533 if test ! -r "$srcdir/$ac_unique_file"; then
1534 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1535 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1536 { (exit 1); exit 1; }; }
1538 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1541 { (exit 1); exit 1; }; }
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1553 for ac_var in $ac_precious_vars; do
1554 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555 eval ac_env_${ac_var}_value=\$${ac_var}
1556 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1561 # Report the --help message.
1563 if test "$ac_init_help" = "long"; then
1564 # Omit some internal or obsolete options to make the list less imposing.
1565 # This message is too long to be a string in the A/UX 3.1 sh.
1567 \`configure' configures this package to adapt to many kinds of systems.
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE. See below for descriptions of some of the useful variables.
1574 Defaults for the options are specified in brackets.
1577 -h, --help display this help and exit
1578 --help=short display options specific to this package
1579 --help=recursive display the short help of all the included packages
1580 -V, --version display version information and exit
1581 -q, --quiet, --silent do not print \`checking...' messages
1582 --cache-file=FILE cache test results in FILE [disabled]
1583 -C, --config-cache alias for \`--cache-file=config.cache'
1584 -n, --no-create do not create output files
1585 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1587 Installation directories:
1588 --prefix=PREFIX install architecture-independent files in PREFIX
1589 [$ac_default_prefix]
1590 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1598 For better control, use the options below.
1600 Fine tuning of the installation directories:
1601 --bindir=DIR user executables [EPREFIX/bin]
1602 --sbindir=DIR system admin executables [EPREFIX/sbin]
1603 --libexecdir=DIR program executables [EPREFIX/libexec]
1604 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1605 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1606 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1607 --libdir=DIR object code libraries [EPREFIX/lib]
1608 --includedir=DIR C header files [PREFIX/include]
1609 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1610 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1611 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1612 --infodir=DIR info documentation [DATAROOTDIR/info]
1613 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1614 --mandir=DIR man documentation [DATAROOTDIR/man]
1615 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1616 --htmldir=DIR html documentation [DOCDIR]
1617 --dvidir=DIR dvi documentation [DOCDIR]
1618 --pdfdir=DIR pdf documentation [DOCDIR]
1619 --psdir=DIR ps documentation [DOCDIR]
1625 --x-includes=DIR X include files are in DIR
1626 --x-libraries=DIR X library files are in DIR
1629 --build=BUILD configure for building on BUILD [guessed]
1630 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1634 if test -n "$ac_init_help"; then
1639 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1640 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1641 --enable-libtool enable building using GNU libtool [default=yes]
1642 --enable-shared[=PKGS] build shared libraries [default=yes]
1643 --enable-static[=PKGS] build static libraries [default=no]
1644 --enable-fast-install[=PKGS]
1645 optimize for fast installation [default=yes]
1646 --disable-libtool-lock avoid locking (might break parallel builds)
1647 --enable-includes enable installing of include files [default=no]
1648 --disable-nls do not use Native Language Support
1649 --disable-rpath do not hardcode runtime library paths
1650 --enable-gnome enable build of bgnome-console GUI [default=no]
1651 --enable-bat enable build of bat Qt4 GUI [default=no]
1652 --enable-bwx-console enable build of wxWidgets console [default=no]
1653 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1655 --enable-smartalloc enable smartalloc debugging support [default=no]
1656 --enable-lockmgr enable lock manager support [default=no]
1657 --enable-static-tools enable static tape tools [default=no]
1658 --enable-static-fd enable static File daemon [default=no]
1659 --enable-static-sd enable static Storage daemon [default=no]
1660 --enable-static-dir enable static Director [default=no]
1661 --enable-static-cons enable static Console [default=no]
1662 --enable-client-only build client (File daemon) only [default=no]
1663 --enable-build-dird enable building of dird (Director) [default=yes]
1664 --enable-build-stored enable building of stored (Storage daemon)
1666 --disable-conio disable conio support [default=no]
1667 --enable-ipv6 enable ipv6 support [default=yes]
1668 --disable-readline disable readline support [default=yes]
1669 --enable-batch-insert enable the DB batch insert code [default=no]
1670 --disable-largefile omit support for large files
1671 --disable-acl disable acl support [default=auto]
1672 --disable-xattr disable xattr support [default=auto]
1675 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1676 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1677 --with-pic try to use only PIC/non-PIC objects [default=use
1679 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
1681 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1683 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1684 --without-libintl-prefix don't search for libintl in includedir and libdir
1685 --with-included-gettext use the GNU gettext library included here
1686 --with-qwt[=DIR] specify qwt library directory
1687 --with-readline[=DIR] specify readline library directory
1688 --with-python[=DIR] Include Python support. DIR is the Python base
1689 install directory, default is to search through a
1690 number of common places for the Python files.
1691 --with-tcp-wrappers[=DIR]
1692 enable tcpwrappers support
1693 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1694 --with-working-dir=PATH specify path of Bacula working directory
1695 --with-archivedir=PATH specify path of SD archive directory
1696 --with-basename=RESNAME specify base resource name for daemons
1697 --with-hostname=RESNAME specify host name for daemons
1698 --with-scriptdir=PATH specify path of Bacula scripts directory
1699 --with-bsrdir=PATH specify path of Bacula bsrs directory
1700 --with-logdir=PATH specify path of Bacula logs directory
1701 --with-plugindir=PATH specify path of Bacula plugins directory
1702 --with-dump-email=EMAIL dump email address
1703 --with-job-email=EMAIL job output email address
1704 --with-smtp-host=HOST SMTP mail host address
1705 --with-pid-dir=PATH specify location of Bacula pid files
1706 --with-subsys-dir=PATH specify location of Bacula subsys file
1707 --with-baseport=PORT specify base port address for daemons
1708 --with-dir-password=PASSWORD
1709 specify Director's password
1710 --with-fd-password=PASSWORD
1711 specify Client's password
1712 --with-sd-password=PASSWORD
1713 specify Storage daemon's password
1714 --with-mon-dir-password=PASSWORD
1715 specify Director's password used by the monitor
1716 --with-mon-fd-password=PASSWORD
1717 specify Client's password used by the monitor
1718 --with-mon-sd-password=PASSWORD
1719 specify Storage daemon's password used by the
1721 --with-db-name=DBNAME specify database name [default=bacula]
1722 --with-db-user=UNAME specify database user [default=bacula]
1723 --with-db-password=PWD specify database password [default=*none*]
1724 --with-db-port=DBPORT specify a database port [default=null]
1725 --with-dir-user=USER specify user for Director daemon
1726 --with-dir-group=GROUP specify group for Director daemon
1727 --with-sd-user=USER specify user for Storage daemon
1728 --with-sd-group=GROUP specify group for Storage daemon
1729 --with-fd-user=USER specify user for File daemon
1730 --with-fd-group=GROUP specify group for File daemon
1731 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1732 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1733 base install directory, [default=/usr/local/pgsql]
1734 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1735 directory, default is to search through a number of
1736 common places for the MySQL files.
1737 --with-embedded-mysql[=DIR]
1738 Include MySQL support. DIR is the MySQL base install
1739 directory, default is to search through a number of
1740 common places for the MySQL files.
1741 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1742 install directory, default is to search through a
1743 number of common places for the SQLite3 files.
1744 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1745 install directory, default is to search through a
1746 number of common places for the SQLite files.
1747 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1748 directory, default is to search through a number of
1749 common places for the DBI files.
1750 --with-dbi-driver[=DRIVER]
1751 Suport for DBI driver. DRIVER is the one DBI driver
1752 like Mysql, Postgresql, others. Default is to not
1753 configure any driver.
1754 --with-x use the X Window System
1756 Some influential environment variables:
1757 CC C compiler command
1758 CFLAGS C compiler flags
1759 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1760 nonstandard directory <lib dir>
1761 LIBS libraries to pass to the linker, e.g. -l<library>
1762 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1763 you have headers in a nonstandard directory <include dir>
1764 CXX C++ compiler command
1765 CXXFLAGS C++ compiler flags
1767 WXCONFIG wx-config command. On some systems, you must set it to
1768 wx-config-2.6 to use wxWidgets 2.6.
1769 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1770 CXXCPP C++ preprocessor
1771 XMKMF Path to xmkmf, Makefile generator for X Window System
1773 Use these variables to override the choices made by `configure' or to help
1774 it to find libraries and programs with nonstandard names/locations.
1780 if test "$ac_init_help" = "recursive"; then
1781 # If there are subdirs, report their specific --help.
1782 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1783 test -d "$ac_dir" || continue
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1789 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1790 # A ".." for each directory in $ac_dir_suffix.
1791 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1792 case $ac_top_builddir_sub in
1793 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1803 .) # We are building in place.
1805 ac_top_srcdir=$ac_top_builddir_sub
1806 ac_abs_top_srcdir=$ac_pwd ;;
1807 [\\/]* | ?:[\\/]* ) # Absolute name.
1808 ac_srcdir=$srcdir$ac_dir_suffix;
1809 ac_top_srcdir=$srcdir
1810 ac_abs_top_srcdir=$srcdir ;;
1812 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813 ac_top_srcdir=$ac_top_build_prefix$srcdir
1814 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1818 cd "$ac_dir" || { ac_status=$?; continue; }
1819 # Check for guested configure.
1820 if test -f "$ac_srcdir/configure.gnu"; then
1822 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823 elif test -f "$ac_srcdir/configure"; then
1825 $SHELL "$ac_srcdir/configure" --help=recursive
1827 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1829 cd "$ac_pwd" || { ac_status=$?; break; }
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1837 generated by GNU Autoconf 2.61
1839 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1840 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1841 This configure script is free software; the Free Software Foundation
1842 gives unlimited permission to copy, distribute and modify it.
1846 cat >config.log <<_ACEOF
1847 This file contains any messages produced by compilers while
1848 running configure, to aid debugging if configure makes a mistake.
1850 It was created by $as_me, which was
1851 generated by GNU Autoconf 2.61. Invocation command line was
1863 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1869 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1872 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1873 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1874 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1876 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1877 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1878 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 echo "PATH: $as_dir"
1903 # Keep a trace of the command line.
1904 # Strip out --no-create and --no-recursion so they do not pile up.
1905 # Strip out --silent because we don't want to record it for future runs.
1906 # Also quote any args containing shell meta-characters.
1907 # Make two passes to allow for proper duplicate-argument suppression.
1911 ac_must_keep_next=false
1917 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919 | -silent | --silent | --silen | --sile | --sil)
1922 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1927 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1928 if test $ac_must_keep_next = true; then
1929 ac_must_keep_next=false # Got value, back to normal.
1932 *=* | --config-cache | -C | -disable-* | --disable-* \
1933 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935 | -with-* | --with-* | -without-* | --without-* | --x)
1936 case "$ac_configure_args0 " in
1937 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1940 -* ) ac_must_keep_next=true ;;
1943 ac_configure_args="$ac_configure_args '$ac_arg'"
1948 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1949 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1951 # When interrupted or exit'd, cleanup temporary files, and complete
1952 # config.log. We remove comments because anyway the quotes in there
1953 # would cause problems or look ugly.
1954 # WARNING: Use '\'' to represent an apostrophe within the trap.
1955 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956 trap 'exit_status=$?
1957 # Save into config.log some information that might help in debugging.
1962 ## ---------------- ##
1963 ## Cache variables. ##
1964 ## ---------------- ##
1967 # The following way of writing the cache mishandles newlines in values,
1969 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1970 eval ac_val=\$$ac_var
1974 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1975 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1978 _ | IFS | as_nl) ;; #(
1979 *) $as_unset $ac_var ;;
1984 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1985 *${as_nl}ac_space=\ *)
1987 "s/'\''/'\''\\\\'\'''\''/g;
1988 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1991 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1999 ## ----------------- ##
2000 ## Output variables. ##
2001 ## ----------------- ##
2004 for ac_var in $ac_subst_vars
2006 eval ac_val=\$$ac_var
2008 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010 echo "$ac_var='\''$ac_val'\''"
2014 if test -n "$ac_subst_files"; then
2016 ## ------------------- ##
2017 ## File substitutions. ##
2018 ## ------------------- ##
2021 for ac_var in $ac_subst_files
2023 eval ac_val=\$$ac_var
2025 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027 echo "$ac_var='\''$ac_val'\''"
2032 if test -s confdefs.h; then
2042 test "$ac_signal" != 0 &&
2043 echo "$as_me: caught signal $ac_signal"
2044 echo "$as_me: exit $exit_status"
2046 rm -f core *.core core.conftest.* &&
2047 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2050 for ac_signal in 1 2 13 15; do
2051 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2055 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2056 rm -f -r conftest* confdefs.h
2058 # Predefined preprocessor variables.
2060 cat >>confdefs.h <<_ACEOF
2061 #define PACKAGE_NAME "$PACKAGE_NAME"
2065 cat >>confdefs.h <<_ACEOF
2066 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2070 cat >>confdefs.h <<_ACEOF
2071 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2075 cat >>confdefs.h <<_ACEOF
2076 #define PACKAGE_STRING "$PACKAGE_STRING"
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2085 # Let the site file select an alternate cache file if it wants to.
2086 # Prefer explicitly selected file to automatically selected ones.
2087 if test -n "$CONFIG_SITE"; then
2088 set x "$CONFIG_SITE"
2089 elif test "x$prefix" != xNONE; then
2090 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2092 set x "$ac_default_prefix/share/config.site" \
2093 "$ac_default_prefix/etc/config.site"
2098 if test -r "$ac_site_file"; then
2099 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2100 echo "$as_me: loading site script $ac_site_file" >&6;}
2101 sed 's/^/| /' "$ac_site_file" >&5
2106 if test -r "$cache_file"; then
2107 # Some versions of bash will fail to source /dev/null (special
2108 # files actually), so we avoid doing that.
2109 if test -f "$cache_file"; then
2110 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2111 echo "$as_me: loading cache $cache_file" >&6;}
2113 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2114 *) . "./$cache_file";;
2118 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2119 echo "$as_me: creating cache $cache_file" >&6;}
2123 # Check that the precious variables saved in the cache have kept the same
2125 ac_cache_corrupted=false
2126 for ac_var in $ac_precious_vars; do
2127 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2128 eval ac_new_set=\$ac_env_${ac_var}_set
2129 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2130 eval ac_new_val=\$ac_env_${ac_var}_value
2131 case $ac_old_set,$ac_new_set in
2133 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2134 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2135 ac_cache_corrupted=: ;;
2137 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2138 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2139 ac_cache_corrupted=: ;;
2142 if test "x$ac_old_val" != "x$ac_new_val"; then
2143 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2144 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2145 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2146 echo "$as_me: former value: $ac_old_val" >&2;}
2147 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2148 echo "$as_me: current value: $ac_new_val" >&2;}
2149 ac_cache_corrupted=:
2152 # Pass precious variables to config.status.
2153 if test "$ac_new_set" = set; then
2155 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2156 *) ac_arg=$ac_var=$ac_new_val ;;
2158 case " $ac_configure_args " in
2159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2160 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2164 if $ac_cache_corrupted; then
2165 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2166 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2167 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2168 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2169 { (exit 1); exit 1; }; }
2189 ac_cpp='$CPP $CPPFLAGS'
2190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2202 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2203 if test -f "$ac_dir/install-sh"; then
2205 ac_install_sh="$ac_aux_dir/install-sh -c"
2207 elif test -f "$ac_dir/install.sh"; then
2209 ac_install_sh="$ac_aux_dir/install.sh -c"
2211 elif test -f "$ac_dir/shtool"; then
2213 ac_install_sh="$ac_aux_dir/shtool install -c"
2217 if test -z "$ac_aux_dir"; then
2218 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2219 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2220 { (exit 1); exit 1; }; }
2223 # These three variables are undocumented and unsupported,
2224 # and are intended to be withdrawn in a future Autoconf release.
2225 # They can cause serious problems if a builder's source tree is in a directory
2226 # whose full name contains unusual characters.
2227 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2228 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2229 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2232 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2235 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2236 WIN32MAINDIR=${BUILD_DIR}
2237 WIN32TOPDIR=${TOP_DIR}
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248 set dummy $ac_prog; ac_word=$2
2249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2251 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2252 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2263 test -z "$as_dir" && as_dir=.
2264 for ac_exec_ext in '' $ac_executable_extensions; do
2265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2266 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2277 TRUEPRG=$ac_cv_path_TRUEPRG
2278 if test -n "$TRUEPRG"; then
2279 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2280 echo "${ECHO_T}$TRUEPRG" >&6; }
2282 { echo "$as_me:$LINENO: result: no" >&5
2283 echo "${ECHO_T}no" >&6; }
2287 test -n "$TRUEPRG" && break
2289 test -n "$TRUEPRG" || TRUEPRG=":"
2291 for ac_prog in false
2293 # Extract the first word of "$ac_prog", so it can be a program name with args.
2294 set dummy $ac_prog; ac_word=$2
2295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2297 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 test -z "$as_dir" && as_dir=.
2310 for ac_exec_ext in '' $ac_executable_extensions; do
2311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2312 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 FALSEPRG=$ac_cv_path_FALSEPRG
2324 if test -n "$FALSEPRG"; then
2325 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2326 echo "${ECHO_T}$FALSEPRG" >&6; }
2328 { echo "$as_me:$LINENO: result: no" >&5
2329 echo "${ECHO_T}no" >&6; }
2333 test -n "$FALSEPRG" && break
2335 test -n "$FALSEPRG" || FALSEPRG=":"
2340 if test "x$BACULA" != x; then
2341 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2343 BACULA=${BACULA:-Bacula}
2344 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2345 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2346 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2347 echo "configuring for ${BACULA} $VERSION ($DATE)"
2351 ac_cpp='$CPP $CPPFLAGS'
2352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2360 if test "${ac_cv_prog_CC+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
2363 if test -n "$CC"; then
2364 ac_cv_prog_CC="$CC" # Let the user override the test.
2366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 test -z "$as_dir" && as_dir=.
2371 for ac_exec_ext in '' $ac_executable_extensions; do
2372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2373 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 if test -n "$CC"; then
2385 { echo "$as_me:$LINENO: result: $CC" >&5
2386 echo "${ECHO_T}$CC" >&6; }
2388 { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2394 if test -z "$ac_cv_prog_CC"; then
2396 # Extract the first word of "gcc", so it can be a program name with args.
2397 set dummy gcc; ac_word=$2
2398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$ac_ct_CC"; then
2404 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2413 ac_cv_prog_ac_ct_CC="gcc"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2424 if test -n "$ac_ct_CC"; then
2425 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2426 echo "${ECHO_T}$ac_ct_CC" >&6; }
2428 { echo "$as_me:$LINENO: result: no" >&5
2429 echo "${ECHO_T}no" >&6; }
2432 if test "x$ac_ct_CC" = x; then
2435 case $cross_compiling:$ac_tool_warned in
2437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2438 whose name does not start with the host triplet. If you think this
2439 configuration is useful to you, please write to autoconf@gnu.org." >&5
2440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2441 whose name does not start with the host triplet. If you think this
2442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2443 ac_tool_warned=yes ;;
2451 if test -z "$CC"; then
2452 if test -n "$ac_tool_prefix"; then
2453 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}cc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_CC="${ac_tool_prefix}cc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 if test -n "$CC"; then
2482 { echo "$as_me:$LINENO: result: $CC" >&5
2483 echo "${ECHO_T}$CC" >&6; }
2485 { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2492 if test -z "$CC"; then
2493 # Extract the first word of "cc", so it can be a program name with args.
2494 set dummy cc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_CC+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 if test -n "$CC"; then
2501 ac_cv_prog_CC="$CC" # Let the user override the test.
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 test -z "$as_dir" && as_dir=.
2509 for ac_exec_ext in '' $ac_executable_extensions; do
2510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2511 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2512 ac_prog_rejected=yes
2516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2523 if test $ac_prog_rejected = yes; then
2524 # We found a bogon in the path, so make sure we never use it.
2525 set dummy $ac_cv_prog_CC
2527 if test $# != 0; then
2528 # We chose a different compiler from the bogus one.
2529 # However, it has the same basename, so the bogon will be chosen
2530 # first if we set CC to just the basename; use the full file name.
2532 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2538 if test -n "$CC"; then
2539 { echo "$as_me:$LINENO: result: $CC" >&5
2540 echo "${ECHO_T}$CC" >&6; }
2542 { echo "$as_me:$LINENO: result: no" >&5
2543 echo "${ECHO_T}no" >&6; }
2548 if test -z "$CC"; then
2549 if test -n "$ac_tool_prefix"; then
2550 for ac_prog in cl.exe
2552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2556 if test "${ac_cv_prog_CC+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 if test -n "$CC"; then
2560 ac_cv_prog_CC="$CC" # Let the user override the test.
2562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 test -z "$as_dir" && as_dir=.
2567 for ac_exec_ext in '' $ac_executable_extensions; do
2568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2569 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2580 if test -n "$CC"; then
2581 { echo "$as_me:$LINENO: result: $CC" >&5
2582 echo "${ECHO_T}$CC" >&6; }
2584 { echo "$as_me:$LINENO: result: no" >&5
2585 echo "${ECHO_T}no" >&6; }
2589 test -n "$CC" && break
2592 if test -z "$CC"; then
2594 for ac_prog in cl.exe
2596 # Extract the first word of "$ac_prog", so it can be a program name with args.
2597 set dummy $ac_prog; ac_word=$2
2598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2601 echo $ECHO_N "(cached) $ECHO_C" >&6
2603 if test -n "$ac_ct_CC"; then
2604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 test -z "$as_dir" && as_dir=.
2611 for ac_exec_ext in '' $ac_executable_extensions; do
2612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2613 ac_cv_prog_ac_ct_CC="$ac_prog"
2614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2624 if test -n "$ac_ct_CC"; then
2625 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2626 echo "${ECHO_T}$ac_ct_CC" >&6; }
2628 { echo "$as_me:$LINENO: result: no" >&5
2629 echo "${ECHO_T}no" >&6; }
2633 test -n "$ac_ct_CC" && break
2636 if test "x$ac_ct_CC" = x; then
2639 case $cross_compiling:$ac_tool_warned in
2641 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2642 whose name does not start with the host triplet. If you think this
2643 configuration is useful to you, please write to autoconf@gnu.org." >&5
2644 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2645 whose name does not start with the host triplet. If you think this
2646 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2647 ac_tool_warned=yes ;;
2656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2657 See \`config.log' for more details." >&5
2658 echo "$as_me: error: no acceptable C compiler found in \$PATH
2659 See \`config.log' for more details." >&2;}
2660 { (exit 1); exit 1; }; }
2662 # Provide some information about the compiler.
2663 echo "$as_me:$LINENO: checking for C compiler version" >&5
2664 ac_compiler=`set X $ac_compile; echo $2`
2665 { (ac_try="$ac_compiler --version >&5"
2667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2668 *) ac_try_echo=$ac_try;;
2670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2671 (eval "$ac_compiler --version >&5") 2>&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2674 (exit $ac_status); }
2675 { (ac_try="$ac_compiler -v >&5"
2677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2678 *) ac_try_echo=$ac_try;;
2680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2681 (eval "$ac_compiler -v >&5") 2>&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }
2685 { (ac_try="$ac_compiler -V >&5"
2687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688 *) ac_try_echo=$ac_try;;
2690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2691 (eval "$ac_compiler -V >&5") 2>&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); }
2696 cat >conftest.$ac_ext <<_ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h. */
2711 ac_clean_files_save=$ac_clean_files
2712 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2713 # Try to create an executable without -o first, disregard a.out.
2714 # It will help us diagnose broken compilers, and finding out an intuition
2716 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2717 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2718 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2720 # List of possible output files, starting from the most likely.
2721 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2722 # only as a last resort. b.out is created by i960 compilers.
2723 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2725 # The IRIX 6 linker writes into existing files which may not be
2726 # executable, retaining their permissions. Remove them first so a
2727 # subsequent execution test works.
2729 for ac_file in $ac_files
2732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2733 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2738 if { (ac_try="$ac_link_default"
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_link_default") 2>&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); }; then
2748 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2749 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2750 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2751 # so that the user can short-circuit this test for compilers unknown to
2753 for ac_file in $ac_files ''
2755 test -f "$ac_file" || continue
2757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2760 # We found the default executable, but exeext='' is most
2764 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2766 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2768 # We set ac_cv_exeext here because the later test for it is not
2769 # safe: cross compilers may not add the suffix if given an `-o'
2770 # argument, so we may need to know it at that point already.
2771 # Even if this section looks crufty: it has the advantage of
2778 test "$ac_cv_exeext" = no && ac_cv_exeext=
2784 { echo "$as_me:$LINENO: result: $ac_file" >&5
2785 echo "${ECHO_T}$ac_file" >&6; }
2786 if test -z "$ac_file"; then
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2791 See \`config.log' for more details." >&5
2792 echo "$as_me: error: C compiler cannot create executables
2793 See \`config.log' for more details." >&2;}
2794 { (exit 77); exit 77; }; }
2797 ac_exeext=$ac_cv_exeext
2799 # Check that the compiler produces executables we can run. If not, either
2800 # the compiler is broken, or we cross compile.
2801 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2802 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2803 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2804 # If not cross compiling, check that we can run a simple program.
2805 if test "$cross_compiling" != yes; then
2806 if { ac_try='./$ac_file'
2807 { (case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_try") 2>&5
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; }; then
2818 if test "$cross_compiling" = maybe; then
2821 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&5
2824 echo "$as_me: error: cannot run C compiled programs.
2825 If you meant to cross compile, use \`--host'.
2826 See \`config.log' for more details." >&2;}
2827 { (exit 1); exit 1; }; }
2831 { echo "$as_me:$LINENO: result: yes" >&5
2832 echo "${ECHO_T}yes" >&6; }
2834 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 # Check that the compiler produces executables we can run. If not, either
2837 # the compiler is broken, or we cross compile.
2838 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2839 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2840 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2841 echo "${ECHO_T}$cross_compiling" >&6; }
2843 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2844 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2845 if { (ac_try="$ac_link"
2847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2848 *) ac_try_echo=$ac_try;;
2850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2851 (eval "$ac_link") 2>&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
2855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2856 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2857 # work properly (i.e., refer to `conftest.exe'), while it won't with
2859 for ac_file in conftest.exe conftest conftest.*; do
2860 test -f "$ac_file" || continue
2862 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2869 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2870 See \`config.log' for more details." >&5
2871 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&2;}
2873 { (exit 1); exit 1; }; }
2876 rm -f conftest$ac_cv_exeext
2877 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2878 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2880 rm -f conftest.$ac_ext
2881 EXEEXT=$ac_cv_exeext
2883 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2884 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2885 if test "${ac_cv_objext+set}" = set; then
2886 echo $ECHO_N "(cached) $ECHO_C" >&6
2888 cat >conftest.$ac_ext <<_ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2903 rm -f conftest.o conftest.obj
2904 if { (ac_try="$ac_compile"
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2910 (eval "$ac_compile") 2>&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; then
2914 for ac_file in conftest.o conftest.obj conftest.*; do
2915 test -f "$ac_file" || continue;
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2918 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2926 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2927 See \`config.log' for more details." >&5
2928 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2929 See \`config.log' for more details." >&2;}
2930 { (exit 1); exit 1; }; }
2933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2935 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2936 echo "${ECHO_T}$ac_cv_objext" >&6; }
2937 OBJEXT=$ac_cv_objext
2939 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2940 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2941 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2942 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 cat >conftest.$ac_ext <<_ACEOF
2947 cat confdefs.h >>conftest.$ac_ext
2948 cat >>conftest.$ac_ext <<_ACEOF
2949 /* end confdefs.h. */
2962 rm -f conftest.$ac_objext
2963 if { (ac_try="$ac_compile"
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2969 (eval "$ac_compile") 2>conftest.er1
2971 grep -v '^ *+' conftest.er1 >conftest.err
2973 cat conftest.err >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); } && {
2976 test -z "$ac_c_werror_flag" ||
2977 test ! -s conftest.err
2978 } && test -s conftest.$ac_objext; then
2981 echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2991 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2992 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2993 GCC=`test $ac_compiler_gnu = yes && echo yes`
2994 ac_test_CFLAGS=${CFLAGS+set}
2995 ac_save_CFLAGS=$CFLAGS
2996 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2997 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2998 if test "${ac_cv_prog_cc_g+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 ac_save_c_werror_flag=$ac_c_werror_flag
3002 ac_c_werror_flag=yes
3005 cat >conftest.$ac_ext <<_ACEOF
3008 cat confdefs.h >>conftest.$ac_ext
3009 cat >>conftest.$ac_ext <<_ACEOF
3010 /* end confdefs.h. */
3020 rm -f conftest.$ac_objext
3021 if { (ac_try="$ac_compile"
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_compile") 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } && {
3034 test -z "$ac_c_werror_flag" ||
3035 test ! -s conftest.err
3036 } && test -s conftest.$ac_objext; then
3039 echo "$as_me: failed program was:" >&5
3040 sed 's/^/| /' conftest.$ac_ext >&5
3043 cat >conftest.$ac_ext <<_ACEOF
3046 cat confdefs.h >>conftest.$ac_ext
3047 cat >>conftest.$ac_ext <<_ACEOF
3048 /* end confdefs.h. */
3058 rm -f conftest.$ac_objext
3059 if { (ac_try="$ac_compile"
3061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062 *) ac_try_echo=$ac_try;;
3064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065 (eval "$ac_compile") 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } && {
3072 test -z "$ac_c_werror_flag" ||
3073 test ! -s conftest.err
3074 } && test -s conftest.$ac_objext; then
3077 echo "$as_me: failed program was:" >&5
3078 sed 's/^/| /' conftest.$ac_ext >&5
3080 ac_c_werror_flag=$ac_save_c_werror_flag
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } && {
3111 test -z "$ac_c_werror_flag" ||
3112 test ! -s conftest.err
3113 } && test -s conftest.$ac_objext; then
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3129 ac_c_werror_flag=$ac_save_c_werror_flag
3131 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3132 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3133 if test "$ac_test_CFLAGS" = set; then
3134 CFLAGS=$ac_save_CFLAGS
3135 elif test $ac_cv_prog_cc_g = yes; then
3136 if test "$GCC" = yes; then
3142 if test "$GCC" = yes; then
3148 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3149 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3150 if test "${ac_cv_prog_cc_c89+set}" = set; then
3151 echo $ECHO_N "(cached) $ECHO_C" >&6
3153 ac_cv_prog_cc_c89=no
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3163 #include <sys/types.h>
3164 #include <sys/stat.h>
3165 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3166 struct buf { int x; };
3167 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3168 static char *e (p, i)
3174 static char *f (char * (*g) (char **, int), char **p, ...)
3179 s = g (p, va_arg (v,int));
3184 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3185 function prototypes and stuff, but not '\xHH' hex character constants.
3186 These don't provoke an error unfortunately, instead are silently treated
3187 as 'x'. The following induces an error, until -std is added to get
3188 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3189 array size at least. It's necessary to write '\x00'==0 to get something
3190 that's true only with -std. */
3191 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3193 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3194 inside strings and character constants. */
3196 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3198 int test (int i, double x);
3199 struct s1 {int (*f) (int a);};
3200 struct s2 {int (*f) (double a);};
3201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3212 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3213 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3215 CC="$ac_save_CC $ac_arg"
3216 rm -f conftest.$ac_objext
3217 if { (ac_try="$ac_compile"
3219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3220 *) ac_try_echo=$ac_try;;
3222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3223 (eval "$ac_compile") 2>conftest.er1
3225 grep -v '^ *+' conftest.er1 >conftest.err
3227 cat conftest.err >&5
3228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3229 (exit $ac_status); } && {
3230 test -z "$ac_c_werror_flag" ||
3231 test ! -s conftest.err
3232 } && test -s conftest.$ac_objext; then
3233 ac_cv_prog_cc_c89=$ac_arg
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3241 rm -f core conftest.err conftest.$ac_objext
3242 test "x$ac_cv_prog_cc_c89" != "xno" && break
3244 rm -f conftest.$ac_ext
3249 case "x$ac_cv_prog_cc_c89" in
3251 { echo "$as_me:$LINENO: result: none needed" >&5
3252 echo "${ECHO_T}none needed" >&6; } ;;
3254 { echo "$as_me:$LINENO: result: unsupported" >&5
3255 echo "${ECHO_T}unsupported" >&6; } ;;
3257 CC="$CC $ac_cv_prog_cc_c89"
3258 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3259 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3264 ac_cpp='$CPP $CPPFLAGS'
3265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 ac_cpp='$CXXCPP $CPPFLAGS'
3271 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3272 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3273 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3274 if test -z "$CXX"; then
3275 if test -n "$CCC"; then
3278 if test -n "$ac_tool_prefix"; then
3279 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_CXX+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 if test -n "$CXX"; then
3289 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3298 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 if test -n "$CXX"; then
3310 { echo "$as_me:$LINENO: result: $CXX" >&5
3311 echo "${ECHO_T}$CXX" >&6; }
3313 { echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6; }
3318 test -n "$CXX" && break
3321 if test -z "$CXX"; then
3323 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3332 if test -n "$ac_ct_CXX"; then
3333 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3342 ac_cv_prog_ac_ct_CXX="$ac_prog"
3343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3353 if test -n "$ac_ct_CXX"; then
3354 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3355 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3357 { echo "$as_me:$LINENO: result: no" >&5
3358 echo "${ECHO_T}no" >&6; }
3362 test -n "$ac_ct_CXX" && break
3365 if test "x$ac_ct_CXX" = x; then
3368 case $cross_compiling:$ac_tool_warned in
3370 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3371 whose name does not start with the host triplet. If you think this
3372 configuration is useful to you, please write to autoconf@gnu.org." >&5
3373 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet. If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3376 ac_tool_warned=yes ;;
3384 # Provide some information about the compiler.
3385 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3386 ac_compiler=`set X $ac_compile; echo $2`
3387 { (ac_try="$ac_compiler --version >&5"
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compiler --version >&5") 2>&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }
3397 { (ac_try="$ac_compiler -v >&5"
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_compiler -v >&5") 2>&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); }
3407 { (ac_try="$ac_compiler -V >&5"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_compiler -V >&5") 2>&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); }
3418 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3419 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3420 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 cat >conftest.$ac_ext <<_ACEOF
3426 cat confdefs.h >>conftest.$ac_ext
3427 cat >>conftest.$ac_ext <<_ACEOF
3428 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_cxx_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3470 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3472 GXX=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CXXFLAGS=${CXXFLAGS+set}
3474 ac_save_CXXFLAGS=$CXXFLAGS
3475 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3476 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3477 if test "${ac_cv_prog_cxx_g+set}" = set; then
3478 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3481 ac_cxx_werror_flag=yes
3484 cat >conftest.$ac_ext <<_ACEOF
3487 cat confdefs.h >>conftest.$ac_ext
3488 cat >>conftest.$ac_ext <<_ACEOF
3489 /* end confdefs.h. */
3499 rm -f conftest.$ac_objext
3500 if { (ac_try="$ac_compile"
3502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503 *) ac_try_echo=$ac_try;;
3505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506 (eval "$ac_compile") 2>conftest.er1
3508 grep -v '^ *+' conftest.er1 >conftest.err
3510 cat conftest.err >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); } && {
3513 test -z "$ac_cxx_werror_flag" ||
3514 test ! -s conftest.err
3515 } && test -s conftest.$ac_objext; then
3516 ac_cv_prog_cxx_g=yes
3518 echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.$ac_ext >&5
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3537 rm -f conftest.$ac_objext
3538 if { (ac_try="$ac_compile"
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compile") 2>conftest.er1
3546 grep -v '^ *+' conftest.er1 >conftest.err
3548 cat conftest.err >&5
3549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3550 (exit $ac_status); } && {
3551 test -z "$ac_cxx_werror_flag" ||
3552 test ! -s conftest.err
3553 } && test -s conftest.$ac_objext; then
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3561 cat >conftest.$ac_ext <<_ACEOF
3564 cat confdefs.h >>conftest.$ac_ext
3565 cat >>conftest.$ac_ext <<_ACEOF
3566 /* end confdefs.h. */
3576 rm -f conftest.$ac_objext
3577 if { (ac_try="$ac_compile"
3579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3580 *) ac_try_echo=$ac_try;;
3582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3583 (eval "$ac_compile") 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } && {
3590 test -z "$ac_cxx_werror_flag" ||
3591 test ! -s conftest.err
3592 } && test -s conftest.$ac_objext; then
3593 ac_cv_prog_cxx_g=yes
3595 echo "$as_me: failed program was:" >&5
3596 sed 's/^/| /' conftest.$ac_ext >&5
3601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3611 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3612 if test "$ac_test_CXXFLAGS" = set; then
3613 CXXFLAGS=$ac_save_CXXFLAGS
3614 elif test $ac_cv_prog_cxx_g = yes; then
3615 if test "$GXX" = yes; then
3621 if test "$GXX" = yes; then
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 if test "x$CC" != xcc; then
3634 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3635 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3637 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3638 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3640 set dummy $CC; ac_cc=`echo $2 |
3641 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3642 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3660 # Make sure it works both with $CC and with simple cc.
3661 # We do the test twice because some compilers refuse to overwrite an
3662 # existing .o file with -o, though they will create one.
3663 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3665 if { (case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3670 (eval "$ac_try") 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } &&
3674 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_try") 2>&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); };
3684 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3685 if test "x$CC" != xcc; then
3686 # Test first that cc exists at all.
3687 if { ac_try='cc -c conftest.$ac_ext >&5'
3688 { (case "(($ac_try" in
3689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3693 (eval "$ac_try") 2>&5
3695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696 (exit $ac_status); }; }; then
3697 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3699 if { (case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_try") 2>&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); } &&
3708 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3713 (eval "$ac_try") 2>&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); };
3721 # cc exists but doesn't like -o.
3722 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3727 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3729 rm -f core conftest*
3732 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3733 { echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6; }
3736 { echo "$as_me:$LINENO: result: no" >&5
3737 echo "${ECHO_T}no" >&6; }
3739 cat >>confdefs.h <<\_ACEOF
3740 #define NO_MINUS_C_MINUS_O 1
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3751 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3752 # On Suns, sometimes $CPP names a directory.
3753 if test -n "$CPP" && test -d "$CPP"; then
3756 if test -z "$CPP"; then
3757 if test "${ac_cv_prog_CPP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 # Double quotes because CPP needs to be expanded
3761 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3764 for ac_c_preproc_warn_flag in '' yes
3766 # Use a header file that comes with gcc, so configuring glibc
3767 # with a fresh cross-compiler works.
3768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3769 # <limits.h> exists even on freestanding compilers.
3770 # On the NeXT, cc -E runs the code through the compiler's parser,
3771 # not just through cpp. "Syntax error" is here to catch this case.
3772 cat >conftest.$ac_ext <<_ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3779 # include <limits.h>
3781 # include <assert.h>
3785 if { (ac_try="$ac_cpp conftest.$ac_ext"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3793 grep -v '^ *+' conftest.er1 >conftest.err
3795 cat conftest.err >&5
3796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3797 (exit $ac_status); } >/dev/null && {
3798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3799 test ! -s conftest.err
3803 echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 # Broken: fails on valid input.
3810 rm -f conftest.err conftest.$ac_ext
3812 # OK, works on sane cases. Now check whether nonexistent headers
3813 # can be detected and how.
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3820 #include <ac_nonexistent.h>
3822 if { (ac_try="$ac_cpp conftest.$ac_ext"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3830 grep -v '^ *+' conftest.er1 >conftest.err
3832 cat conftest.err >&5
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); } >/dev/null && {
3835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3836 test ! -s conftest.err
3838 # Broken: success on invalid input.
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 # Passes both tests.
3849 rm -f conftest.err conftest.$ac_ext
3852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853 rm -f conftest.err conftest.$ac_ext
3854 if $ac_preproc_ok; then
3866 { echo "$as_me:$LINENO: result: $CPP" >&5
3867 echo "${ECHO_T}$CPP" >&6; }
3869 for ac_c_preproc_warn_flag in '' yes
3871 # Use a header file that comes with gcc, so configuring glibc
3872 # with a fresh cross-compiler works.
3873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3874 # <limits.h> exists even on freestanding compilers.
3875 # On the NeXT, cc -E runs the code through the compiler's parser,
3876 # not just through cpp. "Syntax error" is here to catch this case.
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3884 # include <limits.h>
3886 # include <assert.h>
3890 if { (ac_try="$ac_cpp conftest.$ac_ext"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902 (exit $ac_status); } >/dev/null && {
3903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 # Broken: fails on valid input.
3915 rm -f conftest.err conftest.$ac_ext
3917 # OK, works on sane cases. Now check whether nonexistent headers
3918 # can be detected and how.
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3925 #include <ac_nonexistent.h>
3927 if { (ac_try="$ac_cpp conftest.$ac_ext"
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3935 grep -v '^ *+' conftest.er1 >conftest.err
3937 cat conftest.err >&5
3938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939 (exit $ac_status); } >/dev/null && {
3940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3941 test ! -s conftest.err
3943 # Broken: success on invalid input.
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 # Passes both tests.
3954 rm -f conftest.err conftest.$ac_ext
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3962 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3963 See \`config.log' for more details." >&5
3964 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3965 See \`config.log' for more details." >&2;}
3966 { (exit 1); exit 1; }; }
3970 ac_cpp='$CPP $CPPFLAGS'
3971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3977 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3978 if test "${ac_cv_path_GREP+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 # Extract the first word of "grep ggrep" to use in msg output
3982 if test -z "$GREP"; then
3983 set dummy grep ggrep; ac_prog_name=$2
3984 if test "${ac_cv_path_GREP+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 ac_path_GREP_found=false
3988 # Loop through the user's path and test for each of PROGNAME-LIST
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3993 test -z "$as_dir" && as_dir=.
3994 for ac_prog in grep ggrep; do
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3997 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3998 # Check for GNU ac_path_GREP and select it if it is found.
3999 # Check for GNU $ac_path_GREP
4000 case `"$ac_path_GREP" --version 2>&1` in
4002 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4005 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4008 cat "conftest.in" "conftest.in" >"conftest.tmp"
4009 mv "conftest.tmp" "conftest.in"
4010 cp "conftest.in" "conftest.nl"
4011 echo 'GREP' >> "conftest.nl"
4012 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014 ac_count=`expr $ac_count + 1`
4015 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4016 # Best one so far, save it but keep looking for a better one
4017 ac_cv_path_GREP="$ac_path_GREP"
4018 ac_path_GREP_max=$ac_count
4020 # 10*(2^10) chars as input seems more than enough
4021 test $ac_count -gt 10 && break
4023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4027 $ac_path_GREP_found && break 3
4037 GREP="$ac_cv_path_GREP"
4038 if test -z "$GREP"; then
4039 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4040 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4041 { (exit 1); exit 1; }; }
4045 ac_cv_path_GREP=$GREP
4050 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4051 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4052 GREP="$ac_cv_path_GREP"
4055 { echo "$as_me:$LINENO: checking for egrep" >&5
4056 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4057 if test "${ac_cv_path_EGREP+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4061 then ac_cv_path_EGREP="$GREP -E"
4063 # Extract the first word of "egrep" to use in msg output
4064 if test -z "$EGREP"; then
4065 set dummy egrep; ac_prog_name=$2
4066 if test "${ac_cv_path_EGREP+set}" = set; then
4067 echo $ECHO_N "(cached) $ECHO_C" >&6
4069 ac_path_EGREP_found=false
4070 # Loop through the user's path and test for each of PROGNAME-LIST
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4075 test -z "$as_dir" && as_dir=.
4076 for ac_prog in egrep; do
4077 for ac_exec_ext in '' $ac_executable_extensions; do
4078 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4079 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4080 # Check for GNU ac_path_EGREP and select it if it is found.
4081 # Check for GNU $ac_path_EGREP
4082 case `"$ac_path_EGREP" --version 2>&1` in
4084 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4087 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4090 cat "conftest.in" "conftest.in" >"conftest.tmp"
4091 mv "conftest.tmp" "conftest.in"
4092 cp "conftest.in" "conftest.nl"
4093 echo 'EGREP' >> "conftest.nl"
4094 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4095 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4096 ac_count=`expr $ac_count + 1`
4097 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4098 # Best one so far, save it but keep looking for a better one
4099 ac_cv_path_EGREP="$ac_path_EGREP"
4100 ac_path_EGREP_max=$ac_count
4102 # 10*(2^10) chars as input seems more than enough
4103 test $ac_count -gt 10 && break
4105 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4109 $ac_path_EGREP_found && break 3
4119 EGREP="$ac_cv_path_EGREP"
4120 if test -z "$EGREP"; then
4121 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4122 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4123 { (exit 1); exit 1; }; }
4127 ac_cv_path_EGREP=$EGREP
4133 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4134 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4135 EGREP="$ac_cv_path_EGREP"
4138 if test $ac_cv_c_compiler_gnu = yes; then
4139 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4140 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4141 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4144 ac_pattern="Autoconf.*'x'"
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4155 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4156 ac_cv_prog_gcc_traditional=yes
4158 ac_cv_prog_gcc_traditional=no
4163 if test $ac_cv_prog_gcc_traditional = no; then
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4175 ac_cv_prog_gcc_traditional=yes
4181 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4182 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4183 if test $ac_cv_prog_gcc_traditional = yes; then
4184 CC="$CC -traditional"
4188 BASECC=`basename $CC`
4190 if test "x$BASECC" = xgcc; then
4191 cat >>confdefs.h <<\_ACEOF
4197 # Extract the first word of "$CXX", so it can be a program name with args.
4198 set dummy $CXX; ac_word=$2
4199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4201 if test "${ac_cv_path_CXX+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4229 if test -n "$CXX"; then
4230 { echo "$as_me:$LINENO: result: $CXX" >&5
4231 echo "${ECHO_T}$CXX" >&6; }
4233 { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4238 if test ! -e $CXX; then
4239 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4240 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4241 { (exit 1); exit 1; }; }
4244 # Find a good install program. We prefer a C program (faster),
4245 # so one script is as good as another. But avoid the broken or
4246 # incompatible versions:
4247 # SysV /etc/install, /usr/sbin/install
4248 # SunOS /usr/etc/install
4249 # IRIX /sbin/install
4251 # AmigaOS /C/install, which installs bootblocks on floppy discs
4252 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4253 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4254 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4255 # OS/2's system install, which has a completely different semantic
4256 # ./install, which can be erroneously created by make from ./install.sh.
4257 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4258 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4259 if test -z "$INSTALL"; then
4260 if test "${ac_cv_path_install+set}" = set; then
4261 echo $ECHO_N "(cached) $ECHO_C" >&6
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267 test -z "$as_dir" && as_dir=.
4268 # Account for people who put trailing slashes in PATH elements.
4270 ./ | .// | /cC/* | \
4271 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4272 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4275 # OSF1 and SCO ODT 3.0 have their own names for install.
4276 # Don't use installbsd from OSF since it installs stuff as root
4278 for ac_prog in ginstall scoinst install; do
4279 for ac_exec_ext in '' $ac_executable_extensions; do
4280 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4281 if test $ac_prog = install &&
4282 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4283 # AIX install. It has an incompatible calling convention.
4285 elif test $ac_prog = install &&
4286 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4287 # program-specific install script used by HP pwplus--don't use.
4290 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4303 if test "${ac_cv_path_install+set}" = set; then
4304 INSTALL=$ac_cv_path_install
4306 # As a last resort, use the slow shell script. Don't cache a
4307 # value for INSTALL within a source directory, because that will
4308 # break other packages using the cache if that directory is
4309 # removed, or if the value is a relative name.
4310 INSTALL=$ac_install_sh
4313 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4314 echo "${ECHO_T}$INSTALL" >&6; }
4316 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4317 # It thinks the first close brace ends the variable substitution.
4318 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4320 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4322 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4324 # Extract the first word of "mv", so it can be a program name with args.
4325 set dummy mv; ac_word=$2
4326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4328 if test "${ac_cv_path_MV+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4344 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4356 if test -n "$MV"; then
4357 { echo "$as_me:$LINENO: result: $MV" >&5
4358 echo "${ECHO_T}$MV" >&6; }
4360 { echo "$as_me:$LINENO: result: no" >&5
4361 echo "${ECHO_T}no" >&6; }
4365 # Extract the first word of "rm", so it can be a program name with args.
4366 set dummy rm; ac_word=$2
4367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4369 if test "${ac_cv_path_REMOVE+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4374 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4396 REMOVE=$ac_cv_path_REMOVE
4397 if test -n "$REMOVE"; then
4398 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4399 echo "${ECHO_T}$REMOVE" >&6; }
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4406 # Extract the first word of "cp", so it can be a program name with args.
4407 set dummy cp; ac_word=$2
4408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4410 if test "${ac_cv_path_CP+set}" = set; then
4411 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4438 if test -n "$CP"; then
4439 { echo "$as_me:$LINENO: result: $CP" >&5
4440 echo "${ECHO_T}$CP" >&6; }
4442 { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4447 # Extract the first word of "sed", so it can be a program name with args.
4448 set dummy sed; ac_word=$2
4449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_SED+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4479 if test -n "$SED"; then
4480 { echo "$as_me:$LINENO: result: $SED" >&5
4481 echo "${ECHO_T}$SED" >&6; }
4483 { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4488 # Extract the first word of "echo", so it can be a program name with args.
4489 set dummy echo; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_path_ECHO+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4497 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4519 ECHO=$ac_cv_path_ECHO
4520 if test -n "$ECHO"; then
4521 { echo "$as_me:$LINENO: result: $ECHO" >&5
4522 echo "${ECHO_T}$ECHO" >&6; }
4524 { echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6; }
4529 # Extract the first word of "cmp", so it can be a program name with args.
4530 set dummy cmp; ac_word=$2
4531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4533 if test "${ac_cv_path_CMP+set}" = set; then
4534 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 test -z "$as_dir" && as_dir=.
4546 for ac_exec_ext in '' $ac_executable_extensions; do
4547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4548 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4561 if test -n "$CMP"; then
4562 { echo "$as_me:$LINENO: result: $CMP" >&5
4563 echo "${ECHO_T}$CMP" >&6; }
4565 { echo "$as_me:$LINENO: result: no" >&5
4566 echo "${ECHO_T}no" >&6; }
4570 # Extract the first word of "tbl", so it can be a program name with args.
4571 set dummy tbl; ac_word=$2
4572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4574 if test "${ac_cv_path_TBL+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4589 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4602 if test -n "$TBL"; then
4603 { echo "$as_me:$LINENO: result: $TBL" >&5
4604 echo "${ECHO_T}$TBL" >&6; }
4606 { echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6; }
4611 # Extract the first word of "ar", so it can be a program name with args.
4612 set dummy ar; ac_word=$2
4613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4615 if test "${ac_cv_path_AR+set}" = set; then
4616 echo $ECHO_N "(cached) $ECHO_C" >&6
4620 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 test -z "$as_dir" && as_dir=.
4628 for ac_exec_ext in '' $ac_executable_extensions; do
4629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4631 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4643 if test -n "$AR"; then
4644 { echo "$as_me:$LINENO: result: $AR" >&5
4645 echo "${ECHO_T}$AR" >&6; }
4647 { echo "$as_me:$LINENO: result: no" >&5
4648 echo "${ECHO_T}no" >&6; }
4652 # Extract the first word of "openssl", so it can be a program name with args.
4653 set dummy openssl; ac_word=$2
4654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4656 if test "${ac_cv_path_OPENSSL+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4668 test -z "$as_dir" && as_dir=.
4669 for ac_exec_ext in '' $ac_executable_extensions; do
4670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4671 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4683 OPENSSL=$ac_cv_path_OPENSSL
4684 if test -n "$OPENSSL"; then
4685 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4686 echo "${ECHO_T}$OPENSSL" >&6; }
4688 { echo "$as_me:$LINENO: result: no" >&5
4689 echo "${ECHO_T}no" >&6; }
4693 # Extract the first word of "mtx", so it can be a program name with args.
4694 set dummy mtx; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_path_MTX+set}" = set; then
4698 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4725 if test -n "$MTX"; then
4726 { echo "$as_me:$LINENO: result: $MTX" >&5
4727 echo "${ECHO_T}$MTX" >&6; }
4729 { echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6; }
4734 # Extract the first word of "dd", so it can be a program name with args.
4735 set dummy dd; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_path_DD+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4743 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4766 if test -n "$DD"; then
4767 { echo "$as_me:$LINENO: result: $DD" >&5
4768 echo "${ECHO_T}$DD" >&6; }
4770 { echo "$as_me:$LINENO: result: no" >&5
4771 echo "${ECHO_T}no" >&6; }
4775 # Extract the first word of "mkisofs", so it can be a program name with args.
4776 set dummy mkisofs; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_path_MKISOFS+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791 test -z "$as_dir" && as_dir=.
4792 for ac_exec_ext in '' $ac_executable_extensions; do
4793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4794 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4806 MKISOFS=$ac_cv_path_MKISOFS
4807 if test -n "$MKISOFS"; then
4808 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4809 echo "${ECHO_T}$MKISOFS" >&6; }
4811 { echo "$as_me:$LINENO: result: no" >&5
4812 echo "${ECHO_T}no" >&6; }
4816 # Extract the first word of "python", so it can be a program name with args.
4817 set dummy python; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_PYTHON+set}" = set; then
4821 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4847 PYTHON=$ac_cv_path_PYTHON
4848 if test -n "$PYTHON"; then
4849 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4850 echo "${ECHO_T}$PYTHON" >&6; }
4852 { echo "$as_me:$LINENO: result: no" >&5
4853 echo "${ECHO_T}no" >&6; }
4857 # Extract the first word of "growisofs", so it can be a program name with args.
4858 set dummy growisofs; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4888 GROWISOFS=$ac_cv_path_GROWISOFS
4889 if test -n "$GROWISOFS"; then
4890 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4891 echo "${ECHO_T}$GROWISOFS" >&6; }
4893 { echo "$as_me:$LINENO: result: no" >&5
4894 echo "${ECHO_T}no" >&6; }
4898 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4899 set dummy dvd+rw-mediainfo; ac_word=$2
4900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 case $DVDRWMEDIAINFO in
4907 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4929 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4930 if test -n "$DVDRWMEDIAINFO"; then
4931 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4932 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4934 { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4939 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4940 set dummy dvd+rw-format; ac_word=$2
4941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4946 case $DVDRWFORMAT in
4948 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4970 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4971 if test -n "$DVDRWFORMAT"; then
4972 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4973 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4975 { echo "$as_me:$LINENO: result: no" >&5
4976 echo "${ECHO_T}no" >&6; }
4980 # Extract the first word of "pkg-config", so it can be a program name with args.
4981 set dummy pkg-config; ac_word=$2
4982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4989 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5007 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5011 PKGCONFIG=$ac_cv_path_PKGCONFIG
5012 if test -n "$PKGCONFIG"; then
5013 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5014 echo "${ECHO_T}$PKGCONFIG" >&6; }
5016 { echo "$as_me:$LINENO: result: no" >&5
5017 echo "${ECHO_T}no" >&6; }
5021 # Extract the first word of "qmake", so it can be a program name with args.
5022 set dummy qmake; ac_word=$2
5023 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5024 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025 if test "${ac_cv_path_QMAKE+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5052 QMAKE=$ac_cv_path_QMAKE
5053 if test -n "$QMAKE"; then
5054 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5055 echo "${ECHO_T}$QMAKE" >&6; }
5057 { echo "$as_me:$LINENO: result: no" >&5
5058 echo "${ECHO_T}no" >&6; }
5062 # Extract the first word of "qmake-qt4", so it can be a program name with args.
5063 set dummy qmake-qt4; ac_word=$2
5064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5071 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
5093 QMAKEQT4=$ac_cv_path_QMAKEQT4
5094 if test -n "$QMAKEQT4"; then
5095 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
5096 echo "${ECHO_T}$QMAKEQT4" >&6; }
5098 { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5103 # Extract the first word of "gmake", so it can be a program name with args.
5104 set dummy gmake; ac_word=$2
5105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107 if test "${ac_cv_path_GMAKE+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5134 GMAKE=$ac_cv_path_GMAKE
5135 if test -n "$GMAKE"; then
5136 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5137 echo "${ECHO_T}$GMAKE" >&6; }
5139 { echo "$as_me:$LINENO: result: no" >&5
5140 echo "${ECHO_T}no" >&6; }
5145 if test "x$WXCONFIG" = x; then
5148 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5149 set dummy ${WXCONFIG}; ac_word=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5175 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5179 WXCONFIG=$ac_cv_path_WXCONFIG
5180 if test -n "$WXCONFIG"; then
5181 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5182 echo "${ECHO_T}$WXCONFIG" >&6; }
5184 { echo "$as_me:$LINENO: result: no" >&5
5185 echo "${ECHO_T}no" >&6; }
5190 # Extract the first word of "cdrecord", so it can be a program name with args.
5191 set dummy cdrecord; ac_word=$2
5192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5194 if test "${ac_cv_path_CDRECORD+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5199 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 test -z "$as_dir" && as_dir=.
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5209 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5221 CDRECORD=$ac_cv_path_CDRECORD
5222 if test -n "$CDRECORD"; then
5223 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5224 echo "${ECHO_T}$CDRECORD" >&6; }
5226 { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5231 # Extract the first word of "pidof", so it can be a program name with args.
5232 set dummy pidof; ac_word=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_path_PIDOF+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5262 PIDOF=$ac_cv_path_PIDOF
5263 if test -n "$PIDOF"; then
5264 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5265 echo "${ECHO_T}$PIDOF" >&6; }
5267 { echo "$as_me:$LINENO: result: no" >&5
5268 echo "${ECHO_T}no" >&6; }
5272 for ac_prog in gawk mawk nawk awk
5274 # Extract the first word of "$ac_prog", so it can be a program name with args.
5275 set dummy $ac_prog; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_prog_AWK+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 if test -n "$AWK"; then
5282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_prog_AWK="$ac_prog"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5302 if test -n "$AWK"; then
5303 { echo "$as_me:$LINENO: result: $AWK" >&5
5304 echo "${ECHO_T}$AWK" >&6; }
5306 { echo "$as_me:$LINENO: result: no" >&5
5307 echo "${ECHO_T}no" >&6; }
5311 test -n "$AWK" && break
5314 # Some AWK programs fail, so test it and warn the user
5315 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5316 { if ((prog == $2) || (("(" prog ")") == $2) ||
5317 (("" prog "") == $2) ||
5318 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5320 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5321 The regex engine of $AWK is too broken to be used you
5322 might want to install GNU AWK.
5323 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5324 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5325 The regex engine of $AWK is too broken to be used you
5326 might want to install GNU AWK.
5327 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5328 { (exit 1); exit 1; }; }
5331 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5332 set dummy $THE_AWK; ac_word=$2
5333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5335 if test "${ac_cv_path_AWK+set}" = set; then
5336 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5358 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5363 if test -n "$AWK"; then
5364 { echo "$as_me:$LINENO: result: $AWK" >&5
5365 echo "${ECHO_T}$AWK" >&6; }
5367 { echo "$as_me:$LINENO: result: no" >&5
5368 echo "${ECHO_T}no" >&6; }
5374 test -n "$ARFLAG" || ARFLAGS="cr"
5385 # Check whether --enable-libtool was given.
5386 if test "${enable_libtool+set}" = set; then
5387 enableval=$enable_libtool;
5388 if test x$enableval = xno; then
5397 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5398 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5403 macro_version='2.2.6'
5404 macro_revision='1.3012'
5418 ltmain="$ac_aux_dir/ltmain.sh"
5420 # Make sure we can run config.sub.
5421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5422 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5423 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5424 { (exit 1); exit 1; }; }
5426 { echo "$as_me:$LINENO: checking build system type" >&5
5427 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5428 if test "${ac_cv_build+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 ac_build_alias=$build_alias
5432 test "x$ac_build_alias" = x &&
5433 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5434 test "x$ac_build_alias" = x &&
5435 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5437 { (exit 1); exit 1; }; }
5438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5439 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5440 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5441 { (exit 1); exit 1; }; }
5444 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5445 echo "${ECHO_T}$ac_cv_build" >&6; }
5446 case $ac_cv_build in
5448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5449 echo "$as_me: error: invalid value of canonical build" >&2;}
5450 { (exit 1); exit 1; }; };;
5453 ac_save_IFS=$IFS; IFS='-'
5459 # Remember, the first character of IFS is used to create $*,
5460 # except with old shells:
5463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5466 { echo "$as_me:$LINENO: checking host system type" >&5
5467 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5468 if test "${ac_cv_host+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 if test "x$host_alias" = x; then
5472 ac_cv_host=$ac_cv_build
5474 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5475 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5477 { (exit 1); exit 1; }; }
5481 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5482 echo "${ECHO_T}$ac_cv_host" >&6; }
5485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5486 echo "$as_me: error: invalid value of canonical host" >&2;}
5487 { (exit 1); exit 1; }; };;
5490 ac_save_IFS=$IFS; IFS='-'
5496 # Remember, the first character of IFS is used to create $*,
5497 # except with old shells:
5500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5503 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5504 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5505 if test "${ac_cv_path_SED+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5509 for ac_i in 1 2 3 4 5 6 7; do
5510 ac_script="$ac_script$as_nl$ac_script"
5512 echo "$ac_script" | sed 99q >conftest.sed
5513 $as_unset ac_script || ac_script=
5514 # Extract the first word of "sed gsed" to use in msg output
5515 if test -z "$SED"; then
5516 set dummy sed gsed; ac_prog_name=$2
5517 if test "${ac_cv_path_SED+set}" = set; then
5518 echo $ECHO_N "(cached) $ECHO_C" >&6
5520 ac_path_SED_found=false
5521 # Loop through the user's path and test for each of PROGNAME-LIST
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 test -z "$as_dir" && as_dir=.
5527 for ac_prog in sed gsed; do
5528 for ac_exec_ext in '' $ac_executable_extensions; do
5529 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5530 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5531 # Check for GNU ac_path_SED and select it if it is found.
5532 # Check for GNU $ac_path_SED
5533 case `"$ac_path_SED" --version 2>&1` in
5535 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5538 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5541 cat "conftest.in" "conftest.in" >"conftest.tmp"
5542 mv "conftest.tmp" "conftest.in"
5543 cp "conftest.in" "conftest.nl"
5544 echo '' >> "conftest.nl"
5545 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5547 ac_count=`expr $ac_count + 1`
5548 if test $ac_count -gt ${ac_path_SED_max-0}; then
5549 # Best one so far, save it but keep looking for a better one
5550 ac_cv_path_SED="$ac_path_SED"
5551 ac_path_SED_max=$ac_count
5553 # 10*(2^10) chars as input seems more than enough
5554 test $ac_count -gt 10 && break
5556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5560 $ac_path_SED_found && break 3
5570 SED="$ac_cv_path_SED"
5571 if test -z "$SED"; then
5572 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5573 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5574 { (exit 1); exit 1; }; }
5582 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5583 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5584 SED="$ac_cv_path_SED"
5587 test -z "$SED" && SED=sed
5588 Xsed="$SED -e 1s/^X//"
5600 { echo "$as_me:$LINENO: checking for fgrep" >&5
5601 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5602 if test "${ac_cv_path_FGREP+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5605 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5606 then ac_cv_path_FGREP="$GREP -F"
5608 # Extract the first word of "fgrep" to use in msg output
5609 if test -z "$FGREP"; then
5610 set dummy fgrep; ac_prog_name=$2
5611 if test "${ac_cv_path_FGREP+set}" = set; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5614 ac_path_FGREP_found=false
5615 # Loop through the user's path and test for each of PROGNAME-LIST
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5620 test -z "$as_dir" && as_dir=.
5621 for ac_prog in fgrep; do
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5624 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5625 # Check for GNU ac_path_FGREP and select it if it is found.
5626 # Check for GNU $ac_path_FGREP
5627 case `"$ac_path_FGREP" --version 2>&1` in
5629 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5632 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5635 cat "conftest.in" "conftest.in" >"conftest.tmp"
5636 mv "conftest.tmp" "conftest.in"
5637 cp "conftest.in" "conftest.nl"
5638 echo 'FGREP' >> "conftest.nl"
5639 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5641 ac_count=`expr $ac_count + 1`
5642 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5643 # Best one so far, save it but keep looking for a better one
5644 ac_cv_path_FGREP="$ac_path_FGREP"
5645 ac_path_FGREP_max=$ac_count
5647 # 10*(2^10) chars as input seems more than enough
5648 test $ac_count -gt 10 && break
5650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5654 $ac_path_FGREP_found && break 3
5664 FGREP="$ac_cv_path_FGREP"
5665 if test -z "$FGREP"; then
5666 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5667 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5668 { (exit 1); exit 1; }; }
5672 ac_cv_path_FGREP=$FGREP
5678 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5679 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5680 FGREP="$ac_cv_path_FGREP"
5683 test -z "$GREP" && GREP=grep
5703 # Check whether --with-gnu-ld was given.
5704 if test "${with_gnu_ld+set}" = set; then
5705 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5711 if test "$GCC" = yes; then
5712 # Check if gcc -print-prog-name=ld gives a path.
5713 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5714 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5717 # gcc leaves a trailing carriage return which upsets mingw
5718 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5720 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5723 # Accept absolute paths.
5725 re_direlt='/[^/][^/]*/\.\./'
5726 # Canonicalize the pathname of ld
5727 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5728 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5729 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5731 test -z "$LD" && LD="$ac_prog"
5734 # If it fails, then pretend we aren't using GCC.
5738 # If it is relative, then search for the first ld in PATH.
5742 elif test "$with_gnu_ld" = yes; then
5743 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5744 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5746 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5747 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5749 if test "${lt_cv_path_LD+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 if test -z "$LD"; then
5753 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5754 for ac_dir in $PATH; do
5756 test -z "$ac_dir" && ac_dir=.
5757 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5758 lt_cv_path_LD="$ac_dir/$ac_prog"
5759 # Check to see if the program is GNU ld. I'd rather use --version,
5760 # but apparently some variants of GNU ld only accept -v.
5761 # Break only if it was the GNU/non-GNU ld that we prefer.
5762 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5763 *GNU* | *'with BFD'*)
5764 test "$with_gnu_ld" != no && break
5767 test "$with_gnu_ld" != yes && break
5774 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5779 if test -n "$LD"; then
5780 { echo "$as_me:$LINENO: result: $LD" >&5
5781 echo "${ECHO_T}$LD" >&6; }
5783 { echo "$as_me:$LINENO: result: no" >&5
5784 echo "${ECHO_T}no" >&6; }
5786 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5787 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5788 { (exit 1); exit 1; }; }
5789 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5790 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5791 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5795 case `$LD -v 2>&1 </dev/null` in
5796 *GNU* | *'with BFD'*)
5797 lt_cv_prog_gnu_ld=yes
5800 lt_cv_prog_gnu_ld=no
5804 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5805 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5806 with_gnu_ld=$lt_cv_prog_gnu_ld
5816 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5817 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5818 if test "${lt_cv_path_NM+set}" = set; then
5819 echo $ECHO_N "(cached) $ECHO_C" >&6
5821 if test -n "$NM"; then
5822 # Let the user override the test.
5825 lt_nm_to_check="${ac_tool_prefix}nm"
5826 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5827 lt_nm_to_check="$lt_nm_to_check nm"
5829 for lt_tmp_nm in $lt_nm_to_check; do
5830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5831 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5833 test -z "$ac_dir" && ac_dir=.
5834 tmp_nm="$ac_dir/$lt_tmp_nm"
5835 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5836 # Check to see if the nm accepts a BSD-compat flag.
5837 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5838 # nm: unknown option "B" ignored
5839 # Tru64's nm complains that /dev/null is an invalid object file
5840 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5841 */dev/null* | *'Invalid file or object type'*)
5842 lt_cv_path_NM="$tmp_nm -B"
5846 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5848 lt_cv_path_NM="$tmp_nm -p"
5852 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5853 continue # so that we can try to find one that supports BSD flags
5862 : ${lt_cv_path_NM=no}
5865 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5866 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5867 if test "$lt_cv_path_NM" != "no"; then
5870 # Didn't find any BSD compatible name lister, look for dumpbin.
5871 if test -n "$ac_tool_prefix"; then
5872 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5878 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 if test -n "$DUMPBIN"; then
5882 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 DUMPBIN=$ac_cv_prog_DUMPBIN
5902 if test -n "$DUMPBIN"; then
5903 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5904 echo "${ECHO_T}$DUMPBIN" >&6; }
5906 { echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6; }
5911 test -n "$DUMPBIN" && break
5914 if test -z "$DUMPBIN"; then
5915 ac_ct_DUMPBIN=$DUMPBIN
5916 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5918 # Extract the first word of "$ac_prog", so it can be a program name with args.
5919 set dummy $ac_prog; ac_word=$2
5920 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5921 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5922 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5925 if test -n "$ac_ct_DUMPBIN"; then
5926 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5935 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5945 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5946 if test -n "$ac_ct_DUMPBIN"; then
5947 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5948 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5950 { echo "$as_me:$LINENO: result: no" >&5
5951 echo "${ECHO_T}no" >&6; }
5955 test -n "$ac_ct_DUMPBIN" && break
5958 if test "x$ac_ct_DUMPBIN" = x; then
5961 case $cross_compiling:$ac_tool_warned in
5963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5964 whose name does not start with the host triplet. If you think this
5965 configuration is useful to you, please write to autoconf@gnu.org." >&5
5966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5967 whose name does not start with the host triplet. If you think this
5968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5969 ac_tool_warned=yes ;;
5971 DUMPBIN=$ac_ct_DUMPBIN
5976 if test "$DUMPBIN" != ":"; then
5980 test -z "$NM" && NM=nm
5987 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5988 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5989 if test "${lt_cv_nm_interface+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 lt_cv_nm_interface="BSD nm"
5993 echo "int some_variable = 0;" > conftest.$ac_ext
5994 (eval echo "\"\$as_me:5994: $ac_compile\"" >&5)
5995 (eval "$ac_compile" 2>conftest.err)
5996 cat conftest.err >&5
5997 (eval echo "\"\$as_me:5997: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5998 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5999 cat conftest.err >&5
6000 (eval echo "\"\$as_me:6000: output\"" >&5)
6001 cat conftest.out >&5
6002 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6003 lt_cv_nm_interface="MS dumpbin"
6007 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6008 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6010 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6011 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6013 if test "$LN_S" = "ln -s"; then
6014 { echo "$as_me:$LINENO: result: yes" >&5
6015 echo "${ECHO_T}yes" >&6; }
6017 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6018 echo "${ECHO_T}no, using $LN_S" >&6; }
6021 # find the maximum length of command line arguments
6022 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6023 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6024 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 # On DJGPP, this test can blow up pretty badly due to problems in libc
6033 # (any single argument exceeding 2000 bytes causes a buffer overrun
6034 # during glob expansion). Even if it were fixed, the result of this
6035 # check would be larger than it should be.
6036 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6040 # Under GNU Hurd, this test is not required because there is
6041 # no limit to the length of command line arguments.
6042 # Libtool will interpret -1 as no limit whatsoever
6043 lt_cv_sys_max_cmd_len=-1;
6046 cygwin* | mingw* | cegcc*)
6047 # On Win9x/ME, this test blows up -- it succeeds, but takes
6048 # about 5 minutes as the teststring grows exponentially.
6049 # Worse, since 9x/ME are not pre-emptively multitasking,
6050 # you end up with a "frozen" computer, even though with patience
6051 # the test eventually succeeds (with a max line length of 256k).
6052 # Instead, let's just punt: use the minimum linelength reported by
6053 # all of the supported platforms: 8192 (on NT/2K/XP).
6054 lt_cv_sys_max_cmd_len=8192;
6058 # On AmigaOS with pdksh, this test takes hours, literally.
6059 # So we just punt and use a minimum line length of 8192.
6060 lt_cv_sys_max_cmd_len=8192;
6063 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6064 # This has been around since 386BSD, at least. Likely further.
6065 if test -x /sbin/sysctl; then
6066 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6067 elif test -x /usr/sbin/sysctl; then
6068 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6070 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6072 # And add a safety zone
6073 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6074 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6078 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6079 lt_cv_sys_max_cmd_len=196608
6083 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6084 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6085 # nice to cause kernel panics so lets avoid the loop below.
6086 # First set a reasonable default.
6087 lt_cv_sys_max_cmd_len=16384
6089 if test -x /sbin/sysconfig; then
6090 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6091 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6096 lt_cv_sys_max_cmd_len=102400
6098 sysv5* | sco5v6* | sysv4.2uw2*)
6099 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6100 if test -n "$kargmax"; then
6101 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6103 lt_cv_sys_max_cmd_len=32768
6107 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6108 if test -n "$lt_cv_sys_max_cmd_len"; then
6109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6112 # Make teststring a little bigger before we do anything with it.
6113 # a 1K string should be a reasonable start.
6114 for i in 1 2 3 4 5 6 7 8 ; do
6115 teststring=$teststring$teststring
6117 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6118 # If test is not a shell built-in, we'll probably end up computing a
6119 # maximum length that is only half of the actual maximum length, but
6121 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6122 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6123 test $i != 17 # 1/2 MB should be enough
6126 teststring=$teststring$teststring
6128 # Only check the string length outside the loop.
6129 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6131 # Add a significant safety factor because C++ compilers can tack on
6132 # massive amounts of additional arguments before passing them to the
6133 # linker. It appears as though 1/2 is a usable value.
6134 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6141 if test -n $lt_cv_sys_max_cmd_len ; then
6142 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6143 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6145 { echo "$as_me:$LINENO: result: none" >&5
6146 echo "${ECHO_T}none" >&6; }
6148 max_cmd_len=$lt_cv_sys_max_cmd_len
6159 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6160 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6161 # Try some XSI features
6164 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6166 && eval 'test $(( 1 + 1 )) -eq 2 \
6167 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6169 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6170 echo "${ECHO_T}$xsi_shell" >&6; }
6173 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6174 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6176 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6178 && lt_shell_append=yes
6179 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6180 echo "${ECHO_T}$lt_shell_append" >&6; }
6183 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6193 # test EBCDIC or ASCII
6194 case `echo X|tr X '\101'` in
6195 A) # ASCII based system
6196 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6197 lt_SP2NL='tr \040 \012'
6198 lt_NL2SP='tr \015\012 \040\040'
6200 *) # EBCDIC based system
6201 lt_SP2NL='tr \100 \n'
6202 lt_NL2SP='tr \r\n \100\100'
6214 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6215 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6216 if test "${lt_cv_ld_reload_flag+set}" = set; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 lt_cv_ld_reload_flag='-r'
6221 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6222 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6223 reload_flag=$lt_cv_ld_reload_flag
6224 case $reload_flag in
6226 *) reload_flag=" $reload_flag" ;;
6228 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6231 if test "$GCC" = yes; then
6232 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6247 if test -n "$ac_tool_prefix"; then
6248 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6249 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 if test -n "$OBJDUMP"; then
6256 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6262 test -z "$as_dir" && as_dir=.
6263 for ac_exec_ext in '' $ac_executable_extensions; do
6264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6265 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 OBJDUMP=$ac_cv_prog_OBJDUMP
6276 if test -n "$OBJDUMP"; then
6277 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6278 echo "${ECHO_T}$OBJDUMP" >&6; }
6280 { echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6; }
6286 if test -z "$ac_cv_prog_OBJDUMP"; then
6287 ac_ct_OBJDUMP=$OBJDUMP
6288 # Extract the first word of "objdump", so it can be a program name with args.
6289 set dummy objdump; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 if test -n "$ac_ct_OBJDUMP"; then
6296 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6316 if test -n "$ac_ct_OBJDUMP"; then
6317 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6318 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6320 { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6324 if test "x$ac_ct_OBJDUMP" = x; then
6327 case $cross_compiling:$ac_tool_warned in
6329 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6330 whose name does not start with the host triplet. If you think this
6331 configuration is useful to you, please write to autoconf@gnu.org." >&5
6332 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6333 whose name does not start with the host triplet. If you think this
6334 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6335 ac_tool_warned=yes ;;
6337 OBJDUMP=$ac_ct_OBJDUMP
6340 OBJDUMP="$ac_cv_prog_OBJDUMP"
6343 test -z "$OBJDUMP" && OBJDUMP=objdump
6353 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6354 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6355 if test "${lt_cv_deplibs_check_method+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6358 lt_cv_file_magic_cmd='$MAGIC_CMD'
6359 lt_cv_file_magic_test_file=
6360 lt_cv_deplibs_check_method='unknown'
6361 # Need to set the preceding variable on all platforms that support
6362 # interlibrary dependencies.
6363 # 'none' -- dependencies not supported.
6364 # `unknown' -- same as none, but documents that we really don't know.
6365 # 'pass_all' -- all dependencies passed with no checks.
6366 # 'test_compile' -- check by making test program.
6367 # 'file_magic [[regex]]' -- check by looking for files in library path
6368 # which responds to the $file_magic_cmd with a given extended regex.
6369 # If you have `file' or equivalent on your system and you're not sure
6370 # whether `pass_all' will *always* work, you probably want this one.
6374 lt_cv_deplibs_check_method=pass_all
6378 lt_cv_deplibs_check_method=pass_all
6382 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6383 lt_cv_file_magic_cmd='/usr/bin/file -L'
6384 lt_cv_file_magic_test_file=/shlib/libc.so
6388 # func_win32_libid is a shell function defined in ltmain.sh
6389 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6390 lt_cv_file_magic_cmd='func_win32_libid'
6394 # Base MSYS/MinGW do not provide the 'file' command needed by
6395 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6396 # unless we find 'file', for example because we are cross-compiling.
6397 if ( file / ) >/dev/null 2>&1; then
6398 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6399 lt_cv_file_magic_cmd='func_win32_libid'
6401 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6402 lt_cv_file_magic_cmd='$OBJDUMP -f'
6407 # use the weaker test based on 'objdump'. See mingw*.
6408 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6409 lt_cv_file_magic_cmd='$OBJDUMP -f'
6412 darwin* | rhapsody*)
6413 lt_cv_deplibs_check_method=pass_all
6416 freebsd* | dragonfly*)
6417 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6420 # Not sure whether the presence of OpenBSD here was a mistake.
6421 # Let's accept both of them until this is cleared up.
6422 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6423 lt_cv_file_magic_cmd=/usr/bin/file
6424 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6428 lt_cv_deplibs_check_method=pass_all
6433 lt_cv_deplibs_check_method=pass_all
6436 hpux10.20* | hpux11*)
6437 lt_cv_file_magic_cmd=/usr/bin/file
6440 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6441 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6444 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6445 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6448 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6449 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6455 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6456 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6459 irix5* | irix6* | nonstopux*)
6461 *-32|*"-32 ") libmagic=32-bit;;
6462 *-n32|*"-n32 ") libmagic=N32;;
6463 *-64|*"-64 ") libmagic=64-bit;;
6464 *) libmagic=never-match;;
6466 lt_cv_deplibs_check_method=pass_all
6469 # This must be Linux ELF.
6470 linux* | k*bsd*-gnu)
6471 lt_cv_deplibs_check_method=pass_all
6475 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6484 lt_cv_file_magic_cmd=/usr/bin/file
6485 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6489 lt_cv_deplibs_check_method=pass_all
6493 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6500 osf3* | osf4* | osf5*)
6501 lt_cv_deplibs_check_method=pass_all
6505 lt_cv_deplibs_check_method=pass_all
6509 lt_cv_deplibs_check_method=pass_all
6512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6513 lt_cv_deplibs_check_method=pass_all
6517 case $host_vendor in
6519 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6520 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6523 lt_cv_deplibs_check_method=pass_all
6526 lt_cv_file_magic_cmd='/bin/file'
6527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6530 lt_cv_file_magic_cmd='/bin/file'
6531 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6532 lt_cv_file_magic_test_file=/lib/libc.so
6535 lt_cv_deplibs_check_method=pass_all
6538 lt_cv_deplibs_check_method=pass_all
6544 lt_cv_deplibs_check_method=pass_all
6549 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6550 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6551 file_magic_cmd=$lt_cv_file_magic_cmd
6552 deplibs_check_method=$lt_cv_deplibs_check_method
6553 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6566 if test -n "$ac_tool_prefix"; then
6567 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6568 set dummy ${ac_tool_prefix}ar; ac_word=$2
6569 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6571 if test "${ac_cv_prog_AR+set}" = set; then
6572 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 if test -n "$AR"; then
6575 ac_cv_prog_AR="$AR" # Let the user override the test.
6577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6581 test -z "$as_dir" && as_dir=.
6582 for ac_exec_ext in '' $ac_executable_extensions; do
6583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6584 ac_cv_prog_AR="${ac_tool_prefix}ar"
6585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 if test -n "$AR"; then
6596 { echo "$as_me:$LINENO: result: $AR" >&5
6597 echo "${ECHO_T}$AR" >&6; }
6599 { echo "$as_me:$LINENO: result: no" >&5
6600 echo "${ECHO_T}no" >&6; }
6605 if test -z "$ac_cv_prog_AR"; then
6607 # Extract the first word of "ar", so it can be a program name with args.
6608 set dummy ar; ac_word=$2
6609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6611 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6612 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 if test -n "$ac_ct_AR"; then
6615 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 test -z "$as_dir" && as_dir=.
6622 for ac_exec_ext in '' $ac_executable_extensions; do
6623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6624 ac_cv_prog_ac_ct_AR="ar"
6625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6634 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6635 if test -n "$ac_ct_AR"; then
6636 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6637 echo "${ECHO_T}$ac_ct_AR" >&6; }
6639 { echo "$as_me:$LINENO: result: no" >&5
6640 echo "${ECHO_T}no" >&6; }
6643 if test "x$ac_ct_AR" = x; then
6646 case $cross_compiling:$ac_tool_warned in
6648 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6649 whose name does not start with the host triplet. If you think this
6650 configuration is useful to you, please write to autoconf@gnu.org." >&5
6651 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6652 whose name does not start with the host triplet. If you think this
6653 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6654 ac_tool_warned=yes ;;
6662 test -z "$AR" && AR=ar
6663 test -z "$AR_FLAGS" && AR_FLAGS=cru
6675 if test -n "$ac_tool_prefix"; then
6676 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6677 set dummy ${ac_tool_prefix}strip; ac_word=$2
6678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680 if test "${ac_cv_prog_STRIP+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 if test -n "$STRIP"; then
6684 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6703 STRIP=$ac_cv_prog_STRIP
6704 if test -n "$STRIP"; then
6705 { echo "$as_me:$LINENO: result: $STRIP" >&5
6706 echo "${ECHO_T}$STRIP" >&6; }
6708 { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6714 if test -z "$ac_cv_prog_STRIP"; then
6716 # Extract the first word of "strip", so it can be a program name with args.
6717 set dummy strip; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 if test -n "$ac_ct_STRIP"; then
6724 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_prog_ac_ct_STRIP="strip"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6743 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6744 if test -n "$ac_ct_STRIP"; then
6745 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6746 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6748 { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6752 if test "x$ac_ct_STRIP" = x; then
6755 case $cross_compiling:$ac_tool_warned in
6757 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6758 whose name does not start with the host triplet. If you think this
6759 configuration is useful to you, please write to autoconf@gnu.org." >&5
6760 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6761 whose name does not start with the host triplet. If you think this
6762 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6763 ac_tool_warned=yes ;;
6768 STRIP="$ac_cv_prog_STRIP"
6771 test -z "$STRIP" && STRIP=:
6778 if test -n "$ac_tool_prefix"; then
6779 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6780 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783 if test "${ac_cv_prog_RANLIB+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 if test -n "$RANLIB"; then
6787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6793 test -z "$as_dir" && as_dir=.
6794 for ac_exec_ext in '' $ac_executable_extensions; do
6795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6796 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806 RANLIB=$ac_cv_prog_RANLIB
6807 if test -n "$RANLIB"; then
6808 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6809 echo "${ECHO_T}$RANLIB" >&6; }
6811 { echo "$as_me:$LINENO: result: no" >&5
6812 echo "${ECHO_T}no" >&6; }
6817 if test -z "$ac_cv_prog_RANLIB"; then
6818 ac_ct_RANLIB=$RANLIB
6819 # Extract the first word of "ranlib", so it can be a program name with args.
6820 set dummy ranlib; ac_word=$2
6821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6823 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6824 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 if test -n "$ac_ct_RANLIB"; then
6827 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_ac_ct_RANLIB="ranlib"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6846 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6847 if test -n "$ac_ct_RANLIB"; then
6848 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6849 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6851 { echo "$as_me:$LINENO: result: no" >&5
6852 echo "${ECHO_T}no" >&6; }
6855 if test "x$ac_ct_RANLIB" = x; then
6858 case $cross_compiling:$ac_tool_warned in
6860 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6861 whose name does not start with the host triplet. If you think this
6862 configuration is useful to you, please write to autoconf@gnu.org." >&5
6863 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6864 whose name does not start with the host triplet. If you think this
6865 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6866 ac_tool_warned=yes ;;
6868 RANLIB=$ac_ct_RANLIB
6871 RANLIB="$ac_cv_prog_RANLIB"
6874 test -z "$RANLIB" && RANLIB=:
6881 # Determine commands to create old-style static archives.
6882 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6883 old_postinstall_cmds='chmod 644 $oldlib'
6884 old_postuninstall_cmds=
6886 if test -n "$RANLIB"; then
6889 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6892 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6895 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6931 # If no C compiler was specified, use CC.
6934 # If no C compiler flags were specified, use CFLAGS.
6935 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6937 # Allow CC to be a program name with arguments.
6941 # Check for command to grab the raw symbol name followed by C symbol from nm.
6942 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6943 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6944 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 # These are sane defaults that work on at least a few old systems.
6949 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6951 # Character class describing NM global symbol codes.
6952 symcode='[BCDEGRST]'
6954 # Regexp to match symbols that can be accessed directly from C.
6955 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6957 # Define system-specific variables.
6962 cygwin* | mingw* | pw32* | cegcc*)
6963 symcode='[ABCDGISTW]'
6966 if test "$host_cpu" = ia64; then
6967 symcode='[ABCDEGRST]'
6971 symcode='[BCDEGRST]'
6974 symcode='[BCDEGQRST]'
6985 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6993 # If we're using GNU nm, then use its standard symbol codes.
6994 case `$NM -V 2>&1` in
6995 *GNU* | *'with BFD'*)
6996 symcode='[ABCDGIRSTW]' ;;
6999 # Transform an extracted symbol line into a proper C declaration.
7000 # Some systems (esp. on ia64) link data and code symbols differently,
7001 # so use this general approach.
7002 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7004 # Transform an extracted symbol line into symbol name and symbol address
7005 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7006 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7008 # Handle CRLF in mingw tool chain
7012 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7016 # Try without a prefix underscore, then with it.
7017 for ac_symprfx in "" "_"; do
7019 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7020 symxfrm="\\1 $ac_symprfx\\2 \\2"
7022 # Write the raw and C identifiers.
7023 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7024 # Fake it for dumpbin and say T for any non-static function
7025 # and D for any global variable.
7026 # Also find C++ and __fastcall symbols from MSVC++,
7027 # which start with @ or ?.
7028 lt_cv_sys_global_symbol_pipe="$AWK '"\
7029 " {last_section=section; section=\$ 3};"\
7030 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7031 " \$ 0!~/External *\|/{next};"\
7032 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7033 " {if(hide[section]) next};"\
7034 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7035 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7036 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7037 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7038 " ' prfx=^$ac_symprfx"
7040 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7043 # Check to see that the pipe works correctly.
7047 cat > conftest.$ac_ext <<_LT_EOF
7052 void nm_test_func(void);
7053 void nm_test_func(void){}
7057 int main(){nm_test_var='a';nm_test_func();return(0);}
7060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061 (eval $ac_compile) 2>&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; then
7065 # Now try to grab the symbols.
7067 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7068 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071 (exit $ac_status); } && test -s "$nlist"; then
7072 # Try sorting and uniquifying the output.
7073 if sort "$nlist" | uniq > "$nlist"T; then
7074 mv -f "$nlist"T "$nlist"
7079 # Make sure that we snagged all the symbols we need.
7080 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7081 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7082 cat <<_LT_EOF > conftest.$ac_ext
7088 # Now generate the symbol file.
7089 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7091 cat <<_LT_EOF >> conftest.$ac_ext
7093 /* The mapping between symbol names and symbols. */
7098 lt__PROGRAM__LTX_preloaded_symbols[] =
7100 { "@PROGRAM@", (void *) 0 },
7102 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7103 cat <<\_LT_EOF >> conftest.$ac_ext
7107 /* This works around a problem in FreeBSD linker */
7108 #ifdef FREEBSD_WORKAROUND
7109 static const void *lt_preloaded_setup() {
7110 return lt__PROGRAM__LTX_preloaded_symbols;
7118 # Now try linking the two files.
7119 mv conftest.$ac_objext conftstm.$ac_objext
7120 lt_save_LIBS="$LIBS"
7121 lt_save_CFLAGS="$CFLAGS"
7122 LIBS="conftstm.$ac_objext"
7123 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7125 (eval $ac_link) 2>&5
7127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7128 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7131 LIBS="$lt_save_LIBS"
7132 CFLAGS="$lt_save_CFLAGS"
7134 echo "cannot find nm_test_func in $nlist" >&5
7137 echo "cannot find nm_test_var in $nlist" >&5
7140 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7143 echo "$progname: failed program was:" >&5
7144 cat conftest.$ac_ext >&5
7146 rm -rf conftest* conftst*
7148 # Do not use the global_symbol_pipe unless it works.
7149 if test "$pipe_works" = yes; then
7152 lt_cv_sys_global_symbol_pipe=
7158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7159 lt_cv_sys_global_symbol_to_cdecl=
7161 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7162 { echo "$as_me:$LINENO: result: failed" >&5
7163 echo "${ECHO_T}failed" >&6; }
7165 { echo "$as_me:$LINENO: result: ok" >&5
7166 echo "${ECHO_T}ok" >&6; }
7190 # Check whether --enable-libtool-lock was given.
7191 if test "${enable_libtool_lock+set}" = set; then
7192 enableval=$enable_libtool_lock;
7195 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7197 # Some flags need to be propagated to the compiler or linker for good
7201 # Find out which ABI we are using.
7202 echo 'int i;' > conftest.$ac_ext
7203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7204 (eval $ac_compile) 2>&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; then
7208 case `/usr/bin/file conftest.$ac_objext` in
7220 # Find out which ABI we are using.
7221 echo '#line 7221 "configure"' > conftest.$ac_ext
7222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7223 (eval $ac_compile) 2>&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); }; then
7227 if test "$lt_cv_prog_gnu_ld" = yes; then
7228 case `/usr/bin/file conftest.$ac_objext` in
7230 LD="${LD-ld} -melf32bsmip"
7233 LD="${LD-ld} -melf32bmipn32"
7236 LD="${LD-ld} -melf64bmip"
7240 case `/usr/bin/file conftest.$ac_objext` in
7256 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7257 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7258 # Find out which ABI we are using.
7259 echo 'int i;' > conftest.$ac_ext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7261 (eval $ac_compile) 2>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; then
7265 case `/usr/bin/file conftest.o` in
7268 x86_64-*kfreebsd*-gnu)
7269 LD="${LD-ld} -m elf_i386_fbsd"
7272 LD="${LD-ld} -m elf_i386"
7274 ppc64-*linux*|powerpc64-*linux*)
7275 LD="${LD-ld} -m elf32ppclinux"
7278 LD="${LD-ld} -m elf_s390"
7281 LD="${LD-ld} -m elf32_sparc"
7287 x86_64-*kfreebsd*-gnu)
7288 LD="${LD-ld} -m elf_x86_64_fbsd"
7291 LD="${LD-ld} -m elf_x86_64"
7293 ppc*-*linux*|powerpc*-*linux*)
7294 LD="${LD-ld} -m elf64ppc"
7296 s390*-*linux*|s390*-*tpf*)
7297 LD="${LD-ld} -m elf64_s390"
7300 LD="${LD-ld} -m elf64_sparc"
7310 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7311 SAVE_CFLAGS="$CFLAGS"
7312 CFLAGS="$CFLAGS -belf"
7313 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7314 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7315 if test "${lt_cv_cc_needs_belf+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7319 ac_cpp='$CPP $CPPFLAGS'
7320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7324 cat >conftest.$ac_ext <<_ACEOF
7327 cat confdefs.h >>conftest.$ac_ext
7328 cat >>conftest.$ac_ext <<_ACEOF
7329 /* end confdefs.h. */
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (ac_try="$ac_link"
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
7348 grep -v '^ *+' conftest.er1 >conftest.err
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest$ac_exeext &&
7356 $as_test_x conftest$ac_exeext; then
7357 lt_cv_cc_needs_belf=yes
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 lt_cv_cc_needs_belf=no
7365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366 conftest$ac_exeext conftest.$ac_ext
7368 ac_cpp='$CPP $CPPFLAGS'
7369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7374 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7375 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7376 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7377 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7378 CFLAGS="$SAVE_CFLAGS"
7382 # Find out which ABI we are using.
7383 echo 'int i;' > conftest.$ac_ext
7384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7385 (eval $ac_compile) 2>&5
7387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7388 (exit $ac_status); }; then
7389 case `/usr/bin/file conftest.o` in
7391 case $lt_cv_prog_gnu_ld in
7392 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7394 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7406 need_locks="$enable_libtool_lock"
7410 rhapsody* | darwin*)
7411 if test -n "$ac_tool_prefix"; then
7412 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 if test -n "$DSYMUTIL"; then
7420 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7440 if test -n "$DSYMUTIL"; then
7441 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7442 echo "${ECHO_T}$DSYMUTIL" >&6; }
7444 { echo "$as_me:$LINENO: result: no" >&5
7445 echo "${ECHO_T}no" >&6; }
7450 if test -z "$ac_cv_prog_DSYMUTIL"; then
7451 ac_ct_DSYMUTIL=$DSYMUTIL
7452 # Extract the first word of "dsymutil", so it can be a program name with args.
7453 set dummy dsymutil; ac_word=$2
7454 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7455 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7456 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7457 echo $ECHO_N "(cached) $ECHO_C" >&6
7459 if test -n "$ac_ct_DSYMUTIL"; then
7460 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7470 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7480 if test -n "$ac_ct_DSYMUTIL"; then
7481 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7482 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7484 { echo "$as_me:$LINENO: result: no" >&5
7485 echo "${ECHO_T}no" >&6; }
7488 if test "x$ac_ct_DSYMUTIL" = x; then
7491 case $cross_compiling:$ac_tool_warned in
7493 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7494 whose name does not start with the host triplet. If you think this
7495 configuration is useful to you, please write to autoconf@gnu.org." >&5
7496 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7497 whose name does not start with the host triplet. If you think this
7498 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7499 ac_tool_warned=yes ;;
7501 DSYMUTIL=$ac_ct_DSYMUTIL
7504 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7507 if test -n "$ac_tool_prefix"; then
7508 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7509 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7512 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7513 echo $ECHO_N "(cached) $ECHO_C" >&6
7515 if test -n "$NMEDIT"; then
7516 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7522 test -z "$as_dir" && as_dir=.
7523 for ac_exec_ext in '' $ac_executable_extensions; do
7524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7525 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7535 NMEDIT=$ac_cv_prog_NMEDIT
7536 if test -n "$NMEDIT"; then
7537 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7538 echo "${ECHO_T}$NMEDIT" >&6; }
7540 { echo "$as_me:$LINENO: result: no" >&5
7541 echo "${ECHO_T}no" >&6; }
7546 if test -z "$ac_cv_prog_NMEDIT"; then
7547 ac_ct_NMEDIT=$NMEDIT
7548 # Extract the first word of "nmedit", so it can be a program name with args.
7549 set dummy nmedit; ac_word=$2
7550 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7552 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 if test -n "$ac_ct_NMEDIT"; then
7556 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 test -z "$as_dir" && as_dir=.
7563 for ac_exec_ext in '' $ac_executable_extensions; do
7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7565 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7576 if test -n "$ac_ct_NMEDIT"; then
7577 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7578 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7580 { echo "$as_me:$LINENO: result: no" >&5
7581 echo "${ECHO_T}no" >&6; }
7584 if test "x$ac_ct_NMEDIT" = x; then
7587 case $cross_compiling:$ac_tool_warned in
7589 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7590 whose name does not start with the host triplet. If you think this
7591 configuration is useful to you, please write to autoconf@gnu.org." >&5
7592 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7593 whose name does not start with the host triplet. If you think this
7594 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7595 ac_tool_warned=yes ;;
7597 NMEDIT=$ac_ct_NMEDIT
7600 NMEDIT="$ac_cv_prog_NMEDIT"
7603 if test -n "$ac_tool_prefix"; then
7604 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7608 if test "${ac_cv_prog_LIPO+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 if test -n "$LIPO"; then
7612 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7618 test -z "$as_dir" && as_dir=.
7619 for ac_exec_ext in '' $ac_executable_extensions; do
7620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7621 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 LIPO=$ac_cv_prog_LIPO
7632 if test -n "$LIPO"; then
7633 { echo "$as_me:$LINENO: result: $LIPO" >&5
7634 echo "${ECHO_T}$LIPO" >&6; }
7636 { echo "$as_me:$LINENO: result: no" >&5
7637 echo "${ECHO_T}no" >&6; }
7642 if test -z "$ac_cv_prog_LIPO"; then
7644 # Extract the first word of "lipo", so it can be a program name with args.
7645 set dummy lipo; ac_word=$2
7646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7648 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 if test -n "$ac_ct_LIPO"; then
7652 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7658 test -z "$as_dir" && as_dir=.
7659 for ac_exec_ext in '' $ac_executable_extensions; do
7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7661 ac_cv_prog_ac_ct_LIPO="lipo"
7662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7672 if test -n "$ac_ct_LIPO"; then
7673 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7674 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7676 { echo "$as_me:$LINENO: result: no" >&5
7677 echo "${ECHO_T}no" >&6; }
7680 if test "x$ac_ct_LIPO" = x; then
7683 case $cross_compiling:$ac_tool_warned in
7685 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7686 whose name does not start with the host triplet. If you think this
7687 configuration is useful to you, please write to autoconf@gnu.org." >&5
7688 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7689 whose name does not start with the host triplet. If you think this
7690 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7691 ac_tool_warned=yes ;;
7696 LIPO="$ac_cv_prog_LIPO"
7699 if test -n "$ac_tool_prefix"; then
7700 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7701 set dummy ${ac_tool_prefix}otool; ac_word=$2
7702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7704 if test "${ac_cv_prog_OTOOL+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 if test -n "$OTOOL"; then
7708 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 OTOOL=$ac_cv_prog_OTOOL
7728 if test -n "$OTOOL"; then
7729 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7730 echo "${ECHO_T}$OTOOL" >&6; }
7732 { echo "$as_me:$LINENO: result: no" >&5
7733 echo "${ECHO_T}no" >&6; }
7738 if test -z "$ac_cv_prog_OTOOL"; then
7740 # Extract the first word of "otool", so it can be a program name with args.
7741 set dummy otool; ac_word=$2
7742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7744 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 if test -n "$ac_ct_OTOOL"; then
7748 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_prog_ac_ct_OTOOL="otool"
7758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7767 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7768 if test -n "$ac_ct_OTOOL"; then
7769 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7770 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7772 { echo "$as_me:$LINENO: result: no" >&5
7773 echo "${ECHO_T}no" >&6; }
7776 if test "x$ac_ct_OTOOL" = x; then
7779 case $cross_compiling:$ac_tool_warned in
7781 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7782 whose name does not start with the host triplet. If you think this
7783 configuration is useful to you, please write to autoconf@gnu.org." >&5
7784 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7785 whose name does not start with the host triplet. If you think this
7786 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7787 ac_tool_warned=yes ;;
7792 OTOOL="$ac_cv_prog_OTOOL"
7795 if test -n "$ac_tool_prefix"; then
7796 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7797 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7800 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 if test -n "$OTOOL64"; then
7804 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7813 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7823 OTOOL64=$ac_cv_prog_OTOOL64
7824 if test -n "$OTOOL64"; then
7825 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7826 echo "${ECHO_T}$OTOOL64" >&6; }
7828 { echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6; }
7834 if test -z "$ac_cv_prog_OTOOL64"; then
7835 ac_ct_OTOOL64=$OTOOL64
7836 # Extract the first word of "otool64", so it can be a program name with args.
7837 set dummy otool64; ac_word=$2
7838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7840 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7841 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 if test -n "$ac_ct_OTOOL64"; then
7844 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir=.
7851 for ac_exec_ext in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_prog_ac_ct_OTOOL64="otool64"
7854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7864 if test -n "$ac_ct_OTOOL64"; then
7865 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7866 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7868 { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7872 if test "x$ac_ct_OTOOL64" = x; then
7875 case $cross_compiling:$ac_tool_warned in
7877 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7878 whose name does not start with the host triplet. If you think this
7879 configuration is useful to you, please write to autoconf@gnu.org." >&5
7880 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7881 whose name does not start with the host triplet. If you think this
7882 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7883 ac_tool_warned=yes ;;
7885 OTOOL64=$ac_ct_OTOOL64
7888 OTOOL64="$ac_cv_prog_OTOOL64"
7917 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7918 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7919 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7922 lt_cv_apple_cc_single_mod=no
7923 if test -z "${LT_MULTI_MODULE}"; then
7924 # By default we will add the -single_module flag. You can override
7925 # by either setting the environment variable LT_MULTI_MODULE
7926 # non-empty at configure time, or by adding -multi_module to the
7928 rm -rf libconftest.dylib*
7929 echo "int foo(void){return 1;}" > conftest.c
7930 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7931 -dynamiclib -Wl,-single_module conftest.c" >&5
7932 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7933 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7935 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7936 lt_cv_apple_cc_single_mod=yes
7938 cat conftest.err >&5
7940 rm -rf libconftest.dylib*
7944 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7945 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7946 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7947 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7948 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 lt_cv_ld_exported_symbols_list=no
7952 save_LDFLAGS=$LDFLAGS
7953 echo "_main" > conftest.sym
7954 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7955 cat >conftest.$ac_ext <<_ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7970 rm -f conftest.$ac_objext conftest$ac_exeext
7971 if { (ac_try="$ac_link"
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_link") 2>conftest.er1
7979 grep -v '^ *+' conftest.er1 >conftest.err
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest$ac_exeext &&
7987 $as_test_x conftest$ac_exeext; then
7988 lt_cv_ld_exported_symbols_list=yes
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 lt_cv_ld_exported_symbols_list=no
7996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7997 conftest$ac_exeext conftest.$ac_ext
7998 LDFLAGS="$save_LDFLAGS"
8001 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8002 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
8004 rhapsody* | darwin1.[012])
8005 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8007 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8008 darwin*) # darwin 5.x on
8009 # if running on 10.5 or later, the deployment target defaults
8010 # to the OS version, if on x86, and 10.4, the deployment
8011 # target defaults to 10.4. Don't you love it?
8012 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8013 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8014 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8016 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8018 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8022 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8023 _lt_dar_single_mod='$single_module'
8025 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8026 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8028 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8030 if test "$DSYMUTIL" != ":"; then
8031 _lt_dsymutil='~$DSYMUTIL $lib || :'
8038 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8039 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8040 if test "${ac_cv_header_stdc+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 cat >conftest.$ac_ext <<_ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8062 rm -f conftest.$ac_objext
8063 if { (ac_try="$ac_compile"
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8071 grep -v '^ *+' conftest.er1 >conftest.err
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8079 ac_cv_header_stdc=yes
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 ac_cv_header_stdc=no
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 if test $ac_cv_header_stdc = yes; then
8090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8091 cat >conftest.$ac_ext <<_ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8101 $EGREP "memchr" >/dev/null 2>&1; then
8104 ac_cv_header_stdc=no
8110 if test $ac_cv_header_stdc = yes; then
8111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8112 cat >conftest.$ac_ext <<_ACEOF
8115 cat confdefs.h >>conftest.$ac_ext
8116 cat >>conftest.$ac_ext <<_ACEOF
8117 /* end confdefs.h. */
8121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8122 $EGREP "free" >/dev/null 2>&1; then
8125 ac_cv_header_stdc=no
8131 if test $ac_cv_header_stdc = yes; then
8132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8133 if test "$cross_compiling" = yes; then
8136 cat >conftest.$ac_ext <<_ACEOF
8139 cat confdefs.h >>conftest.$ac_ext
8140 cat >>conftest.$ac_ext <<_ACEOF
8141 /* end confdefs.h. */
8144 #if ((' ' & 0x0FF) == 0x020)
8145 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8146 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8148 # define ISLOWER(c) \
8149 (('a' <= (c) && (c) <= 'i') \
8150 || ('j' <= (c) && (c) <= 'r') \
8151 || ('s' <= (c) && (c) <= 'z'))
8152 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8155 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8160 for (i = 0; i < 256; i++)
8161 if (XOR (islower (i), ISLOWER (i))
8162 || toupper (i) != TOUPPER (i))
8167 rm -f conftest$ac_exeext
8168 if { (ac_try="$ac_link"
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8174 (eval "$ac_link") 2>&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8178 { (case "(($ac_try" in
8179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8180 *) ac_try_echo=$ac_try;;
8182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8183 (eval "$ac_try") 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8189 echo "$as_me: program exited with status $ac_status" >&5
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_cv_header_stdc=no
8196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8202 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8203 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8204 if test $ac_cv_header_stdc = yes; then
8206 cat >>confdefs.h <<\_ACEOF
8207 #define STDC_HEADERS 1
8212 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8222 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8223 inttypes.h stdint.h unistd.h
8225 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8229 echo $ECHO_N "(cached) $ECHO_C" >&6
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8239 #include <$ac_header>
8241 rm -f conftest.$ac_objext
8242 if { (ac_try="$ac_compile"
8244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8245 *) ac_try_echo=$ac_try;;
8247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8248 (eval "$ac_compile") 2>conftest.er1
8250 grep -v '^ *+' conftest.er1 >conftest.err
8252 cat conftest.err >&5
8253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8254 (exit $ac_status); } && {
8255 test -z "$ac_c_werror_flag" ||
8256 test ! -s conftest.err
8257 } && test -s conftest.$ac_objext; then
8258 eval "$as_ac_Header=yes"
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8263 eval "$as_ac_Header=no"
8266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 ac_res=`eval echo '${'$as_ac_Header'}'`
8269 { echo "$as_me:$LINENO: result: $ac_res" >&5
8270 echo "${ECHO_T}$ac_res" >&6; }
8271 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8272 cat >>confdefs.h <<_ACEOF
8273 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8282 for ac_header in dlfcn.h
8284 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8285 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8286 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 cat >conftest.$ac_ext <<_ACEOF
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8298 #include <$ac_header>
8300 rm -f conftest.$ac_objext
8301 if { (ac_try="$ac_compile"
8303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8304 *) ac_try_echo=$ac_try;;
8306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8307 (eval "$ac_compile") 2>conftest.er1
8309 grep -v '^ *+' conftest.er1 >conftest.err
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 (exit $ac_status); } && {
8314 test -z "$ac_c_werror_flag" ||
8315 test ! -s conftest.err
8316 } && test -s conftest.$ac_objext; then
8317 eval "$as_ac_Header=yes"
8319 echo "$as_me: failed program was:" >&5
8320 sed 's/^/| /' conftest.$ac_ext >&5
8322 eval "$as_ac_Header=no"
8325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8327 ac_res=`eval echo '${'$as_ac_Header'}'`
8328 { echo "$as_me:$LINENO: result: $ac_res" >&5
8329 echo "${ECHO_T}$ac_res" >&6; }
8330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8331 cat >>confdefs.h <<_ACEOF
8332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8342 ac_cpp='$CXXCPP $CPPFLAGS'
8343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8346 if test -z "$CXX"; then
8347 if test -n "$CCC"; then
8350 if test -n "$ac_tool_prefix"; then
8351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357 if test "${ac_cv_prog_CXX+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8360 if test -n "$CXX"; then
8361 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8367 test -z "$as_dir" && as_dir=.
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8370 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 if test -n "$CXX"; then
8382 { echo "$as_me:$LINENO: result: $CXX" >&5
8383 echo "${ECHO_T}$CXX" >&6; }
8385 { echo "$as_me:$LINENO: result: no" >&5
8386 echo "${ECHO_T}no" >&6; }
8390 test -n "$CXX" && break
8393 if test -z "$CXX"; then
8395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8397 # Extract the first word of "$ac_prog", so it can be a program name with args.
8398 set dummy $ac_prog; ac_word=$2
8399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8404 if test -n "$ac_ct_CXX"; then
8405 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8414 ac_cv_prog_ac_ct_CXX="$ac_prog"
8415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8425 if test -n "$ac_ct_CXX"; then
8426 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8427 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8429 { echo "$as_me:$LINENO: result: no" >&5
8430 echo "${ECHO_T}no" >&6; }
8434 test -n "$ac_ct_CXX" && break
8437 if test "x$ac_ct_CXX" = x; then
8440 case $cross_compiling:$ac_tool_warned in
8442 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8443 whose name does not start with the host triplet. If you think this
8444 configuration is useful to you, please write to autoconf@gnu.org." >&5
8445 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8446 whose name does not start with the host triplet. If you think this
8447 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8448 ac_tool_warned=yes ;;
8456 # Provide some information about the compiler.
8457 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8458 ac_compiler=`set X $ac_compile; echo $2`
8459 { (ac_try="$ac_compiler --version >&5"
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compiler --version >&5") 2>&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }
8469 { (ac_try="$ac_compiler -v >&5"
8471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8472 *) ac_try_echo=$ac_try;;
8474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8475 (eval "$ac_compiler -v >&5") 2>&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }
8479 { (ac_try="$ac_compiler -V >&5"
8481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_compiler -V >&5") 2>&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); }
8490 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8491 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8492 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8513 rm -f conftest.$ac_objext
8514 if { (ac_try="$ac_compile"
8516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517 *) ac_try_echo=$ac_try;;
8519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520 (eval "$ac_compile") 2>conftest.er1
8522 grep -v '^ *+' conftest.er1 >conftest.err
8524 cat conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_cxx_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest.$ac_objext; then
8532 echo "$as_me: failed program was:" >&5
8533 sed 's/^/| /' conftest.$ac_ext >&5
8538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8539 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8542 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8543 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8544 GXX=`test $ac_compiler_gnu = yes && echo yes`
8545 ac_test_CXXFLAGS=${CXXFLAGS+set}
8546 ac_save_CXXFLAGS=$CXXFLAGS
8547 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8548 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8549 if test "${ac_cv_prog_cxx_g+set}" = set; then
8550 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8553 ac_cxx_werror_flag=yes
8556 cat >conftest.$ac_ext <<_ACEOF
8559 cat confdefs.h >>conftest.$ac_ext
8560 cat >>conftest.$ac_ext <<_ACEOF
8561 /* end confdefs.h. */
8571 rm -f conftest.$ac_objext
8572 if { (ac_try="$ac_compile"
8574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8575 *) ac_try_echo=$ac_try;;
8577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8578 (eval "$ac_compile") 2>conftest.er1
8580 grep -v '^ *+' conftest.er1 >conftest.err
8582 cat conftest.err >&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 (exit $ac_status); } && {
8585 test -z "$ac_cxx_werror_flag" ||
8586 test ! -s conftest.err
8587 } && test -s conftest.$ac_objext; then
8588 ac_cv_prog_cxx_g=yes
8590 echo "$as_me: failed program was:" >&5
8591 sed 's/^/| /' conftest.$ac_ext >&5
8594 cat >conftest.$ac_ext <<_ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8609 rm -f conftest.$ac_objext
8610 if { (ac_try="$ac_compile"
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_cxx_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8633 cat >conftest.$ac_ext <<_ACEOF
8636 cat confdefs.h >>conftest.$ac_ext
8637 cat >>conftest.$ac_ext <<_ACEOF
8638 /* end confdefs.h. */
8648 rm -f conftest.$ac_objext
8649 if { (ac_try="$ac_compile"
8651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8652 *) ac_try_echo=$ac_try;;
8654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8655 (eval "$ac_compile") 2>conftest.er1
8657 grep -v '^ *+' conftest.er1 >conftest.err
8659 cat conftest.err >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); } && {
8662 test -z "$ac_cxx_werror_flag" ||
8663 test ! -s conftest.err
8664 } && test -s conftest.$ac_objext; then
8665 ac_cv_prog_cxx_g=yes
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8680 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8682 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8683 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8684 if test "$ac_test_CXXFLAGS" = set; then
8685 CXXFLAGS=$ac_save_CXXFLAGS
8686 elif test $ac_cv_prog_cxx_g = yes; then
8687 if test "$GXX" = yes; then
8693 if test "$GXX" = yes; then
8700 ac_cpp='$CPP $CPPFLAGS'
8701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8705 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8706 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8707 (test "X$CXX" != "Xg++"))) ; then
8709 ac_cpp='$CXXCPP $CPPFLAGS'
8710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8713 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8714 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8715 if test -z "$CXXCPP"; then
8716 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8717 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 # Double quotes because CXXCPP needs to be expanded
8720 for CXXCPP in "$CXX -E" "/lib/cpp"
8723 for ac_cxx_preproc_warn_flag in '' yes
8725 # Use a header file that comes with gcc, so configuring glibc
8726 # with a fresh cross-compiler works.
8727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8728 # <limits.h> exists even on freestanding compilers.
8729 # On the NeXT, cc -E runs the code through the compiler's parser,
8730 # not just through cpp. "Syntax error" is here to catch this case.
8731 cat >conftest.$ac_ext <<_ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h. */
8738 # include <limits.h>
8740 # include <assert.h>
8744 if { (ac_try="$ac_cpp conftest.$ac_ext"
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8752 grep -v '^ *+' conftest.er1 >conftest.err
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } >/dev/null && {
8757 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8758 test ! -s conftest.err
8762 echo "$as_me: failed program was:" >&5
8763 sed 's/^/| /' conftest.$ac_ext >&5
8765 # Broken: fails on valid input.
8769 rm -f conftest.err conftest.$ac_ext
8771 # OK, works on sane cases. Now check whether nonexistent headers
8772 # can be detected and how.
8773 cat >conftest.$ac_ext <<_ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 #include <ac_nonexistent.h>
8781 if { (ac_try="$ac_cpp conftest.$ac_ext"
8783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8784 *) ac_try_echo=$ac_try;;
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8789 grep -v '^ *+' conftest.er1 >conftest.err
8791 cat conftest.err >&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } >/dev/null && {
8794 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8795 test ! -s conftest.err
8797 # Broken: success on invalid input.
8800 echo "$as_me: failed program was:" >&5
8801 sed 's/^/| /' conftest.$ac_ext >&5
8803 # Passes both tests.
8808 rm -f conftest.err conftest.$ac_ext
8811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8812 rm -f conftest.err conftest.$ac_ext
8813 if $ac_preproc_ok; then
8818 ac_cv_prog_CXXCPP=$CXXCPP
8821 CXXCPP=$ac_cv_prog_CXXCPP
8823 ac_cv_prog_CXXCPP=$CXXCPP
8825 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8826 echo "${ECHO_T}$CXXCPP" >&6; }
8828 for ac_cxx_preproc_warn_flag in '' yes
8830 # Use a header file that comes with gcc, so configuring glibc
8831 # with a fresh cross-compiler works.
8832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8833 # <limits.h> exists even on freestanding compilers.
8834 # On the NeXT, cc -E runs the code through the compiler's parser,
8835 # not just through cpp. "Syntax error" is here to catch this case.
8836 cat >conftest.$ac_ext <<_ACEOF
8839 cat confdefs.h >>conftest.$ac_ext
8840 cat >>conftest.$ac_ext <<_ACEOF
8841 /* end confdefs.h. */
8843 # include <limits.h>
8845 # include <assert.h>
8849 if { (ac_try="$ac_cpp conftest.$ac_ext"
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8857 grep -v '^ *+' conftest.er1 >conftest.err
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } >/dev/null && {
8862 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8863 test ! -s conftest.err
8867 echo "$as_me: failed program was:" >&5
8868 sed 's/^/| /' conftest.$ac_ext >&5
8870 # Broken: fails on valid input.
8874 rm -f conftest.err conftest.$ac_ext
8876 # OK, works on sane cases. Now check whether nonexistent headers
8877 # can be detected and how.
8878 cat >conftest.$ac_ext <<_ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8884 #include <ac_nonexistent.h>
8886 if { (ac_try="$ac_cpp conftest.$ac_ext"
8888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8889 *) ac_try_echo=$ac_try;;
8891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8894 grep -v '^ *+' conftest.er1 >conftest.err
8896 cat conftest.err >&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } >/dev/null && {
8899 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8900 test ! -s conftest.err
8902 # Broken: success on invalid input.
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 # Passes both tests.
8913 rm -f conftest.err conftest.$ac_ext
8916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8917 rm -f conftest.err conftest.$ac_ext
8918 if $ac_preproc_ok; then
8921 _lt_caught_CXX_error=yes
8925 ac_cpp='$CPP $CPPFLAGS'
8926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8931 _lt_caught_CXX_error=yes
8939 # Check whether --enable-shared was given.
8940 if test "${enable_shared+set}" = set; then
8941 enableval=$enable_shared; p=${PACKAGE-default}
8943 yes) enable_shared=yes ;;
8944 no) enable_shared=no ;;
8947 # Look at the argument we got. We use all the common list separators.
8948 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8949 for pkg in $enableval; do
8951 if test "X$pkg" = "X$p"; then
8968 # Check whether --enable-static was given.
8969 if test "${enable_static+set}" = set; then
8970 enableval=$enable_static; p=${PACKAGE-default}
8972 yes) enable_static=yes ;;
8973 no) enable_static=no ;;
8976 # Look at the argument we got. We use all the common list separators.
8977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8978 for pkg in $enableval; do
8980 if test "X$pkg" = "X$p"; then
9009 # Check whether --with-pic was given.
9010 if test "${with_pic+set}" = set; then
9011 withval=$with_pic; pic_mode="$withval"
9017 test -z "$pic_mode" && pic_mode=default
9025 # Check whether --enable-fast-install was given.
9026 if test "${enable_fast_install+set}" = set; then
9027 enableval=$enable_fast_install; p=${PACKAGE-default}
9029 yes) enable_fast_install=yes ;;
9030 no) enable_fast_install=no ;;
9032 enable_fast_install=no
9033 # Look at the argument we got. We use all the common list separators.
9034 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9035 for pkg in $enableval; do
9037 if test "X$pkg" = "X$p"; then
9038 enable_fast_install=yes
9045 enable_fast_install=yes
9058 # This can be used to rebuild libtool when needed
9059 LIBTOOL_DEPS="$ltmain"
9061 # Always use our own libtool.
9062 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9088 test -z "$LN_S" && LN_S="ln -s"
9103 if test -n "${ZSH_VERSION+set}" ; then
9104 setopt NO_GLOB_SUBST
9107 { echo "$as_me:$LINENO: checking for objdir" >&5
9108 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9109 if test "${lt_cv_objdir+set}" = set; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 rm -f .libs 2>/dev/null
9113 mkdir .libs 2>/dev/null
9114 if test -d .libs; then
9117 # MS-DOS does not allow filenames that begin with a dot.
9120 rmdir .libs 2>/dev/null
9122 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9123 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9124 objdir=$lt_cv_objdir
9130 cat >>confdefs.h <<_ACEOF
9131 #define LT_OBJDIR "$lt_cv_objdir/"
9152 # AIX sometimes has problems with the GCC collect2 program. For some
9153 # reason, if we set the COLLECT_NAMES environment variable, the problems
9154 # vanish in a puff of smoke.
9155 if test "X${COLLECT_NAMES+set}" != Xset; then
9157 export COLLECT_NAMES
9162 # Sed substitution that helps us do robust quoting. It backslashifies
9163 # metacharacters that are still active within double-quoted strings.
9164 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9166 # Same as above, but do not quote variable references.
9167 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9169 # Sed substitution to delay expansion of an escaped shell variable in a
9170 # double_quote_subst'ed string.
9171 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9173 # Sed substitution to delay expansion of an escaped single quote.
9174 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9176 # Sed substitution to avoid accidental globbing in evaled expressions
9177 no_glob_subst='s/\*/\\\*/g'
9181 can_build_shared=yes
9183 # All known linkers require a `.a' archive for static linking (except MSVC,
9184 # which needs '.lib').
9187 with_gnu_ld="$lt_cv_prog_gnu_ld"
9190 old_CFLAGS="$CFLAGS"
9192 # Set sane defaults for various variables
9193 test -z "$CC" && CC=cc
9194 test -z "$LTCC" && LTCC=$CC
9195 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9196 test -z "$LD" && LD=ld
9197 test -z "$ac_objext" && ac_objext=o
9199 for cc_temp in $compiler""; do
9201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9207 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9210 # Only perform the check for file, if the check method requires it
9211 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9212 case $deplibs_check_method in
9214 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9215 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9216 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9217 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9225 lt_save_MAGIC_CMD="$MAGIC_CMD"
9226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9228 for ac_dir in $ac_dummy; do
9230 test -z "$ac_dir" && ac_dir=.
9231 if test -f $ac_dir/${ac_tool_prefix}file; then
9232 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9233 if test -n "$file_magic_test_file"; then
9234 case $deplibs_check_method in
9236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9239 $EGREP "$file_magic_regex" > /dev/null; then
9244 *** Warning: the command libtool uses to detect shared libraries,
9245 *** $file_magic_cmd, produces output that libtool cannot recognize.
9246 *** The result is that libtool may fail to recognize shared libraries
9247 *** as such. This will affect the creation of libtool libraries that
9248 *** depend on shared libraries, but programs linked with such libtool
9249 *** libraries will work regardless of this problem. Nevertheless, you
9250 *** may want to report the problem to your system manager and/or to
9251 *** bug-libtool@gnu.org
9261 MAGIC_CMD="$lt_save_MAGIC_CMD"
9266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9267 if test -n "$MAGIC_CMD"; then
9268 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9269 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9271 { echo "$as_me:$LINENO: result: no" >&5
9272 echo "${ECHO_T}no" >&6; }
9279 if test -z "$lt_cv_path_MAGIC_CMD"; then
9280 if test -n "$ac_tool_prefix"; then
9281 { echo "$as_me:$LINENO: checking for file" >&5
9282 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9283 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9291 lt_save_MAGIC_CMD="$MAGIC_CMD"
9292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9294 for ac_dir in $ac_dummy; do
9296 test -z "$ac_dir" && ac_dir=.
9297 if test -f $ac_dir/file; then
9298 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9299 if test -n "$file_magic_test_file"; then
9300 case $deplibs_check_method in
9302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9305 $EGREP "$file_magic_regex" > /dev/null; then
9310 *** Warning: the command libtool uses to detect shared libraries,
9311 *** $file_magic_cmd, produces output that libtool cannot recognize.
9312 *** The result is that libtool may fail to recognize shared libraries
9313 *** as such. This will affect the creation of libtool libraries that
9314 *** depend on shared libraries, but programs linked with such libtool
9315 *** libraries will work regardless of this problem. Nevertheless, you
9316 *** may want to report the problem to your system manager and/or to
9317 *** bug-libtool@gnu.org
9327 MAGIC_CMD="$lt_save_MAGIC_CMD"
9332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9333 if test -n "$MAGIC_CMD"; then
9334 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9335 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9337 { echo "$as_me:$LINENO: result: no" >&5
9338 echo "${ECHO_T}no" >&6; }
9351 # Use C for the default configuration in the libtool script
9355 ac_cpp='$CPP $CPPFLAGS'
9356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9361 # Source file extension for C test sources.
9364 # Object file extension for compiled C test sources.
9368 # Code to be used in simple compile tests
9369 lt_simple_compile_test_code="int some_variable = 0;"
9371 # Code to be used in simple link tests
9372 lt_simple_link_test_code='int main(){return(0);}'
9380 # If no C compiler was specified, use CC.
9383 # If no C compiler flags were specified, use CFLAGS.
9384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9386 # Allow CC to be a program name with arguments.
9389 # Save the default compiler, since it gets overwritten when the other
9390 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9391 compiler_DEFAULT=$CC
9393 # save warnings/boilerplate of simple test code
9394 ac_outfile=conftest.$ac_objext
9395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9397 _lt_compiler_boilerplate=`cat conftest.err`
9400 ac_outfile=conftest.$ac_objext
9401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9403 _lt_linker_boilerplate=`cat conftest.err`
9408 ## There is no encapsulation within the following macros, do not change
9409 ## the running order or otherwise move them around unless you know exactly
9410 ## what you are doing...
9411 if test -n "$compiler"; then
9413 lt_prog_compiler_no_builtin_flag=
9415 if test "$GCC" = yes; then
9416 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9418 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9419 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9420 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 lt_cv_prog_compiler_rtti_exceptions=no
9424 ac_outfile=conftest.$ac_objext
9425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9426 lt_compiler_flag="-fno-rtti -fno-exceptions"
9427 # Insert the option either (1) after the last *FLAGS variable, or
9428 # (2) before a word containing "conftest.", or (3) at the end.
9429 # Note that $ac_compile itself does not contain backslashes and begins
9430 # with a dollar sign (not a hyphen), so the echo should work correctly.
9431 # The option is referenced via a variable to avoid confusing sed.
9432 lt_compile=`echo "$ac_compile" | $SED \
9433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9435 -e 's:$: $lt_compiler_flag:'`
9436 (eval echo "\"\$as_me:9436: $lt_compile\"" >&5)
9437 (eval "$lt_compile" 2>conftest.err)
9439 cat conftest.err >&5
9440 echo "$as_me:9440: \$? = $ac_status" >&5
9441 if (exit $ac_status) && test -s "$ac_outfile"; then
9442 # The compiler can only warn and ignore the option if not recognized
9443 # So say no if there are warnings other than the usual output.
9444 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9447 lt_cv_prog_compiler_rtti_exceptions=yes
9453 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9454 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9456 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9457 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9469 lt_prog_compiler_wl=
9470 lt_prog_compiler_pic=
9471 lt_prog_compiler_static=
9473 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9474 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9476 if test "$GCC" = yes; then
9477 lt_prog_compiler_wl='-Wl,'
9478 lt_prog_compiler_static='-static'
9482 # All AIX code is PIC.
9483 if test "$host_cpu" = ia64; then
9484 # AIX 5 now supports IA64 processor
9485 lt_prog_compiler_static='-Bstatic'
9492 # see comment about AmigaOS4 .so support
9493 lt_prog_compiler_pic='-fPIC'
9496 # FIXME: we need at least 68020 code to build shared libraries, but
9497 # adding the `-m68020' flag to GCC prevents building anything better,
9499 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9504 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9505 # PIC is the default for these OSes.
9508 mingw* | cygwin* | pw32* | os2* | cegcc*)
9509 # This hack is so that the source file can tell whether it is being
9510 # built for inclusion in a dll (and should export symbols for example).
9511 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9512 # (--disable-auto-import) libraries
9513 lt_prog_compiler_pic='-DDLL_EXPORT'
9516 darwin* | rhapsody*)
9517 # PIC is the default on this platform
9518 # Common symbols not allowed in MH_DYLIB files
9519 lt_prog_compiler_pic='-fno-common'
9523 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9524 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9525 # sets the default TLS model and affects inlining.
9531 lt_prog_compiler_pic='-fPIC'
9537 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9538 # Instead, we relocate shared libraries at runtime.
9542 # Just because we use GCC doesn't mean we suddenly get shared libraries
9543 # on systems that don't support them.
9544 lt_prog_compiler_can_build_shared=no
9549 # QNX uses GNU C++, but need to define -shared option too, otherwise
9551 lt_prog_compiler_pic='-fPIC -shared'
9555 if test -d /usr/nec; then
9556 lt_prog_compiler_pic=-Kconform_pic
9561 lt_prog_compiler_pic='-fPIC'
9565 # PORTME Check for flag to pass linker flags through the system compiler.
9568 lt_prog_compiler_wl='-Wl,'
9569 if test "$host_cpu" = ia64; then
9570 # AIX 5 now supports IA64 processor
9571 lt_prog_compiler_static='-Bstatic'
9573 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9577 mingw* | cygwin* | pw32* | os2* | cegcc*)
9578 # This hack is so that the source file can tell whether it is being
9579 # built for inclusion in a dll (and should export symbols for example).
9580 lt_prog_compiler_pic='-DDLL_EXPORT'
9583 hpux9* | hpux10* | hpux11*)
9584 lt_prog_compiler_wl='-Wl,'
9585 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9592 lt_prog_compiler_pic='+Z'
9595 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9596 lt_prog_compiler_static='${wl}-a ${wl}archive'
9599 irix5* | irix6* | nonstopux*)
9600 lt_prog_compiler_wl='-Wl,'
9601 # PIC (with -KPIC) is the default.
9602 lt_prog_compiler_static='-non_shared'
9605 linux* | k*bsd*-gnu)
9606 case $cc_basename in
9607 # old Intel for x86_64 which still supported -KPIC.
9609 lt_prog_compiler_wl='-Wl,'
9610 lt_prog_compiler_pic='-KPIC'
9611 lt_prog_compiler_static='-static'
9613 # icc used to be incompatible with GCC.
9614 # ICC 10 doesn't accept -KPIC any more.
9616 lt_prog_compiler_wl='-Wl,'
9617 lt_prog_compiler_pic='-fPIC'
9618 lt_prog_compiler_static='-static'
9620 # Lahey Fortran 8.1.
9622 lt_prog_compiler_wl='-Wl,'
9623 lt_prog_compiler_pic='--shared'
9624 lt_prog_compiler_static='--static'
9626 pgcc* | pgf77* | pgf90* | pgf95*)
9627 # Portland Group compilers (*not* the Pentium gcc compiler,
9628 # which looks to be a dead project)
9629 lt_prog_compiler_wl='-Wl,'
9630 lt_prog_compiler_pic='-fpic'
9631 lt_prog_compiler_static='-Bstatic'
9634 lt_prog_compiler_wl='-Wl,'
9635 # All Alpha code is PIC.
9636 lt_prog_compiler_static='-non_shared'
9639 # IBM XL C 8.0/Fortran 10.1 on PPC
9640 lt_prog_compiler_wl='-Wl,'
9641 lt_prog_compiler_pic='-qpic'
9642 lt_prog_compiler_static='-qstaticlink'
9645 case `$CC -V 2>&1 | sed 5q` in
9648 lt_prog_compiler_pic='-KPIC'
9649 lt_prog_compiler_static='-Bstatic'
9650 lt_prog_compiler_wl='-Wl,'
9653 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9654 lt_prog_compiler_pic='-KPIC'
9655 lt_prog_compiler_static='-Bstatic'
9656 lt_prog_compiler_wl=''
9664 lt_prog_compiler_pic='-KPIC'
9665 lt_prog_compiler_static='-Bstatic'
9669 # QNX uses GNU C++, but need to define -shared option too, otherwise
9671 lt_prog_compiler_pic='-fPIC -shared'
9674 osf3* | osf4* | osf5*)
9675 lt_prog_compiler_wl='-Wl,'
9676 # All OSF/1 code is PIC.
9677 lt_prog_compiler_static='-non_shared'
9681 lt_prog_compiler_static='-non_shared'
9685 lt_prog_compiler_pic='-KPIC'
9686 lt_prog_compiler_static='-Bstatic'
9687 case $cc_basename in
9689 lt_prog_compiler_wl='-Qoption ld ';;
9691 lt_prog_compiler_wl='-Wl,';;
9696 lt_prog_compiler_wl='-Qoption ld '
9697 lt_prog_compiler_pic='-PIC'
9698 lt_prog_compiler_static='-Bstatic'
9701 sysv4 | sysv4.2uw2* | sysv4.3*)
9702 lt_prog_compiler_wl='-Wl,'
9703 lt_prog_compiler_pic='-KPIC'
9704 lt_prog_compiler_static='-Bstatic'
9708 if test -d /usr/nec ;then
9709 lt_prog_compiler_pic='-Kconform_pic'
9710 lt_prog_compiler_static='-Bstatic'
9714 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9715 lt_prog_compiler_wl='-Wl,'
9716 lt_prog_compiler_pic='-KPIC'
9717 lt_prog_compiler_static='-Bstatic'
9721 lt_prog_compiler_wl='-Wl,'
9722 lt_prog_compiler_can_build_shared=no
9726 lt_prog_compiler_pic='-pic'
9727 lt_prog_compiler_static='-Bstatic'
9731 lt_prog_compiler_can_build_shared=no
9737 # For platforms which do not support PIC, -DPIC is meaningless:
9739 lt_prog_compiler_pic=
9742 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9745 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9746 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9754 # Check to make sure the PIC flag actually works.
9756 if test -n "$lt_prog_compiler_pic"; then
9757 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9758 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9759 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 lt_cv_prog_compiler_pic_works=no
9763 ac_outfile=conftest.$ac_objext
9764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9765 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9766 # Insert the option either (1) after the last *FLAGS variable, or
9767 # (2) before a word containing "conftest.", or (3) at the end.
9768 # Note that $ac_compile itself does not contain backslashes and begins
9769 # with a dollar sign (not a hyphen), so the echo should work correctly.
9770 # The option is referenced via a variable to avoid confusing sed.
9771 lt_compile=`echo "$ac_compile" | $SED \
9772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9774 -e 's:$: $lt_compiler_flag:'`
9775 (eval echo "\"\$as_me:9775: $lt_compile\"" >&5)
9776 (eval "$lt_compile" 2>conftest.err)
9778 cat conftest.err >&5
9779 echo "$as_me:9779: \$? = $ac_status" >&5
9780 if (exit $ac_status) && test -s "$ac_outfile"; then
9781 # The compiler can only warn and ignore the option if not recognized
9782 # So say no if there are warnings other than the usual output.
9783 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9785 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9786 lt_cv_prog_compiler_pic_works=yes
9792 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9793 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9795 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9796 case $lt_prog_compiler_pic in
9798 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9801 lt_prog_compiler_pic=
9802 lt_prog_compiler_can_build_shared=no
9813 # Check to make sure the static flag actually works.
9815 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9816 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9817 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9818 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 lt_cv_prog_compiler_static_works=no
9822 save_LDFLAGS="$LDFLAGS"
9823 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9824 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9825 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9826 # The linker can only warn and ignore the option if not recognized
9827 # So say no if there are warnings
9828 if test -s conftest.err; then
9829 # Append any errors to the config.log.
9830 cat conftest.err 1>&5
9831 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9832 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9833 if diff conftest.exp conftest.er2 >/dev/null; then
9834 lt_cv_prog_compiler_static_works=yes
9837 lt_cv_prog_compiler_static_works=yes
9841 LDFLAGS="$save_LDFLAGS"
9844 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9845 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9847 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9850 lt_prog_compiler_static=
9859 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9860 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9861 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 lt_cv_prog_compiler_c_o=no
9865 $RM -r conftest 2>/dev/null
9869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9871 lt_compiler_flag="-o out/conftest2.$ac_objext"
9872 # Insert the option either (1) after the last *FLAGS variable, or
9873 # (2) before a word containing "conftest.", or (3) at the end.
9874 # Note that $ac_compile itself does not contain backslashes and begins
9875 # with a dollar sign (not a hyphen), so the echo should work correctly.
9876 lt_compile=`echo "$ac_compile" | $SED \
9877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9879 -e 's:$: $lt_compiler_flag:'`
9880 (eval echo "\"\$as_me:9880: $lt_compile\"" >&5)
9881 (eval "$lt_compile" 2>out/conftest.err)
9883 cat out/conftest.err >&5
9884 echo "$as_me:9884: \$? = $ac_status" >&5
9885 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9887 # The compiler can only warn and ignore the option if not recognized
9888 # So say no if there are warnings
9889 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9890 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9891 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9892 lt_cv_prog_compiler_c_o=yes
9897 # SGI C++ compiler will create directory out/ii_files/ for
9898 # template instantiation
9899 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9900 $RM out/* && rmdir out
9906 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9907 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9914 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9915 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9916 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 lt_cv_prog_compiler_c_o=no
9920 $RM -r conftest 2>/dev/null
9924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9926 lt_compiler_flag="-o out/conftest2.$ac_objext"
9927 # Insert the option either (1) after the last *FLAGS variable, or
9928 # (2) before a word containing "conftest.", or (3) at the end.
9929 # Note that $ac_compile itself does not contain backslashes and begins
9930 # with a dollar sign (not a hyphen), so the echo should work correctly.
9931 lt_compile=`echo "$ac_compile" | $SED \
9932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9934 -e 's:$: $lt_compiler_flag:'`
9935 (eval echo "\"\$as_me:9935: $lt_compile\"" >&5)
9936 (eval "$lt_compile" 2>out/conftest.err)
9938 cat out/conftest.err >&5
9939 echo "$as_me:9939: \$? = $ac_status" >&5
9940 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9942 # The compiler can only warn and ignore the option if not recognized
9943 # So say no if there are warnings
9944 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9946 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9947 lt_cv_prog_compiler_c_o=yes
9952 # SGI C++ compiler will create directory out/ii_files/ for
9953 # template instantiation
9954 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9955 $RM out/* && rmdir out
9961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9962 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9967 hard_links="nottested"
9968 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9969 # do not overwrite the value of need_locks provided by the user
9970 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9971 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9976 ln conftest.a conftest.b 2>&5 || hard_links=no
9977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9978 { echo "$as_me:$LINENO: result: $hard_links" >&5
9979 echo "${ECHO_T}$hard_links" >&6; }
9980 if test "$hard_links" = no; then
9981 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9982 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9994 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9995 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9998 allow_undefined_flag=
9999 always_export_symbols=no
10001 archive_expsym_cmds=
10002 compiler_needs_object=no
10003 enable_shared_with_static_runtimes=no
10004 export_dynamic_flag_spec=
10005 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10006 hardcode_automatic=no
10008 hardcode_direct_absolute=no
10009 hardcode_libdir_flag_spec=
10010 hardcode_libdir_flag_spec_ld=
10011 hardcode_libdir_separator=
10012 hardcode_minus_L=no
10013 hardcode_shlibpath_var=unsupported
10015 link_all_deplibs=unknown
10017 module_expsym_cmds=
10018 old_archive_from_new_cmds=
10019 old_archive_from_expsyms_cmds=
10020 thread_safe_flag_spec=
10021 whole_archive_flag_spec=
10022 # include_expsyms should be a list of space-separated symbols to be *always*
10023 # included in the symbol list
10025 # exclude_expsyms can be an extended regexp of symbols to exclude
10026 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10027 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10028 # as well as any symbol that contains `d'.
10029 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10030 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10031 # platforms (ab)use it in PIC code, but their linkers get confused if
10032 # the symbol is explicitly referenced. Since portable code cannot
10033 # rely on this symbol name, it's probably fine to never include it in
10034 # preloaded symbol tables.
10035 # Exclude shared library initialization/finalization symbols.
10036 extract_expsyms_cmds=
10039 cygwin* | mingw* | pw32* | cegcc*)
10040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10041 # When not using gcc, we currently assume that we are using
10042 # Microsoft Visual C++.
10043 if test "$GCC" != yes; then
10048 # we just hope/assume this is gcc and not c89 (= MSVC++)
10057 if test "$with_gnu_ld" = yes; then
10058 # If archive_cmds runs LD, not CC, wlarc should be empty
10061 # Set some defaults for GNU ld with shared library support. These
10062 # are reset later if shared libraries are not supported. Putting them
10063 # here allows them to be overridden if necessary.
10064 runpath_var=LD_RUN_PATH
10065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066 export_dynamic_flag_spec='${wl}--export-dynamic'
10067 # ancient GNU ld didn't support --whole-archive et. al.
10068 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10069 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10071 whole_archive_flag_spec=
10073 supports_anon_versioning=no
10074 case `$LD -v 2>&1` in
10075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10078 *\ 2.11.*) ;; # other 2.11 versions
10079 *) supports_anon_versioning=yes ;;
10082 # See if GNU ld supports shared libraries.
10085 # On AIX/PPC, the GNU linker is very broken
10086 if test "$host_cpu" != ia64; then
10090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10091 *** to be unable to reliably create shared libraries on AIX.
10092 *** Therefore, libtool is disabling shared libraries support. If you
10093 *** really care for shared libraries, you may want to modify your PATH
10094 *** so that a non-GNU linker is found, and then restart.
10103 # see comment about AmigaOS4 .so support
10104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10105 archive_expsym_cmds=''
10108 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10109 hardcode_libdir_flag_spec='-L$libdir'
10110 hardcode_minus_L=yes
10116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10117 allow_undefined_flag=unsupported
10118 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10119 # support --undefined. This deserves some investigation. FIXME
10120 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10126 cygwin* | mingw* | pw32* | cegcc*)
10127 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10128 # as there is no search path for DLLs.
10129 hardcode_libdir_flag_spec='-L$libdir'
10130 allow_undefined_flag=unsupported
10131 always_export_symbols=no
10132 enable_shared_with_static_runtimes=yes
10133 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10135 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10137 # If the export-symbols file already is a .def file (1st line
10138 # is EXPORTS), use it as is; otherwise, prepend...
10139 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10140 cp $export_symbols $output_objdir/$soname.def;
10142 echo EXPORTS > $output_objdir/$soname.def;
10143 cat $export_symbols >> $output_objdir/$soname.def;
10145 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10153 hardcode_shlibpath_var=no
10154 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10155 export_dynamic_flag_spec='${wl}-E'
10156 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10157 # Instead, shared libraries are loaded at an image base (0x10000000 by
10158 # default) and relocated if they conflict, which is a slow very memory
10159 # consuming and fragmenting process. To avoid this, we pick a random,
10160 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10161 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10162 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10163 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10166 gnu* | linux* | tpf* | k*bsd*-gnu)
10168 if test "$host_os" = linux-dietlibc; then
10169 case $cc_basename in
10170 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10173 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10174 && test "$tmp_diet" = no
10177 tmp_sharedflag='-shared'
10178 case $cc_basename,$host_cpu in
10179 pgcc*) # Portland Group C compiler
10180 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10181 tmp_addflag=' $pic_flag'
10183 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10184 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10185 tmp_addflag=' $pic_flag -Mnomain' ;;
10186 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10187 tmp_addflag=' -i_dynamic' ;;
10188 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10189 tmp_addflag=' -i_dynamic -nofor_main' ;;
10190 ifc* | ifort*) # Intel Fortran compiler
10191 tmp_addflag=' -nofor_main' ;;
10192 lf95*) # Lahey Fortran 8.1
10193 whole_archive_flag_spec=
10194 tmp_sharedflag='--shared' ;;
10195 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10196 tmp_sharedflag='-qmkshrobj'
10199 case `$CC -V 2>&1 | sed 5q` in
10200 *Sun\ C*) # Sun C 5.9
10201 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10202 compiler_needs_object=yes
10203 tmp_sharedflag='-G' ;;
10204 *Sun\ F*) # Sun Fortran 8.3
10205 tmp_sharedflag='-G' ;;
10207 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10209 if test "x$supports_anon_versioning" = xyes; then
10210 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10212 echo "local: *; };" >> $output_objdir/$libname.ver~
10213 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10216 case $cc_basename in
10218 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10219 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10220 hardcode_libdir_flag_spec=
10221 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10222 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10223 if test "x$supports_anon_versioning" = xyes; then
10224 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10226 echo "local: *; };" >> $output_objdir/$libname.ver~
10227 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10237 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10238 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10241 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10242 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10247 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10251 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10252 *** create shared libraries on Solaris systems. Therefore, libtool
10253 *** is disabling shared libraries support. We urge you to upgrade GNU
10254 *** binutils to release 2.9.1 or newer. Another option is to modify
10255 *** your PATH or compiler configuration so that the native linker is
10256 *** used, and then restart.
10259 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10260 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10261 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10268 case `$LD -v 2>&1` in
10269 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10273 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10274 *** reliably create shared libraries on SCO systems. Therefore, libtool
10275 *** is disabling shared libraries support. We urge you to upgrade GNU
10276 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10277 *** your PATH or compiler configuration so that the native linker is
10278 *** used, and then restart.
10283 # For security reasons, it is highly recommended that you always
10284 # use absolute paths for naming shared libraries, and exclude the
10285 # DT_RUNPATH tag from executables and libraries. But doing so
10286 # requires that you compile everything twice, which is a pain.
10287 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10299 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10301 hardcode_direct=yes
10302 hardcode_shlibpath_var=no
10306 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10315 if test "$ld_shlibs" = no; then
10317 hardcode_libdir_flag_spec=
10318 export_dynamic_flag_spec=
10319 whole_archive_flag_spec=
10322 # PORTME fill in a description of your system's linker (not GNU ld)
10325 allow_undefined_flag=unsupported
10326 always_export_symbols=yes
10327 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
10328 # Note: this linker hardcodes the directories in LIBPATH if there
10329 # are no directories specified by -L.
10330 hardcode_minus_L=yes
10331 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10332 # Neither direct hardcoding nor static linking is supported with a
10334 hardcode_direct=unsupported
10339 if test "$host_cpu" = ia64; then
10340 # On IA64, the linker does run time linking by default, so we don't
10341 # have to do anything special.
10342 aix_use_runtimelinking=no
10343 exp_sym_flag='-Bexport'
10346 # If we're using GNU nm, then we don't want the "-C" option.
10347 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10348 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10349 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10351 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10353 aix_use_runtimelinking=no
10355 # Test if we are trying to use run time linking or normal
10356 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10357 # need to do runtime linking.
10358 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10359 for ld_flag in $LDFLAGS; do
10360 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10361 aix_use_runtimelinking=yes
10368 exp_sym_flag='-bexport'
10369 no_entry_flag='-bnoentry'
10372 # When large executables or shared objects are built, AIX ld can
10373 # have problems creating the table of contents. If linking a library
10374 # or program results in "error TOC overflow" add -mminimal-toc to
10375 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10376 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10379 hardcode_direct=yes
10380 hardcode_direct_absolute=yes
10381 hardcode_libdir_separator=':'
10382 link_all_deplibs=yes
10383 file_list_spec='${wl}-f,'
10385 if test "$GCC" = yes; then
10386 case $host_os in aix4.[012]|aix4.[012].*)
10387 # We only want to do this on AIX 4.2 and lower, the check
10388 # below for broken collect2 doesn't work under 4.3+
10389 collect2name=`${CC} -print-prog-name=collect2`
10390 if test -f "$collect2name" &&
10391 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10393 # We have reworked collect2
10396 # We have old collect2
10397 hardcode_direct=unsupported
10398 # It fails to find uninstalled libraries when the uninstalled
10399 # path is not listed in the libpath. Setting hardcode_minus_L
10400 # to unsupported forces relinking
10401 hardcode_minus_L=yes
10402 hardcode_libdir_flag_spec='-L$libdir'
10403 hardcode_libdir_separator=
10407 shared_flag='-shared'
10408 if test "$aix_use_runtimelinking" = yes; then
10409 shared_flag="$shared_flag "'${wl}-G'
10413 if test "$host_cpu" = ia64; then
10414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10415 # chokes on -Wl,-G. The following line is correct:
10418 if test "$aix_use_runtimelinking" = yes; then
10419 shared_flag='${wl}-G'
10421 shared_flag='${wl}-bM:SRE'
10426 export_dynamic_flag_spec='${wl}-bexpall'
10427 # It seems that -bexpall does not export symbols beginning with
10428 # underscore (_), so it is better to generate a list of symbols to export.
10429 always_export_symbols=yes
10430 if test "$aix_use_runtimelinking" = yes; then
10431 # Warning - without using the other runtime loading flags (-brtl),
10432 # -berok will link without error, but may produce a broken library.
10433 allow_undefined_flag='-berok'
10434 # Determine the default libpath from the value encoded in an
10435 # empty executable.
10436 cat >conftest.$ac_ext <<_ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10460 grep -v '^ *+' conftest.er1 >conftest.err
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && {
10465 test -z "$ac_c_werror_flag" ||
10466 test ! -s conftest.err
10467 } && test -s conftest$ac_exeext &&
10468 $as_test_x conftest$ac_exeext; then
10470 lt_aix_libpath_sed='
10471 /Import File Strings/,/^$/ {
10477 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 # Check for a 64-bit object if we didn't find anything.
10479 if test -z "$aix_libpath"; then
10480 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10490 conftest$ac_exeext conftest.$ac_ext
10491 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10493 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10494 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10496 if test "$host_cpu" = ia64; then
10497 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10498 allow_undefined_flag="-z nodefs"
10499 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10501 # Determine the default libpath from the value encoded in an
10502 # empty executable.
10503 cat >conftest.$ac_ext <<_ACEOF
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10518 rm -f conftest.$ac_objext conftest$ac_exeext
10519 if { (ac_try="$ac_link"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_link") 2>conftest.er1
10527 grep -v '^ *+' conftest.er1 >conftest.err
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && {
10532 test -z "$ac_c_werror_flag" ||
10533 test ! -s conftest.err
10534 } && test -s conftest$ac_exeext &&
10535 $as_test_x conftest$ac_exeext; then
10537 lt_aix_libpath_sed='
10538 /Import File Strings/,/^$/ {
10544 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 # Check for a 64-bit object if we didn't find anything.
10546 if test -z "$aix_libpath"; then
10547 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557 conftest$ac_exeext conftest.$ac_ext
10558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10561 # Warning - without using the other run time loading flags,
10562 # -berok will link without error, but may produce a broken library.
10563 no_undefined_flag=' ${wl}-bernotok'
10564 allow_undefined_flag=' ${wl}-berok'
10565 # Exported symbols can be pulled into shared objects from archives
10566 whole_archive_flag_spec='$convenience'
10567 archive_cmds_need_lc=yes
10568 # This is similar to how AIX traditionally builds its shared libraries.
10569 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10577 # see comment about AmigaOS4 .so support
10578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10579 archive_expsym_cmds=''
10582 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
10583 hardcode_libdir_flag_spec='-L$libdir'
10584 hardcode_minus_L=yes
10590 export_dynamic_flag_spec=-rdynamic
10593 cygwin* | mingw* | pw32* | cegcc*)
10594 # When not using gcc, we currently assume that we are using
10595 # Microsoft Visual C++.
10596 # hardcode_libdir_flag_spec is actually meaningless, as there is
10597 # no search path for DLLs.
10598 hardcode_libdir_flag_spec=' '
10599 allow_undefined_flag=unsupported
10600 # Tell ltmain to make .lib files, not .a files.
10602 # Tell ltmain to make .dll files, not .so files.
10604 # FIXME: Setting linknames here is a bad hack.
10605 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10606 # The linker will automatically build a .lib file if we build a DLL.
10607 old_archive_from_new_cmds='true'
10608 # FIXME: Should let the user specify the lib program.
10609 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10610 fix_srcfile_path='`cygpath -w "$srcfile"`'
10611 enable_shared_with_static_runtimes=yes
10614 darwin* | rhapsody*)
10617 archive_cmds_need_lc=no
10619 hardcode_automatic=yes
10620 hardcode_shlibpath_var=unsupported
10621 whole_archive_flag_spec=''
10622 link_all_deplibs=yes
10623 allow_undefined_flag="$_lt_dar_allow_undefined"
10624 case $cc_basename in
10625 ifort*) _lt_dar_can_shared=yes ;;
10626 *) _lt_dar_can_shared=$GCC ;;
10628 if test "$_lt_dar_can_shared" = "yes"; then
10629 output_verbose_link_cmd=echo
10630 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10631 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10632 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10633 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10642 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10643 hardcode_libdir_flag_spec='-L$libdir'
10644 hardcode_shlibpath_var=no
10651 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10652 # support. Future versions do this automatically, but an explicit c++rt0.o
10653 # does not break anything, and helps significantly (at the cost of a little
10656 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10657 hardcode_libdir_flag_spec='-R$libdir'
10658 hardcode_direct=yes
10659 hardcode_shlibpath_var=no
10662 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10664 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10665 hardcode_direct=yes
10666 hardcode_minus_L=yes
10667 hardcode_shlibpath_var=no
10670 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10671 freebsd* | dragonfly*)
10672 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10673 hardcode_libdir_flag_spec='-R$libdir'
10674 hardcode_direct=yes
10675 hardcode_shlibpath_var=no
10679 if test "$GCC" = yes; then
10680 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10682 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10684 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10685 hardcode_libdir_separator=:
10686 hardcode_direct=yes
10688 # hardcode_minus_L: Not really in the search PATH,
10689 # but as the default location of the library.
10690 hardcode_minus_L=yes
10691 export_dynamic_flag_spec='${wl}-E'
10695 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10698 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10700 if test "$with_gnu_ld" = no; then
10701 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10702 hardcode_libdir_flag_spec_ld='+b $libdir'
10703 hardcode_libdir_separator=:
10704 hardcode_direct=yes
10705 hardcode_direct_absolute=yes
10706 export_dynamic_flag_spec='${wl}-E'
10707 # hardcode_minus_L: Not really in the search PATH,
10708 # but as the default location of the library.
10709 hardcode_minus_L=yes
10714 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10717 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10720 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10723 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10729 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10732 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10735 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10739 if test "$with_gnu_ld" = no; then
10740 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10741 hardcode_libdir_separator=:
10746 hardcode_shlibpath_var=no
10749 hardcode_direct=yes
10750 hardcode_direct_absolute=yes
10751 export_dynamic_flag_spec='${wl}-E'
10753 # hardcode_minus_L: Not really in the search PATH,
10754 # but as the default location of the library.
10755 hardcode_minus_L=yes
10761 irix5* | irix6* | nonstopux*)
10762 if test "$GCC" = yes; then
10763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10764 # Try to use the -exported_symbol ld option, if it does not
10765 # work, assume that -exports_file does not work either and
10766 # implicitly export all symbols.
10767 save_LDFLAGS="$LDFLAGS"
10768 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10769 cat >conftest.$ac_ext <<_ACEOF
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (ac_try="$ac_link"
10774 case "(($ac_try" in
10775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10776 *) ac_try_echo=$ac_try;;
10778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10779 (eval "$ac_link") 2>conftest.er1
10781 grep -v '^ *+' conftest.er1 >conftest.err
10783 cat conftest.err >&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } && {
10786 test -z "$ac_c_werror_flag" ||
10787 test ! -s conftest.err
10788 } && test -s conftest$ac_exeext &&
10789 $as_test_x conftest$ac_exeext; then
10790 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10793 echo "$as_me: failed program was:" >&5
10794 sed 's/^/| /' conftest.$ac_ext >&5
10799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LDFLAGS="$save_LDFLAGS"
10803 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10804 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10806 archive_cmds_need_lc='no'
10807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10808 hardcode_libdir_separator=:
10810 link_all_deplibs=yes
10814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10815 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10817 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10819 hardcode_libdir_flag_spec='-R$libdir'
10820 hardcode_direct=yes
10821 hardcode_shlibpath_var=no
10825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10826 hardcode_direct=yes
10827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10828 hardcode_libdir_separator=:
10829 hardcode_shlibpath_var=no
10836 if test -f /usr/libexec/ld.so; then
10837 hardcode_direct=yes
10838 hardcode_shlibpath_var=no
10839 hardcode_direct_absolute=yes
10840 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10841 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10842 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10844 export_dynamic_flag_spec='${wl}-E'
10847 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10849 hardcode_libdir_flag_spec='-R$libdir'
10852 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10853 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10863 hardcode_libdir_flag_spec='-L$libdir'
10864 hardcode_minus_L=yes
10865 allow_undefined_flag=unsupported
10866 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10867 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10871 if test "$GCC" = yes; then
10872 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10873 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10875 allow_undefined_flag=' -expect_unresolved \*'
10876 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10878 archive_cmds_need_lc='no'
10879 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10880 hardcode_libdir_separator=:
10883 osf4* | osf5*) # as osf3* with the addition of -msym flag
10884 if test "$GCC" = yes; then
10885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10886 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10889 allow_undefined_flag=' -expect_unresolved \*'
10890 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10891 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10892 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10894 # Both c and cxx compiler support -rpath directly
10895 hardcode_libdir_flag_spec='-rpath $libdir'
10897 archive_cmds_need_lc='no'
10898 hardcode_libdir_separator=:
10902 no_undefined_flag=' -z defs'
10903 if test "$GCC" = yes; then
10905 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10906 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10907 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10909 case `$CC -V 2>&1` in
10912 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10913 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10918 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10919 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10920 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10924 hardcode_libdir_flag_spec='-R$libdir'
10925 hardcode_shlibpath_var=no
10927 solaris2.[0-5] | solaris2.[0-5].*) ;;
10929 # The compiler driver will combine and reorder linker options,
10930 # but understands `-z linker_flag'. GCC discards it without `$wl',
10931 # but is careful enough not to reorder.
10932 # Supported since Solaris 2.6 (maybe 2.5.1?)
10933 if test "$GCC" = yes; then
10934 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10940 link_all_deplibs=yes
10944 if test "x$host_vendor" = xsequent; then
10945 # Use $CC to link under sequent, because it throws in some extra .o
10946 # files that make .init and .fini sections work.
10947 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10951 hardcode_libdir_flag_spec='-L$libdir'
10952 hardcode_direct=yes
10953 hardcode_minus_L=yes
10954 hardcode_shlibpath_var=no
10958 case $host_vendor in
10960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961 hardcode_direct=yes # is this really true???
10964 ## LD is ld it makes a PLAMLIB
10965 ## CC just makes a GrossModule.
10966 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10967 reload_cmds='$CC -r -o $output$reload_objs'
10971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10972 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10975 runpath_var='LD_RUN_PATH'
10976 hardcode_shlibpath_var=no
10980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10981 hardcode_shlibpath_var=no
10982 export_dynamic_flag_spec='-Bexport'
10986 if test -d /usr/nec; then
10987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988 hardcode_shlibpath_var=no
10989 runpath_var=LD_RUN_PATH
10990 hardcode_runpath_var=yes
10995 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10996 no_undefined_flag='${wl}-z,text'
10997 archive_cmds_need_lc=no
10998 hardcode_shlibpath_var=no
10999 runpath_var='LD_RUN_PATH'
11001 if test "$GCC" = yes; then
11002 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11003 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11006 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11010 sysv5* | sco3.2v5* | sco5v6*)
11011 # Note: We can NOT use -z defs as we might desire, because we do not
11012 # link with -lc, and that would cause any symbols used from libc to
11013 # always be unresolved, which means just about no library would
11014 # ever link correctly. If we're not using GNU ld we use -z text
11015 # though, which does catch some bad symbols but isn't as heavy-handed
11017 no_undefined_flag='${wl}-z,text'
11018 allow_undefined_flag='${wl}-z,nodefs'
11019 archive_cmds_need_lc=no
11020 hardcode_shlibpath_var=no
11021 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11022 hardcode_libdir_separator=':'
11023 link_all_deplibs=yes
11024 export_dynamic_flag_spec='${wl}-Bexport'
11025 runpath_var='LD_RUN_PATH'
11027 if test "$GCC" = yes; then
11028 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11029 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11038 hardcode_libdir_flag_spec='-L$libdir'
11039 hardcode_shlibpath_var=no
11047 if test x$host_vendor = xsni; then
11049 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11050 export_dynamic_flag_spec='${wl}-Blargedynsym'
11056 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11057 echo "${ECHO_T}$ld_shlibs" >&6; }
11058 test "$ld_shlibs" = no && can_build_shared=no
11060 with_gnu_ld=$with_gnu_ld
11077 # Do we need to explicitly link libc?
11079 case "x$archive_cmds_need_lc" in
11081 # Assume -lc should be added
11082 archive_cmds_need_lc=yes
11084 if test "$enable_shared" = yes && test "$GCC" = yes; then
11085 case $archive_cmds in
11087 # FIXME: we may have to deal with multi-command sequences.
11090 # Test whether the compiler implicitly links with -lc since on some
11091 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11092 # to ld, don't add -lc before -lgcc.
11093 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11094 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11096 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11099 (eval $ac_compile) 2>&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } 2>conftest.err; then
11105 libobjs=conftest.$ac_objext
11107 wl=$lt_prog_compiler_wl
11108 pic_flag=$lt_prog_compiler_pic
11114 lt_save_allow_undefined_flag=$allow_undefined_flag
11115 allow_undefined_flag=
11116 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11117 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11120 (exit $ac_status); }
11122 archive_cmds_need_lc=no
11124 archive_cmds_need_lc=yes
11126 allow_undefined_flag=$lt_save_allow_undefined_flag
11128 cat conftest.err 1>&5
11131 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11132 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11295 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11296 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11298 if test "$GCC" = yes; then
11300 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11301 *) lt_awk_arg="/^libraries:/" ;;
11303 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11304 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11305 # if the path contains ";" then we assume it to be the separator
11306 # otherwise default to the standard path separator (i.e. ":") - it is
11307 # assumed that no part of a normal pathname contains ";" but that should
11308 # okay in the real world where ";" in dirpaths is itself problematic.
11309 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11311 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11313 # Ok, now we have the path, separated by spaces, we can step through it
11314 # and add multilib dir if necessary.
11315 lt_tmp_lt_search_path_spec=
11316 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11317 for lt_sys_path in $lt_search_path_spec; do
11318 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11321 test -d "$lt_sys_path" && \
11322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11325 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11326 BEGIN {RS=" "; FS="/|\n";} {
11329 for (lt_i = NF; lt_i > 0; lt_i--) {
11330 if ($lt_i != "" && $lt_i != ".") {
11331 if ($lt_i == "..") {
11334 if (lt_count == 0) {
11335 lt_foo="/" $lt_i lt_foo;
11342 if (lt_foo != "") { lt_freq[lt_foo]++; }
11343 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11345 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11347 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11349 library_names_spec=
11350 libname_spec='lib$name'
11354 postuninstall_cmds=
11358 shlibpath_overrides_runpath=unknown
11360 dynamic_linker="$host_os ld.so"
11361 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11362 need_lib_prefix=unknown
11363 hardcode_into_libs=no
11365 # when you set need_version to no, make sure it does not cause -set_version
11366 # flags to be left without arguments
11367 need_version=unknown
11372 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11373 shlibpath_var=LIBPATH
11375 # AIX 3 has no versioning support, so we append a major version to the name.
11376 soname_spec='${libname}${release}${shared_ext}$major'
11383 hardcode_into_libs=yes
11384 if test "$host_cpu" = ia64; then
11385 # AIX 5 supports IA64
11386 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11387 shlibpath_var=LD_LIBRARY_PATH
11389 # With GCC up to 2.95.x, collect2 would create an import file
11390 # for dependence libraries. The import file would start with
11391 # the line `#! .'. This would cause the generated library to
11392 # depend on `.', always an invalid library. This was fixed in
11393 # development snapshots of GCC prior to 3.0.
11395 aix4 | aix4.[01] | aix4.[01].*)
11396 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11398 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11401 can_build_shared=no
11405 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11406 # soname into executable. Probably we can add versioning support to
11407 # collect2, so additional links can be useful in future.
11408 if test "$aix_use_runtimelinking" = yes; then
11409 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11410 # instead of lib<name>.a to let people know that these are not
11411 # typical AIX shared libraries.
11412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11414 # We preserve .a as extension for shared libraries through AIX4.2
11415 # and later when we are not doing run time linking.
11416 library_names_spec='${libname}${release}.a $libname.a'
11417 soname_spec='${libname}${release}${shared_ext}$major'
11419 shlibpath_var=LIBPATH
11426 # Since July 2007 AmigaOS4 officially supports .so libraries.
11427 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 library_names_spec='$libname.ixlibrary $libname.a'
11432 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11433 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11439 library_names_spec='${libname}${shared_ext}'
11440 dynamic_linker="$host_os ld.so"
11441 shlibpath_var=LIBRARY_PATH
11447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11448 soname_spec='${libname}${release}${shared_ext}$major'
11449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11450 shlibpath_var=LD_LIBRARY_PATH
11451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11453 # the default ld.so.conf also contains /usr/contrib/lib and
11454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11455 # libtool to hard-code these into programs
11458 cygwin* | mingw* | pw32* | cegcc*)
11459 version_type=windows
11464 case $GCC,$host_os in
11465 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11466 library_names_spec='$libname.dll.a'
11467 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11468 postinstall_cmds='base_file=`basename \${file}`~
11469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11470 dldir=$destdir/`dirname \$dlpath`~
11471 test -d \$dldir || mkdir -p \$dldir~
11472 $install_prog $dir/$dlname \$dldir/$dlname~
11473 chmod a+x \$dldir/$dlname~
11474 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11475 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11477 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11478 dlpath=$dir/\$dldll~
11480 shlibpath_overrides_runpath=yes
11484 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11485 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11486 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11489 # MinGW DLLs use traditional 'lib' prefix
11490 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11491 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11492 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11493 # It is most probably a Windows format PATH printed by
11494 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11495 # path with ; separators, and with drive letters. We can handle the
11496 # drive letters (cygwin fileutils understands them), so leave them,
11497 # especially as we might pass files found there to a mingw objdump,
11498 # which wouldn't understand a cygwinified path. Ahh.
11499 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11505 # pw32 DLLs use 'pw' prefix rather than 'lib'
11506 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11512 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11515 dynamic_linker='Win32 ld.exe'
11516 # FIXME: first we should search . and the directory the executable is in
11520 darwin* | rhapsody*)
11521 dynamic_linker="$host_os dyld"
11522 version_type=darwin
11525 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11526 soname_spec='${libname}${release}${major}$shared_ext'
11527 shlibpath_overrides_runpath=yes
11528 shlibpath_var=DYLD_LIBRARY_PATH
11529 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11531 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11532 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 shlibpath_var=LD_LIBRARY_PATH
11548 freebsd* | dragonfly*)
11549 # DragonFly does not have aout. When/if they implement a new
11550 # versioning mechanism, adjust this.
11551 if test -x /usr/bin/objformat; then
11552 objformat=`/usr/bin/objformat`
11555 freebsd[123]*) objformat=aout ;;
11556 *) objformat=elf ;;
11559 version_type=freebsd-$objformat
11560 case $version_type in
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11571 shlibpath_var=LD_LIBRARY_PATH
11574 shlibpath_overrides_runpath=yes
11576 freebsd3.[01]* | freebsdelf3.[01]*)
11577 shlibpath_overrides_runpath=yes
11578 hardcode_into_libs=yes
11580 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11581 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11582 shlibpath_overrides_runpath=no
11583 hardcode_into_libs=yes
11585 *) # from 4.6 on, and DragonFly
11586 shlibpath_overrides_runpath=yes
11587 hardcode_into_libs=yes
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 hardcode_into_libs=yes
11602 hpux9* | hpux10* | hpux11*)
11603 # Give a soname corresponding to the major version so that dld.sl refuses to
11604 # link against other versions.
11611 hardcode_into_libs=yes
11612 dynamic_linker="$host_os dld.so"
11613 shlibpath_var=LD_LIBRARY_PATH
11614 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11616 soname_spec='${libname}${release}${shared_ext}$major'
11617 if test "X$HPUX_IA64_MODE" = X32; then
11618 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11620 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11622 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11626 hardcode_into_libs=yes
11627 dynamic_linker="$host_os dld.sl"
11628 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11631 soname_spec='${libname}${release}${shared_ext}$major'
11632 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11633 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11637 dynamic_linker="$host_os dld.sl"
11638 shlibpath_var=SHLIB_PATH
11639 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641 soname_spec='${libname}${release}${shared_ext}$major'
11644 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11645 postinstall_cmds='chmod 555 $lib'
11652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11653 soname_spec='${libname}${release}${shared_ext}$major'
11654 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=no
11657 hardcode_into_libs=yes
11660 irix5* | irix6* | nonstopux*)
11662 nonstopux*) version_type=nonstopux ;;
11664 if test "$lt_cv_prog_gnu_ld" = yes; then
11672 soname_spec='${libname}${release}${shared_ext}$major'
11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11675 irix5* | nonstopux*)
11676 libsuff= shlibsuff=
11679 case $LD in # libtool.m4 will add one of these switches to LD
11680 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11681 libsuff= shlibsuff= libmagic=32-bit;;
11682 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11683 libsuff=32 shlibsuff=N32 libmagic=N32;;
11684 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11685 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11686 *) libsuff= shlibsuff= libmagic=never-match;;
11690 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11691 shlibpath_overrides_runpath=no
11692 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11693 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11694 hardcode_into_libs=yes
11697 # No shared lib support for Linux oldld, aout, or coff.
11698 linux*oldld* | linux*aout* | linux*coff*)
11702 # This must be Linux ELF.
11703 linux* | k*bsd*-gnu)
11707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708 soname_spec='${libname}${release}${shared_ext}$major'
11709 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11710 shlibpath_var=LD_LIBRARY_PATH
11711 shlibpath_overrides_runpath=no
11712 # Some binutils ld are patched to set DT_RUNPATH
11713 save_LDFLAGS=$LDFLAGS
11714 save_libdir=$libdir
11715 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11716 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11717 cat >conftest.$ac_ext <<_ACEOF
11720 cat confdefs.h >>conftest.$ac_ext
11721 cat >>conftest.$ac_ext <<_ACEOF
11722 /* end confdefs.h. */
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_link") 2>conftest.er1
11741 grep -v '^ *+' conftest.er1 >conftest.err
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest$ac_exeext &&
11749 $as_test_x conftest$ac_exeext; then
11750 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11751 shlibpath_overrides_runpath=yes
11755 echo "$as_me: failed program was:" >&5
11756 sed 's/^/| /' conftest.$ac_ext >&5
11761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11762 conftest$ac_exeext conftest.$ac_ext
11763 LDFLAGS=$save_LDFLAGS
11764 libdir=$save_libdir
11766 # This implies no fast_install, which is unacceptable.
11767 # Some rework will be needed to allow for fast_install
11768 # before this can be enabled.
11769 hardcode_into_libs=yes
11771 # Append ld.so.conf contents to the search path
11772 if test -f /etc/ld.so.conf; then
11773 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11774 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11777 # We used to test for /lib/ld.so.1 and disable shared libraries on
11778 # powerpc, because MkLinux only supported shared libraries with the
11779 # GNU dynamic linker. Since this was broken with cross compilers,
11780 # most powerpc-linux boxes support dynamic linking these days and
11781 # people can always --disable-shared, the test was removed, and we
11782 # assume the GNU/Linux dynamic linker is in use.
11783 dynamic_linker='GNU/Linux ld.so'
11790 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11793 dynamic_linker='NetBSD (a.out) ld.so'
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11796 soname_spec='${libname}${release}${shared_ext}$major'
11797 dynamic_linker='NetBSD ld.elf_so'
11799 shlibpath_var=LD_LIBRARY_PATH
11800 shlibpath_overrides_runpath=yes
11801 hardcode_into_libs=yes
11806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807 shlibpath_var=LD_LIBRARY_PATH
11808 shlibpath_overrides_runpath=yes
11815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816 soname_spec='${libname}${release}${shared_ext}$major'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 shlibpath_overrides_runpath=no
11819 hardcode_into_libs=yes
11820 dynamic_linker='ldqnx.so'
11825 sys_lib_dlsearch_path_spec="/usr/lib"
11827 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11829 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11830 *) need_version=no ;;
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11833 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11837 openbsd2.[89] | openbsd2.[89].*)
11838 shlibpath_overrides_runpath=no
11841 shlibpath_overrides_runpath=yes
11845 shlibpath_overrides_runpath=yes
11850 libname_spec='$name'
11853 library_names_spec='$libname${shared_ext} $libname.a'
11854 dynamic_linker='OS/2 ld.exe'
11855 shlibpath_var=LIBPATH
11858 osf3* | osf4* | osf5*)
11862 soname_spec='${libname}${release}${shared_ext}$major'
11863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864 shlibpath_var=LD_LIBRARY_PATH
11865 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11866 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11878 soname_spec='${libname}${release}${shared_ext}$major'
11879 shlibpath_var=LD_LIBRARY_PATH
11880 shlibpath_overrides_runpath=yes
11881 hardcode_into_libs=yes
11882 # ldd complains unless libraries are executable
11883 postinstall_cmds='chmod +x $lib'
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11889 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=yes
11892 if test "$with_gnu_ld" = yes; then
11900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901 soname_spec='${libname}${release}${shared_ext}$major'
11902 shlibpath_var=LD_LIBRARY_PATH
11903 case $host_vendor in
11905 shlibpath_overrides_runpath=no
11907 runpath_var=LD_RUN_PATH
11915 shlibpath_overrides_runpath=no
11916 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11922 if test -d /usr/nec ;then
11924 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11925 soname_spec='$libname${shared_ext}.$major'
11926 shlibpath_var=LD_LIBRARY_PATH
11930 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11931 version_type=freebsd-elf
11934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11935 soname_spec='${libname}${release}${shared_ext}$major'
11936 shlibpath_var=LD_LIBRARY_PATH
11937 shlibpath_overrides_runpath=yes
11938 hardcode_into_libs=yes
11939 if test "$with_gnu_ld" = yes; then
11940 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11942 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11945 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11949 sys_lib_dlsearch_path_spec='/usr/lib'
11953 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11958 shlibpath_var=LD_LIBRARY_PATH
11959 shlibpath_overrides_runpath=no
11960 hardcode_into_libs=yes
11965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11966 soname_spec='${libname}${release}${shared_ext}$major'
11967 shlibpath_var=LD_LIBRARY_PATH
11974 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11975 echo "${ECHO_T}$dynamic_linker" >&6; }
11976 test "$dynamic_linker" = no && can_build_shared=no
11978 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11979 if test "$GCC" = yes; then
11980 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11983 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11984 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11986 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11987 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12076 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12077 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12079 if test -n "$hardcode_libdir_flag_spec" ||
12080 test -n "$runpath_var" ||
12081 test "X$hardcode_automatic" = "Xyes" ; then
12083 # We can hardcode non-existent directories.
12084 if test "$hardcode_direct" != no &&
12085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12086 # have to relink, otherwise we might link with an installed library
12087 # when we should be linking with a yet-to-be-installed one
12088 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12089 test "$hardcode_minus_L" != no; then
12090 # Linking always hardcodes the temporary library directory.
12091 hardcode_action=relink
12093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12094 hardcode_action=immediate
12097 # We cannot hardcode anything, or else we can only hardcode existing
12099 hardcode_action=unsupported
12101 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12102 echo "${ECHO_T}$hardcode_action" >&6; }
12104 if test "$hardcode_action" = relink ||
12105 test "$inherit_rpath" = yes; then
12106 # Fast installation is not supported
12107 enable_fast_install=no
12108 elif test "$shlibpath_overrides_runpath" = yes ||
12109 test "$enable_shared" = no; then
12110 # Fast installation is not necessary
12111 enable_fast_install=needless
12119 if test "x$enable_dlopen" != xyes; then
12120 enable_dlopen=unknown
12121 enable_dlopen_self=unknown
12122 enable_dlopen_self_static=unknown
12129 lt_cv_dlopen="load_add_on"
12131 lt_cv_dlopen_self=yes
12134 mingw* | pw32* | cegcc*)
12135 lt_cv_dlopen="LoadLibrary"
12140 lt_cv_dlopen="dlopen"
12145 # if libdl is installed we need to link against it
12146 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12147 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12148 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 ac_check_lib_save_LIBS=$LIBS
12153 cat >conftest.$ac_ext <<_ACEOF
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12160 /* Override any GCC internal prototype to avoid an error.
12161 Use char because int might match the return type of a GCC
12162 builtin and then its argument prototype would still apply. */
12175 rm -f conftest.$ac_objext conftest$ac_exeext
12176 if { (ac_try="$ac_link"
12177 case "(($ac_try" in
12178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12179 *) ac_try_echo=$ac_try;;
12181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12182 (eval "$ac_link") 2>conftest.er1
12184 grep -v '^ *+' conftest.er1 >conftest.err
12186 cat conftest.err >&5
12187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188 (exit $ac_status); } && {
12189 test -z "$ac_c_werror_flag" ||
12190 test ! -s conftest.err
12191 } && test -s conftest$ac_exeext &&
12192 $as_test_x conftest$ac_exeext; then
12193 ac_cv_lib_dl_dlopen=yes
12195 echo "$as_me: failed program was:" >&5
12196 sed 's/^/| /' conftest.$ac_ext >&5
12198 ac_cv_lib_dl_dlopen=no
12201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12202 conftest$ac_exeext conftest.$ac_ext
12203 LIBS=$ac_check_lib_save_LIBS
12205 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12206 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12207 if test $ac_cv_lib_dl_dlopen = yes; then
12208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12211 lt_cv_dlopen="dyld"
12213 lt_cv_dlopen_self=yes
12220 { echo "$as_me:$LINENO: checking for shl_load" >&5
12221 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12222 if test "${ac_cv_func_shl_load+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 cat >conftest.$ac_ext <<_ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12232 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12233 #define shl_load innocuous_shl_load
12235 /* System header to define __stub macros and hopefully few prototypes,
12236 which can conflict with char shl_load (); below.
12237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12238 <limits.h> exists even on freestanding compilers. */
12241 # include <limits.h>
12243 # include <assert.h>
12248 /* Override any GCC internal prototype to avoid an error.
12249 Use char because int might match the return type of a GCC
12250 builtin and then its argument prototype would still apply. */
12255 /* The GNU C library defines this for functions which it implements
12256 to always fail with ENOSYS. Some functions are actually named
12257 something starting with __ and the normal name is an alias. */
12258 #if defined __stub_shl_load || defined __stub___shl_load
12265 return shl_load ();
12270 rm -f conftest.$ac_objext conftest$ac_exeext
12271 if { (ac_try="$ac_link"
12272 case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_link") 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest$ac_exeext &&
12287 $as_test_x conftest$ac_exeext; then
12288 ac_cv_func_shl_load=yes
12290 echo "$as_me: failed program was:" >&5
12291 sed 's/^/| /' conftest.$ac_ext >&5
12293 ac_cv_func_shl_load=no
12296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12297 conftest$ac_exeext conftest.$ac_ext
12299 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12300 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12301 if test $ac_cv_func_shl_load = yes; then
12302 lt_cv_dlopen="shl_load"
12304 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12305 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12306 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12307 echo $ECHO_N "(cached) $ECHO_C" >&6
12309 ac_check_lib_save_LIBS=$LIBS
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12318 /* Override any GCC internal prototype to avoid an error.
12319 Use char because int might match the return type of a GCC
12320 builtin and then its argument prototype would still apply. */
12328 return shl_load ();
12333 rm -f conftest.$ac_objext conftest$ac_exeext
12334 if { (ac_try="$ac_link"
12335 case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_link") 2>conftest.er1
12342 grep -v '^ *+' conftest.er1 >conftest.err
12344 cat conftest.err >&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); } && {
12347 test -z "$ac_c_werror_flag" ||
12348 test ! -s conftest.err
12349 } && test -s conftest$ac_exeext &&
12350 $as_test_x conftest$ac_exeext; then
12351 ac_cv_lib_dld_shl_load=yes
12353 echo "$as_me: failed program was:" >&5
12354 sed 's/^/| /' conftest.$ac_ext >&5
12356 ac_cv_lib_dld_shl_load=no
12359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12360 conftest$ac_exeext conftest.$ac_ext
12361 LIBS=$ac_check_lib_save_LIBS
12363 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12364 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12365 if test $ac_cv_lib_dld_shl_load = yes; then
12366 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12368 { echo "$as_me:$LINENO: checking for dlopen" >&5
12369 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12370 if test "${ac_cv_func_dlopen+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12373 cat >conftest.$ac_ext <<_ACEOF
12376 cat confdefs.h >>conftest.$ac_ext
12377 cat >>conftest.$ac_ext <<_ACEOF
12378 /* end confdefs.h. */
12379 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12381 #define dlopen innocuous_dlopen
12383 /* System header to define __stub macros and hopefully few prototypes,
12384 which can conflict with char dlopen (); below.
12385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12386 <limits.h> exists even on freestanding compilers. */
12389 # include <limits.h>
12391 # include <assert.h>
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12403 /* The GNU C library defines this for functions which it implements
12404 to always fail with ENOSYS. Some functions are actually named
12405 something starting with __ and the normal name is an alias. */
12406 #if defined __stub_dlopen || defined __stub___dlopen
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_link") 2>conftest.er1
12427 grep -v '^ *+' conftest.er1 >conftest.err
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && {
12432 test -z "$ac_c_werror_flag" ||
12433 test ! -s conftest.err
12434 } && test -s conftest$ac_exeext &&
12435 $as_test_x conftest$ac_exeext; then
12436 ac_cv_func_dlopen=yes
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_cv_func_dlopen=no
12444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12445 conftest$ac_exeext conftest.$ac_ext
12447 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12448 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12449 if test $ac_cv_func_dlopen = yes; then
12450 lt_cv_dlopen="dlopen"
12452 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12453 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12454 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 ac_check_lib_save_LIBS=$LIBS
12459 cat >conftest.$ac_ext <<_ACEOF
12462 cat confdefs.h >>conftest.$ac_ext
12463 cat >>conftest.$ac_ext <<_ACEOF
12464 /* end confdefs.h. */
12466 /* Override any GCC internal prototype to avoid an error.
12467 Use char because int might match the return type of a GCC
12468 builtin and then its argument prototype would still apply. */
12481 rm -f conftest.$ac_objext conftest$ac_exeext
12482 if { (ac_try="$ac_link"
12483 case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_link") 2>conftest.er1
12490 grep -v '^ *+' conftest.er1 >conftest.err
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } && {
12495 test -z "$ac_c_werror_flag" ||
12496 test ! -s conftest.err
12497 } && test -s conftest$ac_exeext &&
12498 $as_test_x conftest$ac_exeext; then
12499 ac_cv_lib_dl_dlopen=yes
12501 echo "$as_me: failed program was:" >&5
12502 sed 's/^/| /' conftest.$ac_ext >&5
12504 ac_cv_lib_dl_dlopen=no
12507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12508 conftest$ac_exeext conftest.$ac_ext
12509 LIBS=$ac_check_lib_save_LIBS
12511 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12512 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12513 if test $ac_cv_lib_dl_dlopen = yes; then
12514 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12516 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12517 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12518 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-lsvld $LIBS"
12523 cat >conftest.$ac_ext <<_ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12554 grep -v '^ *+' conftest.er1 >conftest.err
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } && {
12559 test -z "$ac_c_werror_flag" ||
12560 test ! -s conftest.err
12561 } && test -s conftest$ac_exeext &&
12562 $as_test_x conftest$ac_exeext; then
12563 ac_cv_lib_svld_dlopen=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_cv_lib_svld_dlopen=no
12571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12572 conftest$ac_exeext conftest.$ac_ext
12573 LIBS=$ac_check_lib_save_LIBS
12575 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12576 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12577 if test $ac_cv_lib_svld_dlopen = yes; then
12578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12580 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12581 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12582 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 ac_check_lib_save_LIBS=$LIBS
12587 cat >conftest.$ac_ext <<_ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h. */
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12604 return dld_link ();
12609 rm -f conftest.$ac_objext conftest$ac_exeext
12610 if { (ac_try="$ac_link"
12611 case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_link") 2>conftest.er1
12618 grep -v '^ *+' conftest.er1 >conftest.err
12620 cat conftest.err >&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); } && {
12623 test -z "$ac_c_werror_flag" ||
12624 test ! -s conftest.err
12625 } && test -s conftest$ac_exeext &&
12626 $as_test_x conftest$ac_exeext; then
12627 ac_cv_lib_dld_dld_link=yes
12629 echo "$as_me: failed program was:" >&5
12630 sed 's/^/| /' conftest.$ac_ext >&5
12632 ac_cv_lib_dld_dld_link=no
12635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12636 conftest$ac_exeext conftest.$ac_ext
12637 LIBS=$ac_check_lib_save_LIBS
12639 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12640 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12641 if test $ac_cv_lib_dld_dld_link = yes; then
12642 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12663 if test "x$lt_cv_dlopen" != xno; then
12669 case $lt_cv_dlopen in
12671 save_CPPFLAGS="$CPPFLAGS"
12672 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12674 save_LDFLAGS="$LDFLAGS"
12675 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12678 LIBS="$lt_cv_dlopen_libs $LIBS"
12680 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12681 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12682 if test "${lt_cv_dlopen_self+set}" = set; then
12683 echo $ECHO_N "(cached) $ECHO_C" >&6
12685 if test "$cross_compiling" = yes; then :
12686 lt_cv_dlopen_self=cross
12688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12689 lt_status=$lt_dlunknown
12690 cat > conftest.$ac_ext <<_LT_EOF
12691 #line 12691 "configure"
12692 #include "confdefs.h"
12701 # define LT_DLGLOBAL RTLD_GLOBAL
12704 # define LT_DLGLOBAL DL_GLOBAL
12706 # define LT_DLGLOBAL 0
12710 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12711 find out it does not work in some platform. */
12712 #ifndef LT_DLLAZY_OR_NOW
12714 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12717 # define LT_DLLAZY_OR_NOW DL_LAZY
12720 # define LT_DLLAZY_OR_NOW RTLD_NOW
12723 # define LT_DLLAZY_OR_NOW DL_NOW
12725 # define LT_DLLAZY_OR_NOW 0
12732 void fnord() { int i=42;}
12735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12736 int status = $lt_dlunknown;
12740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12741 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12742 /* dlclose (self); */
12750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12751 (eval $ac_link) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12755 (./conftest; exit; ) >&5 2>/dev/null
12757 case x$lt_status in
12758 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12759 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12760 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12763 # compilation failed
12764 lt_cv_dlopen_self=no
12771 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12772 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12774 if test "x$lt_cv_dlopen_self" = xyes; then
12775 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12776 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12777 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12778 if test "${lt_cv_dlopen_self_static+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 if test "$cross_compiling" = yes; then :
12782 lt_cv_dlopen_self_static=cross
12784 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12785 lt_status=$lt_dlunknown
12786 cat > conftest.$ac_ext <<_LT_EOF
12787 #line 12787 "configure"
12788 #include "confdefs.h"
12797 # define LT_DLGLOBAL RTLD_GLOBAL
12800 # define LT_DLGLOBAL DL_GLOBAL
12802 # define LT_DLGLOBAL 0
12806 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12807 find out it does not work in some platform. */
12808 #ifndef LT_DLLAZY_OR_NOW
12810 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12813 # define LT_DLLAZY_OR_NOW DL_LAZY
12816 # define LT_DLLAZY_OR_NOW RTLD_NOW
12819 # define LT_DLLAZY_OR_NOW DL_NOW
12821 # define LT_DLLAZY_OR_NOW 0
12828 void fnord() { int i=42;}
12831 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12832 int status = $lt_dlunknown;
12836 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12837 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12838 /* dlclose (self); */
12846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12847 (eval $ac_link) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12851 (./conftest; exit; ) >&5 2>/dev/null
12853 case x$lt_status in
12854 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12855 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12856 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12859 # compilation failed
12860 lt_cv_dlopen_self_static=no
12867 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12868 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12871 CPPFLAGS="$save_CPPFLAGS"
12872 LDFLAGS="$save_LDFLAGS"
12877 case $lt_cv_dlopen_self in
12878 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12879 *) enable_dlopen_self=unknown ;;
12882 case $lt_cv_dlopen_self_static in
12883 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12884 *) enable_dlopen_self_static=unknown ;;
12906 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12907 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12908 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12909 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12910 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12911 { echo "$as_me:$LINENO: result: yes" >&5
12912 echo "${ECHO_T}yes" >&6; }
12914 # FIXME - insert some real tests, host_os isn't really good enough
12917 if test -n "$STRIP" ; then
12918 striplib="$STRIP -x"
12919 old_striplib="$STRIP -S"
12920 { echo "$as_me:$LINENO: result: yes" >&5
12921 echo "${ECHO_T}yes" >&6; }
12923 { echo "$as_me:$LINENO: result: no" >&5
12924 echo "${ECHO_T}no" >&6; }
12928 { echo "$as_me:$LINENO: result: no" >&5
12929 echo "${ECHO_T}no" >&6; }
12945 # Report which library types will actually be built
12946 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12947 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12948 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12949 echo "${ECHO_T}$can_build_shared" >&6; }
12951 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12952 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12953 test "$can_build_shared" = "no" && enable_shared=no
12955 # On AIX, shared libraries and static libraries use the same namespace, and
12956 # are all built from PIC.
12959 test "$enable_shared" = yes && enable_static=no
12960 if test -n "$RANLIB"; then
12961 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12962 postinstall_cmds='$RANLIB $lib'
12967 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12968 test "$enable_shared" = yes && enable_static=no
12972 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12973 echo "${ECHO_T}$enable_shared" >&6; }
12975 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12976 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12977 # Make sure either enable_shared or enable_static is yes.
12978 test "$enable_shared" = yes || enable_static=yes
12979 { echo "$as_me:$LINENO: result: $enable_static" >&5
12980 echo "${ECHO_T}$enable_static" >&6; }
12987 ac_cpp='$CPP $CPPFLAGS'
12988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12996 ac_cpp='$CXXCPP $CPPFLAGS'
12997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13001 archive_cmds_need_lc_CXX=no
13002 allow_undefined_flag_CXX=
13003 always_export_symbols_CXX=no
13004 archive_expsym_cmds_CXX=
13005 compiler_needs_object_CXX=no
13006 export_dynamic_flag_spec_CXX=
13007 hardcode_direct_CXX=no
13008 hardcode_direct_absolute_CXX=no
13009 hardcode_libdir_flag_spec_CXX=
13010 hardcode_libdir_flag_spec_ld_CXX=
13011 hardcode_libdir_separator_CXX=
13012 hardcode_minus_L_CXX=no
13013 hardcode_shlibpath_var_CXX=unsupported
13014 hardcode_automatic_CXX=no
13015 inherit_rpath_CXX=no
13017 module_expsym_cmds_CXX=
13018 link_all_deplibs_CXX=unknown
13019 old_archive_cmds_CXX=$old_archive_cmds
13020 no_undefined_flag_CXX=
13021 whole_archive_flag_spec_CXX=
13022 enable_shared_with_static_runtimes_CXX=no
13024 # Source file extension for C++ test sources.
13027 # Object file extension for compiled C++ test sources.
13031 # No sense in running all these tests if we already determined that
13032 # the CXX compiler isn't working. Some variables (like enable_shared)
13033 # are currently assumed to apply to all compilers on this platform,
13034 # and will be corrupted by setting them based on a non-working compiler.
13035 if test "$_lt_caught_CXX_error" != yes; then
13036 # Code to be used in simple compile tests
13037 lt_simple_compile_test_code="int some_variable = 0;"
13039 # Code to be used in simple link tests
13040 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13042 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13049 # If no C compiler was specified, use CC.
13052 # If no C compiler flags were specified, use CFLAGS.
13053 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13055 # Allow CC to be a program name with arguments.
13059 # save warnings/boilerplate of simple test code
13060 ac_outfile=conftest.$ac_objext
13061 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13062 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13063 _lt_compiler_boilerplate=`cat conftest.err`
13066 ac_outfile=conftest.$ac_objext
13067 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13068 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13069 _lt_linker_boilerplate=`cat conftest.err`
13073 # Allow CC to be a program name with arguments.
13078 lt_save_with_gnu_ld=$with_gnu_ld
13079 lt_save_path_LD=$lt_cv_path_LD
13080 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13081 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13083 $as_unset lt_cv_prog_gnu_ld
13085 if test -n "${lt_cv_path_LDCXX+set}"; then
13086 lt_cv_path_LD=$lt_cv_path_LDCXX
13088 $as_unset lt_cv_path_LD
13090 test -z "${LDCXX+set}" || LD=$LDCXX
13094 for cc_temp in $compiler""; do
13096 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13097 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13102 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13105 if test -n "$compiler"; then
13106 # We don't want -fno-exception when compiling C++ code, so set the
13107 # no_builtin_flag separately
13108 if test "$GXX" = yes; then
13109 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13111 lt_prog_compiler_no_builtin_flag_CXX=
13114 if test "$GXX" = yes; then
13115 # Set up default GNU C++ configuration
13119 # Check whether --with-gnu-ld was given.
13120 if test "${with_gnu_ld+set}" = set; then
13121 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13127 if test "$GCC" = yes; then
13128 # Check if gcc -print-prog-name=ld gives a path.
13129 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13130 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13133 # gcc leaves a trailing carriage return which upsets mingw
13134 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13136 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13139 # Accept absolute paths.
13141 re_direlt='/[^/][^/]*/\.\./'
13142 # Canonicalize the pathname of ld
13143 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13144 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13145 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13147 test -z "$LD" && LD="$ac_prog"
13150 # If it fails, then pretend we aren't using GCC.
13154 # If it is relative, then search for the first ld in PATH.
13155 with_gnu_ld=unknown
13158 elif test "$with_gnu_ld" = yes; then
13159 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13160 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13162 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13163 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13165 if test "${lt_cv_path_LD+set}" = set; then
13166 echo $ECHO_N "(cached) $ECHO_C" >&6
13168 if test -z "$LD"; then
13169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13170 for ac_dir in $PATH; do
13172 test -z "$ac_dir" && ac_dir=.
13173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13174 lt_cv_path_LD="$ac_dir/$ac_prog"
13175 # Check to see if the program is GNU ld. I'd rather use --version,
13176 # but apparently some variants of GNU ld only accept -v.
13177 # Break only if it was the GNU/non-GNU ld that we prefer.
13178 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13179 *GNU* | *'with BFD'*)
13180 test "$with_gnu_ld" != no && break
13183 test "$with_gnu_ld" != yes && break
13190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13194 LD="$lt_cv_path_LD"
13195 if test -n "$LD"; then
13196 { echo "$as_me:$LINENO: result: $LD" >&5
13197 echo "${ECHO_T}$LD" >&6; }
13199 { echo "$as_me:$LINENO: result: no" >&5
13200 echo "${ECHO_T}no" >&6; }
13202 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13203 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13204 { (exit 1); exit 1; }; }
13205 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13206 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13207 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13211 case `$LD -v 2>&1 </dev/null` in
13212 *GNU* | *'with BFD'*)
13213 lt_cv_prog_gnu_ld=yes
13216 lt_cv_prog_gnu_ld=no
13220 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13221 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13222 with_gnu_ld=$lt_cv_prog_gnu_ld
13230 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13231 # archiving commands below assume that GNU ld is being used.
13232 if test "$with_gnu_ld" = yes; then
13233 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13234 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13236 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13239 # If archive_cmds runs LD, not CC, wlarc should be empty
13240 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13241 # investigate it a little bit more. (MM)
13244 # ancient GNU ld didn't support --whole-archive et. al.
13245 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13246 $GREP 'no-whole-archive' > /dev/null; then
13247 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13249 whole_archive_flag_spec_CXX=
13255 # A generic and very simple default shared library creation
13256 # command for GNU C++ for the case where it uses the native
13257 # linker, instead of GNU ld. If possible, this setting should
13258 # overridden to take advantage of the native linker features on
13259 # the platform it is being used on.
13260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13263 # Commands to make compiler produce verbose output that lists
13264 # what "hidden" libraries, object files and flags are used when
13265 # linking a shared library.
13266 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13274 # PORTME: fill in a description of your system's C++ link characteristics
13275 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13276 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13280 # FIXME: insert proper C++ library support
13284 if test "$host_cpu" = ia64; then
13285 # On IA64, the linker does run time linking by default, so we don't
13286 # have to do anything special.
13287 aix_use_runtimelinking=no
13288 exp_sym_flag='-Bexport'
13291 aix_use_runtimelinking=no
13293 # Test if we are trying to use run time linking or normal
13294 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13295 # need to do runtime linking.
13296 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13297 for ld_flag in $LDFLAGS; do
13300 aix_use_runtimelinking=yes
13308 exp_sym_flag='-bexport'
13309 no_entry_flag='-bnoentry'
13312 # When large executables or shared objects are built, AIX ld can
13313 # have problems creating the table of contents. If linking a library
13314 # or program results in "error TOC overflow" add -mminimal-toc to
13315 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13316 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13318 archive_cmds_CXX=''
13319 hardcode_direct_CXX=yes
13320 hardcode_direct_absolute_CXX=yes
13321 hardcode_libdir_separator_CXX=':'
13322 link_all_deplibs_CXX=yes
13323 file_list_spec_CXX='${wl}-f,'
13325 if test "$GXX" = yes; then
13326 case $host_os in aix4.[012]|aix4.[012].*)
13327 # We only want to do this on AIX 4.2 and lower, the check
13328 # below for broken collect2 doesn't work under 4.3+
13329 collect2name=`${CC} -print-prog-name=collect2`
13330 if test -f "$collect2name" &&
13331 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13333 # We have reworked collect2
13336 # We have old collect2
13337 hardcode_direct_CXX=unsupported
13338 # It fails to find uninstalled libraries when the uninstalled
13339 # path is not listed in the libpath. Setting hardcode_minus_L
13340 # to unsupported forces relinking
13341 hardcode_minus_L_CXX=yes
13342 hardcode_libdir_flag_spec_CXX='-L$libdir'
13343 hardcode_libdir_separator_CXX=
13346 shared_flag='-shared'
13347 if test "$aix_use_runtimelinking" = yes; then
13348 shared_flag="$shared_flag "'${wl}-G'
13352 if test "$host_cpu" = ia64; then
13353 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13354 # chokes on -Wl,-G. The following line is correct:
13357 if test "$aix_use_runtimelinking" = yes; then
13358 shared_flag='${wl}-G'
13360 shared_flag='${wl}-bM:SRE'
13365 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13366 # It seems that -bexpall does not export symbols beginning with
13367 # underscore (_), so it is better to generate a list of symbols to
13369 always_export_symbols_CXX=yes
13370 if test "$aix_use_runtimelinking" = yes; then
13371 # Warning - without using the other runtime loading flags (-brtl),
13372 # -berok will link without error, but may produce a broken library.
13373 allow_undefined_flag_CXX='-berok'
13374 # Determine the default libpath from the value encoded in an empty
13376 cat >conftest.$ac_ext <<_ACEOF
13379 cat confdefs.h >>conftest.$ac_ext
13380 cat >>conftest.$ac_ext <<_ACEOF
13381 /* end confdefs.h. */
13391 rm -f conftest.$ac_objext conftest$ac_exeext
13392 if { (ac_try="$ac_link"
13393 case "(($ac_try" in
13394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13395 *) ac_try_echo=$ac_try;;
13397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13398 (eval "$ac_link") 2>conftest.er1
13400 grep -v '^ *+' conftest.er1 >conftest.err
13402 cat conftest.err >&5
13403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404 (exit $ac_status); } && {
13405 test -z "$ac_cxx_werror_flag" ||
13406 test ! -s conftest.err
13407 } && test -s conftest$ac_exeext &&
13408 $as_test_x conftest$ac_exeext; then
13410 lt_aix_libpath_sed='
13411 /Import File Strings/,/^$/ {
13417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13418 # Check for a 64-bit object if we didn't find anything.
13419 if test -z "$aix_libpath"; then
13420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13430 conftest$ac_exeext conftest.$ac_ext
13431 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13433 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13435 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13437 if test "$host_cpu" = ia64; then
13438 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13439 allow_undefined_flag_CXX="-z nodefs"
13440 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13442 # Determine the default libpath from the value encoded in an
13443 # empty executable.
13444 cat >conftest.$ac_ext <<_ACEOF
13447 cat confdefs.h >>conftest.$ac_ext
13448 cat >>conftest.$ac_ext <<_ACEOF
13449 /* end confdefs.h. */
13459 rm -f conftest.$ac_objext conftest$ac_exeext
13460 if { (ac_try="$ac_link"
13461 case "(($ac_try" in
13462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463 *) ac_try_echo=$ac_try;;
13465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466 (eval "$ac_link") 2>conftest.er1
13468 grep -v '^ *+' conftest.er1 >conftest.err
13470 cat conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); } && {
13473 test -z "$ac_cxx_werror_flag" ||
13474 test ! -s conftest.err
13475 } && test -s conftest$ac_exeext &&
13476 $as_test_x conftest$ac_exeext; then
13478 lt_aix_libpath_sed='
13479 /Import File Strings/,/^$/ {
13485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13486 # Check for a 64-bit object if we didn't find anything.
13487 if test -z "$aix_libpath"; then
13488 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13498 conftest$ac_exeext conftest.$ac_ext
13499 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13501 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13502 # Warning - without using the other run time loading flags,
13503 # -berok will link without error, but may produce a broken library.
13504 no_undefined_flag_CXX=' ${wl}-bernotok'
13505 allow_undefined_flag_CXX=' ${wl}-berok'
13506 # Exported symbols can be pulled into shared objects from archives
13507 whole_archive_flag_spec_CXX='$convenience'
13508 archive_cmds_need_lc_CXX=yes
13509 # This is similar to how AIX traditionally builds its shared
13511 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13517 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13518 allow_undefined_flag_CXX=unsupported
13519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13520 # support --undefined. This deserves some investigation. FIXME
13521 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13528 case $cc_basename in
13530 # FIXME: insert proper C++ library support
13536 cygwin* | mingw* | pw32* | cegcc*)
13537 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13538 # as there is no search path for DLLs.
13539 hardcode_libdir_flag_spec_CXX='-L$libdir'
13540 allow_undefined_flag_CXX=unsupported
13541 always_export_symbols_CXX=no
13542 enable_shared_with_static_runtimes_CXX=yes
13544 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13545 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13546 # If the export-symbols file already is a .def file (1st line
13547 # is EXPORTS), use it as is; otherwise, prepend...
13548 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13549 cp $export_symbols $output_objdir/$soname.def;
13551 echo EXPORTS > $output_objdir/$soname.def;
13552 cat $export_symbols >> $output_objdir/$soname.def;
13554 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13559 darwin* | rhapsody*)
13562 archive_cmds_need_lc_CXX=no
13563 hardcode_direct_CXX=no
13564 hardcode_automatic_CXX=yes
13565 hardcode_shlibpath_var_CXX=unsupported
13566 whole_archive_flag_spec_CXX=''
13567 link_all_deplibs_CXX=yes
13568 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13569 case $cc_basename in
13570 ifort*) _lt_dar_can_shared=yes ;;
13571 *) _lt_dar_can_shared=$GCC ;;
13573 if test "$_lt_dar_can_shared" = "yes"; then
13574 output_verbose_link_cmd=echo
13575 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13576 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13577 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13578 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13579 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13580 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13581 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13591 case $cc_basename in
13593 # FIXME: insert proper C++ library support
13597 # Green Hills C++ Compiler
13598 # FIXME: insert proper C++ library support
13602 # FIXME: insert proper C++ library support
13609 # C++ shared libraries reported to be fairly broken before
13615 archive_cmds_need_lc_CXX=no
13618 freebsd* | dragonfly*)
13619 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13628 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13629 hardcode_libdir_separator_CXX=:
13630 export_dynamic_flag_spec_CXX='${wl}-E'
13631 hardcode_direct_CXX=yes
13632 hardcode_minus_L_CXX=yes # Not in the search PATH,
13633 # but as the default
13634 # location of the library.
13636 case $cc_basename in
13638 # FIXME: insert proper C++ library support
13642 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13643 # Commands to make compiler produce verbose output that lists
13644 # what "hidden" libraries, object files and flags are used when
13645 # linking a shared library.
13647 # There doesn't appear to be a way to prevent this compiler from
13648 # explicitly linking system object files so we need to strip them
13649 # from the output so that they don't get included in the library
13651 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13654 if test "$GXX" = yes; then
13655 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13657 # FIXME: insert proper C++ library support
13665 if test $with_gnu_ld = no; then
13666 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13667 hardcode_libdir_separator_CXX=:
13673 export_dynamic_flag_spec_CXX='${wl}-E'
13679 hardcode_direct_CXX=no
13680 hardcode_shlibpath_var_CXX=no
13683 hardcode_direct_CXX=yes
13684 hardcode_direct_absolute_CXX=yes
13685 hardcode_minus_L_CXX=yes # Not in the search PATH,
13686 # but as the default
13687 # location of the library.
13691 case $cc_basename in
13693 # FIXME: insert proper C++ library support
13699 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13702 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13705 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13708 # Commands to make compiler produce verbose output that lists
13709 # what "hidden" libraries, object files and flags are used when
13710 # linking a shared library.
13712 # There doesn't appear to be a way to prevent this compiler from
13713 # explicitly linking system object files so we need to strip them
13714 # from the output so that they don't get included in the library
13716 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13719 if test "$GXX" = yes; then
13720 if test $with_gnu_ld = no; then
13723 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13726 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13729 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13734 # FIXME: insert proper C++ library support
13742 hardcode_direct_CXX=no
13743 hardcode_shlibpath_var_CXX=no
13744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13745 export_dynamic_flag_spec_CXX='${wl}-E'
13746 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13747 # Instead, shared libraries are loaded at an image base (0x10000000 by
13748 # default) and relocated if they conflict, which is a slow very memory
13749 # consuming and fragmenting process. To avoid this, we pick a random,
13750 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13751 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13752 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13753 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13756 case $cc_basename in
13759 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13761 # Archives containing C++ object files must be created using
13762 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13763 # necessary to make sure instantiated templates are included
13765 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13768 if test "$GXX" = yes; then
13769 if test "$with_gnu_ld" = no; then
13770 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13772 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13775 link_all_deplibs_CXX=yes
13778 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13779 hardcode_libdir_separator_CXX=:
13780 inherit_rpath_CXX=yes
13783 linux* | k*bsd*-gnu)
13784 case $cc_basename in
13786 # Kuck and Associates, Inc. (KAI) C++ Compiler
13788 # KCC will only create a shared library if the output file
13789 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13790 # to its proper name (with version) after linking.
13791 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13792 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13793 # Commands to make compiler produce verbose output that lists
13794 # what "hidden" libraries, object files and flags are used when
13795 # linking a shared library.
13797 # There doesn't appear to be a way to prevent this compiler from
13798 # explicitly linking system object files so we need to strip them
13799 # from the output so that they don't get included in the library
13801 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13803 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13804 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13806 # Archives containing C++ object files must be created using
13807 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13808 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13813 # version 8.0 and above of icpc choke on multiply defined symbols
13814 # if we add $predep_objects and $postdep_objects, however 7.1 and
13815 # earlier do not add the objects themselves.
13816 case `$CC -V 2>&1` in
13818 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13819 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13821 *) # Version 8.0 or newer
13824 ia64*) tmp_idyn=' -i_dynamic';;
13826 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13827 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13830 archive_cmds_need_lc_CXX=no
13831 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13832 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13833 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13836 # Portland Group C++ compiler
13838 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13839 prelink_cmds_CXX='tpldir=Template.dir~
13841 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13842 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13843 old_archive_cmds_CXX='tpldir=Template.dir~
13845 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13846 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13848 archive_cmds_CXX='tpldir=Template.dir~
13850 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13851 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13852 archive_expsym_cmds_CXX='tpldir=Template.dir~
13854 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13855 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13857 *) # Version 6 will use weak symbols
13858 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13859 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13863 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13864 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13865 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13869 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13870 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13872 runpath_var=LD_RUN_PATH
13873 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13874 hardcode_libdir_separator_CXX=:
13876 # Commands to make compiler produce verbose output that lists
13877 # what "hidden" libraries, object files and flags are used when
13878 # linking a shared library.
13880 # There doesn't appear to be a way to prevent this compiler from
13881 # explicitly linking system object files so we need to strip them
13882 # from the output so that they don't get included in the library
13884 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13887 # IBM XL 8.0 on PPC, with GNU ld
13888 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13890 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13891 if test "x$supports_anon_versioning" = xyes; then
13892 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13893 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13894 echo "local: *; };" >> $output_objdir/$libname.ver~
13895 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13899 case `$CC -V 2>&1 | sed 5q` in
13902 no_undefined_flag_CXX=' -zdefs'
13903 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13904 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13905 hardcode_libdir_flag_spec_CXX='-R$libdir'
13906 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13907 compiler_needs_object_CXX=yes
13909 # Not sure whether something based on
13910 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13912 output_verbose_link_cmd='echo'
13914 # Archives containing C++ object files must be created using
13915 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13916 # necessary to make sure instantiated templates are included
13918 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13926 # FIXME: insert proper C++ library support
13931 # FIXME: insert proper C++ library support
13936 case $cc_basename in
13938 # FIXME: insert proper C++ library support
13942 # FIXME: insert proper C++ library support
13949 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13950 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13952 hardcode_libdir_flag_spec_CXX='-R$libdir'
13953 hardcode_direct_CXX=yes
13954 hardcode_shlibpath_var_CXX=no
13956 # Workaround some broken pre-1.5 toolchains
13957 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13965 # C++ shared libraries are fairly broken
13970 if test -f /usr/libexec/ld.so; then
13971 hardcode_direct_CXX=yes
13972 hardcode_shlibpath_var_CXX=no
13973 hardcode_direct_absolute_CXX=yes
13974 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13976 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13977 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13978 export_dynamic_flag_spec_CXX='${wl}-E'
13979 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13981 output_verbose_link_cmd=echo
13987 osf3* | osf4* | osf5*)
13988 case $cc_basename in
13990 # Kuck and Associates, Inc. (KAI) C++ Compiler
13992 # KCC will only create a shared library if the output file
13993 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13994 # to its proper name (with version) after linking.
13995 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13997 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13998 hardcode_libdir_separator_CXX=:
14000 # Archives containing C++ object files must be created using
14001 # the KAI C++ compiler.
14003 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14004 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14008 # Rational C++ 2.4.1
14009 # FIXME: insert proper C++ library support
14015 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14016 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14017 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14020 allow_undefined_flag_CXX=' -expect_unresolved \*'
14021 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14022 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14023 echo "-hidden">> $lib.exp~
14024 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14026 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14030 hardcode_libdir_separator_CXX=:
14032 # Commands to make compiler produce verbose output that lists
14033 # what "hidden" libraries, object files and flags are used when
14034 # linking a shared library.
14036 # There doesn't appear to be a way to prevent this compiler from
14037 # explicitly linking system object files so we need to strip them
14038 # from the output so that they don't get included in the library
14040 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14043 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14044 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14047 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14050 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14054 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14055 hardcode_libdir_separator_CXX=:
14057 # Commands to make compiler produce verbose output that lists
14058 # what "hidden" libraries, object files and flags are used when
14059 # linking a shared library.
14060 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14063 # FIXME: insert proper C++ library support
14071 # FIXME: insert proper C++ library support
14076 case $cc_basename in
14079 # FIXME: insert proper C++ library support
14084 # FIXME: insert proper C++ library support
14088 # FIXME: insert proper C++ library support
14095 case $cc_basename in
14097 # Sun C++ 4.2, 5.x and Centerline C++
14098 archive_cmds_need_lc_CXX=yes
14099 no_undefined_flag_CXX=' -zdefs'
14100 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14101 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14102 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14104 hardcode_libdir_flag_spec_CXX='-R$libdir'
14105 hardcode_shlibpath_var_CXX=no
14107 solaris2.[0-5] | solaris2.[0-5].*) ;;
14109 # The compiler driver will combine and reorder linker options,
14110 # but understands `-z linker_flag'.
14111 # Supported since Solaris 2.6 (maybe 2.5.1?)
14112 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14115 link_all_deplibs_CXX=yes
14117 output_verbose_link_cmd='echo'
14119 # Archives containing C++ object files must be created using
14120 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14121 # necessary to make sure instantiated templates are included
14123 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14126 # Green Hills C++ Compiler
14127 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14129 # The C++ compiler must be used to create the archive.
14130 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14133 # GNU C++ compiler with Solaris linker
14134 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14135 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14136 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14137 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14138 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14139 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14141 # Commands to make compiler produce verbose output that lists
14142 # what "hidden" libraries, object files and flags are used when
14143 # linking a shared library.
14144 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14146 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14148 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14149 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14150 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14152 # Commands to make compiler produce verbose output that lists
14153 # what "hidden" libraries, object files and flags are used when
14154 # linking a shared library.
14155 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14158 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14160 solaris2.[0-5] | solaris2.[0-5].*) ;;
14162 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14170 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14171 no_undefined_flag_CXX='${wl}-z,text'
14172 archive_cmds_need_lc_CXX=no
14173 hardcode_shlibpath_var_CXX=no
14174 runpath_var='LD_RUN_PATH'
14176 case $cc_basename in
14178 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14179 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14182 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14188 sysv5* | sco3.2v5* | sco5v6*)
14189 # Note: We can NOT use -z defs as we might desire, because we do not
14190 # link with -lc, and that would cause any symbols used from libc to
14191 # always be unresolved, which means just about no library would
14192 # ever link correctly. If we're not using GNU ld we use -z text
14193 # though, which does catch some bad symbols but isn't as heavy-handed
14195 no_undefined_flag_CXX='${wl}-z,text'
14196 allow_undefined_flag_CXX='${wl}-z,nodefs'
14197 archive_cmds_need_lc_CXX=no
14198 hardcode_shlibpath_var_CXX=no
14199 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14200 hardcode_libdir_separator_CXX=':'
14201 link_all_deplibs_CXX=yes
14202 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14203 runpath_var='LD_RUN_PATH'
14205 case $cc_basename in
14207 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14208 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14211 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14212 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14218 case $cc_basename in
14220 # NonStop-UX NCC 3.20
14221 # FIXME: insert proper C++ library support
14225 # FIXME: insert proper C++ library support
14232 # FIXME: insert proper C++ library support
14237 # FIXME: insert proper C++ library support
14242 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14243 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14244 test "$ld_shlibs_CXX" = no && can_build_shared=no
14250 ## There is no encapsulation within the following macros, do not change
14251 ## the running order or otherwise move them around unless you know exactly
14252 ## what you are doing...
14253 # Dependencies to place before and after the object being linked:
14254 predep_objects_CXX=
14255 postdep_objects_CXX=
14258 compiler_lib_search_path_CXX=
14260 cat > conftest.$ac_ext <<_LT_EOF
14264 Foo (void) { a = 0; }
14270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14271 (eval $ac_compile) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; then
14275 # Parse the compiler output and extract the necessary
14276 # objects, libraries and library flags.
14278 # Sentinel used to keep track of whether or not we are before
14279 # the conftest object file.
14280 pre_test_object_deps_done=no
14282 for p in `eval "$output_verbose_link_cmd"`; do
14286 # Some compilers place space between "-{L,R}" and the path.
14287 # Remove the space.
14288 if test $p = "-L" ||
14289 test $p = "-R"; then
14296 if test "$pre_test_object_deps_done" = no; then
14299 # Internal compiler library paths should come after those
14300 # provided the user. The postdeps already come after the
14301 # user supplied libs so there is no need to process them.
14302 if test -z "$compiler_lib_search_path_CXX"; then
14303 compiler_lib_search_path_CXX="${prev}${p}"
14305 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14308 # The "-l" case would never come before the object being
14309 # linked, so don't bother handling this case.
14312 if test -z "$postdeps_CXX"; then
14313 postdeps_CXX="${prev}${p}"
14315 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14321 # This assumes that the test object file only shows up
14322 # once in the compiler output.
14323 if test "$p" = "conftest.$objext"; then
14324 pre_test_object_deps_done=yes
14328 if test "$pre_test_object_deps_done" = no; then
14329 if test -z "$predep_objects_CXX"; then
14330 predep_objects_CXX="$p"
14332 predep_objects_CXX="$predep_objects_CXX $p"
14335 if test -z "$postdep_objects_CXX"; then
14336 postdep_objects_CXX="$p"
14338 postdep_objects_CXX="$postdep_objects_CXX $p"
14343 *) ;; # Ignore the rest.
14351 echo "libtool.m4: error: problem compiling CXX test program"
14354 $RM -f confest.$objext
14356 # PORTME: override above test on systems where it is broken
14359 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14360 # hack all around it, let's just trust "g++" to DTRT.
14361 predep_objects_CXX=
14362 postdep_objects_CXX=
14367 case `$CC -V 2>&1 | sed 5q` in
14371 # The more standards-conforming stlport4 library is
14372 # incompatible with the Cstd library. Avoid specifying
14373 # it if it's in CXXFLAGS. Ignore libCrun as
14374 # -library=stlport4 depends on it.
14375 case " $CXX $CXXFLAGS " in
14376 *" -library=stlport4 "*)
14377 solaris_use_stlport4=yes
14381 if test "$solaris_use_stlport4" != yes; then
14382 postdeps_CXX='-library=Cstd -library=Crun'
14389 case $cc_basename in
14391 # The more standards-conforming stlport4 library is
14392 # incompatible with the Cstd library. Avoid specifying
14393 # it if it's in CXXFLAGS. Ignore libCrun as
14394 # -library=stlport4 depends on it.
14395 case " $CXX $CXXFLAGS " in
14396 *" -library=stlport4 "*)
14397 solaris_use_stlport4=yes
14401 # Adding this requires a known-good setup of shared libraries for
14402 # Sun compiler versions before 5.6, else PIC objects from an old
14403 # archive will be linked into the output, leading to subtle bugs.
14404 if test "$solaris_use_stlport4" != yes; then
14405 postdeps_CXX='-library=Cstd -library=Crun'
14413 case " $postdeps_CXX " in
14414 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14416 compiler_lib_search_dirs_CXX=
14417 if test -n "${compiler_lib_search_path_CXX}"; then
14418 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14451 lt_prog_compiler_wl_CXX=
14452 lt_prog_compiler_pic_CXX=
14453 lt_prog_compiler_static_CXX=
14455 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14456 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14458 # C++ specific cases for pic, static, wl, etc.
14459 if test "$GXX" = yes; then
14460 lt_prog_compiler_wl_CXX='-Wl,'
14461 lt_prog_compiler_static_CXX='-static'
14465 # All AIX code is PIC.
14466 if test "$host_cpu" = ia64; then
14467 # AIX 5 now supports IA64 processor
14468 lt_prog_compiler_static_CXX='-Bstatic'
14475 # see comment about AmigaOS4 .so support
14476 lt_prog_compiler_pic_CXX='-fPIC'
14479 # FIXME: we need at least 68020 code to build shared libraries, but
14480 # adding the `-m68020' flag to GCC prevents building anything better,
14482 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14487 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14488 # PIC is the default for these OSes.
14490 mingw* | cygwin* | os2* | pw32* | cegcc*)
14491 # This hack is so that the source file can tell whether it is being
14492 # built for inclusion in a dll (and should export symbols for example).
14493 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14494 # (--disable-auto-import) libraries
14495 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14497 darwin* | rhapsody*)
14498 # PIC is the default on this platform
14499 # Common symbols not allowed in MH_DYLIB files
14500 lt_prog_compiler_pic_CXX='-fno-common'
14503 # DJGPP does not support shared libraries at all
14504 lt_prog_compiler_pic_CXX=
14507 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14508 # Instead, we relocate shared libraries at runtime.
14511 if test -d /usr/nec; then
14512 lt_prog_compiler_pic_CXX=-Kconform_pic
14516 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14517 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14518 # sets the default TLS model and affects inlining.
14523 lt_prog_compiler_pic_CXX='-fPIC'
14528 # QNX uses GNU C++, but need to define -shared option too, otherwise
14529 # it will coredump.
14530 lt_prog_compiler_pic_CXX='-fPIC -shared'
14533 lt_prog_compiler_pic_CXX='-fPIC'
14539 # All AIX code is PIC.
14540 if test "$host_cpu" = ia64; then
14541 # AIX 5 now supports IA64 processor
14542 lt_prog_compiler_static_CXX='-Bstatic'
14544 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14548 case $cc_basename in
14550 # Green Hills C++ Compiler
14551 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14556 case $cc_basename in
14558 lt_prog_compiler_pic_CXX='-KPIC'
14561 # Green Hills C++ Compiler
14562 lt_prog_compiler_pic_CXX='-pic'
14568 freebsd* | dragonfly*)
14569 # FreeBSD uses GNU C++
14571 hpux9* | hpux10* | hpux11*)
14572 case $cc_basename in
14574 lt_prog_compiler_wl_CXX='-Wl,'
14575 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14576 if test "$host_cpu" != ia64; then
14577 lt_prog_compiler_pic_CXX='+Z'
14581 lt_prog_compiler_wl_CXX='-Wl,'
14582 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14588 lt_prog_compiler_pic_CXX='+Z'
14597 # This is c89, which is MS Visual C++ (no shared libs)
14598 # Anyone wants to do a port?
14600 irix5* | irix6* | nonstopux*)
14601 case $cc_basename in
14603 lt_prog_compiler_wl_CXX='-Wl,'
14604 lt_prog_compiler_static_CXX='-non_shared'
14605 # CC pic flag -KPIC is the default.
14611 linux* | k*bsd*-gnu)
14612 case $cc_basename in
14615 lt_prog_compiler_wl_CXX='--backend -Wl,'
14616 lt_prog_compiler_pic_CXX='-fPIC'
14619 # old Intel C++ for x86_64 which still supported -KPIC.
14620 lt_prog_compiler_wl_CXX='-Wl,'
14621 lt_prog_compiler_pic_CXX='-KPIC'
14622 lt_prog_compiler_static_CXX='-static'
14625 # Intel C++, used to be incompatible with GCC.
14626 # ICC 10 doesn't accept -KPIC any more.
14627 lt_prog_compiler_wl_CXX='-Wl,'
14628 lt_prog_compiler_pic_CXX='-fPIC'
14629 lt_prog_compiler_static_CXX='-static'
14632 # Portland Group C++ compiler
14633 lt_prog_compiler_wl_CXX='-Wl,'
14634 lt_prog_compiler_pic_CXX='-fpic'
14635 lt_prog_compiler_static_CXX='-Bstatic'
14639 # Make sure the PIC flag is empty. It appears that all Alpha
14640 # Linux and Compaq Tru64 Unix objects are PIC.
14641 lt_prog_compiler_pic_CXX=
14642 lt_prog_compiler_static_CXX='-non_shared'
14645 # IBM XL 8.0 on PPC
14646 lt_prog_compiler_wl_CXX='-Wl,'
14647 lt_prog_compiler_pic_CXX='-qpic'
14648 lt_prog_compiler_static_CXX='-qstaticlink'
14651 case `$CC -V 2>&1 | sed 5q` in
14654 lt_prog_compiler_pic_CXX='-KPIC'
14655 lt_prog_compiler_static_CXX='-Bstatic'
14656 lt_prog_compiler_wl_CXX='-Qoption ld '
14667 case $cc_basename in
14669 lt_prog_compiler_pic_CXX='-W c,exportall'
14678 # QNX uses GNU C++, but need to define -shared option too, otherwise
14679 # it will coredump.
14680 lt_prog_compiler_pic_CXX='-fPIC -shared'
14682 osf3* | osf4* | osf5*)
14683 case $cc_basename in
14685 lt_prog_compiler_wl_CXX='--backend -Wl,'
14688 # Rational C++ 2.4.1
14689 lt_prog_compiler_pic_CXX='-pic'
14692 # Digital/Compaq C++
14693 lt_prog_compiler_wl_CXX='-Wl,'
14694 # Make sure the PIC flag is empty. It appears that all Alpha
14695 # Linux and Compaq Tru64 Unix objects are PIC.
14696 lt_prog_compiler_pic_CXX=
14697 lt_prog_compiler_static_CXX='-non_shared'
14706 case $cc_basename in
14708 # Sun C++ 4.2, 5.x and Centerline C++
14709 lt_prog_compiler_pic_CXX='-KPIC'
14710 lt_prog_compiler_static_CXX='-Bstatic'
14711 lt_prog_compiler_wl_CXX='-Qoption ld '
14714 # Green Hills C++ Compiler
14715 lt_prog_compiler_pic_CXX='-PIC'
14722 case $cc_basename in
14725 lt_prog_compiler_pic_CXX='-pic'
14726 lt_prog_compiler_static_CXX='-Bstatic'
14730 lt_prog_compiler_pic_CXX='-pic'
14736 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14737 case $cc_basename in
14739 lt_prog_compiler_wl_CXX='-Wl,'
14740 lt_prog_compiler_pic_CXX='-KPIC'
14741 lt_prog_compiler_static_CXX='-Bstatic'
14746 case $cc_basename in
14748 # NonStop-UX NCC 3.20
14749 lt_prog_compiler_pic_CXX='-KPIC'
14758 lt_prog_compiler_can_build_shared_CXX=no
14764 # For platforms which do not support PIC, -DPIC is meaningless:
14766 lt_prog_compiler_pic_CXX=
14769 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14773 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14778 # Check to make sure the PIC flag actually works.
14780 if test -n "$lt_prog_compiler_pic_CXX"; then
14781 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14782 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14783 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14784 echo $ECHO_N "(cached) $ECHO_C" >&6
14786 lt_cv_prog_compiler_pic_works_CXX=no
14787 ac_outfile=conftest.$ac_objext
14788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14789 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14790 # Insert the option either (1) after the last *FLAGS variable, or
14791 # (2) before a word containing "conftest.", or (3) at the end.
14792 # Note that $ac_compile itself does not contain backslashes and begins
14793 # with a dollar sign (not a hyphen), so the echo should work correctly.
14794 # The option is referenced via a variable to avoid confusing sed.
14795 lt_compile=`echo "$ac_compile" | $SED \
14796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14798 -e 's:$: $lt_compiler_flag:'`
14799 (eval echo "\"\$as_me:14799: $lt_compile\"" >&5)
14800 (eval "$lt_compile" 2>conftest.err)
14802 cat conftest.err >&5
14803 echo "$as_me:14803: \$? = $ac_status" >&5
14804 if (exit $ac_status) && test -s "$ac_outfile"; then
14805 # The compiler can only warn and ignore the option if not recognized
14806 # So say no if there are warnings other than the usual output.
14807 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14810 lt_cv_prog_compiler_pic_works_CXX=yes
14816 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14817 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14819 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14820 case $lt_prog_compiler_pic_CXX in
14822 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14825 lt_prog_compiler_pic_CXX=
14826 lt_prog_compiler_can_build_shared_CXX=no
14834 # Check to make sure the static flag actually works.
14836 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14837 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14838 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14839 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 lt_cv_prog_compiler_static_works_CXX=no
14843 save_LDFLAGS="$LDFLAGS"
14844 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14845 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14846 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14847 # The linker can only warn and ignore the option if not recognized
14848 # So say no if there are warnings
14849 if test -s conftest.err; then
14850 # Append any errors to the config.log.
14851 cat conftest.err 1>&5
14852 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14854 if diff conftest.exp conftest.er2 >/dev/null; then
14855 lt_cv_prog_compiler_static_works_CXX=yes
14858 lt_cv_prog_compiler_static_works_CXX=yes
14862 LDFLAGS="$save_LDFLAGS"
14865 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14866 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14868 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14871 lt_prog_compiler_static_CXX=
14877 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14878 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14879 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 lt_cv_prog_compiler_c_o_CXX=no
14883 $RM -r conftest 2>/dev/null
14887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14889 lt_compiler_flag="-o out/conftest2.$ac_objext"
14890 # Insert the option either (1) after the last *FLAGS variable, or
14891 # (2) before a word containing "conftest.", or (3) at the end.
14892 # Note that $ac_compile itself does not contain backslashes and begins
14893 # with a dollar sign (not a hyphen), so the echo should work correctly.
14894 lt_compile=`echo "$ac_compile" | $SED \
14895 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14896 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14897 -e 's:$: $lt_compiler_flag:'`
14898 (eval echo "\"\$as_me:14898: $lt_compile\"" >&5)
14899 (eval "$lt_compile" 2>out/conftest.err)
14901 cat out/conftest.err >&5
14902 echo "$as_me:14902: \$? = $ac_status" >&5
14903 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14905 # The compiler can only warn and ignore the option if not recognized
14906 # So say no if there are warnings
14907 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14908 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14909 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14910 lt_cv_prog_compiler_c_o_CXX=yes
14915 # SGI C++ compiler will create directory out/ii_files/ for
14916 # template instantiation
14917 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14918 $RM out/* && rmdir out
14924 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14925 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14929 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14930 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14931 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14934 lt_cv_prog_compiler_c_o_CXX=no
14935 $RM -r conftest 2>/dev/null
14939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14941 lt_compiler_flag="-o out/conftest2.$ac_objext"
14942 # Insert the option either (1) after the last *FLAGS variable, or
14943 # (2) before a word containing "conftest.", or (3) at the end.
14944 # Note that $ac_compile itself does not contain backslashes and begins
14945 # with a dollar sign (not a hyphen), so the echo should work correctly.
14946 lt_compile=`echo "$ac_compile" | $SED \
14947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14949 -e 's:$: $lt_compiler_flag:'`
14950 (eval echo "\"\$as_me:14950: $lt_compile\"" >&5)
14951 (eval "$lt_compile" 2>out/conftest.err)
14953 cat out/conftest.err >&5
14954 echo "$as_me:14954: \$? = $ac_status" >&5
14955 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14957 # The compiler can only warn and ignore the option if not recognized
14958 # So say no if there are warnings
14959 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14960 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14961 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14962 lt_cv_prog_compiler_c_o_CXX=yes
14967 # SGI C++ compiler will create directory out/ii_files/ for
14968 # template instantiation
14969 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14970 $RM out/* && rmdir out
14976 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14977 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14982 hard_links="nottested"
14983 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14984 # do not overwrite the value of need_locks provided by the user
14985 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14986 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14989 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14991 ln conftest.a conftest.b 2>&5 || hard_links=no
14992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14993 { echo "$as_me:$LINENO: result: $hard_links" >&5
14994 echo "${ECHO_T}$hard_links" >&6; }
14995 if test "$hard_links" = no; then
14996 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14997 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15006 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15007 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15012 # If we're using GNU nm, then we don't want the "-C" option.
15013 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15014 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15015 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15017 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15021 export_symbols_cmds_CXX="$ltdll_cmds"
15023 cygwin* | mingw* | cegcc*)
15024 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15027 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15030 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15032 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15033 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15034 test "$ld_shlibs_CXX" = no && can_build_shared=no
15036 with_gnu_ld_CXX=$with_gnu_ld
15044 # Do we need to explicitly link libc?
15046 case "x$archive_cmds_need_lc_CXX" in
15048 # Assume -lc should be added
15049 archive_cmds_need_lc_CXX=yes
15051 if test "$enable_shared" = yes && test "$GCC" = yes; then
15052 case $archive_cmds_CXX in
15054 # FIXME: we may have to deal with multi-command sequences.
15057 # Test whether the compiler implicitly links with -lc since on some
15058 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15059 # to ld, don't add -lc before -lgcc.
15060 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15061 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15066 (eval $ac_compile) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); } 2>conftest.err; then
15072 libobjs=conftest.$ac_objext
15074 wl=$lt_prog_compiler_wl_CXX
15075 pic_flag=$lt_prog_compiler_pic_CXX
15081 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15082 allow_undefined_flag_CXX=
15083 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15084 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); }
15089 archive_cmds_need_lc_CXX=no
15091 archive_cmds_need_lc_CXX=yes
15093 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15095 cat conftest.err 1>&5
15098 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15099 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15169 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15170 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15172 library_names_spec=
15173 libname_spec='lib$name'
15177 postuninstall_cmds=
15181 shlibpath_overrides_runpath=unknown
15183 dynamic_linker="$host_os ld.so"
15184 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15185 need_lib_prefix=unknown
15186 hardcode_into_libs=no
15188 # when you set need_version to no, make sure it does not cause -set_version
15189 # flags to be left without arguments
15190 need_version=unknown
15195 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15196 shlibpath_var=LIBPATH
15198 # AIX 3 has no versioning support, so we append a major version to the name.
15199 soname_spec='${libname}${release}${shared_ext}$major'
15206 hardcode_into_libs=yes
15207 if test "$host_cpu" = ia64; then
15208 # AIX 5 supports IA64
15209 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15210 shlibpath_var=LD_LIBRARY_PATH
15212 # With GCC up to 2.95.x, collect2 would create an import file
15213 # for dependence libraries. The import file would start with
15214 # the line `#! .'. This would cause the generated library to
15215 # depend on `.', always an invalid library. This was fixed in
15216 # development snapshots of GCC prior to 3.0.
15218 aix4 | aix4.[01] | aix4.[01].*)
15219 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15221 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15224 can_build_shared=no
15228 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15229 # soname into executable. Probably we can add versioning support to
15230 # collect2, so additional links can be useful in future.
15231 if test "$aix_use_runtimelinking" = yes; then
15232 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15233 # instead of lib<name>.a to let people know that these are not
15234 # typical AIX shared libraries.
15235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 # We preserve .a as extension for shared libraries through AIX4.2
15238 # and later when we are not doing run time linking.
15239 library_names_spec='${libname}${release}.a $libname.a'
15240 soname_spec='${libname}${release}${shared_ext}$major'
15242 shlibpath_var=LIBPATH
15249 # Since July 2007 AmigaOS4 officially supports .so libraries.
15250 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254 library_names_spec='$libname.ixlibrary $libname.a'
15255 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15256 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15262 library_names_spec='${libname}${shared_ext}'
15263 dynamic_linker="$host_os ld.so"
15264 shlibpath_var=LIBRARY_PATH
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15273 shlibpath_var=LD_LIBRARY_PATH
15274 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15275 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15276 # the default ld.so.conf also contains /usr/contrib/lib and
15277 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15278 # libtool to hard-code these into programs
15281 cygwin* | mingw* | pw32* | cegcc*)
15282 version_type=windows
15287 case $GCC,$host_os in
15288 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15289 library_names_spec='$libname.dll.a'
15290 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15291 postinstall_cmds='base_file=`basename \${file}`~
15292 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15293 dldir=$destdir/`dirname \$dlpath`~
15294 test -d \$dldir || mkdir -p \$dldir~
15295 $install_prog $dir/$dlname \$dldir/$dlname~
15296 chmod a+x \$dldir/$dlname~
15297 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15298 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15300 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15301 dlpath=$dir/\$dldll~
15303 shlibpath_overrides_runpath=yes
15307 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15308 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15309 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15312 # MinGW DLLs use traditional 'lib' prefix
15313 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15314 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15315 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15316 # It is most probably a Windows format PATH printed by
15317 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15318 # path with ; separators, and with drive letters. We can handle the
15319 # drive letters (cygwin fileutils understands them), so leave them,
15320 # especially as we might pass files found there to a mingw objdump,
15321 # which wouldn't understand a cygwinified path. Ahh.
15322 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15324 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15328 # pw32 DLLs use 'pw' prefix rather than 'lib'
15329 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15335 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15338 dynamic_linker='Win32 ld.exe'
15339 # FIXME: first we should search . and the directory the executable is in
15343 darwin* | rhapsody*)
15344 dynamic_linker="$host_os dyld"
15345 version_type=darwin
15348 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15349 soname_spec='${libname}${release}${major}$shared_ext'
15350 shlibpath_overrides_runpath=yes
15351 shlibpath_var=DYLD_LIBRARY_PATH
15352 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15354 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 shlibpath_var=LD_LIBRARY_PATH
15370 freebsd* | dragonfly*)
15371 # DragonFly does not have aout. When/if they implement a new
15372 # versioning mechanism, adjust this.
15373 if test -x /usr/bin/objformat; then
15374 objformat=`/usr/bin/objformat`
15377 freebsd[123]*) objformat=aout ;;
15378 *) objformat=elf ;;
15381 version_type=freebsd-$objformat
15382 case $version_type in
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15393 shlibpath_var=LD_LIBRARY_PATH
15396 shlibpath_overrides_runpath=yes
15398 freebsd3.[01]* | freebsdelf3.[01]*)
15399 shlibpath_overrides_runpath=yes
15400 hardcode_into_libs=yes
15402 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15403 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15404 shlibpath_overrides_runpath=no
15405 hardcode_into_libs=yes
15407 *) # from 4.6 on, and DragonFly
15408 shlibpath_overrides_runpath=yes
15409 hardcode_into_libs=yes
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 hardcode_into_libs=yes
15424 hpux9* | hpux10* | hpux11*)
15425 # Give a soname corresponding to the major version so that dld.sl refuses to
15426 # link against other versions.
15433 hardcode_into_libs=yes
15434 dynamic_linker="$host_os dld.so"
15435 shlibpath_var=LD_LIBRARY_PATH
15436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 if test "X$HPUX_IA64_MODE" = X32; then
15440 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15442 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15444 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15448 hardcode_into_libs=yes
15449 dynamic_linker="$host_os dld.sl"
15450 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15451 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15453 soname_spec='${libname}${release}${shared_ext}$major'
15454 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15455 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15459 dynamic_linker="$host_os dld.sl"
15460 shlibpath_var=SHLIB_PATH
15461 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463 soname_spec='${libname}${release}${shared_ext}$major'
15466 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15467 postinstall_cmds='chmod 555 $lib'
15474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15475 soname_spec='${libname}${release}${shared_ext}$major'
15476 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15477 shlibpath_var=LD_LIBRARY_PATH
15478 shlibpath_overrides_runpath=no
15479 hardcode_into_libs=yes
15482 irix5* | irix6* | nonstopux*)
15484 nonstopux*) version_type=nonstopux ;;
15486 if test "$lt_cv_prog_gnu_ld" = yes; then
15494 soname_spec='${libname}${release}${shared_ext}$major'
15495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15497 irix5* | nonstopux*)
15498 libsuff= shlibsuff=
15501 case $LD in # libtool.m4 will add one of these switches to LD
15502 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15503 libsuff= shlibsuff= libmagic=32-bit;;
15504 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15505 libsuff=32 shlibsuff=N32 libmagic=N32;;
15506 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15507 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15508 *) libsuff= shlibsuff= libmagic=never-match;;
15512 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15513 shlibpath_overrides_runpath=no
15514 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15515 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15516 hardcode_into_libs=yes
15519 # No shared lib support for Linux oldld, aout, or coff.
15520 linux*oldld* | linux*aout* | linux*coff*)
15524 # This must be Linux ELF.
15525 linux* | k*bsd*-gnu)
15529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15530 soname_spec='${libname}${release}${shared_ext}$major'
15531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15532 shlibpath_var=LD_LIBRARY_PATH
15533 shlibpath_overrides_runpath=no
15534 # Some binutils ld are patched to set DT_RUNPATH
15535 save_LDFLAGS=$LDFLAGS
15536 save_libdir=$libdir
15537 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15538 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15539 cat >conftest.$ac_ext <<_ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15554 rm -f conftest.$ac_objext conftest$ac_exeext
15555 if { (ac_try="$ac_link"
15556 case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_link") 2>conftest.er1
15563 grep -v '^ *+' conftest.er1 >conftest.err
15565 cat conftest.err >&5
15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15567 (exit $ac_status); } && {
15568 test -z "$ac_cxx_werror_flag" ||
15569 test ! -s conftest.err
15570 } && test -s conftest$ac_exeext &&
15571 $as_test_x conftest$ac_exeext; then
15572 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15573 shlibpath_overrides_runpath=yes
15577 echo "$as_me: failed program was:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15584 conftest$ac_exeext conftest.$ac_ext
15585 LDFLAGS=$save_LDFLAGS
15586 libdir=$save_libdir
15588 # This implies no fast_install, which is unacceptable.
15589 # Some rework will be needed to allow for fast_install
15590 # before this can be enabled.
15591 hardcode_into_libs=yes
15593 # Append ld.so.conf contents to the search path
15594 if test -f /etc/ld.so.conf; then
15595 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15596 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15599 # We used to test for /lib/ld.so.1 and disable shared libraries on
15600 # powerpc, because MkLinux only supported shared libraries with the
15601 # GNU dynamic linker. Since this was broken with cross compilers,
15602 # most powerpc-linux boxes support dynamic linking these days and
15603 # people can always --disable-shared, the test was removed, and we
15604 # assume the GNU/Linux dynamic linker is in use.
15605 dynamic_linker='GNU/Linux ld.so'
15612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15615 dynamic_linker='NetBSD (a.out) ld.so'
15617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15618 soname_spec='${libname}${release}${shared_ext}$major'
15619 dynamic_linker='NetBSD ld.elf_so'
15621 shlibpath_var=LD_LIBRARY_PATH
15622 shlibpath_overrides_runpath=yes
15623 hardcode_into_libs=yes
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=yes
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638 soname_spec='${libname}${release}${shared_ext}$major'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 shlibpath_overrides_runpath=no
15641 hardcode_into_libs=yes
15642 dynamic_linker='ldqnx.so'
15647 sys_lib_dlsearch_path_spec="/usr/lib"
15649 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15651 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15652 *) need_version=no ;;
15654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15656 shlibpath_var=LD_LIBRARY_PATH
15657 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15659 openbsd2.[89] | openbsd2.[89].*)
15660 shlibpath_overrides_runpath=no
15663 shlibpath_overrides_runpath=yes
15667 shlibpath_overrides_runpath=yes
15672 libname_spec='$name'
15675 library_names_spec='$libname${shared_ext} $libname.a'
15676 dynamic_linker='OS/2 ld.exe'
15677 shlibpath_var=LIBPATH
15680 osf3* | osf4* | osf5*)
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 shlibpath_var=LD_LIBRARY_PATH
15702 shlibpath_overrides_runpath=yes
15703 hardcode_into_libs=yes
15704 # ldd complains unless libraries are executable
15705 postinstall_cmds='chmod +x $lib'
15710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15711 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15712 shlibpath_var=LD_LIBRARY_PATH
15713 shlibpath_overrides_runpath=yes
15714 if test "$with_gnu_ld" = yes; then
15722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15723 soname_spec='${libname}${release}${shared_ext}$major'
15724 shlibpath_var=LD_LIBRARY_PATH
15725 case $host_vendor in
15727 shlibpath_overrides_runpath=no
15729 runpath_var=LD_RUN_PATH
15737 shlibpath_overrides_runpath=no
15738 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15744 if test -d /usr/nec ;then
15746 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15747 soname_spec='$libname${shared_ext}.$major'
15748 shlibpath_var=LD_LIBRARY_PATH
15752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15753 version_type=freebsd-elf
15756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15757 soname_spec='${libname}${release}${shared_ext}$major'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 shlibpath_overrides_runpath=yes
15760 hardcode_into_libs=yes
15761 if test "$with_gnu_ld" = yes; then
15762 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15764 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15767 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15771 sys_lib_dlsearch_path_spec='/usr/lib'
15775 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15780 shlibpath_var=LD_LIBRARY_PATH
15781 shlibpath_overrides_runpath=no
15782 hardcode_into_libs=yes
15787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15788 soname_spec='${libname}${release}${shared_ext}$major'
15789 shlibpath_var=LD_LIBRARY_PATH
15796 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15797 echo "${ECHO_T}$dynamic_linker" >&6; }
15798 test "$dynamic_linker" = no && can_build_shared=no
15800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15801 if test "$GCC" = yes; then
15802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15805 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15806 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15808 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15809 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15847 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15848 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15849 hardcode_action_CXX=
15850 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15851 test -n "$runpath_var_CXX" ||
15852 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15854 # We can hardcode non-existent directories.
15855 if test "$hardcode_direct_CXX" != no &&
15856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15857 # have to relink, otherwise we might link with an installed library
15858 # when we should be linking with a yet-to-be-installed one
15859 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15860 test "$hardcode_minus_L_CXX" != no; then
15861 # Linking always hardcodes the temporary library directory.
15862 hardcode_action_CXX=relink
15864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15865 hardcode_action_CXX=immediate
15868 # We cannot hardcode anything, or else we can only hardcode existing
15870 hardcode_action_CXX=unsupported
15872 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15873 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15875 if test "$hardcode_action_CXX" = relink ||
15876 test "$inherit_rpath_CXX" = yes; then
15877 # Fast installation is not supported
15878 enable_fast_install=no
15879 elif test "$shlibpath_overrides_runpath" = yes ||
15880 test "$enable_shared" = no; then
15881 # Fast installation is not necessary
15882 enable_fast_install=needless
15891 fi # test -n "$compiler"
15897 with_gnu_ld=$lt_save_with_gnu_ld
15898 lt_cv_path_LDCXX=$lt_cv_path_LD
15899 lt_cv_path_LD=$lt_save_path_LD
15900 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15901 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15902 fi # test "$_lt_caught_CXX_error" != yes
15905 ac_cpp='$CPP $CPPFLAGS'
15906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15922 ac_config_commands="$ac_config_commands libtool"
15927 # Only expand once:
15932 if test x$use_libtool != xno; then
15933 DEFAULT_OBJECT_TYPE=".lo"
15934 DEFAULT_ARCHIVE_TYPE=".la"
15935 DEFAULT_SHARED_OBJECT_TYPE=".la"
15936 LIBTOOL="\$(LIBTOOL)"
15937 LIBTOOL_INSTALL_TARGET="libtool-install"
15938 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15939 LIBTOOL_CLEAN_TARGET="libtool-clean"
15940 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15942 DEFAULT_OBJECT_TYPE=".o"
15943 DEFAULT_ARCHIVE_TYPE=".a"
15944 DEFAULT_SHARED_OBJECT_TYPE=".so"
15945 LIBTOOL="# \$(LIBTOOL)"
15946 LIBTOOL_INSTALL_TARGET=""
15947 LIBTOOL_UNINSTALL_TARGET=""
15948 LIBTOOL_CLEAN_TARGET=""
15949 QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15961 # Check whether --enable-includes was given.
15962 if test "${enable_includes+set}" = set; then
15963 enableval=$enable_includes;
15964 if test x$enableval = xyes; then
15965 install_includes=yes
15973 if test x$use_libtool != xno -a x$install_includes = xyes; then
15974 INCLUDE_INSTALL_TARGET="install-includes"
15975 INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15977 INCLUDE_INSTALL_TARGET=""
15978 INCLUDE_UNINSTALL_TARGET=""
15984 { echo "$as_me:$LINENO: checking host system type" >&5
15985 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
15986 if test "${ac_cv_host+set}" = set; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15989 if test "x$host_alias" = x; then
15990 ac_cv_host=$ac_cv_build
15992 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
15993 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
15994 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
15995 { (exit 1); exit 1; }; }
15999 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
16000 echo "${ECHO_T}$ac_cv_host" >&6; }
16001 case $ac_cv_host in
16003 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
16004 echo "$as_me: error: invalid value of canonical host" >&2;}
16005 { (exit 1); exit 1; }; };;
16008 ac_save_IFS=$IFS; IFS='-'
16014 # Remember, the first character of IFS is used to create $*,
16015 # except with old shells:
16018 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
16022 *cygwin* ) CYGWIN=yes;;
16026 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16032 HAVE_SUN_OS_FALSE='#'
16034 HAVE_SUN_OS_TRUE='#'
16037 cat >>confdefs.h <<\_ACEOF
16038 #define HAVE_SUN_OS 1
16046 HAVE_SUN_OS_FALSE='#'
16048 HAVE_SUN_OS_TRUE='#'
16053 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16059 HAVE_OSF1_OS_FALSE='#'
16061 HAVE_OSF1_OS_TRUE='#'
16062 HAVE_OSF1_OS_FALSE=
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_OSF1_OS 1
16073 HAVE_OSF1_OS_FALSE='#'
16075 HAVE_OSF1_OS_TRUE='#'
16076 HAVE_OSF1_OS_FALSE=
16080 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16086 HAVE_AIX_OS_FALSE='#'
16088 HAVE_AIX_OS_TRUE='#'
16091 cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_AIX_OS 1
16100 HAVE_AIX_OS_FALSE='#'
16102 HAVE_AIX_OS_TRUE='#'
16107 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16113 HAVE_HPUX_OS_FALSE='#'
16115 HAVE_HPUX_OS_TRUE='#'
16116 HAVE_HPUX_OS_FALSE=
16118 cat >>confdefs.h <<\_ACEOF
16119 #define HAVE_HPUX_OS 1
16127 HAVE_HPUX_OS_FALSE='#'
16129 HAVE_HPUX_OS_TRUE='#'
16130 HAVE_HPUX_OS_FALSE=
16134 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16139 HAVE_LINUX_OS_TRUE=
16140 HAVE_LINUX_OS_FALSE='#'
16142 HAVE_LINUX_OS_TRUE='#'
16143 HAVE_LINUX_OS_FALSE=
16145 cat >>confdefs.h <<\_ACEOF
16146 #define HAVE_LINUX_OS 1
16153 HAVE_LINUX_OS_TRUE=
16154 HAVE_LINUX_OS_FALSE='#'
16156 HAVE_LINUX_OS_TRUE='#'
16157 HAVE_LINUX_OS_FALSE=
16161 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16166 HAVE_FREEBSD_OS_TRUE=
16167 HAVE_FREEBSD_OS_FALSE='#'
16169 HAVE_FREEBSD_OS_TRUE='#'
16170 HAVE_FREEBSD_OS_FALSE=
16172 cat >>confdefs.h <<\_ACEOF
16173 #define HAVE_FREEBSD_OS 1
16180 HAVE_FREEBSD_OS_TRUE=
16181 HAVE_FREEBSD_OS_FALSE='#'
16183 HAVE_FREEBSD_OS_TRUE='#'
16184 HAVE_FREEBSD_OS_FALSE=
16188 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16193 HAVE_NETBSD_OS_TRUE=
16194 HAVE_NETBSD_OS_FALSE='#'
16196 HAVE_NETBSD_OS_TRUE='#'
16197 HAVE_NETBSD_OS_FALSE=
16199 cat >>confdefs.h <<\_ACEOF
16200 #define HAVE_NETBSD_OS 1
16207 HAVE_NETBSD_OS_TRUE=
16208 HAVE_NETBSD_OS_FALSE='#'
16210 HAVE_NETBSD_OS_TRUE='#'
16211 HAVE_NETBSD_OS_FALSE=
16215 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16220 HAVE_OPENBSD_OS_TRUE=
16221 HAVE_OPENBSD_OS_FALSE='#'
16223 HAVE_OPENBSD_OS_TRUE='#'
16224 HAVE_OPENBSD_OS_FALSE=
16226 cat >>confdefs.h <<\_ACEOF
16227 #define HAVE_OPENBSD_OS 1
16234 HAVE_OPENBSD_OS_TRUE=
16235 HAVE_OPENBSD_OS_FALSE='#'
16237 HAVE_OPENBSD_OS_TRUE='#'
16238 HAVE_OPENBSD_OS_FALSE=
16242 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16248 HAVE_BSDI_OS_FALSE='#'
16250 HAVE_BSDI_OS_TRUE='#'
16251 HAVE_BSDI_OS_FALSE=
16253 cat >>confdefs.h <<\_ACEOF
16254 #define HAVE_BSDI_OS 1
16262 HAVE_BSDI_OS_FALSE='#'
16264 HAVE_BSDI_OS_TRUE='#'
16265 HAVE_BSDI_OS_FALSE=
16269 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16275 HAVE_SGI_OS_FALSE='#'
16277 HAVE_SGI_OS_TRUE='#'
16280 cat >>confdefs.h <<\_ACEOF
16281 #define HAVE_SGI_OS 1
16289 HAVE_SGI_OS_FALSE='#'
16291 HAVE_SGI_OS_TRUE='#'
16296 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16302 HAVE_IRIX_OS_FALSE='#'
16304 HAVE_IRIX_OS_TRUE='#'
16305 HAVE_IRIX_OS_FALSE=
16307 cat >>confdefs.h <<\_ACEOF
16308 #define HAVE_IRIX_OS 1
16316 HAVE_IRIX_OS_FALSE='#'
16318 HAVE_IRIX_OS_TRUE='#'
16319 HAVE_IRIX_OS_FALSE=
16323 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16328 HAVE_DARWIN_OS_TRUE=
16329 HAVE_DARWIN_OS_FALSE='#'
16331 HAVE_DARWIN_OS_TRUE='#'
16332 HAVE_DARWIN_OS_FALSE=
16334 cat >>confdefs.h <<\_ACEOF
16335 #define HAVE_DARWIN_OS 1
16342 HAVE_DARWIN_OS_TRUE=
16343 HAVE_DARWIN_OS_FALSE='#'
16345 HAVE_DARWIN_OS_TRUE='#'
16346 HAVE_DARWIN_OS_FALSE=
16351 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
16352 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
16353 if test "x$DISTNAME" != "x"
16355 echo "distname set to $DISTNAME"
16356 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16359 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16362 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16365 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16368 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16371 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16374 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16377 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16380 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16383 elif test -f /etc/SuSE-release
16386 elif test -d /etc/SuSEconfig
16389 elif test -f /etc/mandrake-release
16392 elif test -f /etc/whitebox-release
16395 elif test -f /etc/redhat-release
16398 elif test -f /etc/gentoo-release
16401 elif test -f /etc/debian_version
16404 elif test -f /etc/slackware-version
16407 elif test x$host_vendor = xapple
16410 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16413 elif test -f /etc/engarde-version
16416 elif test "$CYGWIN" = yes
16419 cat >>confdefs.h <<\_ACEOF
16420 #define HAVE_CYGWIN 1
16426 { echo "$as_me:$LINENO: result: done" >&5
16427 echo "${ECHO_T}done" >&6; }
16430 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16431 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
16432 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16433 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
16434 echo $ECHO_N "(cached) $ECHO_C" >&6
16436 cat >conftest.make <<\_ACEOF
16439 @echo '@@@%%%=$(MAKE)=@@@%%%'
16441 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16442 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16443 *@@@%%%=?*=@@@%%%*)
16444 eval ac_cv_prog_make_${ac_make}_set=yes;;
16446 eval ac_cv_prog_make_${ac_make}_set=no;;
16448 rm -f conftest.make
16450 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16451 { echo "$as_me:$LINENO: result: yes" >&5
16452 echo "${ECHO_T}yes" >&6; }
16455 { echo "$as_me:$LINENO: result: no" >&5
16456 echo "${ECHO_T}no" >&6; }
16457 SET_MAKE="MAKE=${MAKE-make}"
16463 if test -n "$ac_aux_dir"; then
16464 case "$ac_aux_dir" in
16465 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16466 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16469 if test -z "$MKINSTALLDIRS"; then
16470 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16475 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
16476 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
16477 # Check whether --enable-nls was given.
16478 if test "${enable_nls+set}" = set; then
16479 enableval=$enable_nls; USE_NLS=$enableval
16484 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
16485 echo "${ECHO_T}$USE_NLS" >&6; }
16492 # Prepare PATH_SEPARATOR.
16493 # The user is always right.
16494 if test "${PATH_SEPARATOR+set}" != set; then
16495 echo "#! /bin/sh" >conf$$.sh
16496 echo "exit 0" >>conf$$.sh
16498 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16506 # Find out how to test for executable files. Don't use a zero-byte file,
16507 # as systems may use methods other than mode bits to determine executability.
16508 cat >conf$$.file <<_ASEOF
16512 chmod +x conf$$.file
16513 if test -x conf$$.file >/dev/null 2>&1; then
16514 ac_executable_p="test -x"
16516 ac_executable_p="test -f"
16520 # Extract the first word of "msgfmt", so it can be a program name with args.
16521 set dummy msgfmt; ac_word=$2
16522 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16524 if test "${ac_cv_path_MSGFMT+set}" = set; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16529 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16532 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16533 for ac_dir in $PATH; do
16535 test -z "$ac_dir" && ac_dir=.
16536 for ac_exec_ext in '' $ac_executable_extensions; do
16537 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16538 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16539 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16540 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16541 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16548 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16552 MSGFMT="$ac_cv_path_MSGFMT"
16553 if test "$MSGFMT" != ":"; then
16554 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
16555 echo "${ECHO_T}$MSGFMT" >&6; }
16557 { echo "$as_me:$LINENO: result: no" >&5
16558 echo "${ECHO_T}no" >&6; }
16561 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16562 set dummy gmsgfmt; ac_word=$2
16563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16565 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16570 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16577 test -z "$as_dir" && as_dir=.
16578 for ac_exec_ext in '' $ac_executable_extensions; do
16579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16580 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16588 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16592 GMSGFMT=$ac_cv_path_GMSGFMT
16593 if test -n "$GMSGFMT"; then
16594 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16595 echo "${ECHO_T}$GMSGFMT" >&6; }
16597 { echo "$as_me:$LINENO: result: no" >&5
16598 echo "${ECHO_T}no" >&6; }
16604 # Prepare PATH_SEPARATOR.
16605 # The user is always right.
16606 if test "${PATH_SEPARATOR+set}" != set; then
16607 echo "#! /bin/sh" >conf$$.sh
16608 echo "exit 0" >>conf$$.sh
16610 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16618 # Find out how to test for executable files. Don't use a zero-byte file,
16619 # as systems may use methods other than mode bits to determine executability.
16620 cat >conf$$.file <<_ASEOF
16624 chmod +x conf$$.file
16625 if test -x conf$$.file >/dev/null 2>&1; then
16626 ac_executable_p="test -x"
16628 ac_executable_p="test -f"
16632 # Extract the first word of "xgettext", so it can be a program name with args.
16633 set dummy xgettext; ac_word=$2
16634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16636 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 case "$XGETTEXT" in
16641 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16644 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16645 for ac_dir in $PATH; do
16647 test -z "$ac_dir" && ac_dir=.
16648 for ac_exec_ext in '' $ac_executable_extensions; do
16649 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16650 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16651 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16652 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16653 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16660 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16664 XGETTEXT="$ac_cv_path_XGETTEXT"
16665 if test "$XGETTEXT" != ":"; then
16666 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16667 echo "${ECHO_T}$XGETTEXT" >&6; }
16669 { echo "$as_me:$LINENO: result: no" >&5
16670 echo "${ECHO_T}no" >&6; }
16676 # Prepare PATH_SEPARATOR.
16677 # The user is always right.
16678 if test "${PATH_SEPARATOR+set}" != set; then
16679 echo "#! /bin/sh" >conf$$.sh
16680 echo "exit 0" >>conf$$.sh
16682 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16690 # Find out how to test for executable files. Don't use a zero-byte file,
16691 # as systems may use methods other than mode bits to determine executability.
16692 cat >conf$$.file <<_ASEOF
16696 chmod +x conf$$.file
16697 if test -x conf$$.file >/dev/null 2>&1; then
16698 ac_executable_p="test -x"
16700 ac_executable_p="test -f"
16704 # Extract the first word of "msgmerge", so it can be a program name with args.
16705 set dummy msgmerge; ac_word=$2
16706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16708 if test "${ac_cv_path_MSGMERGE+set}" = set; then
16709 echo $ECHO_N "(cached) $ECHO_C" >&6
16711 case "$MSGMERGE" in
16713 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16716 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16717 for ac_dir in $PATH; do
16719 test -z "$ac_dir" && ac_dir=.
16720 for ac_exec_ext in '' $ac_executable_extensions; do
16721 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16722 echo "$as_me: trying $ac_dir/$ac_word..." >&5
16723 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16724 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16731 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16735 MSGMERGE="$ac_cv_path_MSGMERGE"
16736 if test "$MSGMERGE" != ":"; then
16737 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
16738 echo "${ECHO_T}$MSGMERGE" >&6; }
16740 { echo "$as_me:$LINENO: result: no" >&5
16741 echo "${ECHO_T}no" >&6; }
16745 if test "$GMSGFMT" != ":"; then
16746 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16747 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16750 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16751 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16752 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16757 if test "$XGETTEXT" != ":"; then
16758 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16759 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16762 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16763 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
16769 ac_config_commands="$ac_config_commands default-1"
16773 if test "X$prefix" = "XNONE"; then
16774 acl_final_prefix="$ac_default_prefix"
16776 acl_final_prefix="$prefix"
16778 if test "X$exec_prefix" = "XNONE"; then
16779 acl_final_exec_prefix='${prefix}'
16781 acl_final_exec_prefix="$exec_prefix"
16783 acl_save_prefix="$prefix"
16784 prefix="$acl_final_prefix"
16785 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16786 prefix="$acl_save_prefix"
16789 # Check whether --with-gnu-ld was given.
16790 if test "${with_gnu_ld+set}" = set; then
16791 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16796 # Prepare PATH_SEPARATOR.
16797 # The user is always right.
16798 if test "${PATH_SEPARATOR+set}" != set; then
16799 echo "#! /bin/sh" >conf$$.sh
16800 echo "exit 0" >>conf$$.sh
16802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16810 if test "$GCC" = yes; then
16811 # Check if gcc -print-prog-name=ld gives a path.
16812 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
16813 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
16816 # gcc leaves a trailing carriage return which upsets mingw
16817 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16819 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16822 # Accept absolute paths.
16823 [\\/]* | [A-Za-z]:[\\/]*)
16824 re_direlt='/[^/][^/]*/\.\./'
16825 # Canonicalize the path of ld
16826 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16827 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16828 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16830 test -z "$LD" && LD="$ac_prog"
16833 # If it fails, then pretend we aren't using GCC.
16837 # If it is relative, then search for the first ld in PATH.
16838 with_gnu_ld=unknown
16841 elif test "$with_gnu_ld" = yes; then
16842 { echo "$as_me:$LINENO: checking for GNU ld" >&5
16843 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
16845 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16846 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
16848 if test "${acl_cv_path_LD+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16851 if test -z "$LD"; then
16852 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16853 for ac_dir in $PATH; do
16854 test -z "$ac_dir" && ac_dir=.
16855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16856 acl_cv_path_LD="$ac_dir/$ac_prog"
16857 # Check to see if the program is GNU ld. I'd rather use --version,
16858 # but apparently some GNU ld's only accept -v.
16859 # Break only if it was the GNU/non-GNU ld that we prefer.
16860 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16861 *GNU* | *'with BFD'*)
16862 test "$with_gnu_ld" != no && break ;;
16864 test "$with_gnu_ld" != yes && break ;;
16870 acl_cv_path_LD="$LD" # Let the user override the test with a path.
16874 LD="$acl_cv_path_LD"
16875 if test -n "$LD"; then
16876 { echo "$as_me:$LINENO: result: $LD" >&5
16877 echo "${ECHO_T}$LD" >&6; }
16879 { echo "$as_me:$LINENO: result: no" >&5
16880 echo "${ECHO_T}no" >&6; }
16882 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16883 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16884 { (exit 1); exit 1; }; }
16885 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16886 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
16887 if test "${acl_cv_prog_gnu_ld+set}" = set; then
16888 echo $ECHO_N "(cached) $ECHO_C" >&6
16890 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16891 case `$LD -v 2>&1 </dev/null` in
16892 *GNU* | *'with BFD'*)
16893 acl_cv_prog_gnu_ld=yes ;;
16895 acl_cv_prog_gnu_ld=no ;;
16898 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
16899 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
16900 with_gnu_ld=$acl_cv_prog_gnu_ld
16905 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
16906 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
16907 if test "${acl_cv_rpath+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16911 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16912 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16914 rm -f ./conftest.sh
16918 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
16919 echo "${ECHO_T}$acl_cv_rpath" >&6; }
16921 libext="$acl_cv_libext"
16922 shlibext="$acl_cv_shlibext"
16923 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16924 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16925 hardcode_direct="$acl_cv_hardcode_direct"
16926 hardcode_minus_L="$acl_cv_hardcode_minus_L"
16927 # Check whether --enable-rpath was given.
16928 if test "${enable_rpath+set}" = set; then
16929 enableval=$enable_rpath; :
16943 acl_save_prefix="$prefix"
16944 prefix="$acl_final_prefix"
16945 acl_save_exec_prefix="$exec_prefix"
16946 exec_prefix="$acl_final_exec_prefix"
16948 eval additional_includedir=\"$includedir\"
16949 eval additional_libdir=\"$libdir\"
16951 exec_prefix="$acl_save_exec_prefix"
16952 prefix="$acl_save_prefix"
16955 # Check whether --with-libiconv-prefix was given.
16956 if test "${with_libiconv_prefix+set}" = set; then
16957 withval=$with_libiconv_prefix;
16958 if test "X$withval" = "Xno"; then
16961 if test "X$withval" = "X"; then
16963 acl_save_prefix="$prefix"
16964 prefix="$acl_final_prefix"
16965 acl_save_exec_prefix="$exec_prefix"
16966 exec_prefix="$acl_final_exec_prefix"
16968 eval additional_includedir=\"$includedir\"
16969 eval additional_libdir=\"$libdir\"
16971 exec_prefix="$acl_save_exec_prefix"
16972 prefix="$acl_save_prefix"
16975 additional_includedir="$withval/include"
16976 additional_libdir="$withval/lib"
16987 names_already_handled=
16988 names_next_round='iconv '
16989 while test -n "$names_next_round"; do
16990 names_this_round="$names_next_round"
16992 for name in $names_this_round; do
16994 for n in $names_already_handled; do
16995 if test "$n" = "$name"; then
16996 already_handled=yes
17000 if test -z "$already_handled"; then
17001 names_already_handled="$names_already_handled $name"
17002 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17003 eval value=\"\$HAVE_LIB$uppername\"
17004 if test -n "$value"; then
17005 if test "$value" = yes; then
17006 eval value=\"\$LIB$uppername\"
17007 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17008 eval value=\"\$LTLIB$uppername\"
17009 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17018 if test $use_additional = yes; then
17019 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17020 found_dir="$additional_libdir"
17021 found_so="$additional_libdir/lib$name.$shlibext"
17022 if test -f "$additional_libdir/lib$name.la"; then
17023 found_la="$additional_libdir/lib$name.la"
17026 if test -f "$additional_libdir/lib$name.$libext"; then
17027 found_dir="$additional_libdir"
17028 found_a="$additional_libdir/lib$name.$libext"
17029 if test -f "$additional_libdir/lib$name.la"; then
17030 found_la="$additional_libdir/lib$name.la"
17035 if test "X$found_dir" = "X"; then
17036 for x in $LDFLAGS $LTLIBICONV; do
17038 acl_save_prefix="$prefix"
17039 prefix="$acl_final_prefix"
17040 acl_save_exec_prefix="$exec_prefix"
17041 exec_prefix="$acl_final_exec_prefix"
17043 exec_prefix="$acl_save_exec_prefix"
17044 prefix="$acl_save_prefix"
17048 dir=`echo "X$x" | sed -e 's/^X-L//'`
17049 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17051 found_so="$dir/lib$name.$shlibext"
17052 if test -f "$dir/lib$name.la"; then
17053 found_la="$dir/lib$name.la"
17056 if test -f "$dir/lib$name.$libext"; then
17058 found_a="$dir/lib$name.$libext"
17059 if test -f "$dir/lib$name.la"; then
17060 found_la="$dir/lib$name.la"
17066 if test "X$found_dir" != "X"; then
17071 if test "X$found_dir" != "X"; then
17072 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17073 if test "X$found_so" != "X"; then
17074 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17075 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17078 for x in $ltrpathdirs; do
17079 if test "X$x" = "X$found_dir"; then
17084 if test -z "$haveit"; then
17085 ltrpathdirs="$ltrpathdirs $found_dir"
17087 if test "$hardcode_direct" = yes; then
17088 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17090 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17091 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17093 for x in $rpathdirs; do
17094 if test "X$x" = "X$found_dir"; then
17099 if test -z "$haveit"; then
17100 rpathdirs="$rpathdirs $found_dir"
17104 for x in $LDFLAGS $LIBICONV; do
17106 acl_save_prefix="$prefix"
17107 prefix="$acl_final_prefix"
17108 acl_save_exec_prefix="$exec_prefix"
17109 exec_prefix="$acl_final_exec_prefix"
17111 exec_prefix="$acl_save_exec_prefix"
17112 prefix="$acl_save_prefix"
17114 if test "X$x" = "X-L$found_dir"; then
17119 if test -z "$haveit"; then
17120 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17122 if test "$hardcode_minus_L" != no; then
17123 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17125 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17131 if test "X$found_a" != "X"; then
17132 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17134 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17137 additional_includedir=
17138 case "$found_dir" in
17140 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17141 additional_includedir="$basedir/include"
17144 if test "X$additional_includedir" != "X"; then
17145 if test "X$additional_includedir" != "X/usr/include"; then
17147 if test "X$additional_includedir" = "X/usr/local/include"; then
17148 if test -n "$GCC"; then
17150 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17154 if test -z "$haveit"; then
17155 for x in $CPPFLAGS $INCICONV; do
17157 acl_save_prefix="$prefix"
17158 prefix="$acl_final_prefix"
17159 acl_save_exec_prefix="$exec_prefix"
17160 exec_prefix="$acl_final_exec_prefix"
17162 exec_prefix="$acl_save_exec_prefix"
17163 prefix="$acl_save_prefix"
17165 if test "X$x" = "X-I$additional_includedir"; then
17170 if test -z "$haveit"; then
17171 if test -d "$additional_includedir"; then
17172 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17178 if test -n "$found_la"; then
17179 save_libdir="$libdir"
17180 case "$found_la" in
17181 */* | *\\*) . "$found_la" ;;
17182 *) . "./$found_la" ;;
17184 libdir="$save_libdir"
17185 for dep in $dependency_libs; do
17188 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17189 if test "X$additional_libdir" != "X/usr/lib"; then
17191 if test "X$additional_libdir" = "X/usr/local/lib"; then
17192 if test -n "$GCC"; then
17194 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17198 if test -z "$haveit"; then
17200 for x in $LDFLAGS $LIBICONV; do
17202 acl_save_prefix="$prefix"
17203 prefix="$acl_final_prefix"
17204 acl_save_exec_prefix="$exec_prefix"
17205 exec_prefix="$acl_final_exec_prefix"
17207 exec_prefix="$acl_save_exec_prefix"
17208 prefix="$acl_save_prefix"
17210 if test "X$x" = "X-L$additional_libdir"; then
17215 if test -z "$haveit"; then
17216 if test -d "$additional_libdir"; then
17217 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17221 for x in $LDFLAGS $LTLIBICONV; do
17223 acl_save_prefix="$prefix"
17224 prefix="$acl_final_prefix"
17225 acl_save_exec_prefix="$exec_prefix"
17226 exec_prefix="$acl_final_exec_prefix"
17228 exec_prefix="$acl_save_exec_prefix"
17229 prefix="$acl_save_prefix"
17231 if test "X$x" = "X-L$additional_libdir"; then
17236 if test -z "$haveit"; then
17237 if test -d "$additional_libdir"; then
17238 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17245 dir=`echo "X$dep" | sed -e 's/^X-R//'`
17246 if test "$enable_rpath" != no; then
17248 for x in $rpathdirs; do
17249 if test "X$x" = "X$dir"; then
17254 if test -z "$haveit"; then
17255 rpathdirs="$rpathdirs $dir"
17258 for x in $ltrpathdirs; do
17259 if test "X$x" = "X$dir"; then
17264 if test -z "$haveit"; then
17265 ltrpathdirs="$ltrpathdirs $dir"
17270 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17276 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17277 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17283 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17284 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17290 if test "X$rpathdirs" != "X"; then
17291 if test -n "$hardcode_libdir_separator"; then
17293 for found_dir in $rpathdirs; do
17294 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17296 acl_save_libdir="$libdir"
17298 eval flag=\"$hardcode_libdir_flag_spec\"
17299 libdir="$acl_save_libdir"
17300 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17302 for found_dir in $rpathdirs; do
17303 acl_save_libdir="$libdir"
17304 libdir="$found_dir"
17305 eval flag=\"$hardcode_libdir_flag_spec\"
17306 libdir="$acl_save_libdir"
17307 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17311 if test "X$ltrpathdirs" != "X"; then
17312 for found_dir in $ltrpathdirs; do
17313 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17334 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
17335 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
17336 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 gt_save_CPPFLAGS="$CPPFLAGS"
17340 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17341 gt_save_LIBS="$LIBS"
17342 LIBS="$LIBS -framework CoreFoundation"
17343 cat >conftest.$ac_ext <<_ACEOF
17346 cat confdefs.h >>conftest.$ac_ext
17347 cat >>conftest.$ac_ext <<_ACEOF
17348 /* end confdefs.h. */
17349 #include <CFPreferences.h>
17353 CFPreferencesCopyAppValue(NULL, NULL)
17358 rm -f conftest.$ac_objext conftest$ac_exeext
17359 if { (ac_try="$ac_link"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_link") 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } && {
17372 test -z "$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17374 } && test -s conftest$ac_exeext &&
17375 $as_test_x conftest$ac_exeext; then
17376 gt_cv_func_CFPreferencesCopyAppValue=yes
17378 echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17381 gt_cv_func_CFPreferencesCopyAppValue=no
17384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17385 conftest$ac_exeext conftest.$ac_ext
17386 CPPFLAGS="$gt_save_CPPFLAGS"
17387 LIBS="$gt_save_LIBS"
17389 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17390 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17391 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17393 cat >>confdefs.h <<\_ACEOF
17394 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
17398 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
17399 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
17400 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
17401 echo $ECHO_N "(cached) $ECHO_C" >&6
17403 gt_save_CPPFLAGS="$CPPFLAGS"
17404 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17405 gt_save_LIBS="$LIBS"
17406 LIBS="$LIBS -framework CoreFoundation"
17407 cat >conftest.$ac_ext <<_ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 #include <CFLocale.h>
17417 CFLocaleCopyCurrent();
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17429 (eval "$ac_link") 2>conftest.er1
17431 grep -v '^ *+' conftest.er1 >conftest.err
17433 cat conftest.err >&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); } && {
17436 test -z "$ac_c_werror_flag" ||
17437 test ! -s conftest.err
17438 } && test -s conftest$ac_exeext &&
17439 $as_test_x conftest$ac_exeext; then
17440 gt_cv_func_CFLocaleCopyCurrent=yes
17442 echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17445 gt_cv_func_CFLocaleCopyCurrent=no
17448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17449 conftest$ac_exeext conftest.$ac_ext
17450 CPPFLAGS="$gt_save_CPPFLAGS"
17451 LIBS="$gt_save_LIBS"
17453 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17454 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17455 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17457 cat >>confdefs.h <<\_ACEOF
17458 #define HAVE_CFLOCALECOPYCURRENT 1
17463 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17464 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17470 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
17471 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
17472 # Check whether --enable-nls was given.
17473 if test "${enable_nls+set}" = set; then
17474 enableval=$enable_nls; USE_NLS=$enableval
17479 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
17480 echo "${ECHO_T}$USE_NLS" >&6; }
17489 if test "$USE_NLS" = "yes"; then
17490 gt_use_preinstalled_gnugettext=no
17497 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
17498 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
17499 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17502 cat >conftest.$ac_ext <<_ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h. */
17508 #include <libintl.h>
17509 extern int _nl_msg_cat_cntr;
17510 extern int *_nl_domain_bindings;
17514 bindtextdomain ("", "");
17515 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17520 rm -f conftest.$ac_objext conftest$ac_exeext
17521 if { (ac_try="$ac_link"
17522 case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_link") 2>conftest.er1
17529 grep -v '^ *+' conftest.er1 >conftest.err
17531 cat conftest.err >&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); } && {
17534 test -z "$ac_c_werror_flag" ||
17535 test ! -s conftest.err
17536 } && test -s conftest$ac_exeext &&
17537 $as_test_x conftest$ac_exeext; then
17538 gt_cv_func_gnugettext1_libc=yes
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 gt_cv_func_gnugettext1_libc=no
17546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17547 conftest$ac_exeext conftest.$ac_ext
17549 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
17550 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
17552 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17558 am_save_CPPFLAGS="$CPPFLAGS"
17560 for element in $INCICONV; do
17562 for x in $CPPFLAGS; do
17564 acl_save_prefix="$prefix"
17565 prefix="$acl_final_prefix"
17566 acl_save_exec_prefix="$exec_prefix"
17567 exec_prefix="$acl_final_exec_prefix"
17569 exec_prefix="$acl_save_exec_prefix"
17570 prefix="$acl_save_prefix"
17572 if test "X$x" = "X$element"; then
17577 if test -z "$haveit"; then
17578 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17583 { echo "$as_me:$LINENO: checking for iconv" >&5
17584 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
17585 if test "${am_cv_func_iconv+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17589 am_cv_func_iconv="no, consider installing GNU libiconv"
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17597 #include <stdlib.h>
17602 iconv_t cd = iconv_open("","");
17603 iconv(cd,NULL,NULL,NULL,NULL);
17609 rm -f conftest.$ac_objext conftest$ac_exeext
17610 if { (ac_try="$ac_link"
17611 case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_link") 2>conftest.er1
17618 grep -v '^ *+' conftest.er1 >conftest.err
17620 cat conftest.err >&5
17621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17622 (exit $ac_status); } && {
17623 test -z "$ac_c_werror_flag" ||
17624 test ! -s conftest.err
17625 } && test -s conftest$ac_exeext &&
17626 $as_test_x conftest$ac_exeext; then
17627 am_cv_func_iconv=yes
17629 echo "$as_me: failed program was:" >&5
17630 sed 's/^/| /' conftest.$ac_ext >&5
17635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17636 conftest$ac_exeext conftest.$ac_ext
17637 if test "$am_cv_func_iconv" != yes; then
17638 am_save_LIBS="$LIBS"
17639 LIBS="$LIBS $LIBICONV"
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <stdlib.h>
17651 iconv_t cd = iconv_open("","");
17652 iconv(cd,NULL,NULL,NULL,NULL);
17658 rm -f conftest.$ac_objext conftest$ac_exeext
17659 if { (ac_try="$ac_link"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_link") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); } && {
17672 test -z "$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17674 } && test -s conftest$ac_exeext &&
17675 $as_test_x conftest$ac_exeext; then
17676 am_cv_lib_iconv=yes
17677 am_cv_func_iconv=yes
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.$ac_ext >&5
17685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS="$am_save_LIBS"
17691 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
17692 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
17693 if test "$am_cv_func_iconv" = yes; then
17695 cat >>confdefs.h <<\_ACEOF
17696 #define HAVE_ICONV 1
17700 if test "$am_cv_lib_iconv" = yes; then
17701 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
17702 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
17703 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
17704 echo "${ECHO_T}$LIBICONV" >&6; }
17706 CPPFLAGS="$am_save_CPPFLAGS"
17718 acl_save_prefix="$prefix"
17719 prefix="$acl_final_prefix"
17720 acl_save_exec_prefix="$exec_prefix"
17721 exec_prefix="$acl_final_exec_prefix"
17723 eval additional_includedir=\"$includedir\"
17724 eval additional_libdir=\"$libdir\"
17726 exec_prefix="$acl_save_exec_prefix"
17727 prefix="$acl_save_prefix"
17730 # Check whether --with-libintl-prefix was given.
17731 if test "${with_libintl_prefix+set}" = set; then
17732 withval=$with_libintl_prefix;
17733 if test "X$withval" = "Xno"; then
17736 if test "X$withval" = "X"; then
17738 acl_save_prefix="$prefix"
17739 prefix="$acl_final_prefix"
17740 acl_save_exec_prefix="$exec_prefix"
17741 exec_prefix="$acl_final_exec_prefix"
17743 eval additional_includedir=\"$includedir\"
17744 eval additional_libdir=\"$libdir\"
17746 exec_prefix="$acl_save_exec_prefix"
17747 prefix="$acl_save_prefix"
17750 additional_includedir="$withval/include"
17751 additional_libdir="$withval/lib"
17762 names_already_handled=
17763 names_next_round='intl '
17764 while test -n "$names_next_round"; do
17765 names_this_round="$names_next_round"
17767 for name in $names_this_round; do
17769 for n in $names_already_handled; do
17770 if test "$n" = "$name"; then
17771 already_handled=yes
17775 if test -z "$already_handled"; then
17776 names_already_handled="$names_already_handled $name"
17777 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17778 eval value=\"\$HAVE_LIB$uppername\"
17779 if test -n "$value"; then
17780 if test "$value" = yes; then
17781 eval value=\"\$LIB$uppername\"
17782 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17783 eval value=\"\$LTLIB$uppername\"
17784 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17793 if test $use_additional = yes; then
17794 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17795 found_dir="$additional_libdir"
17796 found_so="$additional_libdir/lib$name.$shlibext"
17797 if test -f "$additional_libdir/lib$name.la"; then
17798 found_la="$additional_libdir/lib$name.la"
17801 if test -f "$additional_libdir/lib$name.$libext"; then
17802 found_dir="$additional_libdir"
17803 found_a="$additional_libdir/lib$name.$libext"
17804 if test -f "$additional_libdir/lib$name.la"; then
17805 found_la="$additional_libdir/lib$name.la"
17810 if test "X$found_dir" = "X"; then
17811 for x in $LDFLAGS $LTLIBINTL; do
17813 acl_save_prefix="$prefix"
17814 prefix="$acl_final_prefix"
17815 acl_save_exec_prefix="$exec_prefix"
17816 exec_prefix="$acl_final_exec_prefix"
17818 exec_prefix="$acl_save_exec_prefix"
17819 prefix="$acl_save_prefix"
17823 dir=`echo "X$x" | sed -e 's/^X-L//'`
17824 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17826 found_so="$dir/lib$name.$shlibext"
17827 if test -f "$dir/lib$name.la"; then
17828 found_la="$dir/lib$name.la"
17831 if test -f "$dir/lib$name.$libext"; then
17833 found_a="$dir/lib$name.$libext"
17834 if test -f "$dir/lib$name.la"; then
17835 found_la="$dir/lib$name.la"
17841 if test "X$found_dir" != "X"; then
17846 if test "X$found_dir" != "X"; then
17847 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17848 if test "X$found_so" != "X"; then
17849 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17850 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17853 for x in $ltrpathdirs; do
17854 if test "X$x" = "X$found_dir"; then
17859 if test -z "$haveit"; then
17860 ltrpathdirs="$ltrpathdirs $found_dir"
17862 if test "$hardcode_direct" = yes; then
17863 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17865 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17866 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17868 for x in $rpathdirs; do
17869 if test "X$x" = "X$found_dir"; then
17874 if test -z "$haveit"; then
17875 rpathdirs="$rpathdirs $found_dir"
17879 for x in $LDFLAGS $LIBINTL; do
17881 acl_save_prefix="$prefix"
17882 prefix="$acl_final_prefix"
17883 acl_save_exec_prefix="$exec_prefix"
17884 exec_prefix="$acl_final_exec_prefix"
17886 exec_prefix="$acl_save_exec_prefix"
17887 prefix="$acl_save_prefix"
17889 if test "X$x" = "X-L$found_dir"; then
17894 if test -z "$haveit"; then
17895 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17897 if test "$hardcode_minus_L" != no; then
17898 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17900 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17906 if test "X$found_a" != "X"; then
17907 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17909 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17912 additional_includedir=
17913 case "$found_dir" in
17915 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17916 additional_includedir="$basedir/include"
17919 if test "X$additional_includedir" != "X"; then
17920 if test "X$additional_includedir" != "X/usr/include"; then
17922 if test "X$additional_includedir" = "X/usr/local/include"; then
17923 if test -n "$GCC"; then
17925 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17929 if test -z "$haveit"; then
17930 for x in $CPPFLAGS $INCINTL; do
17932 acl_save_prefix="$prefix"
17933 prefix="$acl_final_prefix"
17934 acl_save_exec_prefix="$exec_prefix"
17935 exec_prefix="$acl_final_exec_prefix"
17937 exec_prefix="$acl_save_exec_prefix"
17938 prefix="$acl_save_prefix"
17940 if test "X$x" = "X-I$additional_includedir"; then
17945 if test -z "$haveit"; then
17946 if test -d "$additional_includedir"; then
17947 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17953 if test -n "$found_la"; then
17954 save_libdir="$libdir"
17955 case "$found_la" in
17956 */* | *\\*) . "$found_la" ;;
17957 *) . "./$found_la" ;;
17959 libdir="$save_libdir"
17960 for dep in $dependency_libs; do
17963 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17964 if test "X$additional_libdir" != "X/usr/lib"; then
17966 if test "X$additional_libdir" = "X/usr/local/lib"; then
17967 if test -n "$GCC"; then
17969 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17973 if test -z "$haveit"; then
17975 for x in $LDFLAGS $LIBINTL; do
17977 acl_save_prefix="$prefix"
17978 prefix="$acl_final_prefix"
17979 acl_save_exec_prefix="$exec_prefix"
17980 exec_prefix="$acl_final_exec_prefix"
17982 exec_prefix="$acl_save_exec_prefix"
17983 prefix="$acl_save_prefix"
17985 if test "X$x" = "X-L$additional_libdir"; then
17990 if test -z "$haveit"; then
17991 if test -d "$additional_libdir"; then
17992 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17996 for x in $LDFLAGS $LTLIBINTL; do
17998 acl_save_prefix="$prefix"
17999 prefix="$acl_final_prefix"
18000 acl_save_exec_prefix="$exec_prefix"
18001 exec_prefix="$acl_final_exec_prefix"
18003 exec_prefix="$acl_save_exec_prefix"
18004 prefix="$acl_save_prefix"
18006 if test "X$x" = "X-L$additional_libdir"; then
18011 if test -z "$haveit"; then
18012 if test -d "$additional_libdir"; then
18013 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18020 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18021 if test "$enable_rpath" != no; then
18023 for x in $rpathdirs; do
18024 if test "X$x" = "X$dir"; then
18029 if test -z "$haveit"; then
18030 rpathdirs="$rpathdirs $dir"
18033 for x in $ltrpathdirs; do
18034 if test "X$x" = "X$dir"; then
18039 if test -z "$haveit"; then
18040 ltrpathdirs="$ltrpathdirs $dir"
18045 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18048 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18051 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18052 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18058 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18059 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18065 if test "X$rpathdirs" != "X"; then
18066 if test -n "$hardcode_libdir_separator"; then
18068 for found_dir in $rpathdirs; do
18069 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18071 acl_save_libdir="$libdir"
18073 eval flag=\"$hardcode_libdir_flag_spec\"
18074 libdir="$acl_save_libdir"
18075 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18077 for found_dir in $rpathdirs; do
18078 acl_save_libdir="$libdir"
18079 libdir="$found_dir"
18080 eval flag=\"$hardcode_libdir_flag_spec\"
18081 libdir="$acl_save_libdir"
18082 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18086 if test "X$ltrpathdirs" != "X"; then
18087 for found_dir in $ltrpathdirs; do
18088 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18092 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
18093 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
18094 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
18095 echo $ECHO_N "(cached) $ECHO_C" >&6
18097 gt_save_CPPFLAGS="$CPPFLAGS"
18098 CPPFLAGS="$CPPFLAGS $INCINTL"
18099 gt_save_LIBS="$LIBS"
18100 LIBS="$LIBS $LIBINTL"
18101 cat >conftest.$ac_ext <<_ACEOF
18104 cat confdefs.h >>conftest.$ac_ext
18105 cat >>conftest.$ac_ext <<_ACEOF
18106 /* end confdefs.h. */
18107 #include <libintl.h>
18108 extern int _nl_msg_cat_cntr;
18113 const char *_nl_expand_alias (const char *);
18117 bindtextdomain ("", "");
18118 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18123 rm -f conftest.$ac_objext conftest$ac_exeext
18124 if { (ac_try="$ac_link"
18125 case "(($ac_try" in
18126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127 *) ac_try_echo=$ac_try;;
18129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18130 (eval "$ac_link") 2>conftest.er1
18132 grep -v '^ *+' conftest.er1 >conftest.err
18134 cat conftest.err >&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); } && {
18137 test -z "$ac_c_werror_flag" ||
18138 test ! -s conftest.err
18139 } && test -s conftest$ac_exeext &&
18140 $as_test_x conftest$ac_exeext; then
18141 gt_cv_func_gnugettext1_libintl=yes
18143 echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 gt_cv_func_gnugettext1_libintl=no
18149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18150 conftest$ac_exeext conftest.$ac_ext
18151 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18152 LIBS="$LIBS $LIBICONV"
18153 cat >conftest.$ac_ext <<_ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 #include <libintl.h>
18160 extern int _nl_msg_cat_cntr;
18165 const char *_nl_expand_alias (const char *);
18169 bindtextdomain ("", "");
18170 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18175 rm -f conftest.$ac_objext conftest$ac_exeext
18176 if { (ac_try="$ac_link"
18177 case "(($ac_try" in
18178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18179 *) ac_try_echo=$ac_try;;
18181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18182 (eval "$ac_link") 2>conftest.er1
18184 grep -v '^ *+' conftest.er1 >conftest.err
18186 cat conftest.err >&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); } && {
18189 test -z "$ac_c_werror_flag" ||
18190 test ! -s conftest.err
18191 } && test -s conftest$ac_exeext &&
18192 $as_test_x conftest$ac_exeext; then
18193 LIBINTL="$LIBINTL $LIBICONV"
18194 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18195 gt_cv_func_gnugettext1_libintl=yes
18198 echo "$as_me: failed program was:" >&5
18199 sed 's/^/| /' conftest.$ac_ext >&5
18204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18205 conftest$ac_exeext conftest.$ac_ext
18207 CPPFLAGS="$gt_save_CPPFLAGS"
18208 LIBS="$gt_save_LIBS"
18210 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
18211 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
18214 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18215 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18216 && test "$PACKAGE" != gettext-runtime \
18217 && test "$PACKAGE" != gettext-tools; }; then
18218 gt_use_preinstalled_gnugettext=yes
18227 if test -n "$INTL_MACOSX_LIBS"; then
18228 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18229 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18230 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18231 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18235 if test "$gt_use_preinstalled_gnugettext" = "yes" \
18236 || test "$nls_cv_use_gnu_gettext" = "yes"; then
18238 cat >>confdefs.h <<\_ACEOF
18239 #define ENABLE_NLS 1
18247 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
18248 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
18249 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
18250 echo "${ECHO_T}$USE_NLS" >&6; }
18251 if test "$USE_NLS" = "yes"; then
18252 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
18253 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
18254 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18255 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18256 gt_source="external libintl"
18261 gt_source="included intl directory"
18263 { echo "$as_me:$LINENO: result: $gt_source" >&5
18264 echo "${ECHO_T}$gt_source" >&6; }
18267 if test "$USE_NLS" = "yes"; then
18269 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18270 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18271 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
18272 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
18273 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
18274 echo "${ECHO_T}$LIBINTL" >&6; }
18276 for element in $INCINTL; do
18278 for x in $CPPFLAGS; do
18280 acl_save_prefix="$prefix"
18281 prefix="$acl_final_prefix"
18282 acl_save_exec_prefix="$exec_prefix"
18283 exec_prefix="$acl_final_exec_prefix"
18285 exec_prefix="$acl_save_exec_prefix"
18286 prefix="$acl_save_prefix"
18288 if test "X$x" = "X$element"; then
18293 if test -z "$haveit"; then
18294 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18301 cat >>confdefs.h <<\_ACEOF
18302 #define HAVE_GETTEXT 1
18306 cat >>confdefs.h <<\_ACEOF
18307 #define HAVE_DCGETTEXT 1
18317 INTLLIBS="$LIBINTL"
18325 os_name=`uname -s 2>/dev/null`
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
18334 os_processor=`uname -p 2>/dev/null`
18335 case ${os_processor} in
18350 if test `eval echo ${includedir}` = NONE/include ; then
18351 includedir=/usr/include
18354 if test `eval echo ${datarootdir}` = NONE/share ; then
18355 datarootdir=/usr/share
18360 if test x${exec_prefix} = xNONE ; then
18361 exec_prefix=${prefix}
18364 sysconfdir=`eval echo ${sysconfdir}`
18365 datarootdir=`eval echo ${datarootdir}`
18366 docdir=`eval echo ${docdir}`
18367 htmldir=`eval echo ${htmldir}`
18368 libdir=`eval echo ${libdir}`
18369 includedir=`eval echo ${includedir}`
18370 localedir=`eval echo ${datarootdir}/locale`
18371 cat >>confdefs.h <<_ACEOF
18372 #define SYSCONFDIR "$sysconfdir"
18375 cat >>confdefs.h <<_ACEOF
18376 #define LOCALEDIR "$localedir"
18380 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18381 sbindir=${exec_prefix}/sbin
18383 sbindir=`eval echo ${sbindir}`
18385 if test x$mandir = x'${prefix}/man' ; then
18386 mandir=/usr/share/man
18389 if test x$htmldir = x${docdir} ; then
18390 htmldir=`eval echo ${docdir}bacula/html`
18393 if test x$docdir = x'/usr/share/doc/' ; then
18394 docdir=`eval echo ${docdir}bacula`
18398 for ac_prog in msgfmt
18400 # Extract the first word of "$ac_prog", so it can be a program name with args.
18401 set dummy $ac_prog; ac_word=$2
18402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18404 if test "${ac_cv_path_MSGFMT+set}" = set; then
18405 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18413 for as_dir in $PATH
18416 test -z "$as_dir" && as_dir=.
18417 for ac_exec_ext in '' $ac_executable_extensions; do
18418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18419 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18430 MSGFMT=$ac_cv_path_MSGFMT
18431 if test -n "$MSGFMT"; then
18432 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
18433 echo "${ECHO_T}$MSGFMT" >&6; }
18435 { echo "$as_me:$LINENO: result: no" >&5
18436 echo "${ECHO_T}no" >&6; }
18440 test -n "$MSGFMT" && break
18442 test -n "$MSGFMT" || MSGFMT="no"
18444 if test "$MSGFMT" = "no"
18446 echo 'msgfmt program not found, disabling NLS !'
18448 USE_INCLUDED_LIBINTL=no
18451 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
18452 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
18453 if test "${ac_cv_gnu_library_2+set}" = set; then
18454 echo $ECHO_N "(cached) $ECHO_C" >&6
18456 cat >conftest.$ac_ext <<_ACEOF
18459 cat confdefs.h >>conftest.$ac_ext
18460 cat >>conftest.$ac_ext <<_ACEOF
18461 /* end confdefs.h. */
18463 #include <features.h>
18464 #ifdef __GNU_LIBRARY__
18465 #if (__GLIBC__ >= 2)
18471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18472 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18473 ac_cv_gnu_library_2=yes
18475 ac_cv_gnu_library_2=no
18482 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
18483 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
18485 GLIBC2="$ac_cv_gnu_library_2"
18488 if test -n "$ac_tool_prefix"; then
18489 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18490 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18493 if test "${ac_cv_prog_RANLIB+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 if test -n "$RANLIB"; then
18497 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18500 for as_dir in $PATH
18503 test -z "$as_dir" && as_dir=.
18504 for ac_exec_ext in '' $ac_executable_extensions; do
18505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18506 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18516 RANLIB=$ac_cv_prog_RANLIB
18517 if test -n "$RANLIB"; then
18518 { echo "$as_me:$LINENO: result: $RANLIB" >&5
18519 echo "${ECHO_T}$RANLIB" >&6; }
18521 { echo "$as_me:$LINENO: result: no" >&5
18522 echo "${ECHO_T}no" >&6; }
18527 if test -z "$ac_cv_prog_RANLIB"; then
18528 ac_ct_RANLIB=$RANLIB
18529 # Extract the first word of "ranlib", so it can be a program name with args.
18530 set dummy ranlib; ac_word=$2
18531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18533 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18534 echo $ECHO_N "(cached) $ECHO_C" >&6
18536 if test -n "$ac_ct_RANLIB"; then
18537 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18540 for as_dir in $PATH
18543 test -z "$as_dir" && as_dir=.
18544 for ac_exec_ext in '' $ac_executable_extensions; do
18545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18546 ac_cv_prog_ac_ct_RANLIB="ranlib"
18547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18556 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18557 if test -n "$ac_ct_RANLIB"; then
18558 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18559 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
18561 { echo "$as_me:$LINENO: result: no" >&5
18562 echo "${ECHO_T}no" >&6; }
18565 if test "x$ac_ct_RANLIB" = x; then
18568 case $cross_compiling:$ac_tool_warned in
18570 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18571 whose name does not start with the host triplet. If you think this
18572 configuration is useful to you, please write to autoconf@gnu.org." >&5
18573 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18574 whose name does not start with the host triplet. If you think this
18575 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18576 ac_tool_warned=yes ;;
18578 RANLIB=$ac_ct_RANLIB
18581 RANLIB="$ac_cv_prog_RANLIB"
18585 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
18586 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
18587 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
18588 echo $ECHO_N "(cached) $ECHO_C" >&6
18590 ac_check_lib_save_LIBS=$LIBS
18591 LIBS="-lcposix $LIBS"
18592 cat >conftest.$ac_ext <<_ACEOF
18595 cat confdefs.h >>conftest.$ac_ext
18596 cat >>conftest.$ac_ext <<_ACEOF
18597 /* end confdefs.h. */
18599 /* Override any GCC internal prototype to avoid an error.
18600 Use char because int might match the return type of a GCC
18601 builtin and then its argument prototype would still apply. */
18609 return strerror ();
18614 rm -f conftest.$ac_objext conftest$ac_exeext
18615 if { (ac_try="$ac_link"
18616 case "(($ac_try" in
18617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618 *) ac_try_echo=$ac_try;;
18620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621 (eval "$ac_link") 2>conftest.er1
18623 grep -v '^ *+' conftest.er1 >conftest.err
18625 cat conftest.err >&5
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); } && {
18628 test -z "$ac_c_werror_flag" ||
18629 test ! -s conftest.err
18630 } && test -s conftest$ac_exeext &&
18631 $as_test_x conftest$ac_exeext; then
18632 ac_cv_lib_cposix_strerror=yes
18634 echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18637 ac_cv_lib_cposix_strerror=no
18640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18641 conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18644 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
18645 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
18646 if test $ac_cv_lib_cposix_strerror = yes; then
18647 LIBS="$LIBS -lcposix"
18652 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
18653 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
18654 if test "${ac_cv_c_const+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18657 cat >conftest.$ac_ext <<_ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18667 /* FIXME: Include the comments suggested by Paul. */
18668 #ifndef __cplusplus
18669 /* Ultrix mips cc rejects this. */
18670 typedef int charset[2];
18672 /* SunOS 4.1.1 cc rejects this. */
18673 char const *const *pcpcc;
18675 /* NEC SVR4.0.2 mips cc rejects this. */
18676 struct point {int x, y;};
18677 static struct point const zero = {0,0};
18678 /* AIX XL C 1.02.0.0 rejects this.
18679 It does not let you subtract one const X* pointer from another in
18680 an arm of an if-expression whose if-part is not a constant
18682 const char *g = "string";
18683 pcpcc = &g + (g ? g-g : 0);
18684 /* HPUX 7.0 cc rejects these. */
18686 ppc = (char**) pcpcc;
18687 pcpcc = (char const *const *) ppc;
18688 { /* SCO 3.2v4 cc rejects this. */
18690 char const *s = 0 ? (char *) 0 : (char const *) 0;
18695 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
18696 int x[] = {25, 17};
18697 const int *foo = &x[0];
18700 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18701 typedef const int *iptr;
18705 { /* AIX XL C 1.02.0.0 rejects this saying
18706 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18707 struct s { int j; const int *ap[3]; };
18708 struct s *b; b->j = 5;
18710 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18711 const int foo = 10;
18712 if (!foo) return 0;
18714 return !cs[0] && !zero.x;
18721 rm -f conftest.$ac_objext
18722 if { (ac_try="$ac_compile"
18723 case "(($ac_try" in
18724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18725 *) ac_try_echo=$ac_try;;
18727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18728 (eval "$ac_compile") 2>conftest.er1
18730 grep -v '^ *+' conftest.er1 >conftest.err
18732 cat conftest.err >&5
18733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18734 (exit $ac_status); } && {
18735 test -z "$ac_c_werror_flag" ||
18736 test ! -s conftest.err
18737 } && test -s conftest.$ac_objext; then
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
18749 echo "${ECHO_T}$ac_cv_c_const" >&6; }
18750 if test $ac_cv_c_const = no; then
18752 cat >>confdefs.h <<\_ACEOF
18759 { echo "$as_me:$LINENO: checking for signed" >&5
18760 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
18761 if test "${bh_cv_c_signed+set}" = set; then
18762 echo $ECHO_N "(cached) $ECHO_C" >&6
18764 cat >conftest.$ac_ext <<_ACEOF
18767 cat confdefs.h >>conftest.$ac_ext
18768 cat >>conftest.$ac_ext <<_ACEOF
18769 /* end confdefs.h. */
18779 rm -f conftest.$ac_objext
18780 if { (ac_try="$ac_compile"
18781 case "(($ac_try" in
18782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18783 *) ac_try_echo=$ac_try;;
18785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18786 (eval "$ac_compile") 2>conftest.er1
18788 grep -v '^ *+' conftest.er1 >conftest.err
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } && {
18793 test -z "$ac_c_werror_flag" ||
18794 test ! -s conftest.err
18795 } && test -s conftest.$ac_objext; then
18798 echo "$as_me: failed program was:" >&5
18799 sed 's/^/| /' conftest.$ac_ext >&5
18804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18806 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
18807 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
18808 if test $bh_cv_c_signed = no; then
18810 cat >>confdefs.h <<\_ACEOF
18816 { echo "$as_me:$LINENO: checking for inline" >&5
18817 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
18818 if test "${ac_cv_c_inline+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 for ac_kw in inline __inline__ __inline; do
18823 cat >conftest.$ac_ext <<_ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 #ifndef __cplusplus
18831 static $ac_kw foo_t static_foo () {return 0; }
18832 $ac_kw foo_t foo () {return 0; }
18836 rm -f conftest.$ac_objext
18837 if { (ac_try="$ac_compile"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_compile") 2>conftest.er1
18845 grep -v '^ *+' conftest.er1 >conftest.err
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18849 (exit $ac_status); } && {
18850 test -z "$ac_c_werror_flag" ||
18851 test ! -s conftest.err
18852 } && test -s conftest.$ac_objext; then
18853 ac_cv_c_inline=$ac_kw
18855 echo "$as_me: failed program was:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18862 test "$ac_cv_c_inline" != no && break
18866 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
18867 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
18870 case $ac_cv_c_inline in
18873 case $ac_cv_c_inline in
18875 *) ac_val=$ac_cv_c_inline;;
18877 cat >>confdefs.h <<_ACEOF
18878 #ifndef __cplusplus
18879 #define inline $ac_val
18885 { echo "$as_me:$LINENO: checking for off_t" >&5
18886 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
18887 if test "${ac_cv_type_off_t+set}" = set; then
18888 echo $ECHO_N "(cached) $ECHO_C" >&6
18890 cat >conftest.$ac_ext <<_ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 $ac_includes_default
18897 typedef off_t ac__type_new_;
18901 if ((ac__type_new_ *) 0)
18903 if (sizeof (ac__type_new_))
18909 rm -f conftest.$ac_objext
18910 if { (ac_try="$ac_compile"
18911 case "(($ac_try" in
18912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18913 *) ac_try_echo=$ac_try;;
18915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18916 (eval "$ac_compile") 2>conftest.er1
18918 grep -v '^ *+' conftest.er1 >conftest.err
18920 cat conftest.err >&5
18921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest.$ac_objext; then
18926 ac_cv_type_off_t=yes
18928 echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18931 ac_cv_type_off_t=no
18934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18936 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
18937 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
18938 if test $ac_cv_type_off_t = yes; then
18942 cat >>confdefs.h <<_ACEOF
18943 #define off_t long int
18948 { echo "$as_me:$LINENO: checking for size_t" >&5
18949 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
18950 if test "${ac_cv_type_size_t+set}" = set; then
18951 echo $ECHO_N "(cached) $ECHO_C" >&6
18953 cat >conftest.$ac_ext <<_ACEOF
18956 cat confdefs.h >>conftest.$ac_ext
18957 cat >>conftest.$ac_ext <<_ACEOF
18958 /* end confdefs.h. */
18959 $ac_includes_default
18960 typedef size_t ac__type_new_;
18964 if ((ac__type_new_ *) 0)
18966 if (sizeof (ac__type_new_))
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_compile") 2>conftest.er1
18981 grep -v '^ *+' conftest.er1 >conftest.err
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } && {
18986 test -z "$ac_c_werror_flag" ||
18987 test ! -s conftest.err
18988 } && test -s conftest.$ac_objext; then
18989 ac_cv_type_size_t=yes
18991 echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18994 ac_cv_type_size_t=no
18997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18999 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19000 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
19001 if test $ac_cv_type_size_t = yes; then
19005 cat >>confdefs.h <<_ACEOF
19006 #define size_t unsigned int
19012 { echo "$as_me:$LINENO: checking for long long" >&5
19013 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
19014 if test "${ac_cv_type_long_long+set}" = set; then
19015 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 long long ll = 1LL; int i = 63;
19027 long long llmax = (long long) -1;
19028 return ll << i | ll >> i | llmax / ll | llmax % ll;
19033 rm -f conftest.$ac_objext conftest$ac_exeext
19034 if { (ac_try="$ac_link"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_link") 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); } && {
19047 test -z "$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 } && test -s conftest$ac_exeext &&
19050 $as_test_x conftest$ac_exeext; then
19051 ac_cv_type_long_long=yes
19053 echo "$as_me: failed program was:" >&5
19054 sed 's/^/| /' conftest.$ac_ext >&5
19056 ac_cv_type_long_long=no
19059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19060 conftest$ac_exeext conftest.$ac_ext
19062 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
19063 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
19064 if test $ac_cv_type_long_long = yes; then
19066 cat >>confdefs.h <<\_ACEOF
19067 #define HAVE_LONG_LONG 1
19073 { echo "$as_me:$LINENO: checking for long double" >&5
19074 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
19075 if test "${gt_cv_c_long_double+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19078 if test "$GCC" = yes; then
19079 gt_cv_c_long_double=yes
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19088 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
19089 long double foo = 0.0;
19090 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
19091 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19101 rm -f conftest.$ac_objext
19102 if { (ac_try="$ac_compile"
19103 case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_compile") 2>conftest.er1
19110 grep -v '^ *+' conftest.er1 >conftest.err
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } && {
19115 test -z "$ac_c_werror_flag" ||
19116 test ! -s conftest.err
19117 } && test -s conftest.$ac_objext; then
19118 gt_cv_c_long_double=yes
19120 echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.$ac_ext >&5
19123 gt_cv_c_long_double=no
19126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19129 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
19130 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
19131 if test $gt_cv_c_long_double = yes; then
19133 cat >>confdefs.h <<\_ACEOF
19134 #define HAVE_LONG_DOUBLE 1
19140 { echo "$as_me:$LINENO: checking for wchar_t" >&5
19141 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
19142 if test "${gt_cv_c_wchar_t+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19145 cat >conftest.$ac_ext <<_ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 #include <stddef.h>
19152 wchar_t foo = (wchar_t)'\0';
19161 rm -f conftest.$ac_objext
19162 if { (ac_try="$ac_compile"
19163 case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_compile") 2>conftest.er1
19170 grep -v '^ *+' conftest.er1 >conftest.err
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } && {
19175 test -z "$ac_c_werror_flag" ||
19176 test ! -s conftest.err
19177 } && test -s conftest.$ac_objext; then
19178 gt_cv_c_wchar_t=yes
19180 echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.$ac_ext >&5
19186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19188 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
19189 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
19190 if test $gt_cv_c_wchar_t = yes; then
19192 cat >>confdefs.h <<\_ACEOF
19193 #define HAVE_WCHAR_T 1
19199 { echo "$as_me:$LINENO: checking for wint_t" >&5
19200 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
19201 if test "${gt_cv_c_wint_t+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19204 cat >conftest.$ac_ext <<_ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19211 wint_t foo = (wchar_t)'\0';
19220 rm -f conftest.$ac_objext
19221 if { (ac_try="$ac_compile"
19222 case "(($ac_try" in
19223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19224 *) ac_try_echo=$ac_try;;
19226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19227 (eval "$ac_compile") 2>conftest.er1
19229 grep -v '^ *+' conftest.er1 >conftest.err
19231 cat conftest.err >&5
19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233 (exit $ac_status); } && {
19234 test -z "$ac_c_werror_flag" ||
19235 test ! -s conftest.err
19236 } && test -s conftest.$ac_objext; then
19239 echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.$ac_ext >&5
19245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19247 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
19248 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
19249 if test $gt_cv_c_wint_t = yes; then
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE_WINT_T 1
19258 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
19259 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
19260 if test "${gl_cv_header_inttypes_h+set}" = set; then
19261 echo $ECHO_N "(cached) $ECHO_C" >&6
19263 cat >conftest.$ac_ext <<_ACEOF
19266 cat confdefs.h >>conftest.$ac_ext
19267 cat >>conftest.$ac_ext <<_ACEOF
19268 /* end confdefs.h. */
19269 #include <sys/types.h>
19270 #include <inttypes.h>
19274 uintmax_t i = (uintmax_t) -1;
19279 rm -f conftest.$ac_objext
19280 if { (ac_try="$ac_compile"
19281 case "(($ac_try" in
19282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283 *) ac_try_echo=$ac_try;;
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286 (eval "$ac_compile") 2>conftest.er1
19288 grep -v '^ *+' conftest.er1 >conftest.err
19290 cat conftest.err >&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); } && {
19293 test -z "$ac_c_werror_flag" ||
19294 test ! -s conftest.err
19295 } && test -s conftest.$ac_objext; then
19296 gl_cv_header_inttypes_h=yes
19298 echo "$as_me: failed program was:" >&5
19299 sed 's/^/| /' conftest.$ac_ext >&5
19301 gl_cv_header_inttypes_h=no
19304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19306 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
19307 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
19308 if test $gl_cv_header_inttypes_h = yes; then
19310 cat >>confdefs.h <<_ACEOF
19311 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19317 { echo "$as_me:$LINENO: checking for stdint.h" >&5
19318 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
19319 if test "${gl_cv_header_stdint_h+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 cat >conftest.$ac_ext <<_ACEOF
19325 cat confdefs.h >>conftest.$ac_ext
19326 cat >>conftest.$ac_ext <<_ACEOF
19327 /* end confdefs.h. */
19328 #include <sys/types.h>
19329 #include <stdint.h>
19333 uintmax_t i = (uintmax_t) -1;
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19347 grep -v '^ *+' conftest.er1 >conftest.err
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } && {
19352 test -z "$ac_c_werror_flag" ||
19353 test ! -s conftest.err
19354 } && test -s conftest.$ac_objext; then
19355 gl_cv_header_stdint_h=yes
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 gl_cv_header_stdint_h=no
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19365 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
19366 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
19367 if test $gl_cv_header_stdint_h = yes; then
19369 cat >>confdefs.h <<_ACEOF
19370 #define HAVE_STDINT_H_WITH_UINTMAX 1
19378 { echo "$as_me:$LINENO: checking for intmax_t" >&5
19379 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
19380 if test "${gt_cv_c_intmax_t+set}" = set; then
19381 echo $ECHO_N "(cached) $ECHO_C" >&6
19383 cat >conftest.$ac_ext <<_ACEOF
19386 cat confdefs.h >>conftest.$ac_ext
19387 cat >>conftest.$ac_ext <<_ACEOF
19388 /* end confdefs.h. */
19390 #include <stddef.h>
19391 #include <stdlib.h>
19392 #if HAVE_STDINT_H_WITH_UINTMAX
19393 #include <stdint.h>
19395 #if HAVE_INTTYPES_H_WITH_UINTMAX
19396 #include <inttypes.h>
19407 rm -f conftest.$ac_objext
19408 if { (ac_try="$ac_compile"
19409 case "(($ac_try" in
19410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411 *) ac_try_echo=$ac_try;;
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414 (eval "$ac_compile") 2>conftest.er1
19416 grep -v '^ *+' conftest.er1 >conftest.err
19418 cat conftest.err >&5
19419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } && {
19421 test -z "$ac_c_werror_flag" ||
19422 test ! -s conftest.err
19423 } && test -s conftest.$ac_objext; then
19424 gt_cv_c_intmax_t=yes
19426 echo "$as_me: failed program was:" >&5
19427 sed 's/^/| /' conftest.$ac_ext >&5
19429 gt_cv_c_intmax_t=no
19432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19434 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
19435 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
19436 if test $gt_cv_c_intmax_t = yes; then
19438 cat >>confdefs.h <<\_ACEOF
19439 #define HAVE_INTMAX_T 1
19446 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
19447 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
19448 if test "${gt_cv_func_printf_posix+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19452 if test "$cross_compiling" = yes; then
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19461 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19467 $EGREP "notposix" >/dev/null 2>&1; then
19468 gt_cv_func_printf_posix="guessing no"
19470 gt_cv_func_printf_posix="guessing yes"
19476 cat >conftest.$ac_ext <<_ACEOF
19479 cat confdefs.h >>conftest.$ac_ext
19480 cat >>conftest.$ac_ext <<_ACEOF
19481 /* end confdefs.h. */
19484 #include <string.h>
19485 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19486 dollar expansion (possibly an autoconf bug). */
19487 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19488 static char buf[100];
19491 sprintf (buf, format, 33, 55);
19492 return (strcmp (buf, "55 33") != 0);
19495 rm -f conftest$ac_exeext
19496 if { (ac_try="$ac_link"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_link") 2>&5
19504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19506 { (case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511 (eval "$ac_try") 2>&5
19513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514 (exit $ac_status); }; }; then
19515 gt_cv_func_printf_posix=yes
19517 echo "$as_me: program exited with status $ac_status" >&5
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19521 ( exit $ac_status )
19522 gt_cv_func_printf_posix=no
19524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19530 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
19531 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
19532 case $gt_cv_func_printf_posix in
19535 cat >>confdefs.h <<\_ACEOF
19536 #define HAVE_POSIX_PRINTF 1
19542 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19543 # for constant arguments. Useless!
19544 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19545 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19546 if test "${ac_cv_working_alloca_h+set}" = set; then
19547 echo $ECHO_N "(cached) $ECHO_C" >&6
19549 cat >conftest.$ac_ext <<_ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19555 #include <alloca.h>
19559 char *p = (char *) alloca (2 * sizeof (int));
19565 rm -f conftest.$ac_objext conftest$ac_exeext
19566 if { (ac_try="$ac_link"
19567 case "(($ac_try" in
19568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19569 *) ac_try_echo=$ac_try;;
19571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19572 (eval "$ac_link") 2>conftest.er1
19574 grep -v '^ *+' conftest.er1 >conftest.err
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } && {
19579 test -z "$ac_c_werror_flag" ||
19580 test ! -s conftest.err
19581 } && test -s conftest$ac_exeext &&
19582 $as_test_x conftest$ac_exeext; then
19583 ac_cv_working_alloca_h=yes
19585 echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19588 ac_cv_working_alloca_h=no
19591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19592 conftest$ac_exeext conftest.$ac_ext
19594 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19595 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19596 if test $ac_cv_working_alloca_h = yes; then
19598 cat >>confdefs.h <<\_ACEOF
19599 #define HAVE_ALLOCA_H 1
19604 { echo "$as_me:$LINENO: checking for alloca" >&5
19605 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19606 if test "${ac_cv_func_alloca_works+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19609 cat >conftest.$ac_ext <<_ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h. */
19616 # define alloca __builtin_alloca
19619 # include <malloc.h>
19620 # define alloca _alloca
19622 # ifdef HAVE_ALLOCA_H
19623 # include <alloca.h>
19628 # ifndef alloca /* predefined by HP cc +Olibcalls */
19639 char *p = (char *) alloca (1);
19645 rm -f conftest.$ac_objext conftest$ac_exeext
19646 if { (ac_try="$ac_link"
19647 case "(($ac_try" in
19648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19649 *) ac_try_echo=$ac_try;;
19651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19652 (eval "$ac_link") 2>conftest.er1
19654 grep -v '^ *+' conftest.er1 >conftest.err
19656 cat conftest.err >&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); } && {
19659 test -z "$ac_c_werror_flag" ||
19660 test ! -s conftest.err
19661 } && test -s conftest$ac_exeext &&
19662 $as_test_x conftest$ac_exeext; then
19663 ac_cv_func_alloca_works=yes
19665 echo "$as_me: failed program was:" >&5
19666 sed 's/^/| /' conftest.$ac_ext >&5
19668 ac_cv_func_alloca_works=no
19671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19672 conftest$ac_exeext conftest.$ac_ext
19674 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19675 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19677 if test $ac_cv_func_alloca_works = yes; then
19679 cat >>confdefs.h <<\_ACEOF
19680 #define HAVE_ALLOCA 1
19684 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19685 # that cause trouble. Some versions do not even contain alloca or
19686 # contain a buggy version. If you still want to use their alloca,
19687 # use ar to extract alloca.o from them instead of compiling alloca.c.
19689 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19691 cat >>confdefs.h <<\_ACEOF
19696 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19697 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19698 if test "${ac_cv_os_cray+set}" = set; then
19699 echo $ECHO_N "(cached) $ECHO_C" >&6
19701 cat >conftest.$ac_ext <<_ACEOF
19704 cat confdefs.h >>conftest.$ac_ext
19705 cat >>conftest.$ac_ext <<_ACEOF
19706 /* end confdefs.h. */
19707 #if defined CRAY && ! defined CRAY2
19714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19715 $EGREP "webecray" >/dev/null 2>&1; then
19723 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19724 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19725 if test $ac_cv_os_cray = yes; then
19726 for ac_func in _getb67 GETB67 getb67; do
19727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19733 cat >conftest.$ac_ext <<_ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19741 #define $ac_func innocuous_$ac_func
19743 /* System header to define __stub macros and hopefully few prototypes,
19744 which can conflict with char $ac_func (); below.
19745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19746 <limits.h> exists even on freestanding compilers. */
19749 # include <limits.h>
19751 # include <assert.h>
19756 /* Override any GCC internal prototype to avoid an error.
19757 Use char because int might match the return type of a GCC
19758 builtin and then its argument prototype would still apply. */
19763 /* The GNU C library defines this for functions which it implements
19764 to always fail with ENOSYS. Some functions are actually named
19765 something starting with __ and the normal name is an alias. */
19766 #if defined __stub_$ac_func || defined __stub___$ac_func
19773 return $ac_func ();
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_link") 2>conftest.er1
19787 grep -v '^ *+' conftest.er1 >conftest.err
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest$ac_exeext &&
19795 $as_test_x conftest$ac_exeext; then
19796 eval "$as_ac_var=yes"
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 eval "$as_ac_var=no"
19804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19805 conftest$ac_exeext conftest.$ac_ext
19807 ac_res=`eval echo '${'$as_ac_var'}'`
19808 { echo "$as_me:$LINENO: result: $ac_res" >&5
19809 echo "${ECHO_T}$ac_res" >&6; }
19810 if test `eval echo '${'$as_ac_var'}'` = yes; then
19812 cat >>confdefs.h <<_ACEOF
19813 #define CRAY_STACKSEG_END $ac_func
19822 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19823 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19824 if test "${ac_cv_c_stack_direction+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 if test "$cross_compiling" = yes; then
19828 ac_cv_c_stack_direction=0
19830 cat >conftest.$ac_ext <<_ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19836 $ac_includes_default
19838 find_stack_direction ()
19840 static char *addr = 0;
19845 return find_stack_direction ();
19848 return (&dummy > addr) ? 1 : -1;
19854 return find_stack_direction () < 0;
19857 rm -f conftest$ac_exeext
19858 if { (ac_try="$ac_link"
19859 case "(($ac_try" in
19860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19861 *) ac_try_echo=$ac_try;;
19863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19864 (eval "$ac_link") 2>&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19868 { (case "(($ac_try" in
19869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19870 *) ac_try_echo=$ac_try;;
19872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19873 (eval "$ac_try") 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
19877 ac_cv_c_stack_direction=1
19879 echo "$as_me: program exited with status $ac_status" >&5
19880 echo "$as_me: failed program was:" >&5
19881 sed 's/^/| /' conftest.$ac_ext >&5
19883 ( exit $ac_status )
19884 ac_cv_c_stack_direction=-1
19886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19891 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19892 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19894 cat >>confdefs.h <<_ACEOF
19895 #define STACK_DIRECTION $ac_cv_c_stack_direction
19903 for ac_header in stdlib.h unistd.h
19905 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19907 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19908 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19910 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 ac_res=`eval echo '${'$as_ac_Header'}'`
19913 { echo "$as_me:$LINENO: result: $ac_res" >&5
19914 echo "${ECHO_T}$ac_res" >&6; }
19916 # Is the header compilable?
19917 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19918 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19919 cat >conftest.$ac_ext <<_ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19925 $ac_includes_default
19926 #include <$ac_header>
19928 rm -f conftest.$ac_objext
19929 if { (ac_try="$ac_compile"
19930 case "(($ac_try" in
19931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19932 *) ac_try_echo=$ac_try;;
19934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19935 (eval "$ac_compile") 2>conftest.er1
19937 grep -v '^ *+' conftest.er1 >conftest.err
19939 cat conftest.err >&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); } && {
19942 test -z "$ac_c_werror_flag" ||
19943 test ! -s conftest.err
19944 } && test -s conftest.$ac_objext; then
19945 ac_header_compiler=yes
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_header_compiler=no
19953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19955 echo "${ECHO_T}$ac_header_compiler" >&6; }
19957 # Is the header present?
19958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19960 cat >conftest.$ac_ext <<_ACEOF
19963 cat confdefs.h >>conftest.$ac_ext
19964 cat >>conftest.$ac_ext <<_ACEOF
19965 /* end confdefs.h. */
19966 #include <$ac_header>
19968 if { (ac_try="$ac_cpp conftest.$ac_ext"
19969 case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19976 grep -v '^ *+' conftest.er1 >conftest.err
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19980 (exit $ac_status); } >/dev/null && {
19981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19982 test ! -s conftest.err
19984 ac_header_preproc=yes
19986 echo "$as_me: failed program was:" >&5
19987 sed 's/^/| /' conftest.$ac_ext >&5
19989 ac_header_preproc=no
19992 rm -f conftest.err conftest.$ac_ext
19993 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19994 echo "${ECHO_T}$ac_header_preproc" >&6; }
19996 # So? What about this header?
19997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19999 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20000 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20002 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20003 ac_header_preproc=yes
20006 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20007 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20008 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20009 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20010 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20011 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20012 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20013 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20016 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20017 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20024 echo $ECHO_N "(cached) $ECHO_C" >&6
20026 eval "$as_ac_Header=\$ac_header_preproc"
20028 ac_res=`eval echo '${'$as_ac_Header'}'`
20029 { echo "$as_me:$LINENO: result: $ac_res" >&5
20030 echo "${ECHO_T}$ac_res" >&6; }
20033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20034 cat >>confdefs.h <<_ACEOF
20035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20043 for ac_func in getpagesize
20045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20046 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20049 echo $ECHO_N "(cached) $ECHO_C" >&6
20051 cat >conftest.$ac_ext <<_ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20059 #define $ac_func innocuous_$ac_func
20061 /* System header to define __stub macros and hopefully few prototypes,
20062 which can conflict with char $ac_func (); below.
20063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20064 <limits.h> exists even on freestanding compilers. */
20067 # include <limits.h>
20069 # include <assert.h>
20074 /* Override any GCC internal prototype to avoid an error.
20075 Use char because int might match the return type of a GCC
20076 builtin and then its argument prototype would still apply. */
20081 /* The GNU C library defines this for functions which it implements
20082 to always fail with ENOSYS. Some functions are actually named
20083 something starting with __ and the normal name is an alias. */
20084 #if defined __stub_$ac_func || defined __stub___$ac_func
20091 return $ac_func ();
20096 rm -f conftest.$ac_objext conftest$ac_exeext
20097 if { (ac_try="$ac_link"
20098 case "(($ac_try" in
20099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20100 *) ac_try_echo=$ac_try;;
20102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20103 (eval "$ac_link") 2>conftest.er1
20105 grep -v '^ *+' conftest.er1 >conftest.err
20107 cat conftest.err >&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); } && {
20110 test -z "$ac_c_werror_flag" ||
20111 test ! -s conftest.err
20112 } && test -s conftest$ac_exeext &&
20113 $as_test_x conftest$ac_exeext; then
20114 eval "$as_ac_var=yes"
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 eval "$as_ac_var=no"
20122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20123 conftest$ac_exeext conftest.$ac_ext
20125 ac_res=`eval echo '${'$as_ac_var'}'`
20126 { echo "$as_me:$LINENO: result: $ac_res" >&5
20127 echo "${ECHO_T}$ac_res" >&6; }
20128 if test `eval echo '${'$as_ac_var'}'` = yes; then
20129 cat >>confdefs.h <<_ACEOF
20130 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20136 { echo "$as_me:$LINENO: checking for working mmap" >&5
20137 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20138 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20139 echo $ECHO_N "(cached) $ECHO_C" >&6
20141 if test "$cross_compiling" = yes; then
20142 ac_cv_func_mmap_fixed_mapped=no
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20150 $ac_includes_default
20151 /* malloc might have been renamed as rpl_malloc. */
20154 /* Thanks to Mike Haertel and Jim Avera for this test.
20155 Here is a matrix of mmap possibilities:
20156 mmap private not fixed
20157 mmap private fixed at somewhere currently unmapped
20158 mmap private fixed at somewhere already mapped
20159 mmap shared not fixed
20160 mmap shared fixed at somewhere currently unmapped
20161 mmap shared fixed at somewhere already mapped
20162 For private mappings, we should verify that changes cannot be read()
20163 back from the file, nor mmap's back from the file at a different
20164 address. (There have been systems where private was not correctly
20165 implemented like the infamous i386 svr4.0, and systems where the
20166 VM page cache was not coherent with the file system buffer cache
20167 like early versions of FreeBSD and possibly contemporary NetBSD.)
20168 For shared mappings, we should conversely verify that changes get
20169 propagated back to all the places they're supposed to be.
20171 Grep wants private fixed already mapped.
20172 The main things grep needs to know about mmap are:
20173 * does it exist and is it safe to write into the mmap'd area
20174 * how to use it (BSD variants) */
20177 #include <sys/mman.h>
20179 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
20183 /* This mess was copied from the GNU getpagesize.h. */
20184 #ifndef HAVE_GETPAGESIZE
20185 /* Assume that all systems that can run configure have sys/param.h. */
20186 # ifndef HAVE_SYS_PARAM_H
20187 # define HAVE_SYS_PARAM_H 1
20190 # ifdef _SC_PAGESIZE
20191 # define getpagesize() sysconf(_SC_PAGESIZE)
20192 # else /* no _SC_PAGESIZE */
20193 # ifdef HAVE_SYS_PARAM_H
20194 # include <sys/param.h>
20195 # ifdef EXEC_PAGESIZE
20196 # define getpagesize() EXEC_PAGESIZE
20197 # else /* no EXEC_PAGESIZE */
20199 # define getpagesize() NBPG * CLSIZE
20202 # endif /* no CLSIZE */
20203 # else /* no NBPG */
20205 # define getpagesize() NBPC
20206 # else /* no NBPC */
20208 # define getpagesize() PAGESIZE
20209 # endif /* PAGESIZE */
20210 # endif /* no NBPC */
20211 # endif /* no NBPG */
20212 # endif /* no EXEC_PAGESIZE */
20213 # else /* no HAVE_SYS_PARAM_H */
20214 # define getpagesize() 8192 /* punt totally */
20215 # endif /* no HAVE_SYS_PARAM_H */
20216 # endif /* no _SC_PAGESIZE */
20218 #endif /* no HAVE_GETPAGESIZE */
20223 char *data, *data2, *data3;
20227 pagesize = getpagesize ();
20229 /* First, make a file with some known garbage in it. */
20230 data = (char *) malloc (pagesize);
20233 for (i = 0; i < pagesize; ++i)
20234 *(data + i) = rand ();
20236 fd = creat ("conftest.mmap", 0600);
20239 if (write (fd, data, pagesize) != pagesize)
20243 /* Next, try to mmap the file at a fixed address which already has
20244 something else allocated at it. If we can, also make sure that
20245 we see the same garbage. */
20246 fd = open ("conftest.mmap", O_RDWR);
20249 data2 = (char *) malloc (2 * pagesize);
20252 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20253 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20254 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20256 for (i = 0; i < pagesize; ++i)
20257 if (*(data + i) != *(data2 + i))
20260 /* Finally, make sure that changes to the mapped area do not
20261 percolate back to the file as seen by read(). (This is a bug on
20262 some variants of i386 svr4.0.) */
20263 for (i = 0; i < pagesize; ++i)
20264 *(data2 + i) = *(data2 + i) + 1;
20265 data3 = (char *) malloc (pagesize);
20268 if (read (fd, data3, pagesize) != pagesize)
20270 for (i = 0; i < pagesize; ++i)
20271 if (*(data + i) != *(data3 + i))
20277 rm -f conftest$ac_exeext
20278 if { (ac_try="$ac_link"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_link") 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20288 { (case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_try") 2>&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_func_mmap_fixed_mapped=yes
20299 echo "$as_me: program exited with status $ac_status" >&5
20300 echo "$as_me: failed program was:" >&5
20301 sed 's/^/| /' conftest.$ac_ext >&5
20303 ( exit $ac_status )
20304 ac_cv_func_mmap_fixed_mapped=no
20306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20311 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20312 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20313 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20315 cat >>confdefs.h <<\_ACEOF
20316 #define HAVE_MMAP 1
20320 rm -f conftest.mmap
20323 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
20324 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
20325 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 cat >conftest.$ac_ext <<_ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20335 #include <features.h>
20336 #ifdef __GNU_LIBRARY__
20337 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20344 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
20345 ac_cv_gnu_library_2_1=yes
20347 ac_cv_gnu_library_2_1=no
20354 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20355 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
20357 GLIBC21="$ac_cv_gnu_library_2_1"
20362 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
20363 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
20364 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
20365 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 if test "$cross_compiling" = yes; then
20370 # Guess based on the CPU.
20371 case "$host_cpu" in
20372 alpha* | i3456786 | m68k | s390*)
20373 gt_cv_int_divbyzero_sigfpe="guessing yes";;
20375 gt_cv_int_divbyzero_sigfpe="guessing no";;
20379 cat >conftest.$ac_ext <<_ACEOF
20382 cat confdefs.h >>conftest.$ac_ext
20383 cat >>conftest.$ac_ext <<_ACEOF
20384 /* end confdefs.h. */
20386 #include <stdlib.h>
20387 #include <signal.h>
20391 sigfpe_handler (int sig)
20393 sigfpe_handler (sig) int sig;
20396 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
20397 exit (sig != SIGFPE);
20407 signal (SIGFPE, sigfpe_handler);
20408 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
20409 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20410 signal (SIGTRAP, sigfpe_handler);
20412 /* Linux/SPARC yields signal SIGILL. */
20413 #if defined (__sparc__) && defined (__linux__)
20414 signal (SIGILL, sigfpe_handler);
20423 rm -f conftest$ac_exeext
20424 if { (ac_try="$ac_link"
20425 case "(($ac_try" in
20426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20427 *) ac_try_echo=$ac_try;;
20429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20430 (eval "$ac_link") 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20434 { (case "(($ac_try" in
20435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20436 *) ac_try_echo=$ac_try;;
20438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20439 (eval "$ac_try") 2>&5
20441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20442 (exit $ac_status); }; }; then
20443 gt_cv_int_divbyzero_sigfpe=yes
20445 echo "$as_me: program exited with status $ac_status" >&5
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ( exit $ac_status )
20450 gt_cv_int_divbyzero_sigfpe=no
20452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20458 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
20459 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
20460 case "$gt_cv_int_divbyzero_sigfpe" in
20465 cat >>confdefs.h <<_ACEOF
20466 #define INTDIV0_RAISES_SIGFPE $value
20471 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
20472 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
20473 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20482 unsigned long long ull = 1ULL; int i = 63;
20486 unsigned long long ullmax = (unsigned long long) -1;
20487 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20492 rm -f conftest.$ac_objext conftest$ac_exeext
20493 if { (ac_try="$ac_link"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_link") 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && {
20506 test -z "$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20508 } && test -s conftest$ac_exeext &&
20509 $as_test_x conftest$ac_exeext; then
20510 ac_cv_type_unsigned_long_long=yes
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20515 ac_cv_type_unsigned_long_long=no
20518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20519 conftest$ac_exeext conftest.$ac_ext
20521 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
20522 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
20523 if test $ac_cv_type_unsigned_long_long = yes; then
20525 cat >>confdefs.h <<\_ACEOF
20526 #define HAVE_UNSIGNED_LONG_LONG 1
20534 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20536 test $ac_cv_type_unsigned_long_long = yes \
20537 && ac_type='unsigned long long' \
20538 || ac_type='unsigned long'
20540 cat >>confdefs.h <<_ACEOF
20541 #define uintmax_t $ac_type
20546 cat >>confdefs.h <<\_ACEOF
20547 #define HAVE_UINTMAX_T 1
20553 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
20554 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
20555 if test "${gt_cv_header_inttypes_h+set}" = set; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 cat >conftest.$ac_ext <<_ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20565 #include <sys/types.h>
20566 #include <inttypes.h>
20575 rm -f conftest.$ac_objext
20576 if { (ac_try="$ac_compile"
20577 case "(($ac_try" in
20578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20579 *) ac_try_echo=$ac_try;;
20581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20582 (eval "$ac_compile") 2>conftest.er1
20584 grep -v '^ *+' conftest.er1 >conftest.err
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } && {
20589 test -z "$ac_c_werror_flag" ||
20590 test ! -s conftest.err
20591 } && test -s conftest.$ac_objext; then
20592 gt_cv_header_inttypes_h=yes
20594 echo "$as_me: failed program was:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20597 gt_cv_header_inttypes_h=no
20600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20603 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
20604 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
20605 if test $gt_cv_header_inttypes_h = yes; then
20607 cat >>confdefs.h <<_ACEOF
20608 #define HAVE_INTTYPES_H 1
20615 if test $gt_cv_header_inttypes_h = yes; then
20616 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
20617 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
20618 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
20619 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 cat >conftest.$ac_ext <<_ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h. */
20628 #include <inttypes.h>
20641 rm -f conftest.$ac_objext
20642 if { (ac_try="$ac_compile"
20643 case "(($ac_try" in
20644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_compile") 2>conftest.er1
20650 grep -v '^ *+' conftest.er1 >conftest.err
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } && {
20655 test -z "$ac_c_werror_flag" ||
20656 test ! -s conftest.err
20657 } && test -s conftest.$ac_objext; then
20658 gt_cv_inttypes_pri_broken=no
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 gt_cv_inttypes_pri_broken=yes
20666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20669 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
20670 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
20672 if test "$gt_cv_inttypes_pri_broken" = yes; then
20674 cat >>confdefs.h <<_ACEOF
20675 #define PRI_MACROS_BROKEN 1
20682 for ac_header in stdint.h
20684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20686 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20687 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20688 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 ac_res=`eval echo '${'$as_ac_Header'}'`
20692 { echo "$as_me:$LINENO: result: $ac_res" >&5
20693 echo "${ECHO_T}$ac_res" >&6; }
20695 # Is the header compilable?
20696 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20697 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20698 cat >conftest.$ac_ext <<_ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704 $ac_includes_default
20705 #include <$ac_header>
20707 rm -f conftest.$ac_objext
20708 if { (ac_try="$ac_compile"
20709 case "(($ac_try" in
20710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20711 *) ac_try_echo=$ac_try;;
20713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20714 (eval "$ac_compile") 2>conftest.er1
20716 grep -v '^ *+' conftest.er1 >conftest.err
20718 cat conftest.err >&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } && {
20721 test -z "$ac_c_werror_flag" ||
20722 test ! -s conftest.err
20723 } && test -s conftest.$ac_objext; then
20724 ac_header_compiler=yes
20726 echo "$as_me: failed program was:" >&5
20727 sed 's/^/| /' conftest.$ac_ext >&5
20729 ac_header_compiler=no
20732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20733 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20734 echo "${ECHO_T}$ac_header_compiler" >&6; }
20736 # Is the header present?
20737 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20738 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20739 cat >conftest.$ac_ext <<_ACEOF
20742 cat confdefs.h >>conftest.$ac_ext
20743 cat >>conftest.$ac_ext <<_ACEOF
20744 /* end confdefs.h. */
20745 #include <$ac_header>
20747 if { (ac_try="$ac_cpp conftest.$ac_ext"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20755 grep -v '^ *+' conftest.er1 >conftest.err
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } >/dev/null && {
20760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20763 ac_header_preproc=yes
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 ac_header_preproc=no
20771 rm -f conftest.err conftest.$ac_ext
20772 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20773 echo "${ECHO_T}$ac_header_preproc" >&6; }
20775 # So? What about this header?
20776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20779 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20781 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20782 ac_header_preproc=yes
20785 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20786 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20787 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20788 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20789 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20790 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20791 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20792 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20794 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20796 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20805 eval "$as_ac_Header=\$ac_header_preproc"
20807 ac_res=`eval echo '${'$as_ac_Header'}'`
20808 { echo "$as_me:$LINENO: result: $ac_res" >&5
20809 echo "${ECHO_T}$ac_res" >&6; }
20812 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20813 cat >>confdefs.h <<_ACEOF
20814 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20821 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
20822 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
20824 cat >conftest.$ac_ext <<_ACEOF
20827 cat confdefs.h >>conftest.$ac_ext
20828 cat >>conftest.$ac_ext <<_ACEOF
20829 /* end confdefs.h. */
20831 #include <limits.h>
20833 #include <stdint.h>
20840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20841 $EGREP "Found it" >/dev/null 2>&1; then
20846 if test -z "$result"; then
20847 if test "$cross_compiling" = yes; then
20848 # Depending upon the size, compute the lo and hi bounds.
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 #include <stddef.h>
20859 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
20866 rm -f conftest.$ac_objext
20867 if { (ac_try="$ac_compile"
20868 case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_compile") 2>conftest.er1
20875 grep -v '^ *+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879 (exit $ac_status); } && {
20880 test -z "$ac_c_werror_flag" ||
20881 test ! -s conftest.err
20882 } && test -s conftest.$ac_objext; then
20885 cat >conftest.$ac_ext <<_ACEOF
20888 cat confdefs.h >>conftest.$ac_ext
20889 cat >>conftest.$ac_ext <<_ACEOF
20890 /* end confdefs.h. */
20891 #include <stddef.h>
20895 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
20902 rm -f conftest.$ac_objext
20903 if { (ac_try="$ac_compile"
20904 case "(($ac_try" in
20905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20906 *) ac_try_echo=$ac_try;;
20908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20909 (eval "$ac_compile") 2>conftest.er1
20911 grep -v '^ *+' conftest.er1 >conftest.err
20913 cat conftest.err >&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); } && {
20916 test -z "$ac_c_werror_flag" ||
20917 test ! -s conftest.err
20918 } && test -s conftest.$ac_objext; then
20919 ac_hi=$ac_mid; break
20921 echo "$as_me: failed program was:" >&5
20922 sed 's/^/| /' conftest.$ac_ext >&5
20924 ac_lo=`expr $ac_mid + 1`
20925 if test $ac_lo -le $ac_mid; then
20929 ac_mid=`expr 2 '*' $ac_mid + 1`
20932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 echo "$as_me: failed program was:" >&5
20936 sed 's/^/| /' conftest.$ac_ext >&5
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20944 #include <stddef.h>
20948 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
20955 rm -f conftest.$ac_objext
20956 if { (ac_try="$ac_compile"
20957 case "(($ac_try" in
20958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20959 *) ac_try_echo=$ac_try;;
20961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20962 (eval "$ac_compile") 2>conftest.er1
20964 grep -v '^ *+' conftest.er1 >conftest.err
20966 cat conftest.err >&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } && {
20969 test -z "$ac_c_werror_flag" ||
20970 test ! -s conftest.err
20971 } && test -s conftest.$ac_objext; then
20974 cat >conftest.$ac_ext <<_ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980 #include <stddef.h>
20984 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
20991 rm -f conftest.$ac_objext
20992 if { (ac_try="$ac_compile"
20993 case "(($ac_try" in
20994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20995 *) ac_try_echo=$ac_try;;
20997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20998 (eval "$ac_compile") 2>conftest.er1
21000 grep -v '^ *+' conftest.er1 >conftest.err
21002 cat conftest.err >&5
21003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); } && {
21005 test -z "$ac_c_werror_flag" ||
21006 test ! -s conftest.err
21007 } && test -s conftest.$ac_objext; then
21008 ac_lo=$ac_mid; break
21010 echo "$as_me: failed program was:" >&5
21011 sed 's/^/| /' conftest.$ac_ext >&5
21013 ac_hi=`expr '(' $ac_mid ')' - 1`
21014 if test $ac_mid -le $ac_hi; then
21018 ac_mid=`expr 2 '*' $ac_mid`
21021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 # Binary search between lo and hi bounds.
21035 while test "x$ac_lo" != "x$ac_hi"; do
21036 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21037 cat >conftest.$ac_ext <<_ACEOF
21040 cat confdefs.h >>conftest.$ac_ext
21041 cat >>conftest.$ac_ext <<_ACEOF
21042 /* end confdefs.h. */
21043 #include <stddef.h>
21047 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
21054 rm -f conftest.$ac_objext
21055 if { (ac_try="$ac_compile"
21056 case "(($ac_try" in
21057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21058 *) ac_try_echo=$ac_try;;
21060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21061 (eval "$ac_compile") 2>conftest.er1
21063 grep -v '^ *+' conftest.er1 >conftest.err
21065 cat conftest.err >&5
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); } && {
21068 test -z "$ac_c_werror_flag" ||
21069 test ! -s conftest.err
21070 } && test -s conftest.$ac_objext; then
21073 echo "$as_me: failed program was:" >&5
21074 sed 's/^/| /' conftest.$ac_ext >&5
21076 ac_lo=`expr '(' $ac_mid ')' + 1`
21079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082 ?*) res_hi=$ac_lo;;
21086 cat >conftest.$ac_ext <<_ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 #include <stddef.h>
21093 static long int longval () { return ~(size_t)0 / 10; }
21094 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
21096 #include <stdlib.h>
21101 FILE *f = fopen ("conftest.val", "w");
21104 if ((~(size_t)0 / 10) < 0)
21106 long int i = longval ();
21107 if (i != (~(size_t)0 / 10))
21109 fprintf (f, "%ld\n", i);
21113 unsigned long int i = ulongval ();
21114 if (i != (~(size_t)0 / 10))
21116 fprintf (f, "%lu\n", i);
21118 return ferror (f) || fclose (f) != 0;
21124 rm -f conftest$ac_exeext
21125 if { (ac_try="$ac_link"
21126 case "(($ac_try" in
21127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21128 *) ac_try_echo=$ac_try;;
21130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21131 (eval "$ac_link") 2>&5
21133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21135 { (case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_try") 2>&5
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; }; then
21144 res_hi=`cat conftest.val`
21146 echo "$as_me: program exited with status $ac_status" >&5
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ( exit $ac_status )
21153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21157 if test "$cross_compiling" = yes; then
21158 # Depending upon the size, compute the lo and hi bounds.
21159 cat >conftest.$ac_ext <<_ACEOF
21162 cat confdefs.h >>conftest.$ac_ext
21163 cat >>conftest.$ac_ext <<_ACEOF
21164 /* end confdefs.h. */
21165 #include <stddef.h>
21169 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
21176 rm -f conftest.$ac_objext
21177 if { (ac_try="$ac_compile"
21178 case "(($ac_try" in
21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180 *) ac_try_echo=$ac_try;;
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183 (eval "$ac_compile") 2>conftest.er1
21185 grep -v '^ *+' conftest.er1 >conftest.err
21187 cat conftest.err >&5
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); } && {
21190 test -z "$ac_c_werror_flag" ||
21191 test ! -s conftest.err
21192 } && test -s conftest.$ac_objext; then
21195 cat >conftest.$ac_ext <<_ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 #include <stddef.h>
21205 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21212 rm -f conftest.$ac_objext
21213 if { (ac_try="$ac_compile"
21214 case "(($ac_try" in
21215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21216 *) ac_try_echo=$ac_try;;
21218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21219 (eval "$ac_compile") 2>conftest.er1
21221 grep -v '^ *+' conftest.er1 >conftest.err
21223 cat conftest.err >&5
21224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } && {
21226 test -z "$ac_c_werror_flag" ||
21227 test ! -s conftest.err
21228 } && test -s conftest.$ac_objext; then
21229 ac_hi=$ac_mid; break
21231 echo "$as_me: failed program was:" >&5
21232 sed 's/^/| /' conftest.$ac_ext >&5
21234 ac_lo=`expr $ac_mid + 1`
21235 if test $ac_lo -le $ac_mid; then
21239 ac_mid=`expr 2 '*' $ac_mid + 1`
21242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245 echo "$as_me: failed program was:" >&5
21246 sed 's/^/| /' conftest.$ac_ext >&5
21248 cat >conftest.$ac_ext <<_ACEOF
21251 cat confdefs.h >>conftest.$ac_ext
21252 cat >>conftest.$ac_ext <<_ACEOF
21253 /* end confdefs.h. */
21254 #include <stddef.h>
21258 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
21265 rm -f conftest.$ac_objext
21266 if { (ac_try="$ac_compile"
21267 case "(($ac_try" in
21268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21269 *) ac_try_echo=$ac_try;;
21271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21272 (eval "$ac_compile") 2>conftest.er1
21274 grep -v '^ *+' conftest.er1 >conftest.err
21276 cat conftest.err >&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } && {
21279 test -z "$ac_c_werror_flag" ||
21280 test ! -s conftest.err
21281 } && test -s conftest.$ac_objext; then
21284 cat >conftest.$ac_ext <<_ACEOF
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21290 #include <stddef.h>
21294 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
21301 rm -f conftest.$ac_objext
21302 if { (ac_try="$ac_compile"
21303 case "(($ac_try" in
21304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21305 *) ac_try_echo=$ac_try;;
21307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21308 (eval "$ac_compile") 2>conftest.er1
21310 grep -v '^ *+' conftest.er1 >conftest.err
21312 cat conftest.err >&5
21313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314 (exit $ac_status); } && {
21315 test -z "$ac_c_werror_flag" ||
21316 test ! -s conftest.err
21317 } && test -s conftest.$ac_objext; then
21318 ac_lo=$ac_mid; break
21320 echo "$as_me: failed program was:" >&5
21321 sed 's/^/| /' conftest.$ac_ext >&5
21323 ac_hi=`expr '(' $ac_mid ')' - 1`
21324 if test $ac_mid -le $ac_hi; then
21328 ac_mid=`expr 2 '*' $ac_mid`
21331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21334 echo "$as_me: failed program was:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344 # Binary search between lo and hi bounds.
21345 while test "x$ac_lo" != "x$ac_hi"; do
21346 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21347 cat >conftest.$ac_ext <<_ACEOF
21350 cat confdefs.h >>conftest.$ac_ext
21351 cat >>conftest.$ac_ext <<_ACEOF
21352 /* end confdefs.h. */
21353 #include <stddef.h>
21357 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
21364 rm -f conftest.$ac_objext
21365 if { (ac_try="$ac_compile"
21366 case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371 (eval "$ac_compile") 2>conftest.er1
21373 grep -v '^ *+' conftest.er1 >conftest.err
21375 cat conftest.err >&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } && {
21378 test -z "$ac_c_werror_flag" ||
21379 test ! -s conftest.err
21380 } && test -s conftest.$ac_objext; then
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21386 ac_lo=`expr '(' $ac_mid ')' + 1`
21389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21392 ?*) res_lo=$ac_lo;;
21396 cat >conftest.$ac_ext <<_ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 #include <stddef.h>
21403 static long int longval () { return ~(size_t)0 % 10; }
21404 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
21406 #include <stdlib.h>
21411 FILE *f = fopen ("conftest.val", "w");
21414 if ((~(size_t)0 % 10) < 0)
21416 long int i = longval ();
21417 if (i != (~(size_t)0 % 10))
21419 fprintf (f, "%ld\n", i);
21423 unsigned long int i = ulongval ();
21424 if (i != (~(size_t)0 % 10))
21426 fprintf (f, "%lu\n", i);
21428 return ferror (f) || fclose (f) != 0;
21434 rm -f conftest$ac_exeext
21435 if { (ac_try="$ac_link"
21436 case "(($ac_try" in
21437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21438 *) ac_try_echo=$ac_try;;
21440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21441 (eval "$ac_link") 2>&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21445 { (case "(($ac_try" in
21446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21447 *) ac_try_echo=$ac_try;;
21449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21450 (eval "$ac_try") 2>&5
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 res_lo=`cat conftest.val`
21456 echo "$as_me: program exited with status $ac_status" >&5
21457 echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21460 ( exit $ac_status )
21463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21467 if test "$cross_compiling" = yes; then
21468 # Depending upon the size, compute the lo and hi bounds.
21469 cat >conftest.$ac_ext <<_ACEOF
21472 cat confdefs.h >>conftest.$ac_ext
21473 cat >>conftest.$ac_ext <<_ACEOF
21474 /* end confdefs.h. */
21475 #include <stddef.h>
21479 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
21486 rm -f conftest.$ac_objext
21487 if { (ac_try="$ac_compile"
21488 case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_compile") 2>conftest.er1
21495 grep -v '^ *+' conftest.er1 >conftest.err
21497 cat conftest.err >&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } && {
21500 test -z "$ac_c_werror_flag" ||
21501 test ! -s conftest.err
21502 } && test -s conftest.$ac_objext; then
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 #include <stddef.h>
21515 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21522 rm -f conftest.$ac_objext
21523 if { (ac_try="$ac_compile"
21524 case "(($ac_try" in
21525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21526 *) ac_try_echo=$ac_try;;
21528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21529 (eval "$ac_compile") 2>conftest.er1
21531 grep -v '^ *+' conftest.er1 >conftest.err
21533 cat conftest.err >&5
21534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535 (exit $ac_status); } && {
21536 test -z "$ac_c_werror_flag" ||
21537 test ! -s conftest.err
21538 } && test -s conftest.$ac_objext; then
21539 ac_hi=$ac_mid; break
21541 echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.$ac_ext >&5
21544 ac_lo=`expr $ac_mid + 1`
21545 if test $ac_lo -le $ac_mid; then
21549 ac_mid=`expr 2 '*' $ac_mid + 1`
21552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21555 echo "$as_me: failed program was:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 cat >conftest.$ac_ext <<_ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 #include <stddef.h>
21568 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
21575 rm -f conftest.$ac_objext
21576 if { (ac_try="$ac_compile"
21577 case "(($ac_try" in
21578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21579 *) ac_try_echo=$ac_try;;
21581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21582 (eval "$ac_compile") 2>conftest.er1
21584 grep -v '^ *+' conftest.er1 >conftest.err
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } && {
21589 test -z "$ac_c_werror_flag" ||
21590 test ! -s conftest.err
21591 } && test -s conftest.$ac_objext; then
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 #include <stddef.h>
21604 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
21611 rm -f conftest.$ac_objext
21612 if { (ac_try="$ac_compile"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_compile") 2>conftest.er1
21620 grep -v '^ *+' conftest.er1 >conftest.err
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } && {
21625 test -z "$ac_c_werror_flag" ||
21626 test ! -s conftest.err
21627 } && test -s conftest.$ac_objext; then
21628 ac_lo=$ac_mid; break
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21633 ac_hi=`expr '(' $ac_mid ')' - 1`
21634 if test $ac_mid -le $ac_hi; then
21638 ac_mid=`expr 2 '*' $ac_mid`
21641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21654 # Binary search between lo and hi bounds.
21655 while test "x$ac_lo" != "x$ac_hi"; do
21656 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21657 cat >conftest.$ac_ext <<_ACEOF
21660 cat confdefs.h >>conftest.$ac_ext
21661 cat >>conftest.$ac_ext <<_ACEOF
21662 /* end confdefs.h. */
21663 #include <stddef.h>
21667 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
21674 rm -f conftest.$ac_objext
21675 if { (ac_try="$ac_compile"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_compile") 2>conftest.er1
21683 grep -v '^ *+' conftest.er1 >conftest.err
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && {
21688 test -z "$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21690 } && test -s conftest.$ac_objext; then
21693 echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_lo=`expr '(' $ac_mid ')' + 1`
21699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702 ?*) fits_in_uint=$ac_lo;;
21706 cat >conftest.$ac_ext <<_ACEOF
21709 cat confdefs.h >>conftest.$ac_ext
21710 cat >>conftest.$ac_ext <<_ACEOF
21711 /* end confdefs.h. */
21712 #include <stddef.h>
21713 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
21714 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
21716 #include <stdlib.h>
21721 FILE *f = fopen ("conftest.val", "w");
21724 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
21726 long int i = longval ();
21727 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21729 fprintf (f, "%ld\n", i);
21733 unsigned long int i = ulongval ();
21734 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
21736 fprintf (f, "%lu\n", i);
21738 return ferror (f) || fclose (f) != 0;
21744 rm -f conftest$ac_exeext
21745 if { (ac_try="$ac_link"
21746 case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_link") 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21755 { (case "(($ac_try" in
21756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21757 *) ac_try_echo=$ac_try;;
21759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21760 (eval "$ac_try") 2>&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); }; }; then
21764 fits_in_uint=`cat conftest.val`
21766 echo "$as_me: program exited with status $ac_status" >&5
21767 echo "$as_me: failed program was:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21770 ( exit $ac_status )
21773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21777 if test "$fits_in_uint" = 1; then
21778 cat >conftest.$ac_ext <<_ACEOF
21781 cat confdefs.h >>conftest.$ac_ext
21782 cat >>conftest.$ac_ext <<_ACEOF
21783 /* end confdefs.h. */
21784 #include <stddef.h>
21786 extern unsigned long foo;
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_compile") 2>conftest.er1
21805 grep -v '^ *+' conftest.er1 >conftest.err
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } && {
21810 test -z "$ac_c_werror_flag" ||
21811 test ! -s conftest.err
21812 } && test -s conftest.$ac_objext; then
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823 if test -z "$result"; then
21824 if test "$fits_in_uint" = 1; then
21825 result="$res_hi$res_lo"U
21827 result="$res_hi$res_lo"UL
21830 result='~(size_t)0'
21833 { echo "$as_me:$LINENO: result: $result" >&5
21834 echo "${ECHO_T}$result" >&6; }
21835 if test "$result" != yes; then
21837 cat >>confdefs.h <<_ACEOF
21838 #define SIZE_MAX $result
21847 for ac_header in stdint.h
21849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21851 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21854 echo $ECHO_N "(cached) $ECHO_C" >&6
21856 ac_res=`eval echo '${'$as_ac_Header'}'`
21857 { echo "$as_me:$LINENO: result: $ac_res" >&5
21858 echo "${ECHO_T}$ac_res" >&6; }
21860 # Is the header compilable?
21861 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21862 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21863 cat >conftest.$ac_ext <<_ACEOF
21866 cat confdefs.h >>conftest.$ac_ext
21867 cat >>conftest.$ac_ext <<_ACEOF
21868 /* end confdefs.h. */
21869 $ac_includes_default
21870 #include <$ac_header>
21872 rm -f conftest.$ac_objext
21873 if { (ac_try="$ac_compile"
21874 case "(($ac_try" in
21875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21876 *) ac_try_echo=$ac_try;;
21878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21879 (eval "$ac_compile") 2>conftest.er1
21881 grep -v '^ *+' conftest.er1 >conftest.err
21883 cat conftest.err >&5
21884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21885 (exit $ac_status); } && {
21886 test -z "$ac_c_werror_flag" ||
21887 test ! -s conftest.err
21888 } && test -s conftest.$ac_objext; then
21889 ac_header_compiler=yes
21891 echo "$as_me: failed program was:" >&5
21892 sed 's/^/| /' conftest.$ac_ext >&5
21894 ac_header_compiler=no
21897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21899 echo "${ECHO_T}$ac_header_compiler" >&6; }
21901 # Is the header present?
21902 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21903 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21904 cat >conftest.$ac_ext <<_ACEOF
21907 cat confdefs.h >>conftest.$ac_ext
21908 cat >>conftest.$ac_ext <<_ACEOF
21909 /* end confdefs.h. */
21910 #include <$ac_header>
21912 if { (ac_try="$ac_cpp conftest.$ac_ext"
21913 case "(($ac_try" in
21914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21915 *) ac_try_echo=$ac_try;;
21917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21920 grep -v '^ *+' conftest.er1 >conftest.err
21922 cat conftest.err >&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } >/dev/null && {
21925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21926 test ! -s conftest.err
21928 ac_header_preproc=yes
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 ac_header_preproc=no
21936 rm -f conftest.err conftest.$ac_ext
21937 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21938 echo "${ECHO_T}$ac_header_preproc" >&6; }
21940 # So? What about this header?
21941 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21944 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21946 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21947 ac_header_preproc=yes
21950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21954 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21955 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21956 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21957 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21958 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21959 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21960 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21961 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21967 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21968 echo $ECHO_N "(cached) $ECHO_C" >&6
21970 eval "$as_ac_Header=\$ac_header_preproc"
21972 ac_res=`eval echo '${'$as_ac_Header'}'`
21973 { echo "$as_me:$LINENO: result: $ac_res" >&5
21974 echo "${ECHO_T}$ac_res" >&6; }
21977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21978 cat >>confdefs.h <<_ACEOF
21979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21993 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
21994 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
21995 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21998 cat >conftest.$ac_ext <<_ACEOF
22001 cat confdefs.h >>conftest.$ac_ext
22002 cat >>conftest.$ac_ext <<_ACEOF
22003 /* end confdefs.h. */
22004 $ac_includes_default
22005 typedef ptrdiff_t ac__type_new_;
22009 if ((ac__type_new_ *) 0)
22011 if (sizeof (ac__type_new_))
22017 rm -f conftest.$ac_objext
22018 if { (ac_try="$ac_compile"
22019 case "(($ac_try" in
22020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021 *) ac_try_echo=$ac_try;;
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024 (eval "$ac_compile") 2>conftest.er1
22026 grep -v '^ *+' conftest.er1 >conftest.err
22028 cat conftest.err >&5
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); } && {
22031 test -z "$ac_c_werror_flag" ||
22032 test ! -s conftest.err
22033 } && test -s conftest.$ac_objext; then
22034 ac_cv_type_ptrdiff_t=yes
22036 echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22039 ac_cv_type_ptrdiff_t=no
22042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
22045 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
22046 if test $ac_cv_type_ptrdiff_t = yes; then
22050 cat >>confdefs.h <<\_ACEOF
22051 #define ptrdiff_t long
22067 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
22068 stdlib.h string.h unistd.h sys/param.h
22070 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22071 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22072 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22073 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22075 echo $ECHO_N "(cached) $ECHO_C" >&6
22077 ac_res=`eval echo '${'$as_ac_Header'}'`
22078 { echo "$as_me:$LINENO: result: $ac_res" >&5
22079 echo "${ECHO_T}$ac_res" >&6; }
22081 # Is the header compilable?
22082 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22083 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22084 cat >conftest.$ac_ext <<_ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22090 $ac_includes_default
22091 #include <$ac_header>
22093 rm -f conftest.$ac_objext
22094 if { (ac_try="$ac_compile"
22095 case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_compile") 2>conftest.er1
22102 grep -v '^ *+' conftest.er1 >conftest.err
22104 cat conftest.err >&5
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); } && {
22107 test -z "$ac_c_werror_flag" ||
22108 test ! -s conftest.err
22109 } && test -s conftest.$ac_objext; then
22110 ac_header_compiler=yes
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22115 ac_header_compiler=no
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22119 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22120 echo "${ECHO_T}$ac_header_compiler" >&6; }
22122 # Is the header present?
22123 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22124 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22125 cat >conftest.$ac_ext <<_ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 #include <$ac_header>
22133 if { (ac_try="$ac_cpp conftest.$ac_ext"
22134 case "(($ac_try" in
22135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22136 *) ac_try_echo=$ac_try;;
22138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22139 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22141 grep -v '^ *+' conftest.er1 >conftest.err
22143 cat conftest.err >&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } >/dev/null && {
22146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22147 test ! -s conftest.err
22149 ac_header_preproc=yes
22151 echo "$as_me: failed program was:" >&5
22152 sed 's/^/| /' conftest.$ac_ext >&5
22154 ac_header_preproc=no
22157 rm -f conftest.err conftest.$ac_ext
22158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22159 echo "${ECHO_T}$ac_header_preproc" >&6; }
22161 # So? What about this header?
22162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22164 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22168 ac_header_preproc=yes
22171 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22173 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22174 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22175 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22178 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22181 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22189 echo $ECHO_N "(cached) $ECHO_C" >&6
22191 eval "$as_ac_Header=\$ac_header_preproc"
22193 ac_res=`eval echo '${'$as_ac_Header'}'`
22194 { echo "$as_me:$LINENO: result: $ac_res" >&5
22195 echo "${ECHO_T}$ac_res" >&6; }
22198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22199 cat >>confdefs.h <<_ACEOF
22200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22230 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
22231 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
22232 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
22235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22239 echo $ECHO_N "(cached) $ECHO_C" >&6
22241 cat >conftest.$ac_ext <<_ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h. */
22247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22249 #define $ac_func innocuous_$ac_func
22251 /* System header to define __stub macros and hopefully few prototypes,
22252 which can conflict with char $ac_func (); below.
22253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22254 <limits.h> exists even on freestanding compilers. */
22257 # include <limits.h>
22259 # include <assert.h>
22264 /* Override any GCC internal prototype to avoid an error.
22265 Use char because int might match the return type of a GCC
22266 builtin and then its argument prototype would still apply. */
22271 /* The GNU C library defines this for functions which it implements
22272 to always fail with ENOSYS. Some functions are actually named
22273 something starting with __ and the normal name is an alias. */
22274 #if defined __stub_$ac_func || defined __stub___$ac_func
22281 return $ac_func ();
22286 rm -f conftest.$ac_objext conftest$ac_exeext
22287 if { (ac_try="$ac_link"
22288 case "(($ac_try" in
22289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290 *) ac_try_echo=$ac_try;;
22292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22293 (eval "$ac_link") 2>conftest.er1
22295 grep -v '^ *+' conftest.er1 >conftest.err
22297 cat conftest.err >&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); } && {
22300 test -z "$ac_c_werror_flag" ||
22301 test ! -s conftest.err
22302 } && test -s conftest$ac_exeext &&
22303 $as_test_x conftest$ac_exeext; then
22304 eval "$as_ac_var=yes"
22306 echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22309 eval "$as_ac_var=no"
22312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22313 conftest$ac_exeext conftest.$ac_ext
22315 ac_res=`eval echo '${'$as_ac_var'}'`
22316 { echo "$as_me:$LINENO: result: $ac_res" >&5
22317 echo "${ECHO_T}$ac_res" >&6; }
22318 if test `eval echo '${'$as_ac_var'}'` = yes; then
22319 cat >>confdefs.h <<_ACEOF
22320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22328 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22329 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
22330 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22331 echo $ECHO_N "(cached) $ECHO_C" >&6
22333 cat >conftest.$ac_ext <<_ACEOF
22336 cat confdefs.h >>conftest.$ac_ext
22337 cat >>conftest.$ac_ext <<_ACEOF
22338 /* end confdefs.h. */
22345 char *p = (char *) _snprintf;
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356 *) ac_try_echo=$ac_try;;
22358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22359 (eval "$ac_compile") 2>conftest.er1
22361 grep -v '^ *+' conftest.er1 >conftest.err
22363 cat conftest.err >&5
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); } && {
22366 test -z "$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22368 } && test -s conftest.$ac_objext; then
22369 ac_cv_have_decl__snprintf=yes
22371 echo "$as_me: failed program was:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 ac_cv_have_decl__snprintf=no
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22380 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
22381 if test $ac_cv_have_decl__snprintf = yes; then
22387 cat >>confdefs.h <<_ACEOF
22388 #define HAVE_DECL__SNPRINTF $gt_value
22393 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
22394 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
22395 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
22396 echo $ECHO_N "(cached) $ECHO_C" >&6
22398 cat >conftest.$ac_ext <<_ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22410 char *p = (char *) _snwprintf;
22417 rm -f conftest.$ac_objext
22418 if { (ac_try="$ac_compile"
22419 case "(($ac_try" in
22420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22421 *) ac_try_echo=$ac_try;;
22423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22424 (eval "$ac_compile") 2>conftest.er1
22426 grep -v '^ *+' conftest.er1 >conftest.err
22428 cat conftest.err >&5
22429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22430 (exit $ac_status); } && {
22431 test -z "$ac_c_werror_flag" ||
22432 test ! -s conftest.err
22433 } && test -s conftest.$ac_objext; then
22434 ac_cv_have_decl__snwprintf=yes
22436 echo "$as_me: failed program was:" >&5
22437 sed 's/^/| /' conftest.$ac_ext >&5
22439 ac_cv_have_decl__snwprintf=no
22442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
22445 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
22446 if test $ac_cv_have_decl__snwprintf = yes; then
22452 cat >>confdefs.h <<_ACEOF
22453 #define HAVE_DECL__SNWPRINTF $gt_value
22459 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
22460 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
22461 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
22462 echo $ECHO_N "(cached) $ECHO_C" >&6
22464 cat >conftest.$ac_ext <<_ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22475 #ifndef feof_unlocked
22476 char *p = (char *) feof_unlocked;
22483 rm -f conftest.$ac_objext
22484 if { (ac_try="$ac_compile"
22485 case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490 (eval "$ac_compile") 2>conftest.er1
22492 grep -v '^ *+' conftest.er1 >conftest.err
22494 cat conftest.err >&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } && {
22497 test -z "$ac_c_werror_flag" ||
22498 test ! -s conftest.err
22499 } && test -s conftest.$ac_objext; then
22500 ac_cv_have_decl_feof_unlocked=yes
22502 echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22505 ac_cv_have_decl_feof_unlocked=no
22508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22510 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
22511 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
22512 if test $ac_cv_have_decl_feof_unlocked = yes; then
22518 cat >>confdefs.h <<_ACEOF
22519 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
22524 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
22525 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
22526 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22540 #ifndef fgets_unlocked
22541 char *p = (char *) fgets_unlocked;
22548 rm -f conftest.$ac_objext
22549 if { (ac_try="$ac_compile"
22550 case "(($ac_try" in
22551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22552 *) ac_try_echo=$ac_try;;
22554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22555 (eval "$ac_compile") 2>conftest.er1
22557 grep -v '^ *+' conftest.er1 >conftest.err
22559 cat conftest.err >&5
22560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } && {
22562 test -z "$ac_c_werror_flag" ||
22563 test ! -s conftest.err
22564 } && test -s conftest.$ac_objext; then
22565 ac_cv_have_decl_fgets_unlocked=yes
22567 echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22570 ac_cv_have_decl_fgets_unlocked=no
22573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22575 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
22576 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
22577 if test $ac_cv_have_decl_fgets_unlocked = yes; then
22583 cat >>confdefs.h <<_ACEOF
22584 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
22589 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
22590 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
22591 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
22592 echo $ECHO_N "(cached) $ECHO_C" >&6
22594 cat >conftest.$ac_ext <<_ACEOF
22597 cat confdefs.h >>conftest.$ac_ext
22598 cat >>conftest.$ac_ext <<_ACEOF
22599 /* end confdefs.h. */
22605 #ifndef getc_unlocked
22606 char *p = (char *) getc_unlocked;
22613 rm -f conftest.$ac_objext
22614 if { (ac_try="$ac_compile"
22615 case "(($ac_try" in
22616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22617 *) ac_try_echo=$ac_try;;
22619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22620 (eval "$ac_compile") 2>conftest.er1
22622 grep -v '^ *+' conftest.er1 >conftest.err
22624 cat conftest.err >&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } && {
22627 test -z "$ac_c_werror_flag" ||
22628 test ! -s conftest.err
22629 } && test -s conftest.$ac_objext; then
22630 ac_cv_have_decl_getc_unlocked=yes
22632 echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22635 ac_cv_have_decl_getc_unlocked=no
22638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22640 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
22641 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
22642 if test $ac_cv_have_decl_getc_unlocked = yes; then
22648 cat >>confdefs.h <<_ACEOF
22649 #define HAVE_DECL_GETC_UNLOCKED $gt_value
22654 case $gt_cv_func_printf_posix in
22655 *yes) HAVE_POSIX_PRINTF=1 ;;
22656 *) HAVE_POSIX_PRINTF=0 ;;
22659 if test "$ac_cv_func_asprintf" = yes; then
22665 if test "$ac_cv_func_snprintf" = yes; then
22671 if test "$ac_cv_func_wprintf" = yes; then
22683 am_save_CPPFLAGS="$CPPFLAGS"
22685 for element in $INCICONV; do
22687 for x in $CPPFLAGS; do
22689 acl_save_prefix="$prefix"
22690 prefix="$acl_final_prefix"
22691 acl_save_exec_prefix="$exec_prefix"
22692 exec_prefix="$acl_final_exec_prefix"
22694 exec_prefix="$acl_save_exec_prefix"
22695 prefix="$acl_save_prefix"
22697 if test "X$x" = "X$element"; then
22702 if test -z "$haveit"; then
22703 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22708 { echo "$as_me:$LINENO: checking for iconv" >&5
22709 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
22710 if test "${am_cv_func_iconv+set}" = set; then
22711 echo $ECHO_N "(cached) $ECHO_C" >&6
22714 am_cv_func_iconv="no, consider installing GNU libiconv"
22716 cat >conftest.$ac_ext <<_ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 #include <stdlib.h>
22727 iconv_t cd = iconv_open("","");
22728 iconv(cd,NULL,NULL,NULL,NULL);
22734 rm -f conftest.$ac_objext conftest$ac_exeext
22735 if { (ac_try="$ac_link"
22736 case "(($ac_try" in
22737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738 *) ac_try_echo=$ac_try;;
22740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22741 (eval "$ac_link") 2>conftest.er1
22743 grep -v '^ *+' conftest.er1 >conftest.err
22745 cat conftest.err >&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); } && {
22748 test -z "$ac_c_werror_flag" ||
22749 test ! -s conftest.err
22750 } && test -s conftest$ac_exeext &&
22751 $as_test_x conftest$ac_exeext; then
22752 am_cv_func_iconv=yes
22754 echo "$as_me: failed program was:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22761 conftest$ac_exeext conftest.$ac_ext
22762 if test "$am_cv_func_iconv" != yes; then
22763 am_save_LIBS="$LIBS"
22764 LIBS="$LIBS $LIBICONV"
22765 cat >conftest.$ac_ext <<_ACEOF
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22771 #include <stdlib.h>
22776 iconv_t cd = iconv_open("","");
22777 iconv(cd,NULL,NULL,NULL,NULL);
22783 rm -f conftest.$ac_objext conftest$ac_exeext
22784 if { (ac_try="$ac_link"
22785 case "(($ac_try" in
22786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787 *) ac_try_echo=$ac_try;;
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790 (eval "$ac_link") 2>conftest.er1
22792 grep -v '^ *+' conftest.er1 >conftest.err
22794 cat conftest.err >&5
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); } && {
22797 test -z "$ac_c_werror_flag" ||
22798 test ! -s conftest.err
22799 } && test -s conftest$ac_exeext &&
22800 $as_test_x conftest$ac_exeext; then
22801 am_cv_lib_iconv=yes
22802 am_cv_func_iconv=yes
22804 echo "$as_me: failed program was:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22811 conftest$ac_exeext conftest.$ac_ext
22812 LIBS="$am_save_LIBS"
22816 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22817 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22818 if test "$am_cv_func_iconv" = yes; then
22820 cat >>confdefs.h <<\_ACEOF
22821 #define HAVE_ICONV 1
22825 if test "$am_cv_lib_iconv" = yes; then
22826 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22827 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22828 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
22829 echo "${ECHO_T}$LIBICONV" >&6; }
22831 CPPFLAGS="$am_save_CPPFLAGS"
22838 if test "$am_cv_func_iconv" = yes; then
22839 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
22840 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22841 if test "${am_cv_proto_iconv+set}" = set; then
22842 echo $ECHO_N "(cached) $ECHO_C" >&6
22845 cat >conftest.$ac_ext <<_ACEOF
22848 cat confdefs.h >>conftest.$ac_ext
22849 cat >>conftest.$ac_ext <<_ACEOF
22850 /* end confdefs.h. */
22852 #include <stdlib.h>
22858 #if defined(__STDC__) || defined(__cplusplus)
22859 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22872 rm -f conftest.$ac_objext
22873 if { (ac_try="$ac_compile"
22874 case "(($ac_try" in
22875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22876 *) ac_try_echo=$ac_try;;
22878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22879 (eval "$ac_compile") 2>conftest.er1
22881 grep -v '^ *+' conftest.er1 >conftest.err
22883 cat conftest.err >&5
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } && {
22886 test -z "$ac_c_werror_flag" ||
22887 test ! -s conftest.err
22888 } && test -s conftest.$ac_objext; then
22889 am_cv_proto_iconv_arg1=""
22891 echo "$as_me: failed program was:" >&5
22892 sed 's/^/| /' conftest.$ac_ext >&5
22894 am_cv_proto_iconv_arg1="const"
22897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22898 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);"
22901 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22902 { echo "$as_me:$LINENO: result: ${ac_t:-
22903 }$am_cv_proto_iconv" >&5
22904 echo "${ECHO_T}${ac_t:-
22905 }$am_cv_proto_iconv" >&6; }
22907 cat >>confdefs.h <<_ACEOF
22908 #define ICONV_CONST $am_cv_proto_iconv_arg1
22914 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22915 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22916 if test "${am_cv_langinfo_codeset+set}" = set; then
22917 echo $ECHO_N "(cached) $ECHO_C" >&6
22919 cat >conftest.$ac_ext <<_ACEOF
22922 cat confdefs.h >>conftest.$ac_ext
22923 cat >>conftest.$ac_ext <<_ACEOF
22924 /* end confdefs.h. */
22925 #include <langinfo.h>
22929 char* cs = nl_langinfo(CODESET);
22934 rm -f conftest.$ac_objext conftest$ac_exeext
22935 if { (ac_try="$ac_link"
22936 case "(($ac_try" in
22937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22938 *) ac_try_echo=$ac_try;;
22940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22941 (eval "$ac_link") 2>conftest.er1
22943 grep -v '^ *+' conftest.er1 >conftest.err
22945 cat conftest.err >&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); } && {
22948 test -z "$ac_c_werror_flag" ||
22949 test ! -s conftest.err
22950 } && test -s conftest$ac_exeext &&
22951 $as_test_x conftest$ac_exeext; then
22952 am_cv_langinfo_codeset=yes
22954 echo "$as_me: failed program was:" >&5
22955 sed 's/^/| /' conftest.$ac_ext >&5
22957 am_cv_langinfo_codeset=no
22960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22961 conftest$ac_exeext conftest.$ac_ext
22964 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
22965 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
22966 if test $am_cv_langinfo_codeset = yes; then
22968 cat >>confdefs.h <<\_ACEOF
22969 #define HAVE_LANGINFO_CODESET 1
22974 if test $ac_cv_header_locale_h = yes; then
22976 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
22977 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
22978 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
22979 echo $ECHO_N "(cached) $ECHO_C" >&6
22981 cat >conftest.$ac_ext <<_ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22987 #include <locale.h>
22996 rm -f conftest.$ac_objext conftest$ac_exeext
22997 if { (ac_try="$ac_link"
22998 case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23003 (eval "$ac_link") 2>conftest.er1
23005 grep -v '^ *+' conftest.er1 >conftest.err
23007 cat conftest.err >&5
23008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23009 (exit $ac_status); } && {
23010 test -z "$ac_c_werror_flag" ||
23011 test ! -s conftest.err
23012 } && test -s conftest$ac_exeext &&
23013 $as_test_x conftest$ac_exeext; then
23014 gt_cv_val_LC_MESSAGES=yes
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23019 gt_cv_val_LC_MESSAGES=no
23022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23023 conftest$ac_exeext conftest.$ac_ext
23025 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
23026 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
23027 if test $gt_cv_val_LC_MESSAGES = yes; then
23029 cat >>confdefs.h <<\_ACEOF
23030 #define HAVE_LC_MESSAGES 1
23037 if test -n "$INTL_MACOSX_LIBS"; then
23038 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23041 for ac_prog in bison
23043 # Extract the first word of "$ac_prog", so it can be a program name with args.
23044 set dummy $ac_prog; ac_word=$2
23045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23047 if test "${ac_cv_prog_INTLBISON+set}" = set; then
23048 echo $ECHO_N "(cached) $ECHO_C" >&6
23050 if test -n "$INTLBISON"; then
23051 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
23053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23054 for as_dir in $PATH
23057 test -z "$as_dir" && as_dir=.
23058 for ac_exec_ext in '' $ac_executable_extensions; do
23059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23060 ac_cv_prog_INTLBISON="$ac_prog"
23061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23070 INTLBISON=$ac_cv_prog_INTLBISON
23071 if test -n "$INTLBISON"; then
23072 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
23073 echo "${ECHO_T}$INTLBISON" >&6; }
23075 { echo "$as_me:$LINENO: result: no" >&5
23076 echo "${ECHO_T}no" >&6; }
23080 test -n "$INTLBISON" && break
23083 if test -z "$INTLBISON"; then
23086 { echo "$as_me:$LINENO: checking version of bison" >&5
23087 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
23088 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
23089 case $ac_prog_version in
23090 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
23091 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
23092 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
23093 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
23095 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
23096 echo "${ECHO_T}$ac_prog_version" >&6; }
23098 if test $ac_verc_fail = yes; then
23117 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
23118 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
23119 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
23120 echo $ECHO_N "(cached) $ECHO_C" >&6
23122 gt_save_CPPFLAGS="$CPPFLAGS"
23123 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23124 gt_save_LIBS="$LIBS"
23125 LIBS="$LIBS -framework CoreFoundation"
23126 cat >conftest.$ac_ext <<_ACEOF
23129 cat confdefs.h >>conftest.$ac_ext
23130 cat >>conftest.$ac_ext <<_ACEOF
23131 /* end confdefs.h. */
23132 #include <CFPreferences.h>
23136 CFPreferencesCopyAppValue(NULL, NULL)
23141 rm -f conftest.$ac_objext conftest$ac_exeext
23142 if { (ac_try="$ac_link"
23143 case "(($ac_try" in
23144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145 *) ac_try_echo=$ac_try;;
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148 (eval "$ac_link") 2>conftest.er1
23150 grep -v '^ *+' conftest.er1 >conftest.err
23152 cat conftest.err >&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); } && {
23155 test -z "$ac_c_werror_flag" ||
23156 test ! -s conftest.err
23157 } && test -s conftest$ac_exeext &&
23158 $as_test_x conftest$ac_exeext; then
23159 gt_cv_func_CFPreferencesCopyAppValue=yes
23161 echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23164 gt_cv_func_CFPreferencesCopyAppValue=no
23167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23168 conftest$ac_exeext conftest.$ac_ext
23169 CPPFLAGS="$gt_save_CPPFLAGS"
23170 LIBS="$gt_save_LIBS"
23172 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
23173 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
23174 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
23176 cat >>confdefs.h <<\_ACEOF
23177 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
23181 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
23182 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
23183 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
23184 echo $ECHO_N "(cached) $ECHO_C" >&6
23186 gt_save_CPPFLAGS="$CPPFLAGS"
23187 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
23188 gt_save_LIBS="$LIBS"
23189 LIBS="$LIBS -framework CoreFoundation"
23190 cat >conftest.$ac_ext <<_ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23196 #include <CFLocale.h>
23200 CFLocaleCopyCurrent();
23205 rm -f conftest.$ac_objext conftest$ac_exeext
23206 if { (ac_try="$ac_link"
23207 case "(($ac_try" in
23208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23209 *) ac_try_echo=$ac_try;;
23211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23212 (eval "$ac_link") 2>conftest.er1
23214 grep -v '^ *+' conftest.er1 >conftest.err
23216 cat conftest.err >&5
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } && {
23219 test -z "$ac_c_werror_flag" ||
23220 test ! -s conftest.err
23221 } && test -s conftest$ac_exeext &&
23222 $as_test_x conftest$ac_exeext; then
23223 gt_cv_func_CFLocaleCopyCurrent=yes
23225 echo "$as_me: failed program was:" >&5
23226 sed 's/^/| /' conftest.$ac_ext >&5
23228 gt_cv_func_CFLocaleCopyCurrent=no
23231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23232 conftest$ac_exeext conftest.$ac_ext
23233 CPPFLAGS="$gt_save_CPPFLAGS"
23234 LIBS="$gt_save_LIBS"
23236 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
23237 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
23238 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23240 cat >>confdefs.h <<\_ACEOF
23241 #define HAVE_CFLOCALECOPYCURRENT 1
23246 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
23247 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
23253 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
23254 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
23255 # Check whether --enable-nls was given.
23256 if test "${enable_nls+set}" = set; then
23257 enableval=$enable_nls; USE_NLS=$enableval
23262 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23263 echo "${ECHO_T}$USE_NLS" >&6; }
23268 BUILD_INCLUDED_LIBINTL=no
23269 USE_INCLUDED_LIBINTL=no
23275 if test "$USE_NLS" = "yes"; then
23276 gt_use_preinstalled_gnugettext=no
23278 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
23279 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
23281 # Check whether --with-included-gettext was given.
23282 if test "${with_included_gettext+set}" = set; then
23283 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
23285 nls_cv_force_use_gnu_gettext=no
23288 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
23289 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
23291 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
23292 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
23299 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
23300 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
23301 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
23302 echo $ECHO_N "(cached) $ECHO_C" >&6
23304 cat >conftest.$ac_ext <<_ACEOF
23307 cat confdefs.h >>conftest.$ac_ext
23308 cat >>conftest.$ac_ext <<_ACEOF
23309 /* end confdefs.h. */
23310 #include <libintl.h>
23311 extern int _nl_msg_cat_cntr;
23312 extern int *_nl_domain_bindings;
23316 bindtextdomain ("", "");
23317 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
23322 rm -f conftest.$ac_objext conftest$ac_exeext
23323 if { (ac_try="$ac_link"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_link") 2>conftest.er1
23331 grep -v '^ *+' conftest.er1 >conftest.err
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest$ac_exeext &&
23339 $as_test_x conftest$ac_exeext; then
23340 gt_cv_func_gnugettext1_libc=yes
23342 echo "$as_me: failed program was:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 gt_cv_func_gnugettext1_libc=no
23348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23349 conftest$ac_exeext conftest.$ac_ext
23351 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
23352 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
23354 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
23360 acl_save_prefix="$prefix"
23361 prefix="$acl_final_prefix"
23362 acl_save_exec_prefix="$exec_prefix"
23363 exec_prefix="$acl_final_exec_prefix"
23365 eval additional_includedir=\"$includedir\"
23366 eval additional_libdir=\"$libdir\"
23368 exec_prefix="$acl_save_exec_prefix"
23369 prefix="$acl_save_prefix"
23372 # Check whether --with-libintl-prefix was given.
23373 if test "${with_libintl_prefix+set}" = set; then
23374 withval=$with_libintl_prefix;
23375 if test "X$withval" = "Xno"; then
23378 if test "X$withval" = "X"; then
23380 acl_save_prefix="$prefix"
23381 prefix="$acl_final_prefix"
23382 acl_save_exec_prefix="$exec_prefix"
23383 exec_prefix="$acl_final_exec_prefix"
23385 eval additional_includedir=\"$includedir\"
23386 eval additional_libdir=\"$libdir\"
23388 exec_prefix="$acl_save_exec_prefix"
23389 prefix="$acl_save_prefix"
23392 additional_includedir="$withval/include"
23393 additional_libdir="$withval/lib"
23404 names_already_handled=
23405 names_next_round='intl '
23406 while test -n "$names_next_round"; do
23407 names_this_round="$names_next_round"
23409 for name in $names_this_round; do
23411 for n in $names_already_handled; do
23412 if test "$n" = "$name"; then
23413 already_handled=yes
23417 if test -z "$already_handled"; then
23418 names_already_handled="$names_already_handled $name"
23419 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
23420 eval value=\"\$HAVE_LIB$uppername\"
23421 if test -n "$value"; then
23422 if test "$value" = yes; then
23423 eval value=\"\$LIB$uppername\"
23424 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
23425 eval value=\"\$LTLIB$uppername\"
23426 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
23435 if test $use_additional = yes; then
23436 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
23437 found_dir="$additional_libdir"
23438 found_so="$additional_libdir/lib$name.$shlibext"
23439 if test -f "$additional_libdir/lib$name.la"; then
23440 found_la="$additional_libdir/lib$name.la"
23443 if test -f "$additional_libdir/lib$name.$libext"; then
23444 found_dir="$additional_libdir"
23445 found_a="$additional_libdir/lib$name.$libext"
23446 if test -f "$additional_libdir/lib$name.la"; then
23447 found_la="$additional_libdir/lib$name.la"
23452 if test "X$found_dir" = "X"; then
23453 for x in $LDFLAGS $LTLIBINTL; do
23455 acl_save_prefix="$prefix"
23456 prefix="$acl_final_prefix"
23457 acl_save_exec_prefix="$exec_prefix"
23458 exec_prefix="$acl_final_exec_prefix"
23460 exec_prefix="$acl_save_exec_prefix"
23461 prefix="$acl_save_prefix"
23465 dir=`echo "X$x" | sed -e 's/^X-L//'`
23466 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
23468 found_so="$dir/lib$name.$shlibext"
23469 if test -f "$dir/lib$name.la"; then
23470 found_la="$dir/lib$name.la"
23473 if test -f "$dir/lib$name.$libext"; then
23475 found_a="$dir/lib$name.$libext"
23476 if test -f "$dir/lib$name.la"; then
23477 found_la="$dir/lib$name.la"
23483 if test "X$found_dir" != "X"; then
23488 if test "X$found_dir" != "X"; then
23489 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
23490 if test "X$found_so" != "X"; then
23491 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
23492 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23495 for x in $ltrpathdirs; do
23496 if test "X$x" = "X$found_dir"; then
23501 if test -z "$haveit"; then
23502 ltrpathdirs="$ltrpathdirs $found_dir"
23504 if test "$hardcode_direct" = yes; then
23505 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23507 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
23508 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23510 for x in $rpathdirs; do
23511 if test "X$x" = "X$found_dir"; then
23516 if test -z "$haveit"; then
23517 rpathdirs="$rpathdirs $found_dir"
23521 for x in $LDFLAGS $LIBINTL; do
23523 acl_save_prefix="$prefix"
23524 prefix="$acl_final_prefix"
23525 acl_save_exec_prefix="$exec_prefix"
23526 exec_prefix="$acl_final_exec_prefix"
23528 exec_prefix="$acl_save_exec_prefix"
23529 prefix="$acl_save_prefix"
23531 if test "X$x" = "X-L$found_dir"; then
23536 if test -z "$haveit"; then
23537 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
23539 if test "$hardcode_minus_L" != no; then
23540 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
23542 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23548 if test "X$found_a" != "X"; then
23549 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
23551 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
23554 additional_includedir=
23555 case "$found_dir" in
23557 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
23558 additional_includedir="$basedir/include"
23561 if test "X$additional_includedir" != "X"; then
23562 if test "X$additional_includedir" != "X/usr/include"; then
23564 if test "X$additional_includedir" = "X/usr/local/include"; then
23565 if test -n "$GCC"; then
23567 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23571 if test -z "$haveit"; then
23572 for x in $CPPFLAGS $INCINTL; do
23574 acl_save_prefix="$prefix"
23575 prefix="$acl_final_prefix"
23576 acl_save_exec_prefix="$exec_prefix"
23577 exec_prefix="$acl_final_exec_prefix"
23579 exec_prefix="$acl_save_exec_prefix"
23580 prefix="$acl_save_prefix"
23582 if test "X$x" = "X-I$additional_includedir"; then
23587 if test -z "$haveit"; then
23588 if test -d "$additional_includedir"; then
23589 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
23595 if test -n "$found_la"; then
23596 save_libdir="$libdir"
23597 case "$found_la" in
23598 */* | *\\*) . "$found_la" ;;
23599 *) . "./$found_la" ;;
23601 libdir="$save_libdir"
23602 for dep in $dependency_libs; do
23605 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
23606 if test "X$additional_libdir" != "X/usr/lib"; then
23608 if test "X$additional_libdir" = "X/usr/local/lib"; then
23609 if test -n "$GCC"; then
23611 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
23615 if test -z "$haveit"; then
23617 for x in $LDFLAGS $LIBINTL; do
23619 acl_save_prefix="$prefix"
23620 prefix="$acl_final_prefix"
23621 acl_save_exec_prefix="$exec_prefix"
23622 exec_prefix="$acl_final_exec_prefix"
23624 exec_prefix="$acl_save_exec_prefix"
23625 prefix="$acl_save_prefix"
23627 if test "X$x" = "X-L$additional_libdir"; then
23632 if test -z "$haveit"; then
23633 if test -d "$additional_libdir"; then
23634 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
23638 for x in $LDFLAGS $LTLIBINTL; do
23640 acl_save_prefix="$prefix"
23641 prefix="$acl_final_prefix"
23642 acl_save_exec_prefix="$exec_prefix"
23643 exec_prefix="$acl_final_exec_prefix"
23645 exec_prefix="$acl_save_exec_prefix"
23646 prefix="$acl_save_prefix"
23648 if test "X$x" = "X-L$additional_libdir"; then
23653 if test -z "$haveit"; then
23654 if test -d "$additional_libdir"; then
23655 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
23662 dir=`echo "X$dep" | sed -e 's/^X-R//'`
23663 if test "$enable_rpath" != no; then
23665 for x in $rpathdirs; do
23666 if test "X$x" = "X$dir"; then
23671 if test -z "$haveit"; then
23672 rpathdirs="$rpathdirs $dir"
23675 for x in $ltrpathdirs; do
23676 if test "X$x" = "X$dir"; then
23681 if test -z "$haveit"; then
23682 ltrpathdirs="$ltrpathdirs $dir"
23687 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
23690 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
23693 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
23694 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
23700 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
23701 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
23707 if test "X$rpathdirs" != "X"; then
23708 if test -n "$hardcode_libdir_separator"; then
23710 for found_dir in $rpathdirs; do
23711 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
23713 acl_save_libdir="$libdir"
23715 eval flag=\"$hardcode_libdir_flag_spec\"
23716 libdir="$acl_save_libdir"
23717 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23719 for found_dir in $rpathdirs; do
23720 acl_save_libdir="$libdir"
23721 libdir="$found_dir"
23722 eval flag=\"$hardcode_libdir_flag_spec\"
23723 libdir="$acl_save_libdir"
23724 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
23728 if test "X$ltrpathdirs" != "X"; then
23729 for found_dir in $ltrpathdirs; do
23730 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
23734 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
23735 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
23736 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
23737 echo $ECHO_N "(cached) $ECHO_C" >&6
23739 gt_save_CPPFLAGS="$CPPFLAGS"
23740 CPPFLAGS="$CPPFLAGS $INCINTL"
23741 gt_save_LIBS="$LIBS"
23742 LIBS="$LIBS $LIBINTL"
23743 cat >conftest.$ac_ext <<_ACEOF
23746 cat confdefs.h >>conftest.$ac_ext
23747 cat >>conftest.$ac_ext <<_ACEOF
23748 /* end confdefs.h. */
23749 #include <libintl.h>
23750 extern int _nl_msg_cat_cntr;
23755 const char *_nl_expand_alias (const char *);
23759 bindtextdomain ("", "");
23760 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23765 rm -f conftest.$ac_objext conftest$ac_exeext
23766 if { (ac_try="$ac_link"
23767 case "(($ac_try" in
23768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23769 *) ac_try_echo=$ac_try;;
23771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23772 (eval "$ac_link") 2>conftest.er1
23774 grep -v '^ *+' conftest.er1 >conftest.err
23776 cat conftest.err >&5
23777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23778 (exit $ac_status); } && {
23779 test -z "$ac_c_werror_flag" ||
23780 test ! -s conftest.err
23781 } && test -s conftest$ac_exeext &&
23782 $as_test_x conftest$ac_exeext; then
23783 gt_cv_func_gnugettext1_libintl=yes
23785 echo "$as_me: failed program was:" >&5
23786 sed 's/^/| /' conftest.$ac_ext >&5
23788 gt_cv_func_gnugettext1_libintl=no
23791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23792 conftest$ac_exeext conftest.$ac_ext
23793 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
23794 LIBS="$LIBS $LIBICONV"
23795 cat >conftest.$ac_ext <<_ACEOF
23798 cat confdefs.h >>conftest.$ac_ext
23799 cat >>conftest.$ac_ext <<_ACEOF
23800 /* end confdefs.h. */
23801 #include <libintl.h>
23802 extern int _nl_msg_cat_cntr;
23807 const char *_nl_expand_alias (const char *);
23811 bindtextdomain ("", "");
23812 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
23817 rm -f conftest.$ac_objext conftest$ac_exeext
23818 if { (ac_try="$ac_link"
23819 case "(($ac_try" in
23820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23821 *) ac_try_echo=$ac_try;;
23823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23824 (eval "$ac_link") 2>conftest.er1
23826 grep -v '^ *+' conftest.er1 >conftest.err
23828 cat conftest.err >&5
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } && {
23831 test -z "$ac_c_werror_flag" ||
23832 test ! -s conftest.err
23833 } && test -s conftest$ac_exeext &&
23834 $as_test_x conftest$ac_exeext; then
23835 LIBINTL="$LIBINTL $LIBICONV"
23836 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
23837 gt_cv_func_gnugettext1_libintl=yes
23840 echo "$as_me: failed program was:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23847 conftest$ac_exeext conftest.$ac_ext
23849 CPPFLAGS="$gt_save_CPPFLAGS"
23850 LIBS="$gt_save_LIBS"
23852 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
23853 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
23856 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
23857 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
23858 && test "$PACKAGE" != gettext-runtime \
23859 && test "$PACKAGE" != gettext-tools; }; then
23860 gt_use_preinstalled_gnugettext=yes
23868 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
23869 nls_cv_use_gnu_gettext=yes
23873 if test "$nls_cv_use_gnu_gettext" = "yes"; then
23874 BUILD_INCLUDED_LIBINTL=yes
23875 USE_INCLUDED_LIBINTL=yes
23876 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
23877 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
23878 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
23882 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23883 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23888 if test -n "$INTL_MACOSX_LIBS"; then
23889 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23890 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23891 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
23892 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
23896 if test "$gt_use_preinstalled_gnugettext" = "yes" \
23897 || test "$nls_cv_use_gnu_gettext" = "yes"; then
23899 cat >>confdefs.h <<\_ACEOF
23900 #define ENABLE_NLS 1
23908 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
23909 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
23910 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
23911 echo "${ECHO_T}$USE_NLS" >&6; }
23912 if test "$USE_NLS" = "yes"; then
23913 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
23914 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
23915 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23916 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23917 gt_source="external libintl"
23922 gt_source="included intl directory"
23924 { echo "$as_me:$LINENO: result: $gt_source" >&5
23925 echo "${ECHO_T}$gt_source" >&6; }
23928 if test "$USE_NLS" = "yes"; then
23930 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
23931 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
23932 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
23933 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
23934 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
23935 echo "${ECHO_T}$LIBINTL" >&6; }
23937 for element in $INCINTL; do
23939 for x in $CPPFLAGS; do
23941 acl_save_prefix="$prefix"
23942 prefix="$acl_final_prefix"
23943 acl_save_exec_prefix="$exec_prefix"
23944 exec_prefix="$acl_final_exec_prefix"
23946 exec_prefix="$acl_save_exec_prefix"
23947 prefix="$acl_save_prefix"
23949 if test "X$x" = "X$element"; then
23954 if test -z "$haveit"; then
23955 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
23962 cat >>confdefs.h <<\_ACEOF
23963 #define HAVE_GETTEXT 1
23967 cat >>confdefs.h <<\_ACEOF
23968 #define HAVE_DCGETTEXT 1
23977 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
23978 BUILD_INCLUDED_LIBINTL=yes
23985 nls_cv_header_intl=
23986 nls_cv_header_libgt=
23998 if test "$USE_INCLUDED_LIBINTL" = yes; then
23999 INTLOBJS="\$(GETTOBJS)"
24003 INTL_LIBTOOL_SUFFIX_PREFIX=
24007 INTLLIBS="$LIBINTL"
24019 support_postgresql=no
24021 support_smartalloc=yes
24022 support_readline=yes
24026 support_wx_console=no
24027 support_tray_monitor=no
24032 support_static_tools=no
24033 support_static_fd=no
24034 support_static_sd=no
24035 support_static_dir=no
24036 support_static_cons=no
24038 build_client_only=no
24047 # Check whether --enable-gnome was given.
24048 if test "${enable_gnome+set}" = set; then
24049 enableval=$enable_gnome;
24050 if test x$enableval = xyes; then
24059 if test x$support_gnome = xyes; then
24060 { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24061 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24062 { (exit 1); exit 1; }; }
24063 { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24064 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24065 { (exit 1); exit 1; }; }
24067 # AC_SUBST(GNOME_DIR)
24069 # Check whether --enable-bat was given.
24070 if test "${enable_bat+set}" = set; then
24071 enableval=$enable_bat;
24072 if test x$enableval = xyes; then
24074 cat >>confdefs.h <<\_ACEOF
24086 if test x$support_bat = xyes; then
24087 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24089 if test $pkg = 0; then
24090 BAT_DIR=src/qt-console
24092 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24093 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24094 { (exit 1); exit 1; }; }
24104 if test x$support_bat = xyes; then
24105 { echo "$as_me:$LINENO: checking for qwt support" >&5
24106 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
24108 # Check whether --with-qwt was given.
24109 if test "${with_qwt+set}" = set; then
24111 case "$with_qwt" in
24116 if test -f ${with_qwt}/include/qwt.h; then
24117 QWT_INC="${with_qwt}/include"
24118 QWT_LDFLAGS="-L${with_qwt}/lib"
24129 if test $no_qwt = no; then
24130 if test x$QWT_INC = x; then
24131 for root in /usr /usr/local; do
24132 for ver in qwt qwt5 qwt-qt4; do
24133 if test -f ${root}/include/${ver}/qwt.h; then
24134 QWT_INC="${root}/include/${ver}"
24135 if test -d ${root}/lib64/; then
24136 QWT_LDFLAGS="-L${root}/lib64"
24137 elif test -d ${root}/lib/64/; then
24138 QWT_LDFLAGS="-L${root}/64"
24140 QWT_LDFLAGS="-L${root}/lib"
24151 if test x$QWT_INC = x; then
24152 { echo "$as_me:$LINENO: result: no" >&5
24153 echo "${ECHO_T}no" >&6; }
24156 cat >>confdefs.h <<\_ACEOF
24160 { echo "$as_me:$LINENO: result: yes" >&5
24161 echo "${ECHO_T}yes" >&6; }
24171 # Check whether --enable-bwx-console was given.
24172 if test "${enable_bwx_console+set}" = set; then
24173 enableval=$enable_bwx_console;
24174 if test x$enableval = xyes; then
24175 support_wx_console=yes
24183 if test x$support_wx_console = xyes; then
24184 abc=`$WXCONFIG $WXFLAGS --cppflags`
24186 if test $pkg = 0; then
24187 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24188 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24189 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24193 WX_DIR="src/wx-console"
24196 echo "wx-config program not found. bwx-console disabled."
24198 support_wx_console=no
24203 # Check whether --enable-tray-monitor was given.
24204 if test "${enable_tray_monitor+set}" = set; then
24205 enableval=$enable_tray_monitor;
24206 if test x$enableval = xyes; then
24207 support_tray_monitor=yes
24215 if test x$support_tray_monitor = xyes; then
24216 abc=`$PKGCONFIG --exists gtk+-2.0`
24218 if test $pkg = 0; then
24219 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24220 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24223 TRAY_MONITOR_DIR=src/tray-monitor
24224 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24226 if test $pkg = 0; then
24228 cat >>confdefs.h <<\_ACEOF
24229 #define HAVE_GTK_2_4 1
24237 # Check whether --enable-smartalloc was given.
24238 if test "${enable_smartalloc+set}" = set; then
24239 enableval=$enable_smartalloc;
24240 if test x$enableval = xno; then
24241 support_smartalloc=no
24248 if test x$support_smartalloc = xyes; then
24250 cat >>confdefs.h <<\_ACEOF
24251 #define SMARTALLOC 1
24256 # Check whether --enable-lockmgr was given.
24257 if test "${enable_lockmgr+set}" = set; then
24258 enableval=$enable_lockmgr;
24259 if test x$enableval = xyes; then
24260 support_lockmgr=yes
24267 if test x$support_lockmgr = xyes; then
24269 cat >>confdefs.h <<\_ACEOF
24270 #define _USE_LOCKMGR 1
24276 # Check whether --enable-static-tools was given.
24277 if test "${enable_static_tools+set}" = set; then
24278 enableval=$enable_static_tools;
24279 if test x$enableval = xyes; then
24280 if test x$use_libtool = xyes; then
24281 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24282 please rerun configure with --disable-libtool" >&5
24283 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24284 please rerun configure with --disable-libtool" >&2;}
24285 { (exit 1); exit 1; }; }
24287 support_static_tools=yes
24295 if test x$support_static_tools = xyes; then
24296 TTOOL_LDFLAGS="-static"
24300 # Check whether --enable-static-fd was given.
24301 if test "${enable_static_fd+set}" = set; then
24302 enableval=$enable_static_fd;
24303 if test x$enableval = xyes; then
24304 if test x$use_libtool = xyes; then
24305 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24306 please rerun configure with --disable-libtool" >&5
24307 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24308 please rerun configure with --disable-libtool" >&2;}
24309 { (exit 1); exit 1; }; }
24311 support_static_fd=yes
24319 if test x$support_static_fd = xyes; then
24320 STATIC_FD="static-bacula-fd"
24324 # Check whether --enable-static-sd was given.
24325 if test "${enable_static_sd+set}" = set; then
24326 enableval=$enable_static_sd;
24327 if test x$enableval = xyes; then
24328 if test x$use_libtool = xyes; then
24329 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24330 please rerun configure with --disable-libtool" >&5
24331 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24332 please rerun configure with --disable-libtool" >&2;}
24333 { (exit 1); exit 1; }; }
24335 support_static_sd=yes
24343 if test x$support_static_sd = xyes; then
24344 STATIC_SD="static-bacula-sd"
24348 # Check whether --enable-static-dir was given.
24349 if test "${enable_static_dir+set}" = set; then
24350 enableval=$enable_static_dir;
24351 if test x$enableval = xyes; then
24352 if test x$use_libtool = xyes; then
24353 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24354 please rerun configure with --disable-libtool" >&5
24355 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24356 please rerun configure with --disable-libtool" >&2;}
24357 { (exit 1); exit 1; }; }
24359 support_static_dir=yes
24367 if test x$support_static_dir = xyes; then
24368 STATIC_DIR="static-bacula-dir"
24372 # Check whether --enable-static-cons was given.
24373 if test "${enable_static_cons+set}" = set; then
24374 enableval=$enable_static_cons;
24375 if test x$enableval = xyes; then
24376 if test x$use_libtool = xyes; then
24377 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24378 please rerun configure with --disable-libtool" >&5
24379 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24380 please rerun configure with --disable-libtool" >&2;}
24381 { (exit 1); exit 1; }; }
24383 support_static_cons=yes
24393 if test x$support_static_cons = xyes; then
24394 STATIC_CONS="static-bconsole"
24395 STATIC_GNOME_CONS="static-bgnome-console"
24396 STATIC_WX_CONS="static-bwx-console"
24402 # Check whether --enable-client-only was given.
24403 if test "${enable_client_only+set}" = set; then
24404 enableval=$enable_client_only;
24405 if test x$enableval = xyes; then
24406 build_client_only=yes
24414 if test x$build_client_only = xno; then
24421 # Check whether --enable-build-dird was given.
24422 if test "${enable_build_dird+set}" = set; then
24423 enableval=$enable_build_dird;
24424 if test x$enableval = xno; then
24431 if test x$build_dird = xyes; then
24432 DIRD_DIR="src/dird"
24433 DIR_TOOLS="DIRTOOLS"
24436 DIR_TOOLS="NODIRTOOLS"
24441 # Check whether --enable-build-stored was given.
24442 if test "${enable_build_stored+set}" = set; then
24443 enableval=$enable_build_stored;
24444 if test x$enableval = xno; then
24451 if test x$build_stored = xyes; then
24452 STORED_DIR="src/stored"
24458 # Check whether --enable-conio was given.
24459 if test "${enable_conio+set}" = set; then
24460 enableval=$enable_conio;
24461 if test x$enableval = xno; then
24471 # Check whether --enable-ipv6 was given.
24472 if test "${enable_ipv6+set}" = set; then
24473 enableval=$enable_ipv6;
24474 if test x$enableval = xno; then
24482 if test x$support_ipv6 = xyes; then
24483 cat >conftest.$ac_ext <<_ACEOF
24486 cat confdefs.h >>conftest.$ac_ext
24487 cat >>conftest.$ac_ext <<_ACEOF
24488 /* end confdefs.h. */
24489 #include <sys/types.h>
24490 #include <sys/socket.h>
24491 #include <netinet/in.h>
24495 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24500 rm -f conftest.$ac_objext conftest$ac_exeext
24501 if { (ac_try="$ac_link"
24502 case "(($ac_try" in
24503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24504 *) ac_try_echo=$ac_try;;
24506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24507 (eval "$ac_link") 2>conftest.er1
24509 grep -v '^ *+' conftest.er1 >conftest.err
24511 cat conftest.err >&5
24512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24513 (exit $ac_status); } && {
24514 test -z "$ac_c_werror_flag" ||
24515 test ! -s conftest.err
24516 } && test -s conftest$ac_exeext &&
24517 $as_test_x conftest$ac_exeext; then
24520 echo "$as_me: failed program was:" >&5
24521 sed 's/^/| /' conftest.$ac_ext >&5
24526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24527 conftest$ac_exeext conftest.$ac_ext
24530 if test x$support_ipv6 = xyes; then
24532 cat >>confdefs.h <<\_ACEOF
24533 #define HAVE_IPV6 1
24539 if test x$support_conio = xyes; then
24540 if test "${ac_cv_header_termcap_h+set}" = set; then
24541 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24542 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24543 if test "${ac_cv_header_termcap_h+set}" = set; then
24544 echo $ECHO_N "(cached) $ECHO_C" >&6
24546 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24547 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24549 # Is the header compilable?
24550 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24551 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24552 cat >conftest.$ac_ext <<_ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558 $ac_includes_default
24559 #include <termcap.h>
24561 rm -f conftest.$ac_objext
24562 if { (ac_try="$ac_compile"
24563 case "(($ac_try" in
24564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24565 *) ac_try_echo=$ac_try;;
24567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24568 (eval "$ac_compile") 2>conftest.er1
24570 grep -v '^ *+' conftest.er1 >conftest.err
24572 cat conftest.err >&5
24573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574 (exit $ac_status); } && {
24575 test -z "$ac_c_werror_flag" ||
24576 test ! -s conftest.err
24577 } && test -s conftest.$ac_objext; then
24578 ac_header_compiler=yes
24580 echo "$as_me: failed program was:" >&5
24581 sed 's/^/| /' conftest.$ac_ext >&5
24583 ac_header_compiler=no
24586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24588 echo "${ECHO_T}$ac_header_compiler" >&6; }
24590 # Is the header present?
24591 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24592 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24593 cat >conftest.$ac_ext <<_ACEOF
24596 cat confdefs.h >>conftest.$ac_ext
24597 cat >>conftest.$ac_ext <<_ACEOF
24598 /* end confdefs.h. */
24599 #include <termcap.h>
24601 if { (ac_try="$ac_cpp conftest.$ac_ext"
24602 case "(($ac_try" in
24603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24604 *) ac_try_echo=$ac_try;;
24606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24609 grep -v '^ *+' conftest.er1 >conftest.err
24611 cat conftest.err >&5
24612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); } >/dev/null && {
24614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24615 test ! -s conftest.err
24617 ac_header_preproc=yes
24619 echo "$as_me: failed program was:" >&5
24620 sed 's/^/| /' conftest.$ac_ext >&5
24622 ac_header_preproc=no
24625 rm -f conftest.err conftest.$ac_ext
24626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24627 echo "${ECHO_T}$ac_header_preproc" >&6; }
24629 # So? What about this header?
24630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24632 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24633 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24634 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24635 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24636 ac_header_preproc=yes
24639 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24640 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24641 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24642 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24643 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24644 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24645 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24646 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24647 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24648 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24649 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24650 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24654 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24655 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24656 if test "${ac_cv_header_termcap_h+set}" = set; then
24657 echo $ECHO_N "(cached) $ECHO_C" >&6
24659 ac_cv_header_termcap_h=$ac_header_preproc
24661 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24662 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24665 if test $ac_cv_header_termcap_h = yes; then
24666 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24667 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24668 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24669 echo $ECHO_N "(cached) $ECHO_C" >&6
24671 ac_check_lib_save_LIBS=$LIBS
24672 LIBS="-ltermcap $LIBS"
24673 cat >conftest.$ac_ext <<_ACEOF
24676 cat confdefs.h >>conftest.$ac_ext
24677 cat >>conftest.$ac_ext <<_ACEOF
24678 /* end confdefs.h. */
24680 /* Override any GCC internal prototype to avoid an error.
24681 Use char because int might match the return type of a GCC
24682 builtin and then its argument prototype would still apply. */
24695 rm -f conftest.$ac_objext conftest$ac_exeext
24696 if { (ac_try="$ac_link"
24697 case "(($ac_try" in
24698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24699 *) ac_try_echo=$ac_try;;
24701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24702 (eval "$ac_link") 2>conftest.er1
24704 grep -v '^ *+' conftest.er1 >conftest.err
24706 cat conftest.err >&5
24707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708 (exit $ac_status); } && {
24709 test -z "$ac_c_werror_flag" ||
24710 test ! -s conftest.err
24711 } && test -s conftest$ac_exeext &&
24712 $as_test_x conftest$ac_exeext; then
24713 ac_cv_lib_termcap_tgetent=yes
24715 echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.$ac_ext >&5
24718 ac_cv_lib_termcap_tgetent=no
24721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24722 conftest$ac_exeext conftest.$ac_ext
24723 LIBS=$ac_check_lib_save_LIBS
24725 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24726 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24727 if test $ac_cv_lib_termcap_tgetent = yes; then
24728 CONS_LIBS="-ltermcap"
24732 support_readline=no
24734 cat >>confdefs.h <<\_ACEOF
24735 #define HAVE_CONIO 1
24740 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24741 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24742 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24743 echo $ECHO_N "(cached) $ECHO_C" >&6
24745 ac_check_lib_save_LIBS=$LIBS
24746 LIBS="-lncurses $LIBS"
24747 cat >conftest.$ac_ext <<_ACEOF
24750 cat confdefs.h >>conftest.$ac_ext
24751 cat >>conftest.$ac_ext <<_ACEOF
24752 /* end confdefs.h. */
24754 /* Override any GCC internal prototype to avoid an error.
24755 Use char because int might match the return type of a GCC
24756 builtin and then its argument prototype would still apply. */
24769 rm -f conftest.$ac_objext conftest$ac_exeext
24770 if { (ac_try="$ac_link"
24771 case "(($ac_try" in
24772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24773 *) ac_try_echo=$ac_try;;
24775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24776 (eval "$ac_link") 2>conftest.er1
24778 grep -v '^ *+' conftest.er1 >conftest.err
24780 cat conftest.err >&5
24781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24782 (exit $ac_status); } && {
24783 test -z "$ac_c_werror_flag" ||
24784 test ! -s conftest.err
24785 } && test -s conftest$ac_exeext &&
24786 $as_test_x conftest$ac_exeext; then
24787 ac_cv_lib_ncurses_tgetent=yes
24789 echo "$as_me: failed program was:" >&5
24790 sed 's/^/| /' conftest.$ac_ext >&5
24792 ac_cv_lib_ncurses_tgetent=no
24795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24796 conftest$ac_exeext conftest.$ac_ext
24797 LIBS=$ac_check_lib_save_LIBS
24799 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24800 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24801 if test $ac_cv_lib_ncurses_tgetent = yes; then
24802 CONS_LIBS="-lncurses"
24806 support_readline=no
24808 cat >>confdefs.h <<\_ACEOF
24809 #define HAVE_CONIO 1
24822 for ac_header in curses.h
24824 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24826 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24829 echo $ECHO_N "(cached) $ECHO_C" >&6
24831 ac_res=`eval echo '${'$as_ac_Header'}'`
24832 { echo "$as_me:$LINENO: result: $ac_res" >&5
24833 echo "${ECHO_T}$ac_res" >&6; }
24835 # Is the header compilable?
24836 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24837 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24838 cat >conftest.$ac_ext <<_ACEOF
24841 cat confdefs.h >>conftest.$ac_ext
24842 cat >>conftest.$ac_ext <<_ACEOF
24843 /* end confdefs.h. */
24844 $ac_includes_default
24845 #include <$ac_header>
24847 rm -f conftest.$ac_objext
24848 if { (ac_try="$ac_compile"
24849 case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24854 (eval "$ac_compile") 2>conftest.er1
24856 grep -v '^ *+' conftest.er1 >conftest.err
24858 cat conftest.err >&5
24859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860 (exit $ac_status); } && {
24861 test -z "$ac_c_werror_flag" ||
24862 test ! -s conftest.err
24863 } && test -s conftest.$ac_objext; then
24864 ac_header_compiler=yes
24866 echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24869 ac_header_compiler=no
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24873 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24874 echo "${ECHO_T}$ac_header_compiler" >&6; }
24876 # Is the header present?
24877 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24878 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24879 cat >conftest.$ac_ext <<_ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h. */
24885 #include <$ac_header>
24887 if { (ac_try="$ac_cpp conftest.$ac_ext"
24888 case "(($ac_try" in
24889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24890 *) ac_try_echo=$ac_try;;
24892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24895 grep -v '^ *+' conftest.er1 >conftest.err
24897 cat conftest.err >&5
24898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24899 (exit $ac_status); } >/dev/null && {
24900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24901 test ! -s conftest.err
24903 ac_header_preproc=yes
24905 echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24908 ac_header_preproc=no
24911 rm -f conftest.err conftest.$ac_ext
24912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24913 echo "${ECHO_T}$ac_header_preproc" >&6; }
24915 # So? What about this header?
24916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24918 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24922 ac_header_preproc=yes
24925 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24927 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24928 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24929 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24931 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24932 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24935 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24943 echo $ECHO_N "(cached) $ECHO_C" >&6
24945 eval "$as_ac_Header=\$ac_header_preproc"
24947 ac_res=`eval echo '${'$as_ac_Header'}'`
24948 { echo "$as_me:$LINENO: result: $ac_res" >&5
24949 echo "${ECHO_T}$ac_res" >&6; }
24952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24953 cat >>confdefs.h <<_ACEOF
24954 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24961 { echo "$as_me:$LINENO: checking for term.h" >&5
24962 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24963 if test "${ac_cv_header_term_h+set}" = set; then
24964 echo $ECHO_N "(cached) $ECHO_C" >&6
24966 cat >conftest.$ac_ext <<_ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h. */
24973 #include <curses.h>
24979 rm -f conftest.$ac_objext
24980 if { (ac_try="$ac_compile"
24981 case "(($ac_try" in
24982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24983 *) ac_try_echo=$ac_try;;
24985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24986 (eval "$ac_compile") 2>conftest.er1
24988 grep -v '^ *+' conftest.er1 >conftest.err
24990 cat conftest.err >&5
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); } && {
24993 test -z "$ac_c_werror_flag" ||
24994 test ! -s conftest.err
24995 } && test -s conftest.$ac_objext; then
24996 ac_cv_header_term_h=yes
24998 echo "$as_me: failed program was:" >&5
24999 sed 's/^/| /' conftest.$ac_ext >&5
25001 ac_cv_header_term_h=no
25004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25006 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
25007 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
25008 if test $ac_cv_header_term_h = yes; then
25009 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
25010 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
25011 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
25012 echo $ECHO_N "(cached) $ECHO_C" >&6
25014 ac_check_lib_save_LIBS=$LIBS
25015 LIBS="-lcurses $LIBS"
25016 cat >conftest.$ac_ext <<_ACEOF
25019 cat confdefs.h >>conftest.$ac_ext
25020 cat >>conftest.$ac_ext <<_ACEOF
25021 /* end confdefs.h. */
25023 /* Override any GCC internal prototype to avoid an error.
25024 Use char because int might match the return type of a GCC
25025 builtin and then its argument prototype would still apply. */
25038 rm -f conftest.$ac_objext conftest$ac_exeext
25039 if { (ac_try="$ac_link"
25040 case "(($ac_try" in
25041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042 *) ac_try_echo=$ac_try;;
25044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25045 (eval "$ac_link") 2>conftest.er1
25047 grep -v '^ *+' conftest.er1 >conftest.err
25049 cat conftest.err >&5
25050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051 (exit $ac_status); } && {
25052 test -z "$ac_c_werror_flag" ||
25053 test ! -s conftest.err
25054 } && test -s conftest$ac_exeext &&
25055 $as_test_x conftest$ac_exeext; then
25056 ac_cv_lib_curses_tgetent=yes
25058 echo "$as_me: failed program was:" >&5
25059 sed 's/^/| /' conftest.$ac_ext >&5
25061 ac_cv_lib_curses_tgetent=no
25064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25065 conftest$ac_exeext conftest.$ac_ext
25066 LIBS=$ac_check_lib_save_LIBS
25068 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25069 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25070 if test $ac_cv_lib_curses_tgetent = yes; then
25071 CONS_LIBS="-lcurses"
25075 support_readline=no
25077 cat >>confdefs.h <<\_ACEOF
25078 #define HAVE_CONIO 1
25086 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25097 # Check whether --enable-readline was given.
25098 if test "${enable_readline+set}" = set; then
25099 enableval=$enable_readline;
25100 if test x$enableval = xno; then
25101 support_readline=no
25110 if test x$support_readline = xyes; then
25112 # Check whether --with-readline was given.
25113 if test "${with_readline+set}" = set; then
25114 withval=$with_readline;
25115 case "$with_readline" in
25120 if test -f ${with_readline}/readline.h; then
25121 CONS_INC="-I${with_readline}"
25122 CONS_LDFLAGS="-L$with_readline"
25123 elif test -f ${with_readline}/include/readline/readline.h; then
25124 CONS_INC="-I${with_readline}/include/readline"
25125 CONS_LDFLAGS="-L${with_readline}/lib"
25126 with_readline="${with_readline}/include/readline"
25128 with_readline="/usr/include/readline"
25131 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25133 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25134 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25135 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25136 echo $ECHO_N "(cached) $ECHO_C" >&6
25138 ac_res=`eval echo '${'$as_ac_Header'}'`
25139 { echo "$as_me:$LINENO: result: $ac_res" >&5
25140 echo "${ECHO_T}$ac_res" >&6; }
25142 # Is the header compilable?
25143 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25144 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25145 cat >conftest.$ac_ext <<_ACEOF
25148 cat confdefs.h >>conftest.$ac_ext
25149 cat >>conftest.$ac_ext <<_ACEOF
25150 /* end confdefs.h. */
25151 $ac_includes_default
25152 #include <${with_readline}/readline.h>
25154 rm -f conftest.$ac_objext
25155 if { (ac_try="$ac_compile"
25156 case "(($ac_try" in
25157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25158 *) ac_try_echo=$ac_try;;
25160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25161 (eval "$ac_compile") 2>conftest.er1
25163 grep -v '^ *+' conftest.er1 >conftest.err
25165 cat conftest.err >&5
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); } && {
25168 test -z "$ac_c_werror_flag" ||
25169 test ! -s conftest.err
25170 } && test -s conftest.$ac_objext; then
25171 ac_header_compiler=yes
25173 echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25176 ac_header_compiler=no
25179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25181 echo "${ECHO_T}$ac_header_compiler" >&6; }
25183 # Is the header present?
25184 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25185 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25186 cat >conftest.$ac_ext <<_ACEOF
25189 cat confdefs.h >>conftest.$ac_ext
25190 cat >>conftest.$ac_ext <<_ACEOF
25191 /* end confdefs.h. */
25192 #include <${with_readline}/readline.h>
25194 if { (ac_try="$ac_cpp conftest.$ac_ext"
25195 case "(($ac_try" in
25196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25197 *) ac_try_echo=$ac_try;;
25199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25202 grep -v '^ *+' conftest.er1 >conftest.err
25204 cat conftest.err >&5
25205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); } >/dev/null && {
25207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25208 test ! -s conftest.err
25210 ac_header_preproc=yes
25212 echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.$ac_ext >&5
25215 ac_header_preproc=no
25218 rm -f conftest.err conftest.$ac_ext
25219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25220 echo "${ECHO_T}$ac_header_preproc" >&6; }
25222 # So? What about this header?
25223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25225 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25226 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25227 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25228 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25229 ac_header_preproc=yes
25232 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25233 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25234 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25235 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25236 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25237 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25238 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25239 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25240 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25241 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25242 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25243 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25247 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25248 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25252 eval "$as_ac_Header=\$ac_header_preproc"
25254 ac_res=`eval echo '${'$as_ac_Header'}'`
25255 { echo "$as_me:$LINENO: result: $ac_res" >&5
25256 echo "${ECHO_T}$ac_res" >&6; }
25259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25262 cat >>confdefs.h <<\_ACEOF
25263 #define HAVE_READLINE 1
25266 CONS_LIBS="-lreadline -lhistory -ltermcap"
25272 echo "readline.h not found. readline turned off ..."
25284 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25285 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25286 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25287 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25288 echo $ECHO_N "(cached) $ECHO_C" >&6
25290 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25291 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25293 # Is the header compilable?
25294 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25295 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25296 cat >conftest.$ac_ext <<_ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h. */
25302 $ac_includes_default
25303 #include </usr/include/readline/readline.h>
25305 rm -f conftest.$ac_objext
25306 if { (ac_try="$ac_compile"
25307 case "(($ac_try" in
25308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309 *) ac_try_echo=$ac_try;;
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312 (eval "$ac_compile") 2>conftest.er1
25314 grep -v '^ *+' conftest.er1 >conftest.err
25316 cat conftest.err >&5
25317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318 (exit $ac_status); } && {
25319 test -z "$ac_c_werror_flag" ||
25320 test ! -s conftest.err
25321 } && test -s conftest.$ac_objext; then
25322 ac_header_compiler=yes
25324 echo "$as_me: failed program was:" >&5
25325 sed 's/^/| /' conftest.$ac_ext >&5
25327 ac_header_compiler=no
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25332 echo "${ECHO_T}$ac_header_compiler" >&6; }
25334 # Is the header present?
25335 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25336 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25337 cat >conftest.$ac_ext <<_ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h. */
25343 #include </usr/include/readline/readline.h>
25345 if { (ac_try="$ac_cpp conftest.$ac_ext"
25346 case "(($ac_try" in
25347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25348 *) ac_try_echo=$ac_try;;
25350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25353 grep -v '^ *+' conftest.er1 >conftest.err
25355 cat conftest.err >&5
25356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357 (exit $ac_status); } >/dev/null && {
25358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25359 test ! -s conftest.err
25361 ac_header_preproc=yes
25363 echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25366 ac_header_preproc=no
25369 rm -f conftest.err conftest.$ac_ext
25370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25371 echo "${ECHO_T}$ac_header_preproc" >&6; }
25373 # So? What about this header?
25374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25376 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25377 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25378 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25379 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25380 ac_header_preproc=yes
25383 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25384 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25385 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25386 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25387 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25388 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25389 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25390 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25391 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25392 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25393 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25394 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25398 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25399 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25400 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25401 echo $ECHO_N "(cached) $ECHO_C" >&6
25403 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25405 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25406 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25409 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25412 cat >>confdefs.h <<\_ACEOF
25413 #define HAVE_READLINE 1
25417 CONS_INC="-I/usr/include/readline"
25418 CONS_LIBS="-lreadline -ltermcap"
25422 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25424 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25425 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25429 ac_res=`eval echo '${'$as_ac_Header'}'`
25430 { echo "$as_me:$LINENO: result: $ac_res" >&5
25431 echo "${ECHO_T}$ac_res" >&6; }
25433 # Is the header compilable?
25434 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25435 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25436 cat >conftest.$ac_ext <<_ACEOF
25439 cat confdefs.h >>conftest.$ac_ext
25440 cat >>conftest.$ac_ext <<_ACEOF
25441 /* end confdefs.h. */
25442 $ac_includes_default
25443 #include <${TOP_DIR}/depkgs/readline/readline.h>
25445 rm -f conftest.$ac_objext
25446 if { (ac_try="$ac_compile"
25447 case "(($ac_try" in
25448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449 *) ac_try_echo=$ac_try;;
25451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452 (eval "$ac_compile") 2>conftest.er1
25454 grep -v '^ *+' conftest.er1 >conftest.err
25456 cat conftest.err >&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); } && {
25459 test -z "$ac_c_werror_flag" ||
25460 test ! -s conftest.err
25461 } && test -s conftest.$ac_objext; then
25462 ac_header_compiler=yes
25464 echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25467 ac_header_compiler=no
25470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25472 echo "${ECHO_T}$ac_header_compiler" >&6; }
25474 # Is the header present?
25475 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25476 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25477 cat >conftest.$ac_ext <<_ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h. */
25483 #include <${TOP_DIR}/depkgs/readline/readline.h>
25485 if { (ac_try="$ac_cpp conftest.$ac_ext"
25486 case "(($ac_try" in
25487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25488 *) ac_try_echo=$ac_try;;
25490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25493 grep -v '^ *+' conftest.er1 >conftest.err
25495 cat conftest.err >&5
25496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25497 (exit $ac_status); } >/dev/null && {
25498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25499 test ! -s conftest.err
25501 ac_header_preproc=yes
25503 echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25506 ac_header_preproc=no
25509 rm -f conftest.err conftest.$ac_ext
25510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25511 echo "${ECHO_T}$ac_header_preproc" >&6; }
25513 # So? What about this header?
25514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25516 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25517 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25518 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25519 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25520 ac_header_preproc=yes
25523 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25524 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25525 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25526 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25527 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25528 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25529 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25530 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25531 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25532 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25533 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25534 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25538 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25539 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25541 echo $ECHO_N "(cached) $ECHO_C" >&6
25543 eval "$as_ac_Header=\$ac_header_preproc"
25545 ac_res=`eval echo '${'$as_ac_Header'}'`
25546 { echo "$as_me:$LINENO: result: $ac_res" >&5
25547 echo "${ECHO_T}$ac_res" >&6; }
25550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25553 cat >>confdefs.h <<\_ACEOF
25554 #define HAVE_READLINE 1
25558 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25559 CONS_LIBS="-lreadline -lhistory -ltermcap"
25560 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25561 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25566 echo "readline.h not found. readline turned off ..."
25593 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25594 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25595 if test "${ac_cv_header_stat_broken+set}" = set; then
25596 echo $ECHO_N "(cached) $ECHO_C" >&6
25598 cat >conftest.$ac_ext <<_ACEOF
25601 cat confdefs.h >>conftest.$ac_ext
25602 cat >>conftest.$ac_ext <<_ACEOF
25603 /* end confdefs.h. */
25604 #include <sys/types.h>
25605 #include <sys/stat.h>
25607 #if defined S_ISBLK && defined S_IFDIR
25608 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25611 #if defined S_ISBLK && defined S_IFCHR
25612 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25615 #if defined S_ISLNK && defined S_IFREG
25616 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25619 #if defined S_ISSOCK && defined S_IFREG
25620 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25624 rm -f conftest.$ac_objext
25625 if { (ac_try="$ac_compile"
25626 case "(($ac_try" in
25627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25628 *) ac_try_echo=$ac_try;;
25630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25631 (eval "$ac_compile") 2>conftest.er1
25633 grep -v '^ *+' conftest.er1 >conftest.err
25635 cat conftest.err >&5
25636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25637 (exit $ac_status); } && {
25638 test -z "$ac_c_werror_flag" ||
25639 test ! -s conftest.err
25640 } && test -s conftest.$ac_objext; then
25641 ac_cv_header_stat_broken=no
25643 echo "$as_me: failed program was:" >&5
25644 sed 's/^/| /' conftest.$ac_ext >&5
25646 ac_cv_header_stat_broken=yes
25649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25651 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25652 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25653 if test $ac_cv_header_stat_broken = yes; then
25655 cat >>confdefs.h <<\_ACEOF
25656 #define STAT_MACROS_BROKEN 1
25666 ac_header_dirent=no
25667 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25668 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25669 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25670 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25672 echo $ECHO_N "(cached) $ECHO_C" >&6
25674 cat >conftest.$ac_ext <<_ACEOF
25677 cat confdefs.h >>conftest.$ac_ext
25678 cat >>conftest.$ac_ext <<_ACEOF
25679 /* end confdefs.h. */
25680 #include <sys/types.h>
25692 rm -f conftest.$ac_objext
25693 if { (ac_try="$ac_compile"
25694 case "(($ac_try" in
25695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696 *) ac_try_echo=$ac_try;;
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699 (eval "$ac_compile") 2>conftest.er1
25701 grep -v '^ *+' conftest.er1 >conftest.err
25703 cat conftest.err >&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } && {
25706 test -z "$ac_c_werror_flag" ||
25707 test ! -s conftest.err
25708 } && test -s conftest.$ac_objext; then
25709 eval "$as_ac_Header=yes"
25711 echo "$as_me: failed program was:" >&5
25712 sed 's/^/| /' conftest.$ac_ext >&5
25714 eval "$as_ac_Header=no"
25717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25719 ac_res=`eval echo '${'$as_ac_Header'}'`
25720 { echo "$as_me:$LINENO: result: $ac_res" >&5
25721 echo "${ECHO_T}$ac_res" >&6; }
25722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25723 cat >>confdefs.h <<_ACEOF
25724 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25727 ac_header_dirent=$ac_hdr; break
25731 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25732 if test $ac_header_dirent = dirent.h; then
25733 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25734 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25735 if test "${ac_cv_search_opendir+set}" = set; then
25736 echo $ECHO_N "(cached) $ECHO_C" >&6
25738 ac_func_search_save_LIBS=$LIBS
25739 cat >conftest.$ac_ext <<_ACEOF
25742 cat confdefs.h >>conftest.$ac_ext
25743 cat >>conftest.$ac_ext <<_ACEOF
25744 /* end confdefs.h. */
25746 /* Override any GCC internal prototype to avoid an error.
25747 Use char because int might match the return type of a GCC
25748 builtin and then its argument prototype would still apply. */
25761 for ac_lib in '' dir; do
25762 if test -z "$ac_lib"; then
25763 ac_res="none required"
25766 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25768 rm -f conftest.$ac_objext conftest$ac_exeext
25769 if { (ac_try="$ac_link"
25770 case "(($ac_try" in
25771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25772 *) ac_try_echo=$ac_try;;
25774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25775 (eval "$ac_link") 2>conftest.er1
25777 grep -v '^ *+' conftest.er1 >conftest.err
25779 cat conftest.err >&5
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); } && {
25782 test -z "$ac_c_werror_flag" ||
25783 test ! -s conftest.err
25784 } && test -s conftest$ac_exeext &&
25785 $as_test_x conftest$ac_exeext; then
25786 ac_cv_search_opendir=$ac_res
25788 echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.$ac_ext >&5
25794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25796 if test "${ac_cv_search_opendir+set}" = set; then
25800 if test "${ac_cv_search_opendir+set}" = set; then
25803 ac_cv_search_opendir=no
25805 rm conftest.$ac_ext
25806 LIBS=$ac_func_search_save_LIBS
25808 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25809 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25810 ac_res=$ac_cv_search_opendir
25811 if test "$ac_res" != no; then
25812 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25817 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25818 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25819 if test "${ac_cv_search_opendir+set}" = set; then
25820 echo $ECHO_N "(cached) $ECHO_C" >&6
25822 ac_func_search_save_LIBS=$LIBS
25823 cat >conftest.$ac_ext <<_ACEOF
25826 cat confdefs.h >>conftest.$ac_ext
25827 cat >>conftest.$ac_ext <<_ACEOF
25828 /* end confdefs.h. */
25830 /* Override any GCC internal prototype to avoid an error.
25831 Use char because int might match the return type of a GCC
25832 builtin and then its argument prototype would still apply. */
25845 for ac_lib in '' x; do
25846 if test -z "$ac_lib"; then
25847 ac_res="none required"
25850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25852 rm -f conftest.$ac_objext conftest$ac_exeext
25853 if { (ac_try="$ac_link"
25854 case "(($ac_try" in
25855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25856 *) ac_try_echo=$ac_try;;
25858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25859 (eval "$ac_link") 2>conftest.er1
25861 grep -v '^ *+' conftest.er1 >conftest.err
25863 cat conftest.err >&5
25864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25865 (exit $ac_status); } && {
25866 test -z "$ac_c_werror_flag" ||
25867 test ! -s conftest.err
25868 } && test -s conftest$ac_exeext &&
25869 $as_test_x conftest$ac_exeext; then
25870 ac_cv_search_opendir=$ac_res
25872 echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25880 if test "${ac_cv_search_opendir+set}" = set; then
25884 if test "${ac_cv_search_opendir+set}" = set; then
25887 ac_cv_search_opendir=no
25889 rm conftest.$ac_ext
25890 LIBS=$ac_func_search_save_LIBS
25892 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25893 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25894 ac_res=$ac_cv_search_opendir
25895 if test "$ac_res" != no; then
25896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25909 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25915 echo $ECHO_N "(cached) $ECHO_C" >&6
25917 cat >conftest.$ac_ext <<_ACEOF
25920 cat confdefs.h >>conftest.$ac_ext
25921 cat >>conftest.$ac_ext <<_ACEOF
25922 /* end confdefs.h. */
25923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25925 #define $ac_func innocuous_$ac_func
25927 /* System header to define __stub macros and hopefully few prototypes,
25928 which can conflict with char $ac_func (); below.
25929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25930 <limits.h> exists even on freestanding compilers. */
25933 # include <limits.h>
25935 # include <assert.h>
25940 /* Override any GCC internal prototype to avoid an error.
25941 Use char because int might match the return type of a GCC
25942 builtin and then its argument prototype would still apply. */
25947 /* The GNU C library defines this for functions which it implements
25948 to always fail with ENOSYS. Some functions are actually named
25949 something starting with __ and the normal name is an alias. */
25950 #if defined __stub_$ac_func || defined __stub___$ac_func
25957 return $ac_func ();
25962 rm -f conftest.$ac_objext conftest$ac_exeext
25963 if { (ac_try="$ac_link"
25964 case "(($ac_try" in
25965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25966 *) ac_try_echo=$ac_try;;
25968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25969 (eval "$ac_link") 2>conftest.er1
25971 grep -v '^ *+' conftest.er1 >conftest.err
25973 cat conftest.err >&5
25974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25975 (exit $ac_status); } && {
25976 test -z "$ac_c_werror_flag" ||
25977 test ! -s conftest.err
25978 } && test -s conftest$ac_exeext &&
25979 $as_test_x conftest$ac_exeext; then
25980 eval "$as_ac_var=yes"
25982 echo "$as_me: failed program was:" >&5
25983 sed 's/^/| /' conftest.$ac_ext >&5
25985 eval "$as_ac_var=no"
25988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25989 conftest$ac_exeext conftest.$ac_ext
25991 ac_res=`eval echo '${'$as_ac_var'}'`
25992 { echo "$as_me:$LINENO: result: $ac_res" >&5
25993 echo "${ECHO_T}$ac_res" >&6; }
25994 if test `eval echo '${'$as_ac_var'}'` = yes; then
25995 cat >>confdefs.h <<_ACEOF
25996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26004 for ac_func in nanosleep nl_langinfo
26006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26010 echo $ECHO_N "(cached) $ECHO_C" >&6
26012 cat >conftest.$ac_ext <<_ACEOF
26015 cat confdefs.h >>conftest.$ac_ext
26016 cat >>conftest.$ac_ext <<_ACEOF
26017 /* end confdefs.h. */
26018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26020 #define $ac_func innocuous_$ac_func
26022 /* System header to define __stub macros and hopefully few prototypes,
26023 which can conflict with char $ac_func (); below.
26024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26025 <limits.h> exists even on freestanding compilers. */
26028 # include <limits.h>
26030 # include <assert.h>
26035 /* Override any GCC internal prototype to avoid an error.
26036 Use char because int might match the return type of a GCC
26037 builtin and then its argument prototype would still apply. */
26042 /* The GNU C library defines this for functions which it implements
26043 to always fail with ENOSYS. Some functions are actually named
26044 something starting with __ and the normal name is an alias. */
26045 #if defined __stub_$ac_func || defined __stub___$ac_func
26052 return $ac_func ();
26057 rm -f conftest.$ac_objext conftest$ac_exeext
26058 if { (ac_try="$ac_link"
26059 case "(($ac_try" in
26060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26061 *) ac_try_echo=$ac_try;;
26063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26064 (eval "$ac_link") 2>conftest.er1
26066 grep -v '^ *+' conftest.er1 >conftest.err
26068 cat conftest.err >&5
26069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26070 (exit $ac_status); } && {
26071 test -z "$ac_c_werror_flag" ||
26072 test ! -s conftest.err
26073 } && test -s conftest$ac_exeext &&
26074 $as_test_x conftest$ac_exeext; then
26075 eval "$as_ac_var=yes"
26077 echo "$as_me: failed program was:" >&5
26078 sed 's/^/| /' conftest.$ac_ext >&5
26080 eval "$as_ac_var=no"
26083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26084 conftest$ac_exeext conftest.$ac_ext
26086 ac_res=`eval echo '${'$as_ac_var'}'`
26087 { echo "$as_me:$LINENO: result: $ac_res" >&5
26088 echo "${ECHO_T}$ac_res" >&6; }
26089 if test `eval echo '${'$as_ac_var'}'` = yes; then
26090 cat >>confdefs.h <<_ACEOF
26091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26098 for ac_header in varargs.h
26100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26104 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26105 echo $ECHO_N "(cached) $ECHO_C" >&6
26107 ac_res=`eval echo '${'$as_ac_Header'}'`
26108 { echo "$as_me:$LINENO: result: $ac_res" >&5
26109 echo "${ECHO_T}$ac_res" >&6; }
26111 # Is the header compilable?
26112 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26114 cat >conftest.$ac_ext <<_ACEOF
26117 cat confdefs.h >>conftest.$ac_ext
26118 cat >>conftest.$ac_ext <<_ACEOF
26119 /* end confdefs.h. */
26120 $ac_includes_default
26121 #include <$ac_header>
26123 rm -f conftest.$ac_objext
26124 if { (ac_try="$ac_compile"
26125 case "(($ac_try" in
26126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26127 *) ac_try_echo=$ac_try;;
26129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26130 (eval "$ac_compile") 2>conftest.er1
26132 grep -v '^ *+' conftest.er1 >conftest.err
26134 cat conftest.err >&5
26135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26136 (exit $ac_status); } && {
26137 test -z "$ac_c_werror_flag" ||
26138 test ! -s conftest.err
26139 } && test -s conftest.$ac_objext; then
26140 ac_header_compiler=yes
26142 echo "$as_me: failed program was:" >&5
26143 sed 's/^/| /' conftest.$ac_ext >&5
26145 ac_header_compiler=no
26148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26149 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26150 echo "${ECHO_T}$ac_header_compiler" >&6; }
26152 # Is the header present?
26153 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26154 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26155 cat >conftest.$ac_ext <<_ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h. */
26161 #include <$ac_header>
26163 if { (ac_try="$ac_cpp conftest.$ac_ext"
26164 case "(($ac_try" in
26165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26166 *) ac_try_echo=$ac_try;;
26168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26171 grep -v '^ *+' conftest.er1 >conftest.err
26173 cat conftest.err >&5
26174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26175 (exit $ac_status); } >/dev/null && {
26176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26177 test ! -s conftest.err
26179 ac_header_preproc=yes
26181 echo "$as_me: failed program was:" >&5
26182 sed 's/^/| /' conftest.$ac_ext >&5
26184 ac_header_preproc=no
26187 rm -f conftest.err conftest.$ac_ext
26188 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26189 echo "${ECHO_T}$ac_header_preproc" >&6; }
26191 # So? What about this header?
26192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26194 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26195 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26198 ac_header_preproc=yes
26201 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26202 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26203 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26204 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26205 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26206 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26207 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26208 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26211 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26212 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26216 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26217 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26219 echo $ECHO_N "(cached) $ECHO_C" >&6
26221 eval "$as_ac_Header=\$ac_header_preproc"
26223 ac_res=`eval echo '${'$as_ac_Header'}'`
26224 { echo "$as_me:$LINENO: result: $ac_res" >&5
26225 echo "${ECHO_T}$ac_res" >&6; }
26228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26229 cat >>confdefs.h <<_ACEOF
26230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26239 { echo "$as_me:$LINENO: checking for Python support" >&5
26240 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26242 # Check whether --with-python was given.
26243 if test "${with_python+set}" = set; then
26244 withval=$with_python;
26247 if test "$withval" != "no"; then
26248 if test "$withval" = "yes"; then
26249 if test -e /usr/bin/python-config ; then
26250 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26251 PYTHON_LIBS=`/usr/bin/python-config --libs`
26253 for python_root in /usr /usr/local /usr/sfw; do
26254 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26255 if test -f $python_root/include/${ver}/Python.h; then
26256 PYTHON_INCDIR=-I$python_root/include/${ver}
26257 if test -d $python_root/lib64/${ver}/config; then
26258 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26260 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26267 if test x$PYTHON_INCDIR = x; then
26268 if test -f $prefix/include/Python.h; then
26269 PYTHON_INCDIR=-I$prefix/include
26270 if test -d $prefix/lib64/config; then
26271 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26273 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26276 { echo "$as_me:$LINENO: result: no" >&5
26277 echo "${ECHO_T}no" >&6; }
26278 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26279 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26280 { (exit 1); exit 1; }; }
26285 if test -e $withval/bin/python-config ; then
26286 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26287 PYTHON_LIBS=`$withval/bin/python-config --libs`
26288 elif test -f $withval/Python.h; then
26289 PYTHON_INCDIR=-I$withval
26290 PYTHON_LIBS="-L$withval/config -lpython"
26291 elif test -f $withval/include/Python.h; then
26292 PYTHON_INCDIR=-I$withval/include
26293 if test -d $withval/lib64/config; then
26294 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26296 PYTHON_LIBS="-L$withval/lib/config -lpython"
26298 elif test -f $withval/include/python/Python.h; then
26299 PYTHON_INCDIR=-I$withval/include/python
26300 if test -d $withval/lib64/python/config; then
26301 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26303 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26306 { echo "$as_me:$LINENO: result: no" >&5
26307 echo "${ECHO_T}no" >&6; }
26308 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26309 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26310 { (exit 1); exit 1; }; }
26314 cat >>confdefs.h <<\_ACEOF
26315 #define HAVE_PYTHON 1
26318 { echo "$as_me:$LINENO: result: yes" >&5
26319 echo "${ECHO_T}yes" >&6; }
26321 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26322 echo "$as_me: checking for more Python libs" >&6;}
26323 saved_LIBS="$LIBS"; LIBS=
26324 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26325 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26326 if test "${ac_cv_search_shm_open+set}" = set; then
26327 echo $ECHO_N "(cached) $ECHO_C" >&6
26329 ac_func_search_save_LIBS=$LIBS
26330 cat >conftest.$ac_ext <<_ACEOF
26333 cat confdefs.h >>conftest.$ac_ext
26334 cat >>conftest.$ac_ext <<_ACEOF
26335 /* end confdefs.h. */
26337 /* Override any GCC internal prototype to avoid an error.
26338 Use char because int might match the return type of a GCC
26339 builtin and then its argument prototype would still apply. */
26347 return shm_open ();
26352 for ac_lib in '' rt; do
26353 if test -z "$ac_lib"; then
26354 ac_res="none required"
26357 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26359 rm -f conftest.$ac_objext conftest$ac_exeext
26360 if { (ac_try="$ac_link"
26361 case "(($ac_try" in
26362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26363 *) ac_try_echo=$ac_try;;
26365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26366 (eval "$ac_link") 2>conftest.er1
26368 grep -v '^ *+' conftest.er1 >conftest.err
26370 cat conftest.err >&5
26371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26372 (exit $ac_status); } && {
26373 test -z "$ac_c_werror_flag" ||
26374 test ! -s conftest.err
26375 } && test -s conftest$ac_exeext &&
26376 $as_test_x conftest$ac_exeext; then
26377 ac_cv_search_shm_open=$ac_res
26379 echo "$as_me: failed program was:" >&5
26380 sed 's/^/| /' conftest.$ac_ext >&5
26385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26387 if test "${ac_cv_search_shm_open+set}" = set; then
26391 if test "${ac_cv_search_shm_open+set}" = set; then
26394 ac_cv_search_shm_open=no
26396 rm conftest.$ac_ext
26397 LIBS=$ac_func_search_save_LIBS
26399 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26400 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26401 ac_res=$ac_cv_search_shm_open
26402 if test "$ac_res" != no; then
26403 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26408 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26409 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26410 if test "${ac_cv_lib_util_openpty+set}" = set; then
26411 echo $ECHO_N "(cached) $ECHO_C" >&6
26413 ac_check_lib_save_LIBS=$LIBS
26414 LIBS="-lutil $LIBS"
26415 cat >conftest.$ac_ext <<_ACEOF
26418 cat confdefs.h >>conftest.$ac_ext
26419 cat >>conftest.$ac_ext <<_ACEOF
26420 /* end confdefs.h. */
26422 /* Override any GCC internal prototype to avoid an error.
26423 Use char because int might match the return type of a GCC
26424 builtin and then its argument prototype would still apply. */
26437 rm -f conftest.$ac_objext conftest$ac_exeext
26438 if { (ac_try="$ac_link"
26439 case "(($ac_try" in
26440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26441 *) ac_try_echo=$ac_try;;
26443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26444 (eval "$ac_link") 2>conftest.er1
26446 grep -v '^ *+' conftest.er1 >conftest.err
26448 cat conftest.err >&5
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); } && {
26451 test -z "$ac_c_werror_flag" ||
26452 test ! -s conftest.err
26453 } && test -s conftest$ac_exeext &&
26454 $as_test_x conftest$ac_exeext; then
26455 ac_cv_lib_util_openpty=yes
26457 echo "$as_me: failed program was:" >&5
26458 sed 's/^/| /' conftest.$ac_ext >&5
26460 ac_cv_lib_util_openpty=no
26463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26464 conftest$ac_exeext conftest.$ac_ext
26465 LIBS=$ac_check_lib_save_LIBS
26467 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26468 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26469 if test $ac_cv_lib_util_openpty = yes; then
26470 cat >>confdefs.h <<_ACEOF
26471 #define HAVE_LIBUTIL 1
26474 LIBS="-lutil $LIBS"
26478 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26481 { echo "$as_me:$LINENO: result: no" >&5
26482 echo "${ECHO_T}no" >&6; }
26487 { echo "$as_me:$LINENO: result: no" >&5
26488 echo "${ECHO_T}no" >&6; }
26496 { echo "$as_me:$LINENO: checking for socket" >&5
26497 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26498 if test "${ac_cv_func_socket+set}" = set; then
26499 echo $ECHO_N "(cached) $ECHO_C" >&6
26501 cat >conftest.$ac_ext <<_ACEOF
26504 cat confdefs.h >>conftest.$ac_ext
26505 cat >>conftest.$ac_ext <<_ACEOF
26506 /* end confdefs.h. */
26507 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26509 #define socket innocuous_socket
26511 /* System header to define __stub macros and hopefully few prototypes,
26512 which can conflict with char socket (); below.
26513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26514 <limits.h> exists even on freestanding compilers. */
26517 # include <limits.h>
26519 # include <assert.h>
26524 /* Override any GCC internal prototype to avoid an error.
26525 Use char because int might match the return type of a GCC
26526 builtin and then its argument prototype would still apply. */
26531 /* The GNU C library defines this for functions which it implements
26532 to always fail with ENOSYS. Some functions are actually named
26533 something starting with __ and the normal name is an alias. */
26534 #if defined __stub_socket || defined __stub___socket
26546 rm -f conftest.$ac_objext conftest$ac_exeext
26547 if { (ac_try="$ac_link"
26548 case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26553 (eval "$ac_link") 2>conftest.er1
26555 grep -v '^ *+' conftest.er1 >conftest.err
26557 cat conftest.err >&5
26558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26559 (exit $ac_status); } && {
26560 test -z "$ac_c_werror_flag" ||
26561 test ! -s conftest.err
26562 } && test -s conftest$ac_exeext &&
26563 $as_test_x conftest$ac_exeext; then
26564 ac_cv_func_socket=yes
26566 echo "$as_me: failed program was:" >&5
26567 sed 's/^/| /' conftest.$ac_ext >&5
26569 ac_cv_func_socket=no
26572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26573 conftest$ac_exeext conftest.$ac_ext
26575 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26576 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26577 if test $ac_cv_func_socket = yes; then
26578 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26579 echo "${ECHO_T}using libc's socket" >&6; }
26582 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26583 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26584 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26585 echo $ECHO_N "(cached) $ECHO_C" >&6
26587 ac_check_lib_save_LIBS=$LIBS
26588 LIBS="-lxnet $LIBS"
26589 cat >conftest.$ac_ext <<_ACEOF
26592 cat confdefs.h >>conftest.$ac_ext
26593 cat >>conftest.$ac_ext <<_ACEOF
26594 /* end confdefs.h. */
26596 /* Override any GCC internal prototype to avoid an error.
26597 Use char because int might match the return type of a GCC
26598 builtin and then its argument prototype would still apply. */
26611 rm -f conftest.$ac_objext conftest$ac_exeext
26612 if { (ac_try="$ac_link"
26613 case "(($ac_try" in
26614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26615 *) ac_try_echo=$ac_try;;
26617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26618 (eval "$ac_link") 2>conftest.er1
26620 grep -v '^ *+' conftest.er1 >conftest.err
26622 cat conftest.err >&5
26623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26624 (exit $ac_status); } && {
26625 test -z "$ac_c_werror_flag" ||
26626 test ! -s conftest.err
26627 } && test -s conftest$ac_exeext &&
26628 $as_test_x conftest$ac_exeext; then
26629 ac_cv_lib_xnet_socket=yes
26631 echo "$as_me: failed program was:" >&5
26632 sed 's/^/| /' conftest.$ac_ext >&5
26634 ac_cv_lib_xnet_socket=no
26637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26638 conftest$ac_exeext conftest.$ac_ext
26639 LIBS=$ac_check_lib_save_LIBS
26641 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26642 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26643 if test $ac_cv_lib_xnet_socket = yes; then
26644 cat >>confdefs.h <<_ACEOF
26645 #define HAVE_LIBXNET 1
26648 LIBS="-lxnet $LIBS"
26653 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26654 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26655 if test "${ac_cv_lib_socket_socket+set}" = set; then
26656 echo $ECHO_N "(cached) $ECHO_C" >&6
26658 ac_check_lib_save_LIBS=$LIBS
26659 LIBS="-lsocket $LIBS"
26660 cat >conftest.$ac_ext <<_ACEOF
26663 cat confdefs.h >>conftest.$ac_ext
26664 cat >>conftest.$ac_ext <<_ACEOF
26665 /* end confdefs.h. */
26667 /* Override any GCC internal prototype to avoid an error.
26668 Use char because int might match the return type of a GCC
26669 builtin and then its argument prototype would still apply. */
26682 rm -f conftest.$ac_objext conftest$ac_exeext
26683 if { (ac_try="$ac_link"
26684 case "(($ac_try" in
26685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26686 *) ac_try_echo=$ac_try;;
26688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26689 (eval "$ac_link") 2>conftest.er1
26691 grep -v '^ *+' conftest.er1 >conftest.err
26693 cat conftest.err >&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); } && {
26696 test -z "$ac_c_werror_flag" ||
26697 test ! -s conftest.err
26698 } && test -s conftest$ac_exeext &&
26699 $as_test_x conftest$ac_exeext; then
26700 ac_cv_lib_socket_socket=yes
26702 echo "$as_me: failed program was:" >&5
26703 sed 's/^/| /' conftest.$ac_ext >&5
26705 ac_cv_lib_socket_socket=no
26708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26709 conftest$ac_exeext conftest.$ac_ext
26710 LIBS=$ac_check_lib_save_LIBS
26712 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26713 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26714 if test $ac_cv_lib_socket_socket = yes; then
26715 cat >>confdefs.h <<_ACEOF
26716 #define HAVE_LIBSOCKET 1
26719 LIBS="-lsocket $LIBS"
26724 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26725 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26726 if test "${ac_cv_lib_inet_socket+set}" = set; then
26727 echo $ECHO_N "(cached) $ECHO_C" >&6
26729 ac_check_lib_save_LIBS=$LIBS
26730 LIBS="-linet $LIBS"
26731 cat >conftest.$ac_ext <<_ACEOF
26734 cat confdefs.h >>conftest.$ac_ext
26735 cat >>conftest.$ac_ext <<_ACEOF
26736 /* end confdefs.h. */
26738 /* Override any GCC internal prototype to avoid an error.
26739 Use char because int might match the return type of a GCC
26740 builtin and then its argument prototype would still apply. */
26753 rm -f conftest.$ac_objext conftest$ac_exeext
26754 if { (ac_try="$ac_link"
26755 case "(($ac_try" in
26756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757 *) ac_try_echo=$ac_try;;
26759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26760 (eval "$ac_link") 2>conftest.er1
26762 grep -v '^ *+' conftest.er1 >conftest.err
26764 cat conftest.err >&5
26765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26766 (exit $ac_status); } && {
26767 test -z "$ac_c_werror_flag" ||
26768 test ! -s conftest.err
26769 } && test -s conftest$ac_exeext &&
26770 $as_test_x conftest$ac_exeext; then
26771 ac_cv_lib_inet_socket=yes
26773 echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26776 ac_cv_lib_inet_socket=no
26779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26780 conftest$ac_exeext conftest.$ac_ext
26781 LIBS=$ac_check_lib_save_LIBS
26783 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26784 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26785 if test $ac_cv_lib_inet_socket = yes; then
26786 cat >>confdefs.h <<_ACEOF
26787 #define HAVE_LIBINET 1
26790 LIBS="-linet $LIBS"
26800 # Check whether --with-tcp-wrappers was given.
26801 if test "${with_tcp_wrappers+set}" = set; then
26802 withval=$with_tcp_wrappers;
26803 if test "x$withval" != "xno" ; then
26805 LIBS="$saved_LIBS -lwrap"
26806 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26807 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26808 if test "${ac_cv_search_nanosleep+set}" = set; then
26809 echo $ECHO_N "(cached) $ECHO_C" >&6
26811 ac_func_search_save_LIBS=$LIBS
26812 cat >conftest.$ac_ext <<_ACEOF
26815 cat confdefs.h >>conftest.$ac_ext
26816 cat >>conftest.$ac_ext <<_ACEOF
26817 /* end confdefs.h. */
26819 /* Override any GCC internal prototype to avoid an error.
26820 Use char because int might match the return type of a GCC
26821 builtin and then its argument prototype would still apply. */
26829 return nanosleep ();
26834 for ac_lib in '' rt; do
26835 if test -z "$ac_lib"; then
26836 ac_res="none required"
26839 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26841 rm -f conftest.$ac_objext conftest$ac_exeext
26842 if { (ac_try="$ac_link"
26843 case "(($ac_try" in
26844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26845 *) ac_try_echo=$ac_try;;
26847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26848 (eval "$ac_link") 2>conftest.er1
26850 grep -v '^ *+' conftest.er1 >conftest.err
26852 cat conftest.err >&5
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); } && {
26855 test -z "$ac_c_werror_flag" ||
26856 test ! -s conftest.err
26857 } && test -s conftest$ac_exeext &&
26858 $as_test_x conftest$ac_exeext; then
26859 ac_cv_search_nanosleep=$ac_res
26861 echo "$as_me: failed program was:" >&5
26862 sed 's/^/| /' conftest.$ac_ext >&5
26867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26869 if test "${ac_cv_search_nanosleep+set}" = set; then
26873 if test "${ac_cv_search_nanosleep+set}" = set; then
26876 ac_cv_search_nanosleep=no
26878 rm conftest.$ac_ext
26879 LIBS=$ac_func_search_save_LIBS
26881 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26882 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26883 ac_res=$ac_cv_search_nanosleep
26884 if test "$ac_res" != no; then
26885 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26889 { echo "$as_me:$LINENO: checking for libwrap" >&5
26890 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26891 cat >conftest.$ac_ext <<_ACEOF
26894 cat confdefs.h >>conftest.$ac_ext
26895 cat >>conftest.$ac_ext <<_ACEOF
26896 /* end confdefs.h. */
26898 #include <sys/types.h>
26900 int deny_severity = 0;
26901 int allow_severity = 0;
26902 struct request_info *req;
26914 rm -f conftest.$ac_objext conftest$ac_exeext
26915 if { (ac_try="$ac_link"
26916 case "(($ac_try" in
26917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26918 *) ac_try_echo=$ac_try;;
26920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26921 (eval "$ac_link") 2>conftest.er1
26923 grep -v '^ *+' conftest.er1 >conftest.err
26925 cat conftest.err >&5
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); } && {
26928 test -z "$ac_c_werror_flag" ||
26929 test ! -s conftest.err
26930 } && test -s conftest$ac_exeext &&
26931 $as_test_x conftest$ac_exeext; then
26933 { echo "$as_me:$LINENO: result: yes" >&5
26934 echo "${ECHO_T}yes" >&6; }
26936 cat >>confdefs.h <<\_ACEOF
26937 #define HAVE_LIBWRAP 1
26945 echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.$ac_ext >&5
26949 LIBS="$saved_LIBS -lwrap -lnsl"
26950 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26951 cat >conftest.$ac_ext <<_ACEOF
26954 cat confdefs.h >>conftest.$ac_ext
26955 cat >>conftest.$ac_ext <<_ACEOF
26956 /* end confdefs.h. */
26958 #include <sys/types.h>
26960 int deny_severity = 0;
26961 int allow_severity = 0;
26962 struct request_info *req;
26974 rm -f conftest.$ac_objext conftest$ac_exeext
26975 if { (ac_try="$ac_link"
26976 case "(($ac_try" in
26977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26978 *) ac_try_echo=$ac_try;;
26980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26981 (eval "$ac_link") 2>conftest.er1
26983 grep -v '^ *+' conftest.er1 >conftest.err
26985 cat conftest.err >&5
26986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26987 (exit $ac_status); } && {
26988 test -z "$ac_c_werror_flag" ||
26989 test ! -s conftest.err
26990 } && test -s conftest$ac_exeext &&
26991 $as_test_x conftest$ac_exeext; then
26993 { echo "$as_me:$LINENO: result: yes" >&5
26994 echo "${ECHO_T}yes" >&6; }
26996 cat >>confdefs.h <<\_ACEOF
26997 #define HAVE_LIBWRAP 1
27005 echo "$as_me: failed program was:" >&5
27006 sed 's/^/| /' conftest.$ac_ext >&5
27009 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
27010 echo "$as_me: error: *** libwrap missing" >&2;}
27011 { (exit 1); exit 1; }; }
27016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27017 conftest$ac_exeext conftest.$ac_ext
27022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27023 conftest$ac_exeext conftest.$ac_ext
27030 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
27031 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
27033 # Check whether --with-openssl was given.
27034 if test "${with_openssl+set}" = set; then
27035 withval=$with_openssl;
27036 with_openssl_directory=${withval}
27042 if test "x$with_openssl_directory" != "xno"; then
27043 OPENSSL_LIBS="-lssl -lcrypto"
27046 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
27048 # Make sure the $with_openssl_directory also makes sense
27050 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
27051 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
27052 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
27056 saved_LIBS="${LIBS}"
27057 saved_CFLAGS="${CFLAGS}"
27058 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27059 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27061 cat >conftest.$ac_ext <<_ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h. */
27068 #include <openssl/ssl.h>
27074 CRYPTO_set_id_callback(NULL);
27080 rm -f conftest.$ac_objext conftest$ac_exeext
27081 if { (ac_try="$ac_link"
27082 case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27087 (eval "$ac_link") 2>conftest.er1
27089 grep -v '^ *+' conftest.er1 >conftest.err
27091 cat conftest.err >&5
27092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } && {
27094 test -z "$ac_c_werror_flag" ||
27095 test ! -s conftest.err
27096 } && test -s conftest$ac_exeext &&
27097 $as_test_x conftest$ac_exeext; then
27100 support_crypto="yes"
27103 echo "$as_me: failed program was:" >&5
27104 sed 's/^/| /' conftest.$ac_ext >&5
27112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27113 conftest$ac_exeext conftest.$ac_ext
27115 cat >conftest.$ac_ext <<_ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h. */
27122 #include <openssl/evp.h>
27134 rm -f conftest.$ac_objext conftest$ac_exeext
27135 if { (ac_try="$ac_link"
27136 case "(($ac_try" in
27137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27138 *) ac_try_echo=$ac_try;;
27140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27141 (eval "$ac_link") 2>conftest.er1
27143 grep -v '^ *+' conftest.er1 >conftest.err
27145 cat conftest.err >&5
27146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); } && {
27148 test -z "$ac_c_werror_flag" ||
27149 test ! -s conftest.err
27150 } && test -s conftest$ac_exeext &&
27151 $as_test_x conftest$ac_exeext; then
27153 ac_cv_openssl_sha2="yes"
27156 echo "$as_me: failed program was:" >&5
27157 sed 's/^/| /' conftest.$ac_ext >&5
27160 ac_cv_openssl_sha2="no"
27165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27166 conftest$ac_exeext conftest.$ac_ext
27168 cat >conftest.$ac_ext <<_ACEOF
27171 cat confdefs.h >>conftest.$ac_ext
27172 cat >>conftest.$ac_ext <<_ACEOF
27173 /* end confdefs.h. */
27175 #include <openssl/evp.h>
27187 rm -f conftest.$ac_objext conftest$ac_exeext
27188 if { (ac_try="$ac_link"
27189 case "(($ac_try" in
27190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27191 *) ac_try_echo=$ac_try;;
27193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27194 (eval "$ac_link") 2>conftest.er1
27196 grep -v '^ *+' conftest.er1 >conftest.err
27198 cat conftest.err >&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } && {
27201 test -z "$ac_c_werror_flag" ||
27202 test ! -s conftest.err
27203 } && test -s conftest$ac_exeext &&
27204 $as_test_x conftest$ac_exeext; then
27206 ac_cv_openssl_export="no"
27209 echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.$ac_ext >&5
27213 ac_cv_openssl_export="yes"
27218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27219 conftest$ac_exeext conftest.$ac_ext
27221 LIBS="${saved_LIBS}"
27222 CFLAGS="${saved_CFLAGS}"
27224 if test "$support_tls" = "yes"; then
27226 cat >>confdefs.h <<\_ACEOF
27227 #define HAVE_OPENSSL 1
27231 cat >>confdefs.h <<\_ACEOF
27236 cat >>confdefs.h <<\_ACEOF
27237 #define HAVE_CRYPTO 1
27242 if test "$ac_cv_openssl_sha2" = "yes"; then
27244 cat >>confdefs.h <<\_ACEOF
27245 #define HAVE_SHA2 1
27250 if test "$ac_cv_openssl_export" = "yes"; then
27252 cat >>confdefs.h <<\_ACEOF
27253 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27259 support_crypto="no"
27264 if test "$support_tls" = "no"; then
27269 { echo "$as_me:$LINENO: result: $support_tls" >&5
27270 echo "${ECHO_T}$support_tls" >&6; }
27274 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27275 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27276 if test "${ac_cv_search_dlopen+set}" = set; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27279 ac_func_search_save_LIBS=$LIBS
27280 cat >conftest.$ac_ext <<_ACEOF
27283 cat confdefs.h >>conftest.$ac_ext
27284 cat >>conftest.$ac_ext <<_ACEOF
27285 /* end confdefs.h. */
27287 /* Override any GCC internal prototype to avoid an error.
27288 Use char because int might match the return type of a GCC
27289 builtin and then its argument prototype would still apply. */
27302 for ac_lib in '' dl; do
27303 if test -z "$ac_lib"; then
27304 ac_res="none required"
27307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27309 rm -f conftest.$ac_objext conftest$ac_exeext
27310 if { (ac_try="$ac_link"
27311 case "(($ac_try" in
27312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27313 *) ac_try_echo=$ac_try;;
27315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27316 (eval "$ac_link") 2>conftest.er1
27318 grep -v '^ *+' conftest.er1 >conftest.err
27320 cat conftest.err >&5
27321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27322 (exit $ac_status); } && {
27323 test -z "$ac_c_werror_flag" ||
27324 test ! -s conftest.err
27325 } && test -s conftest$ac_exeext &&
27326 $as_test_x conftest$ac_exeext; then
27327 ac_cv_search_dlopen=$ac_res
27329 echo "$as_me: failed program was:" >&5
27330 sed 's/^/| /' conftest.$ac_ext >&5
27335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27337 if test "${ac_cv_search_dlopen+set}" = set; then
27341 if test "${ac_cv_search_dlopen+set}" = set; then
27344 ac_cv_search_dlopen=no
27346 rm conftest.$ac_ext
27347 LIBS=$ac_func_search_save_LIBS
27349 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27350 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27351 ac_res=$ac_cv_search_dlopen
27352 if test "$ac_res" != no; then
27353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27358 working_dir=`eval echo ${prefix}/var/bacula/working`
27360 # Check whether --with-working-dir was given.
27361 if test "${with_working_dir+set}" = set; then
27362 withval=$with_working_dir;
27363 if test "x$withval" != "xno" ; then
27364 working_dir=$withval
27375 # Check whether --with-archivedir was given.
27376 if test "${with_archivedir+set}" = set; then
27377 withval=$with_archivedir;
27378 if test "x$withval" != "xno" ; then
27379 archivedir=$withval
27388 basename=`hostname`
27390 # Check whether --with-basename was given.
27391 if test "${with_basename+set}" = set; then
27392 withval=$with_basename;
27393 if test "x$withval" != "xno" ; then
27403 hostname=`uname -n | cut -d '.' -f 1`
27404 if test x${hostname} = x ; then
27405 hostname="localhost"
27408 # Check whether --with-hostname was given.
27409 if test "${with_hostname+set}" = set; then
27410 withval=$with_hostname;
27411 if test "x$withval" != "xno" ; then
27422 scriptdir=`eval echo ${sysconfdir}`
27424 # Check whether --with-scriptdir was given.
27425 if test "${with_scriptdir+set}" = set; then
27426 withval=$with_scriptdir;
27427 if test "x$withval" != "xno" ; then
27440 # Check whether --with-bsrdir was given.
27441 if test "${with_bsrdir+set}" = set; then
27442 withval=$with_bsrdir;
27443 if test "x$withval" != "xno" ; then
27455 # Check whether --with-logdir was given.
27456 if test "${with_logdir+set}" = set; then
27457 withval=$with_logdir;
27458 if test "x$withval" != "xno" ; then
27469 # ------------------------------------------
27470 # Where to place plugindir (plugin files)
27471 # ------------------------------------------
27472 plugindir=`eval echo ${libdir}`
27474 # Check whether --with-plugindir was given.
27475 if test "${with_plugindir+set}" = set; then
27476 withval=$with_plugindir;
27477 if test "x$withval" != "xno" ; then
27487 dump_email=root@localhost
27489 # Check whether --with-dump-email was given.
27490 if test "${with_dump_email+set}" = set; then
27491 withval=$with_dump_email;
27492 if test "x$withval" != "xno" ; then
27493 dump_email=$withval
27502 job_email=root@localhost
27504 # Check whether --with-job-email was given.
27505 if test "${with_job_email+set}" = set; then
27506 withval=$with_job_email;
27507 if test "x$withval" != "xno" ; then
27517 smtp_host=localhost
27519 # Check whether --with-smtp_host was given.
27520 if test "${with_smtp_host+set}" = set; then
27521 withval=$with_smtp_host;
27522 if test "x$withval" != "xno" ; then
27534 # Check whether --with-pid-dir was given.
27535 if test "${with_pid_dir+set}" = set; then
27536 withval=$with_pid_dir;
27537 if test "x$withval" != "xno" ; then
27545 cat >>confdefs.h <<_ACEOF
27546 #define _PATH_BACULA_PIDDIR "$piddir"
27551 subsysdir=/var/run/subsys
27552 if test -d /var/run/subsys; then
27553 subsysdir=/var/run/subsys
27554 elif test -d /var/lock/subsys; then
27555 subsysdir=/var/lock/subsys
27557 subsysdir=/var/run/subsys
27560 # Check whether --with-subsys-dir was given.
27561 if test "${with_subsys_dir+set}" = set; then
27562 withval=$with_subsys_dir;
27563 if test "x$withval" != "xno" ; then
27575 # Check whether --with-baseport was given.
27576 if test "${with_baseport+set}" = set; then
27577 withval=$with_baseport;
27578 if test "x$withval" != "xno" ; then
27587 dir_port=`expr $baseport`
27588 fd_port=`expr $baseport + 1`
27589 sd_port=`expr $fd_port + 1`
27597 # Check whether --with-dir-password was given.
27598 if test "${with_dir_password+set}" = set; then
27599 withval=$with_dir_password;
27600 if test "x$withval" != "xno" ; then
27601 dir_password=$withval
27608 if test "x$dir_password" = "x" ; then
27609 if test "x$OPENSSL" = "xnone" ; then
27610 key=`autoconf/randpass 33`
27612 key=`openssl rand -base64 33`
27619 # Check whether --with-fd-password was given.
27620 if test "${with_fd_password+set}" = set; then
27621 withval=$with_fd_password;
27622 if test "x$withval" != "xno" ; then
27623 fd_password=$withval
27630 if test "x$fd_password" = "x" ; then
27631 if test "x$OPENSSL" = "xnone" ; then
27632 key=`autoconf/randpass 37`
27634 key=`openssl rand -base64 33`
27641 # Check whether --with-sd-password was given.
27642 if test "${with_sd_password+set}" = set; then
27643 withval=$with_sd_password;
27644 if test "x$withval" != "xno" ; then
27645 sd_password=$withval
27652 if test "x$sd_password" = "x" ; then
27653 if test "x$OPENSSL" = "xnone" ; then
27654 key=`autoconf/randpass 41`
27656 key=`openssl rand -base64 33`
27663 # Check whether --with-mon-dir-password was given.
27664 if test "${with_mon_dir_password+set}" = set; then
27665 withval=$with_mon_dir_password;
27666 if test "x$withval" != "xno" ; then
27667 mon_dir_password=$withval
27674 if test "x$mon_dir_password" = "x" ; then
27675 if test "x$OPENSSL" = "xnone" ; then
27676 key=`autoconf/randpass 33`
27678 key=`openssl rand -base64 33`
27680 mon_dir_password=$key
27685 # Check whether --with-mon-fd-password was given.
27686 if test "${with_mon_fd_password+set}" = set; then
27687 withval=$with_mon_fd_password;
27688 if test "x$withval" != "xno" ; then
27689 mon_fd_password=$withval
27696 if test "x$mon_fd_password" = "x" ; then
27697 if test "x$OPENSSL" = "xnone" ; then
27698 key=`autoconf/randpass 37`
27700 key=`openssl rand -base64 33`
27702 mon_fd_password=$key
27707 # Check whether --with-mon-sd-password was given.
27708 if test "${with_mon_sd_password+set}" = set; then
27709 withval=$with_mon_sd_password;
27710 if test "x$withval" != "xno" ; then
27711 mon_sd_password=$withval
27718 if test "x$mon_sd_password" = "x" ; then
27719 if test "x$OPENSSL" = "xnone" ; then
27720 key=`autoconf/randpass 41`
27722 key=`openssl rand -base64 33`
27724 mon_sd_password=$key
27736 # Check whether --with-db_name was given.
27737 if test "${with_db_name+set}" = set; then
27738 withval=$with_db_name;
27739 if test "x$withval" != "x" ; then
27750 # Check whether --with-db_user was given.
27751 if test "${with_db_user+set}" = set; then
27752 withval=$with_db_user;
27753 if test "x$withval" != "x" ; then
27764 # Check whether --with-db_password was given.
27765 if test "${with_db_password+set}" = set; then
27766 withval=$with_db_password;
27767 if test "x$withval" != "x" ; then
27768 db_password=$withval
27778 # Check whether --with-db_port was given.
27779 if test "${with_db_port+set}" = set; then
27780 withval=$with_db_port;
27781 if test "x$withval" != "x" ; then
27791 # Handle users and groups for each daemon
27795 # Check whether --with-dir_user was given.
27796 if test "${with_dir_user+set}" = set; then
27797 withval=$with_dir_user;
27798 if test "x$withval" != "x" ; then
27808 # Check whether --with-dir_group was given.
27809 if test "${with_dir_group+set}" = set; then
27810 withval=$with_dir_group;
27811 if test "x$withval" != "x" ; then
27821 # Check whether --with-sd_user was given.
27822 if test "${with_sd_user+set}" = set; then
27823 withval=$with_sd_user;
27824 if test "x$withval" != "x" ; then
27834 # Check whether --with-sd_group was given.
27835 if test "${with_sd_group+set}" = set; then
27836 withval=$with_sd_group;
27837 if test "x$withval" != "x" ; then
27847 # Check whether --with-fd_user was given.
27848 if test "${with_fd_user+set}" = set; then
27849 withval=$with_fd_user;
27850 if test "x$withval" != "x" ; then
27860 # Check whether --with-fd_group was given.
27861 if test "${with_fd_group+set}" = set; then
27862 withval=$with_fd_group;
27863 if test "x$withval" != "x" ; then
27880 # Check whether --with-sbin-perm was given.
27881 if test "${with_sbin_perm+set}" = set; then
27882 withval=$with_sbin_perm;
27883 if test "x$withval" != "x" ; then
27896 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27897 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27899 # Check whether --with-postgresql was given.
27900 if test "${with_postgresql+set}" = set; then
27901 withval=$with_postgresql;
27902 if test "$withval" != "no"; then
27903 if test "$db_found" = "yes"; then
27904 { echo "$as_me:$LINENO: result: error" >&5
27905 echo "${ECHO_T}error" >&6; }
27906 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27907 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27908 { (exit 1); exit 1; }; };
27910 if test "$withval" = "yes"; then
27911 PG_CONFIG=`which pg_config`
27912 if test -n "$PG_CONFIG";then
27913 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27914 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27915 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27916 elif test -f /usr/local/include/libpq-fe.h; then
27917 POSTGRESQL_INCDIR=/usr/local/include
27918 if test -d /usr/local/lib64; then
27919 POSTGRESQL_LIBDIR=/usr/local/lib64
27921 POSTGRESQL_LIBDIR=/usr/local/lib
27923 POSTGRESQL_BINDIR=/usr/local/bin
27924 elif test -f /usr/include/libpq-fe.h; then
27925 POSTGRESQL_INCDIR=/usr/include
27926 if test -d /usr/lib64; then
27927 POSTGRESQL_LIBDIR=/usr/lib64
27929 POSTGRESQL_LIBDIR=/usr/lib
27931 POSTGRESQL_BINDIR=/usr/bin
27932 elif test -f /usr/include/pgsql/libpq-fe.h; then
27933 POSTGRESQL_INCDIR=/usr/include/pgsql
27934 if test -d /usr/lib64/pgsql; then
27935 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27937 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27939 POSTGRESQL_BINDIR=/usr/bin
27940 elif test -f /usr/include/postgresql/libpq-fe.h; then
27941 POSTGRESQL_INCDIR=/usr/include/postgresql
27942 if test -d /usr/lib64/postgresql; then
27943 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27945 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27947 POSTGRESQL_BINDIR=/usr/bin
27949 { echo "$as_me:$LINENO: result: no" >&5
27950 echo "${ECHO_T}no" >&6; }
27951 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27952 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27953 { (exit 1); exit 1; }; }
27955 elif test -f $withval/include/libpq-fe.h; then
27956 POSTGRESQL_INCDIR=$withval/include
27957 POSTGRESQL_LIBDIR=$withval/lib
27958 POSTGRESQL_BINDIR=$withval/bin
27959 elif test -f $withval/include/postgresql/libpq-fe.h; then
27960 POSTGRESQL_INCDIR=$withval/include/postgresql
27961 if test -d $withval/lib64; then
27962 POSTGRESQL_LIBDIR=$withval/lib64
27964 POSTGRESQL_LIBDIR=$withval/lib
27966 POSTGRESQL_BINDIR=$withval/bin
27968 { echo "$as_me:$LINENO: result: no" >&5
27969 echo "${ECHO_T}no" >&6; }
27970 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27971 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27972 { (exit 1); exit 1; }; }
27974 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27975 { echo "$as_me:$LINENO: checking for crypt" >&5
27976 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27977 if test "${ac_cv_func_crypt+set}" = set; then
27978 echo $ECHO_N "(cached) $ECHO_C" >&6
27980 cat >conftest.$ac_ext <<_ACEOF
27983 cat confdefs.h >>conftest.$ac_ext
27984 cat >>conftest.$ac_ext <<_ACEOF
27985 /* end confdefs.h. */
27986 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27988 #define crypt innocuous_crypt
27990 /* System header to define __stub macros and hopefully few prototypes,
27991 which can conflict with char crypt (); below.
27992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27993 <limits.h> exists even on freestanding compilers. */
27996 # include <limits.h>
27998 # include <assert.h>
28003 /* Override any GCC internal prototype to avoid an error.
28004 Use char because int might match the return type of a GCC
28005 builtin and then its argument prototype would still apply. */
28010 /* The GNU C library defines this for functions which it implements
28011 to always fail with ENOSYS. Some functions are actually named
28012 something starting with __ and the normal name is an alias. */
28013 #if defined __stub_crypt || defined __stub___crypt
28025 rm -f conftest.$ac_objext conftest$ac_exeext
28026 if { (ac_try="$ac_link"
28027 case "(($ac_try" in
28028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28029 *) ac_try_echo=$ac_try;;
28031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28032 (eval "$ac_link") 2>conftest.er1
28034 grep -v '^ *+' conftest.er1 >conftest.err
28036 cat conftest.err >&5
28037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); } && {
28039 test -z "$ac_c_werror_flag" ||
28040 test ! -s conftest.err
28041 } && test -s conftest$ac_exeext &&
28042 $as_test_x conftest$ac_exeext; then
28043 ac_cv_func_crypt=yes
28045 echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.$ac_ext >&5
28048 ac_cv_func_crypt=no
28051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28052 conftest$ac_exeext conftest.$ac_ext
28054 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28055 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28056 if test $ac_cv_func_crypt = yes; then
28059 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28060 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28061 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28062 echo $ECHO_N "(cached) $ECHO_C" >&6
28064 ac_check_lib_save_LIBS=$LIBS
28065 LIBS="-lcrypt $LIBS"
28066 cat >conftest.$ac_ext <<_ACEOF
28069 cat confdefs.h >>conftest.$ac_ext
28070 cat >>conftest.$ac_ext <<_ACEOF
28071 /* end confdefs.h. */
28073 /* Override any GCC internal prototype to avoid an error.
28074 Use char because int might match the return type of a GCC
28075 builtin and then its argument prototype would still apply. */
28088 rm -f conftest.$ac_objext conftest$ac_exeext
28089 if { (ac_try="$ac_link"
28090 case "(($ac_try" in
28091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28092 *) ac_try_echo=$ac_try;;
28094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28095 (eval "$ac_link") 2>conftest.er1
28097 grep -v '^ *+' conftest.er1 >conftest.err
28099 cat conftest.err >&5
28100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28101 (exit $ac_status); } && {
28102 test -z "$ac_c_werror_flag" ||
28103 test ! -s conftest.err
28104 } && test -s conftest$ac_exeext &&
28105 $as_test_x conftest$ac_exeext; then
28106 ac_cv_lib_crypt_crypt=yes
28108 echo "$as_me: failed program was:" >&5
28109 sed 's/^/| /' conftest.$ac_ext >&5
28111 ac_cv_lib_crypt_crypt=no
28114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28115 conftest$ac_exeext conftest.$ac_ext
28116 LIBS=$ac_check_lib_save_LIBS
28118 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28119 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28120 if test $ac_cv_lib_crypt_crypt = yes; then
28121 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28126 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28127 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28128 SQL_BINDIR=$POSTGRESQL_BINDIR
28129 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28131 cat >>confdefs.h <<\_ACEOF
28132 #define HAVE_POSTGRESQL 1
28135 { echo "$as_me:$LINENO: result: yes" >&5
28136 echo "${ECHO_T}yes" >&6; }
28138 support_postgresql=yes
28142 { echo "$as_me:$LINENO: result: no" >&5
28143 echo "${ECHO_T}no" >&6; }
28148 { echo "$as_me:$LINENO: result: no" >&5
28149 echo "${ECHO_T}no" >&6; }
28161 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28162 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28164 # Check whether --with-mysql was given.
28165 if test "${with_mysql+set}" = set; then
28166 withval=$with_mysql;
28167 if test "$withval" != "no"; then
28168 if test "$withval" = "yes"; then
28169 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28170 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28171 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28172 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28173 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28175 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28177 MYSQL_BINDIR=/usr/local/mysql/bin
28178 elif test -f /usr/include/mysql/mysql.h; then
28179 MYSQL_INCDIR=/usr/include/mysql
28180 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28181 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28182 MYSQL_LIBDIR=/usr/lib64/mysql
28183 elif test -f /usr/lib64/libmysqlclient_r.a \
28184 -o -f /usr/lib64/libmysqlclient_r.so; then
28185 MYSQL_LIBDIR=/usr/lib64
28186 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28187 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28188 MYSQL_LIBDIR=/usr/lib/mysql
28190 MYSQL_LIBDIR=/usr/lib
28192 MYSQL_BINDIR=/usr/bin
28193 elif test -f /usr/include/mysql.h; then
28194 MYSQL_INCDIR=/usr/include
28195 if test -f /usr/lib64/libmysqlclient_r.a \
28196 -o -f /usr/lib64/libmysqlclient_r.so; then
28197 MYSQL_LIBDIR=/usr/lib64
28199 MYSQL_LIBDIR=/usr/lib
28201 MYSQL_BINDIR=/usr/bin
28202 elif test -f /usr/local/include/mysql/mysql.h; then
28203 MYSQL_INCDIR=/usr/local/include/mysql
28204 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28205 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28206 MYSQL_LIBDIR=/usr/local/lib64/mysql
28208 MYSQL_LIBDIR=/usr/local/lib/mysql
28210 MYSQL_BINDIR=/usr/local/bin
28211 elif test -f /usr/local/include/mysql.h; then
28212 MYSQL_INCDIR=/usr/local/include
28213 if test -f /usr/local/lib64/libmysqlclient_r.a \
28214 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28215 MYSQL_LIBDIR=/usr/local/lib64
28217 MYSQL_LIBDIR=/usr/local/lib
28219 MYSQL_BINDIR=/usr/local/bin
28221 { echo "$as_me:$LINENO: result: no" >&5
28222 echo "${ECHO_T}no" >&6; }
28223 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28224 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28225 { (exit 1); exit 1; }; }
28228 if test -f $withval/include/mysql/mysql.h; then
28229 MYSQL_INCDIR=$withval/include/mysql
28230 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28231 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28232 MYSQL_LIBDIR=$withval/lib64/mysql
28233 elif test -f $withval/lib64/libmysqlclient_r.a \
28234 -o -f $withval/lib64/libmysqlclient_r.so; then
28235 MYSQL_LIBDIR=$withval/lib64
28236 elif test -f $withval/lib/libmysqlclient_r.a \
28237 -o -f $withval/lib/libmysqlclient_r.so; then
28238 MYSQL_LIBDIR=$withval/lib
28240 MYSQL_LIBDIR=$withval/lib/mysql
28242 MYSQL_BINDIR=$withval/bin
28243 elif test -f $withval/include/mysql.h; then
28244 MYSQL_INCDIR=$withval/include
28245 if test -f $withval/lib64/libmysqlclient_r.a \
28246 -o -f $withval/lib64/libmysqlclient_r.so; then
28247 MYSQL_LIBDIR=$withval/lib64
28249 MYSQL_LIBDIR=$withval/lib
28251 MYSQL_BINDIR=$withval/bin
28253 { echo "$as_me:$LINENO: result: no" >&5
28254 echo "${ECHO_T}no" >&6; }
28255 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28256 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28257 { (exit 1); exit 1; }; }
28260 SQL_INCLUDE=-I$MYSQL_INCDIR
28261 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28262 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28263 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28264 cat >>confdefs.h <<\_ACEOF
28265 #define HAVE_THREAD_SAFE_MYSQL 1
28269 SQL_BINDIR=$MYSQL_BINDIR
28270 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28272 cat >>confdefs.h <<\_ACEOF
28273 #define HAVE_MYSQL 1
28276 { echo "$as_me:$LINENO: result: yes" >&5
28277 echo "${ECHO_T}yes" >&6; }
28284 { echo "$as_me:$LINENO: result: no" >&5
28285 echo "${ECHO_T}no" >&6; }
28293 # Check whether --with-embedded-mysql was given.
28294 if test "${with_embedded_mysql+set}" = set; then
28295 withval=$with_embedded_mysql;
28296 if test "$withval" != "no"; then
28297 if test "$withval" = "yes"; then
28298 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28299 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28300 if test -d /usr/local/mysql/lib64/mysql; then
28301 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28303 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28305 MYSQL_BINDIR=/usr/local/mysql/bin
28306 elif test -f /usr/include/mysql/mysql.h; then
28307 MYSQL_INCDIR=/usr/include/mysql
28308 if test -d /usr/lib64/mysql; then
28309 MYSQL_LIBDIR=/usr/lib64/mysql
28311 MYSQL_LIBDIR=/usr/lib/mysql
28313 MYSQL_BINDIR=/usr/bin
28314 elif test -f /usr/include/mysql.h; then
28315 MYSQL_INCDIR=/usr/include
28316 if test -d /usr/lib64; then
28317 MYSQL_LIBDIR=/usr/lib64
28319 MYSQL_LIBDIR=/usr/lib
28321 MYSQL_BINDIR=/usr/bin
28322 elif test -f /usr/local/include/mysql/mysql.h; then
28323 MYSQL_INCDIR=/usr/local/include/mysql
28324 if test -d /usr/local/lib64/mysql; then
28325 MYSQL_LIBDIR=/usr/local/lib64/mysql
28327 MYSQL_LIBDIR=/usr/local/lib/mysql
28329 MYSQL_BINDIR=/usr/local/bin
28330 elif test -f /usr/local/include/mysql.h; then
28331 MYSQL_INCDIR=/usr/local/include
28332 if test -d /usr/local/lib64; then
28333 MYSQL_LIBDIR=/usr/local/lib64
28335 MYSQL_LIBDIR=/usr/local/lib
28337 MYSQL_BINDIR=/usr/local/bin
28339 { echo "$as_me:$LINENO: result: no" >&5
28340 echo "${ECHO_T}no" >&6; }
28341 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28342 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28343 { (exit 1); exit 1; }; }
28346 if test -f $withval/include/mysql/mysql.h; then
28347 MYSQL_INCDIR=$withval/include/mysql
28348 if test -d $withval/lib64/mysql; then
28349 MYSQL_LIBDIR=$withval/lib64/mysql
28351 MYSQL_LIBDIR=$withval/lib/mysql
28353 MYSQL_BINDIR=$withval/bin
28354 elif test -f $withval/include/mysql.h; then
28355 MYSQL_INCDIR=$withval/include
28356 if test -d $withval/lib64; then
28357 MYSQL_LIBDIR=$withval/lib64
28359 MYSQL_LIBDIR=$withval/lib
28361 MYSQL_BINDIR=$withval/bin
28363 { echo "$as_me:$LINENO: result: no" >&5
28364 echo "${ECHO_T}no" >&6; }
28365 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28366 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28367 { (exit 1); exit 1; }; }
28370 SQL_INCLUDE=-I$MYSQL_INCDIR
28371 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28372 SQL_BINDIR=$MYSQL_BINDIR
28373 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28375 cat >>confdefs.h <<\_ACEOF
28376 #define HAVE_MYSQL 1
28379 cat >>confdefs.h <<\_ACEOF
28380 #define HAVE_EMBEDDED_MYSQL 1
28383 { echo "$as_me:$LINENO: result: yes" >&5
28384 echo "${ECHO_T}yes" >&6; }
28391 { echo "$as_me:$LINENO: result: no" >&5
28392 echo "${ECHO_T}no" >&6; }
28408 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28409 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28411 # Check whether --with-sqlite3 was given.
28412 if test "${with_sqlite3+set}" = set; then
28413 withval=$with_sqlite3;
28414 if test "$withval" != "no"; then
28415 if test "$withval" = "yes"; then
28416 if test -f /usr/local/include/sqlite3.h; then
28417 SQLITE_INCDIR=/usr/local/include
28418 if test -d /usr/local/lib64; then
28419 SQLITE_LIBDIR=/usr/local/lib64
28421 SQLITE_LIBDIR=/usr/local/lib
28423 SQLITE_BINDIR=/usr/local/bin
28424 elif test -f /usr/include/sqlite3.h; then
28425 SQLITE_INCDIR=/usr/include
28426 if test -d /usr/lib64; then
28427 SQLITE_LIBDIR=/usr/lib64
28429 SQLITE_LIBDIR=/usr/lib
28431 SQLITE_BINDIR=/usr/bin
28432 elif test -f $prefix/include/sqlite3.h; then
28433 SQLITE_INCDIR=$prefix/include
28434 if test -d $prefix/lib64; then
28435 SQLITE_LIBDIR=$prefix/lib64
28437 SQLITE_LIBDIR=$prefix/lib
28439 SQLITE_BINDIR=$prefix/bin
28441 { echo "$as_me:$LINENO: result: no" >&5
28442 echo "${ECHO_T}no" >&6; }
28443 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28444 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28445 { (exit 1); exit 1; }; }
28448 if test -f $withval/sqlite3.h; then
28449 SQLITE_INCDIR=$withval
28450 SQLITE_LIBDIR=$withval
28451 SQLITE_BINDIR=$withval
28452 elif test -f $withval/include/sqlite3.h; then
28453 SQLITE_INCDIR=$withval/include
28454 if test -d $withval/lib64; then
28455 SQLITE_LIBDIR=$withval/lib64
28457 SQLITE_LIBDIR=$withval/lib
28459 SQLITE_BINDIR=$withval/bin
28461 { echo "$as_me:$LINENO: result: no" >&5
28462 echo "${ECHO_T}no" >&6; }
28463 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28464 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28465 { (exit 1); exit 1; }; }
28468 SQL_INCLUDE=-I$SQLITE_INCDIR
28469 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28470 SQL_BINDIR=$SQLITE_BINDIR
28471 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28473 cat >>confdefs.h <<\_ACEOF
28474 #define HAVE_SQLITE3 1
28477 { echo "$as_me:$LINENO: result: yes" >&5
28478 echo "${ECHO_T}yes" >&6; }
28480 support_sqlite3=yes
28485 { echo "$as_me:$LINENO: result: no" >&5
28486 echo "${ECHO_T}no" >&6; }
28491 { echo "$as_me:$LINENO: result: no" >&5
28492 echo "${ECHO_T}no" >&6; }
28504 { echo "$as_me:$LINENO: checking for SQLite support" >&5
28505 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
28507 # Check whether --with-sqlite was given.
28508 if test "${with_sqlite+set}" = set; then
28509 withval=$with_sqlite;
28510 if test "$withval" != "no"; then
28511 if test "$withval" = "yes"; then
28512 if test -f /usr/local/include/sqlite.h; then
28513 SQLITE_INCDIR=/usr/local/include
28514 if test -d /usr/local/lib64; then
28515 SQLITE_LIBDIR=/usr/local/lib64
28517 SQLITE_LIBDIR=/usr/local/lib
28519 SQLITE_BINDIR=/usr/local/bin
28520 elif test -f /usr/include/sqlite.h; then
28521 SQLITE_INCDIR=/usr/include
28522 if test -d /usr/lib64; then
28523 SQLITE_LIBDIR=/usr/lib64
28525 SQLITE_LIBDIR=/usr/lib
28527 SQLITE_BINDIR=/usr/bin
28528 elif test -f $prefix/include/sqlite.h; then
28529 SQLITE_INCDIR=$prefix/include
28530 if test -d $prefix/lib64; then
28531 SQLITE_LIBDIR=$prefix/lib64
28533 SQLITE_LIBDIR=$prefix/lib
28535 SQLITE_BINDIR=$prefix/bin
28537 { echo "$as_me:$LINENO: result: no" >&5
28538 echo "${ECHO_T}no" >&6; }
28539 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
28540 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
28541 { (exit 1); exit 1; }; }
28544 if test -f $withval/sqlite.h; then
28545 SQLITE_INCDIR=$withval
28546 SQLITE_LIBDIR=$withval
28547 SQLITE_BINDIR=$withval
28548 elif test -f $withval/include/sqlite.h; then
28549 SQLITE_INCDIR=$withval/include
28550 if test -d $withval/lib64; then
28551 SQLITE_LIBDIR=$withval/lib64
28553 SQLITE_LIBDIR=$withval/lib
28555 SQLITE_BINDIR=$withval/bin
28557 { echo "$as_me:$LINENO: result: no" >&5
28558 echo "${ECHO_T}no" >&6; }
28559 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
28560 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
28561 { (exit 1); exit 1; }; }
28564 SQL_INCLUDE=-I$SQLITE_INCDIR
28565 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
28566 SQL_BINDIR=$SQLITE_BINDIR
28567 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
28569 cat >>confdefs.h <<\_ACEOF
28570 #define HAVE_SQLITE 1
28573 { echo "$as_me:$LINENO: result: yes" >&5
28574 echo "${ECHO_T}yes" >&6; }
28581 { echo "$as_me:$LINENO: result: no" >&5
28582 echo "${ECHO_T}no" >&6; }
28587 { echo "$as_me:$LINENO: result: no" >&5
28588 echo "${ECHO_T}no" >&6; }
28600 { echo "$as_me:$LINENO: checking for DBI support" >&5
28601 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28603 # Check whether --with-dbi was given.
28604 if test "${with_dbi+set}" = set; then
28606 if test "$withval" != "no"; then
28607 if test "$withval" = "yes"; then
28608 if test -f /usr/local/include/dbi/dbi.h; then
28609 DBI_INCDIR=/usr/local/dbi/include
28610 if test -d /usr/local/lib64; then
28611 DBI_LIBDIR=/usr/local/lib64
28613 DBI_LIBDIR=/usr/local/lib
28615 DBI_BINDIR=/usr/local/bin
28616 elif test -f /usr/include/dbi/dbi.h; then
28617 DBI_INCDIR=/usr/include
28618 if test -d /usr/lib64; then
28619 DBI_LIBDIR=/usr/lib64
28621 DBI_LIBDIR=/usr/lib
28623 DBI_BINDIR=/usr/bin
28624 elif test -f $prefix/include/dbi/dbi.h; then
28625 DBI_INCDIR=$prefix/include
28626 if test -d $prefix/lib64; then
28627 DBI_LIBDIR=$prefix/lib64
28629 DBI_LIBDIR=$prefix/lib
28631 DBI_BINDIR=$prefix/bin
28633 { echo "$as_me:$LINENO: result: no" >&5
28634 echo "${ECHO_T}no" >&6; }
28635 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28636 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28637 { (exit 1); exit 1; }; }
28639 if test -d /usr/local/lib/dbd; then
28640 DRIVERDIR=/usr/local/lib/dbd
28641 if test -d /usr/local/lib64/dbd; then
28642 DRIVERDIR=/usr/local/lib64/dbd
28644 DRIVERDIR=/usr/local/lib/dbd
28646 elif test -d /usr/lib/dbd; then
28647 DRIVERDIR=/usr/lib/dbd
28648 if test -d /usr/lib64/dbd; then
28649 DRIVERDIR=/usr/lib64/dbd
28651 DRIVERDIR=/usr/lib/dbd
28653 elif test -d $prefix/lib/dbd; then
28654 if test -d $prefix/lib64/dbd; then
28655 DRIVERDIR=$prefix/lib64/dbd
28657 DRIVERDIR=$prefix/lib/dbd
28660 { echo "$as_me:$LINENO: result: no" >&5
28661 echo "${ECHO_T}no" >&6; }
28662 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28663 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28664 { (exit 1); exit 1; }; }
28667 if test -f $withval/dbi.h; then
28668 DBI_INCDIR=$withval
28669 DBI_LIBDIR=$withval
28670 DBI_BINDIR=$withval
28671 elif test -f $withval/include/dbi/dbi.h; then
28672 DBI_INCDIR=$withval/include
28673 if test -d $withval/lib64; then
28674 DBI_LIBDIR=$withval/lib64
28676 DBI_LIBDIR=$withval/lib
28678 DBI_BINDIR=$withval/bin
28680 { echo "$as_me:$LINENO: result: no" >&5
28681 echo "${ECHO_T}no" >&6; }
28682 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28683 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28684 { (exit 1); exit 1; }; }
28686 if test -d $withval/dbd; then
28687 DRIVERDIR=$withval/dbd
28688 elif test -d $withval/lib/; then
28689 if test -d $withval/lib64/dbd; then
28690 DRIVERDIR=$withval/lib64/dbd
28692 DRIVERDIR=$withval/lib/dbd
28695 { echo "$as_me:$LINENO: result: no" >&5
28696 echo "${ECHO_T}no" >&6; }
28697 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28698 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28699 { (exit 1); exit 1; }; }
28702 SQL_INCLUDE=-I$DBI_INCDIR
28703 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28704 SQL_BINDIR=$DBI_BINDIR
28705 SQL_LIB=$DBI_LIBDIR/libdbi.a
28706 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28709 cat >>confdefs.h <<\_ACEOF
28713 { echo "$as_me:$LINENO: result: yes" >&5
28714 echo "${ECHO_T}yes" >&6; }
28722 { echo "$as_me:$LINENO: result: no" >&5
28723 echo "${ECHO_T}no" >&6; }
28728 { echo "$as_me:$LINENO: result: no" >&5
28729 echo "${ECHO_T}no" >&6; }
28744 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28745 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28747 # Check whether --with-dbi-driver was given.
28748 if test "${with_dbi_driver+set}" = set; then
28749 withval=$with_dbi_driver;
28750 if test "$withval" != "no"; then
28754 if test -f /usr/local/mysql/bin/mysql; then
28755 SQL_BINDIR=/usr/local/mysql/bin
28756 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28757 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28758 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28760 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28762 elif test -f /usr/bin/mysql; then
28763 SQL_BINDIR=/usr/bin
28764 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28765 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28766 SQL_LIBDIR=/usr/lib64/mysql
28767 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28768 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28769 SQL_LIBDIR=/usr/lib/mysql
28771 SQL_LIBDIR=/usr/lib
28773 elif test -f /usr/local/bin/mysql; then
28774 SQL_BINDIR=/usr/local/bin
28775 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28776 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28777 SQL_LIBDIR=/usr/local/lib64/mysql
28778 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28779 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28780 SQL_LIBDIR=/usr/local/lib/mysql
28782 SQL_LIBDIR=/usr/local/lib
28784 elif test -f $withval/bin/mysql; then
28785 SQL_BINDIR=$withval/bin
28786 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28787 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28788 SQL_LIBDIR=$withval/lib64/mysql
28789 elif test -f $withval/lib64/libmysqlclient_r.a \
28790 -o -f $withval/lib64/libmysqlclient_r.so; then
28791 SQL_LIBDIR=$withval/lib64
28792 elif test -f $withval/lib/libmysqlclient_r.a \
28793 -o -f $withval/lib/libmysqlclient_r.so; then
28794 SQL_LIBDIR=$withval/lib/
28796 SQL_LIBDIR=$withval/lib/mysql
28799 { echo "$as_me:$LINENO: result: no" >&5
28800 echo "${ECHO_T}no" >&6; }
28801 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28802 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28803 { (exit 1); exit 1; }; }
28805 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28806 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28808 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28812 db_prog="postgresql"
28813 PG_CONFIG=`which pg_config`
28814 if test -n "$PG_CONFIG"; then
28815 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28816 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28817 elif test -f /usr/local/bin/psql; then
28818 SQL_BINDIR=/usr/local/bin
28819 if test -d /usr/local/lib64; then
28820 SQL_LIBDIR=/usr/local/lib64
28822 SQL_LIBDIR=/usr/local/lib
28824 elif test -f /usr/bin/psql; then
28825 SQL_BINDIR=/usr/local/bin
28826 if test -d /usr/lib64/postgresql; then
28827 SQL_LIBDIR=/usr/lib64/postgresql
28828 elif test -d /usr/lib/postgresql; then
28829 SQL_LIBDIR=/usr/lib/postgresql
28830 elif test -d /usr/lib64; then
28831 SQL_LIBDIR=/usr/lib64
28833 SQL_LIBDIR=/usr/lib
28835 elif test -f $withval/bin/psql; then
28836 SQL_BINDIR=$withval/bin
28837 if test -d $withval/lib64; then
28838 SQL_LIBDIR=$withval/lib64
28840 SQL_LIBDIR=$withval/lib
28843 { echo "$as_me:$LINENO: result: no" >&5
28844 echo "${ECHO_T}no" >&6; }
28845 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28846 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28847 { (exit 1); exit 1; }; }
28849 if test -f $SQL_LIBDIR/libpq.so; then
28850 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28852 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28857 if test -f /usr/local/bin/sqlite; then
28858 SQL_BINDIR=/usr/local/bin
28859 if test -d /usr/local/lib64; then
28860 SQL_LIBDIR=/usr/local/lib64
28862 SQL_LIBDIR=/usr/local/lib
28864 elif test -f /usr/bin/sqlite; then
28865 SQL_BINDIR=/usr/bin
28866 if test -d /usr/lib64; then
28867 SQL_LIBDIR=/usr/lib64
28869 SQL_LIBDIR=/usr/lib
28871 elif test -f $withval/bin/sqlite; then
28872 SQL_BINDIR=$withval/bin
28873 if test -d $withval/lib64; then
28874 SQL_LIBDIR=$withval/lib64
28876 SQL_LIBDIR=$withval/lib
28879 { echo "$as_me:$LINENO: result: no" >&5
28880 echo "${ECHO_T}no" >&6; }
28881 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28882 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28883 { (exit 1); exit 1; }; }
28885 if test -f $SQL_LIBDIR/libsqlite.so; then
28886 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28888 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28893 if test -f /usr/local/bin/sqlite3; then
28894 SQL_BINDIR=/usr/local/bin
28895 if test -d /usr/local/lib64; then
28896 SQL_LIBDIR=/usr/local/lib64
28898 SQL_LIBDIR=/usr/local/lib
28900 elif test -f /usr/bin/sqlite3; then
28901 SQL_BINDIR=/usr/bin
28902 if test -d /usr/lib64; then
28903 SQL_LIBDIR=/usr/lib64
28905 SQL_LIBDIR=/usr/lib
28907 elif test -f $withval/bin/sqlite3; then
28908 SQL_BINDIR=$withval/bin
28909 if test -d $withval/lib64; then
28910 SQL_LIBDIR=$withval/lib64
28912 SQL_LIBDIR=$withval/lib
28915 { echo "$as_me:$LINENO: result: no" >&5
28916 echo "${ECHO_T}no" >&6; }
28917 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28918 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28919 { (exit 1); exit 1; }; }
28921 if test -f $SQL_LIBDIR/libsqlite3.so; then
28922 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28924 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28928 { echo "$as_me:$LINENO: result: no" >&5
28929 echo "${ECHO_T}no" >&6; }
28930 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28931 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28932 { (exit 1); exit 1; }; }
28936 { echo "$as_me:$LINENO: result: yes" >&5
28937 echo "${ECHO_T}yes" >&6; }
28940 { echo "$as_me:$LINENO: result: no" >&5
28941 echo "${ECHO_T}no" >&6; }
28946 { echo "$as_me:$LINENO: result: no" >&5
28947 echo "${ECHO_T}no" >&6; }
28960 support_batch_insert=no
28961 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28963 if test $pkg = 0; then
28964 support_batch_insert=yes
28965 # Check whether --enable-batch-insert was given.
28966 if test "${enable_batch_insert+set}" = set; then
28967 enableval=$enable_batch_insert;
28968 if test x$enableval = xno; then
28969 support_batch_insert=no
28971 support_batch_insert=yes
28979 if test x$DB_TYPE = xpostgresql; then
28980 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28982 if test $pkg != 0; then
28983 support_batch_insert=no
28987 if test x$DB_TYPE = xdbi; then
28991 if test $DB_PROG = postgresql; then
28992 A=`test -f $SQL_LIB && nm $SQL_LIB | grep PQputCopyData`
28996 if test $DB_PROG = mysql; then
28997 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29001 if test $DB_PROG = sqlite3; then
29002 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29006 if test $pkg = 0; then
29007 # Check whether --enable-batch-insert was given.
29008 if test "${enable_batch_insert+set}" = set; then
29009 enableval=$enable_batch_insert;
29010 if test x$enableval = xno; then
29011 support_batch_insert=no
29013 support_batch_insert=yes
29026 if test $support_batch_insert = yes ; then
29028 cat >>confdefs.h <<\_ACEOF
29029 #define HAVE_BATCH_FILE_INSERT 1
29034 cat >>confdefs.h <<\_ACEOF
29035 #define PROTOTYPES 1
29039 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29040 if test -z "$CCOPTS"; then
29041 CCOPTS='-g -O2 -Wall'
29048 largefile_support="no"
29050 # Check whether --enable-largefile was given.
29051 if test "${enable_largefile+set}" = set; then
29052 enableval=$enable_largefile;
29055 if test "$enable_largefile" != no; then
29056 if test -n "$ac_tool_prefix"; then
29057 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29058 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29061 if test "${ac_cv_prog_GETCONF+set}" = set; then
29062 echo $ECHO_N "(cached) $ECHO_C" >&6
29064 if test -n "$GETCONF"; then
29065 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29068 for as_dir in $PATH
29071 test -z "$as_dir" && as_dir=.
29072 for ac_exec_ext in '' $ac_executable_extensions; do
29073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29074 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29084 GETCONF=$ac_cv_prog_GETCONF
29085 if test -n "$GETCONF"; then
29086 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29087 echo "${ECHO_T}$GETCONF" >&6; }
29089 { echo "$as_me:$LINENO: result: no" >&5
29090 echo "${ECHO_T}no" >&6; }
29095 if test -z "$ac_cv_prog_GETCONF"; then
29096 ac_ct_GETCONF=$GETCONF
29097 # Extract the first word of "getconf", so it can be a program name with args.
29098 set dummy getconf; ac_word=$2
29099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29101 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29102 echo $ECHO_N "(cached) $ECHO_C" >&6
29104 if test -n "$ac_ct_GETCONF"; then
29105 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29108 for as_dir in $PATH
29111 test -z "$as_dir" && as_dir=.
29112 for ac_exec_ext in '' $ac_executable_extensions; do
29113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29114 ac_cv_prog_ac_ct_GETCONF="getconf"
29115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29124 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29125 if test -n "$ac_ct_GETCONF"; then
29126 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29127 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29129 { echo "$as_me:$LINENO: result: no" >&5
29130 echo "${ECHO_T}no" >&6; }
29133 if test "x$ac_ct_GETCONF" = x; then
29136 case $cross_compiling:$ac_tool_warned in
29138 { echo "$as_me:$LINENO: 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." >&5
29141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29142 whose name does not start with the host triplet. If you think this
29143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29144 ac_tool_warned=yes ;;
29146 GETCONF=$ac_ct_GETCONF
29149 GETCONF="$ac_cv_prog_GETCONF"
29152 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29153 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29154 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29155 echo $ECHO_N "(cached) $ECHO_C" >&6
29157 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29158 ac_cv_sys_largefile_CFLAGS=no
29160 # IRIX 6.2 and later require cc -n32.
29161 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29162 if test "$GCC" != yes; then
29163 ac_cv_sys_largefile_CFLAGS=-n32
29166 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29167 cat >conftest.$ac_ext <<_ACEOF
29170 cat confdefs.h >>conftest.$ac_ext
29171 cat >>conftest.$ac_ext <<_ACEOF
29172 /* end confdefs.h. */
29182 rm -f conftest.$ac_objext conftest$ac_exeext
29183 if { (ac_try="$ac_link"
29184 case "(($ac_try" in
29185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29186 *) ac_try_echo=$ac_try;;
29188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29189 (eval "$ac_link") 2>conftest.er1
29191 grep -v '^ *+' conftest.er1 >conftest.err
29193 cat conftest.err >&5
29194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); } && {
29196 test -z "$ac_c_werror_flag" ||
29197 test ! -s conftest.err
29198 } && test -s conftest$ac_exeext &&
29199 $as_test_x conftest$ac_exeext; then
29202 echo "$as_me: failed program was:" >&5
29203 sed 's/^/| /' conftest.$ac_ext >&5
29205 ac_cv_sys_largefile_CFLAGS=no
29208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29209 conftest$ac_exeext conftest.$ac_ext
29214 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29215 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29216 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29217 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29218 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29219 echo $ECHO_N "(cached) $ECHO_C" >&6
29221 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29222 ac_cv_sys_largefile_LDFLAGS=no
29226 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29227 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29228 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29229 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29230 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29231 echo $ECHO_N "(cached) $ECHO_C" >&6
29233 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29234 ac_cv_sys_largefile_LIBS=no
29238 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29239 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29241 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29244 -D_FILE_OFFSET_BITS=*) ;;
29245 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29246 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29251 case "$CPPFLAGS" in
29252 '') CPPFLAGS="$ac_flag" ;;
29253 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29261 '') CFLAGS="$ac_flag" ;;
29262 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29267 case "$ac_cv_sys_largefile_LDFLAGS" in
29271 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29272 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29275 case "$ac_cv_sys_largefile_LIBS" in
29279 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29280 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29283 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29284 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29285 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29286 echo $ECHO_N "(cached) $ECHO_C" >&6
29288 ac_cv_sys_file_offset_bits=no
29289 ac_cv_sys_file_offset_bits=64
29290 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29292 -D_FILE_OFFSET_BITS)
29293 ac_cv_sys_file_offset_bits=1 ;;
29294 -D_FILE_OFFSET_BITS=*)
29295 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29300 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29301 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29302 if test "$ac_cv_sys_file_offset_bits" != no; then
29304 cat >>confdefs.h <<_ACEOF
29305 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29309 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29310 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29311 if test "${ac_cv_sys_largefile_source+set}" = set; then
29312 echo $ECHO_N "(cached) $ECHO_C" >&6
29314 ac_cv_sys_largefile_source=no
29315 ac_cv_sys_largefile_source=1
29316 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29318 -D_LARGEFILE_SOURCE)
29319 ac_cv_sys_largefile_source=1 ;;
29320 -D_LARGEFILE_SOURCE=*)
29321 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29326 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29327 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29328 if test "$ac_cv_sys_largefile_source" != no; then
29330 cat >>confdefs.h <<_ACEOF
29331 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29335 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29336 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29337 if test "${ac_cv_sys_large_files+set}" = set; then
29338 echo $ECHO_N "(cached) $ECHO_C" >&6
29340 ac_cv_sys_large_files=no
29341 ac_cv_sys_large_files=1
29342 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29345 ac_cv_sys_large_files=1 ;;
29347 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29352 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29353 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29354 if test "$ac_cv_sys_large_files" != no; then
29356 cat >>confdefs.h <<_ACEOF
29357 #define _LARGE_FILES $ac_cv_sys_large_files
29364 { echo "$as_me:$LINENO: checking for X" >&5
29365 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29368 # Check whether --with-x was given.
29369 if test "${with_x+set}" = set; then
29373 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29374 if test "x$with_x" = xno; then
29375 # The user explicitly disabled X.
29378 case $x_includes,$x_libraries in #(
29379 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29380 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29381 { (exit 1); exit 1; }; };; #(
29382 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29383 echo $ECHO_N "(cached) $ECHO_C" >&6
29385 # One or both of the vars are not set, and there is no cached value.
29386 ac_x_includes=no ac_x_libraries=no
29387 rm -f -r conftest.dir
29388 if mkdir conftest.dir; then
29390 cat >Imakefile <<'_ACEOF'
29392 @echo incroot='${INCROOT}'
29394 @echo usrlibdir='${USRLIBDIR}'
29396 @echo libdir='${LIBDIR}'
29398 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29399 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29400 for ac_var in incroot usrlibdir libdir; do
29401 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29403 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29404 for ac_extension in a so sl; do
29405 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29406 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29407 ac_im_usrlibdir=$ac_im_libdir; break
29410 # Screen out bogus values from the imake configuration. They are
29411 # bogus both because they are the default anyway, and because
29412 # using them would break gcc on systems where it needs fixed includes.
29413 case $ac_im_incroot in
29414 /usr/include) ac_x_includes= ;;
29415 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29417 case $ac_im_usrlibdir in
29418 /usr/lib | /lib) ;;
29419 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29423 rm -f -r conftest.dir
29426 # Standard set of common directories for X headers.
29427 # Check X11 before X11Rn because it is often a symlink to the current release.
29439 /usr/local/X11/include
29440 /usr/local/X11R6/include
29441 /usr/local/X11R5/include
29442 /usr/local/X11R4/include
29444 /usr/local/include/X11
29445 /usr/local/include/X11R6
29446 /usr/local/include/X11R5
29447 /usr/local/include/X11R4
29451 /usr/XFree86/include/X11
29455 /usr/unsupported/include
29456 /usr/athena/include
29457 /usr/local/x11r5/include
29458 /usr/lpp/Xamples/include
29460 /usr/openwin/include
29461 /usr/openwin/share/include'
29463 if test "$ac_x_includes" = no; then
29464 # Guess where to find include files, by looking for Xlib.h.
29465 # First, try using that file with no special directory specified.
29466 cat >conftest.$ac_ext <<_ACEOF
29469 cat confdefs.h >>conftest.$ac_ext
29470 cat >>conftest.$ac_ext <<_ACEOF
29471 /* end confdefs.h. */
29472 #include <X11/Xlib.h>
29474 if { (ac_try="$ac_cpp conftest.$ac_ext"
29475 case "(($ac_try" in
29476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29477 *) ac_try_echo=$ac_try;;
29479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29482 grep -v '^ *+' conftest.er1 >conftest.err
29484 cat conftest.err >&5
29485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29486 (exit $ac_status); } >/dev/null && {
29487 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29488 test ! -s conftest.err
29490 # We can compile using X headers with no special include directory.
29493 echo "$as_me: failed program was:" >&5
29494 sed 's/^/| /' conftest.$ac_ext >&5
29496 for ac_dir in $ac_x_header_dirs; do
29497 if test -r "$ac_dir/X11/Xlib.h"; then
29498 ac_x_includes=$ac_dir
29504 rm -f conftest.err conftest.$ac_ext
29505 fi # $ac_x_includes = no
29507 if test "$ac_x_libraries" = no; then
29508 # Check for the libraries.
29509 # See if we find them without any special options.
29510 # Don't add to $LIBS permanently.
29513 cat >conftest.$ac_ext <<_ACEOF
29516 cat confdefs.h >>conftest.$ac_ext
29517 cat >>conftest.$ac_ext <<_ACEOF
29518 /* end confdefs.h. */
29519 #include <X11/Xlib.h>
29528 rm -f conftest.$ac_objext conftest$ac_exeext
29529 if { (ac_try="$ac_link"
29530 case "(($ac_try" in
29531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29532 *) ac_try_echo=$ac_try;;
29534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29535 (eval "$ac_link") 2>conftest.er1
29537 grep -v '^ *+' conftest.er1 >conftest.err
29539 cat conftest.err >&5
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); } && {
29542 test -z "$ac_c_werror_flag" ||
29543 test ! -s conftest.err
29544 } && test -s conftest$ac_exeext &&
29545 $as_test_x conftest$ac_exeext; then
29547 # We can link X programs with no special library path.
29550 echo "$as_me: failed program was:" >&5
29551 sed 's/^/| /' conftest.$ac_ext >&5
29554 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29556 # Don't even attempt the hair of trying to link an X program!
29557 for ac_extension in a so sl; do
29558 if test -r "$ac_dir/libX11.$ac_extension"; then
29559 ac_x_libraries=$ac_dir
29566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29567 conftest$ac_exeext conftest.$ac_ext
29568 fi # $ac_x_libraries = no
29570 case $ac_x_includes,$ac_x_libraries in #(
29571 no,* | *,no | *\'*)
29572 # Didn't find X, or a directory has "'" in its name.
29573 ac_cv_have_x="have_x=no";; #(
29575 # Record where we found X for the cache.
29576 ac_cv_have_x="have_x=yes\
29577 ac_x_includes='$ac_x_includes'\
29578 ac_x_libraries='$ac_x_libraries'"
29584 eval "$ac_cv_have_x"
29587 if test "$have_x" != yes; then
29588 { echo "$as_me:$LINENO: result: $have_x" >&5
29589 echo "${ECHO_T}$have_x" >&6; }
29592 # If each of the values was on the command line, it overrides each guess.
29593 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29594 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29595 # Update the cache value to reflect the command line values.
29596 ac_cv_have_x="have_x=yes\
29597 ac_x_includes='$x_includes'\
29598 ac_x_libraries='$x_libraries'"
29599 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29600 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29603 if test "$no_x" = yes; then
29604 # Not all programs may use this symbol, but it does not hurt to define it.
29606 cat >>confdefs.h <<\_ACEOF
29607 #define X_DISPLAY_MISSING 1
29610 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29612 if test -n "$x_includes"; then
29613 X_CFLAGS="$X_CFLAGS -I$x_includes"
29616 # It would also be nice to do this for all -L options, not just this one.
29617 if test -n "$x_libraries"; then
29618 X_LIBS="$X_LIBS -L$x_libraries"
29619 # For Solaris; some versions of Sun CC require a space after -R and
29620 # others require no space. Words are not sufficient . . . .
29621 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29622 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29623 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29624 ac_xsave_c_werror_flag=$ac_c_werror_flag
29625 ac_c_werror_flag=yes
29626 cat >conftest.$ac_ext <<_ACEOF
29629 cat confdefs.h >>conftest.$ac_ext
29630 cat >>conftest.$ac_ext <<_ACEOF
29631 /* end confdefs.h. */
29641 rm -f conftest.$ac_objext conftest$ac_exeext
29642 if { (ac_try="$ac_link"
29643 case "(($ac_try" in
29644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29645 *) ac_try_echo=$ac_try;;
29647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29648 (eval "$ac_link") 2>conftest.er1
29650 grep -v '^ *+' conftest.er1 >conftest.err
29652 cat conftest.err >&5
29653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29654 (exit $ac_status); } && {
29655 test -z "$ac_c_werror_flag" ||
29656 test ! -s conftest.err
29657 } && test -s conftest$ac_exeext &&
29658 $as_test_x conftest$ac_exeext; then
29659 { echo "$as_me:$LINENO: result: no" >&5
29660 echo "${ECHO_T}no" >&6; }
29661 X_LIBS="$X_LIBS -R$x_libraries"
29663 echo "$as_me: failed program was:" >&5
29664 sed 's/^/| /' conftest.$ac_ext >&5
29666 LIBS="$ac_xsave_LIBS -R $x_libraries"
29667 cat >conftest.$ac_ext <<_ACEOF
29670 cat confdefs.h >>conftest.$ac_ext
29671 cat >>conftest.$ac_ext <<_ACEOF
29672 /* end confdefs.h. */
29682 rm -f conftest.$ac_objext conftest$ac_exeext
29683 if { (ac_try="$ac_link"
29684 case "(($ac_try" in
29685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29686 *) ac_try_echo=$ac_try;;
29688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29689 (eval "$ac_link") 2>conftest.er1
29691 grep -v '^ *+' conftest.er1 >conftest.err
29693 cat conftest.err >&5
29694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29695 (exit $ac_status); } && {
29696 test -z "$ac_c_werror_flag" ||
29697 test ! -s conftest.err
29698 } && test -s conftest$ac_exeext &&
29699 $as_test_x conftest$ac_exeext; then
29700 { echo "$as_me:$LINENO: result: yes" >&5
29701 echo "${ECHO_T}yes" >&6; }
29702 X_LIBS="$X_LIBS -R $x_libraries"
29704 echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29707 { echo "$as_me:$LINENO: result: neither works" >&5
29708 echo "${ECHO_T}neither works" >&6; }
29711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29712 conftest$ac_exeext conftest.$ac_ext
29715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29716 conftest$ac_exeext conftest.$ac_ext
29717 ac_c_werror_flag=$ac_xsave_c_werror_flag
29718 LIBS=$ac_xsave_LIBS
29721 # Check for system-dependent libraries X programs must link with.
29722 # Do this before checking for the system-independent R6 libraries
29723 # (-lICE), since we may need -lsocket or whatever for X linking.
29725 if test "$ISC" = yes; then
29726 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29728 # Martyn Johnson says this is needed for Ultrix, if the X
29729 # libraries were built with DECnet support. And Karl Berry says
29730 # the Alpha needs dnet_stub (dnet does not exist).
29731 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29732 cat >conftest.$ac_ext <<_ACEOF
29735 cat confdefs.h >>conftest.$ac_ext
29736 cat >>conftest.$ac_ext <<_ACEOF
29737 /* end confdefs.h. */
29739 /* Override any GCC internal prototype to avoid an error.
29740 Use char because int might match the return type of a GCC
29741 builtin and then its argument prototype would still apply. */
29745 char XOpenDisplay ();
29749 return XOpenDisplay ();
29754 rm -f conftest.$ac_objext conftest$ac_exeext
29755 if { (ac_try="$ac_link"
29756 case "(($ac_try" in
29757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29758 *) ac_try_echo=$ac_try;;
29760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29761 (eval "$ac_link") 2>conftest.er1
29763 grep -v '^ *+' conftest.er1 >conftest.err
29765 cat conftest.err >&5
29766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29767 (exit $ac_status); } && {
29768 test -z "$ac_c_werror_flag" ||
29769 test ! -s conftest.err
29770 } && test -s conftest$ac_exeext &&
29771 $as_test_x conftest$ac_exeext; then
29774 echo "$as_me: failed program was:" >&5
29775 sed 's/^/| /' conftest.$ac_ext >&5
29777 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
29778 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
29779 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
29780 echo $ECHO_N "(cached) $ECHO_C" >&6
29782 ac_check_lib_save_LIBS=$LIBS
29783 LIBS="-ldnet $LIBS"
29784 cat >conftest.$ac_ext <<_ACEOF
29787 cat confdefs.h >>conftest.$ac_ext
29788 cat >>conftest.$ac_ext <<_ACEOF
29789 /* end confdefs.h. */
29791 /* Override any GCC internal prototype to avoid an error.
29792 Use char because int might match the return type of a GCC
29793 builtin and then its argument prototype would still apply. */
29801 return dnet_ntoa ();
29806 rm -f conftest.$ac_objext conftest$ac_exeext
29807 if { (ac_try="$ac_link"
29808 case "(($ac_try" in
29809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29810 *) ac_try_echo=$ac_try;;
29812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29813 (eval "$ac_link") 2>conftest.er1
29815 grep -v '^ *+' conftest.er1 >conftest.err
29817 cat conftest.err >&5
29818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29819 (exit $ac_status); } && {
29820 test -z "$ac_c_werror_flag" ||
29821 test ! -s conftest.err
29822 } && test -s conftest$ac_exeext &&
29823 $as_test_x conftest$ac_exeext; then
29824 ac_cv_lib_dnet_dnet_ntoa=yes
29826 echo "$as_me: failed program was:" >&5
29827 sed 's/^/| /' conftest.$ac_ext >&5
29829 ac_cv_lib_dnet_dnet_ntoa=no
29832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29833 conftest$ac_exeext conftest.$ac_ext
29834 LIBS=$ac_check_lib_save_LIBS
29836 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29837 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29838 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
29839 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29842 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29843 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
29844 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
29845 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
29846 echo $ECHO_N "(cached) $ECHO_C" >&6
29848 ac_check_lib_save_LIBS=$LIBS
29849 LIBS="-ldnet_stub $LIBS"
29850 cat >conftest.$ac_ext <<_ACEOF
29853 cat confdefs.h >>conftest.$ac_ext
29854 cat >>conftest.$ac_ext <<_ACEOF
29855 /* end confdefs.h. */
29857 /* Override any GCC internal prototype to avoid an error.
29858 Use char because int might match the return type of a GCC
29859 builtin and then its argument prototype would still apply. */
29867 return dnet_ntoa ();
29872 rm -f conftest.$ac_objext conftest$ac_exeext
29873 if { (ac_try="$ac_link"
29874 case "(($ac_try" in
29875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876 *) ac_try_echo=$ac_try;;
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879 (eval "$ac_link") 2>conftest.er1
29881 grep -v '^ *+' conftest.er1 >conftest.err
29883 cat conftest.err >&5
29884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885 (exit $ac_status); } && {
29886 test -z "$ac_c_werror_flag" ||
29887 test ! -s conftest.err
29888 } && test -s conftest$ac_exeext &&
29889 $as_test_x conftest$ac_exeext; then
29890 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29892 echo "$as_me: failed program was:" >&5
29893 sed 's/^/| /' conftest.$ac_ext >&5
29895 ac_cv_lib_dnet_stub_dnet_ntoa=no
29898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29899 conftest$ac_exeext conftest.$ac_ext
29900 LIBS=$ac_check_lib_save_LIBS
29902 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29903 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29904 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
29905 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29912 conftest$ac_exeext conftest.$ac_ext
29913 LIBS="$ac_xsave_LIBS"
29915 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29916 # to get the SysV transport functions.
29917 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29919 # The nsl library prevents programs from opening the X display
29920 # on Irix 5.2, according to T.E. Dickey.
29921 # The functions gethostbyname, getservbyname, and inet_addr are
29922 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29923 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
29924 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
29925 if test "${ac_cv_func_gethostbyname+set}" = set; then
29926 echo $ECHO_N "(cached) $ECHO_C" >&6
29928 cat >conftest.$ac_ext <<_ACEOF
29931 cat confdefs.h >>conftest.$ac_ext
29932 cat >>conftest.$ac_ext <<_ACEOF
29933 /* end confdefs.h. */
29934 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
29935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29936 #define gethostbyname innocuous_gethostbyname
29938 /* System header to define __stub macros and hopefully few prototypes,
29939 which can conflict with char gethostbyname (); below.
29940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29941 <limits.h> exists even on freestanding compilers. */
29944 # include <limits.h>
29946 # include <assert.h>
29949 #undef gethostbyname
29951 /* Override any GCC internal prototype to avoid an error.
29952 Use char because int might match the return type of a GCC
29953 builtin and then its argument prototype would still apply. */
29957 char gethostbyname ();
29958 /* The GNU C library defines this for functions which it implements
29959 to always fail with ENOSYS. Some functions are actually named
29960 something starting with __ and the normal name is an alias. */
29961 #if defined __stub_gethostbyname || defined __stub___gethostbyname
29968 return gethostbyname ();
29973 rm -f conftest.$ac_objext conftest$ac_exeext
29974 if { (ac_try="$ac_link"
29975 case "(($ac_try" in
29976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29977 *) ac_try_echo=$ac_try;;
29979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29980 (eval "$ac_link") 2>conftest.er1
29982 grep -v '^ *+' conftest.er1 >conftest.err
29984 cat conftest.err >&5
29985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29986 (exit $ac_status); } && {
29987 test -z "$ac_c_werror_flag" ||
29988 test ! -s conftest.err
29989 } && test -s conftest$ac_exeext &&
29990 $as_test_x conftest$ac_exeext; then
29991 ac_cv_func_gethostbyname=yes
29993 echo "$as_me: failed program was:" >&5
29994 sed 's/^/| /' conftest.$ac_ext >&5
29996 ac_cv_func_gethostbyname=no
29999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30000 conftest$ac_exeext conftest.$ac_ext
30002 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30003 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30005 if test $ac_cv_func_gethostbyname = no; then
30006 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30007 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30008 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30009 echo $ECHO_N "(cached) $ECHO_C" >&6
30011 ac_check_lib_save_LIBS=$LIBS
30013 cat >conftest.$ac_ext <<_ACEOF
30016 cat confdefs.h >>conftest.$ac_ext
30017 cat >>conftest.$ac_ext <<_ACEOF
30018 /* end confdefs.h. */
30020 /* Override any GCC internal prototype to avoid an error.
30021 Use char because int might match the return type of a GCC
30022 builtin and then its argument prototype would still apply. */
30026 char gethostbyname ();
30030 return gethostbyname ();
30035 rm -f conftest.$ac_objext conftest$ac_exeext
30036 if { (ac_try="$ac_link"
30037 case "(($ac_try" in
30038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039 *) ac_try_echo=$ac_try;;
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042 (eval "$ac_link") 2>conftest.er1
30044 grep -v '^ *+' conftest.er1 >conftest.err
30046 cat conftest.err >&5
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } && {
30049 test -z "$ac_c_werror_flag" ||
30050 test ! -s conftest.err
30051 } && test -s conftest$ac_exeext &&
30052 $as_test_x conftest$ac_exeext; then
30053 ac_cv_lib_nsl_gethostbyname=yes
30055 echo "$as_me: failed program was:" >&5
30056 sed 's/^/| /' conftest.$ac_ext >&5
30058 ac_cv_lib_nsl_gethostbyname=no
30061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30062 conftest$ac_exeext conftest.$ac_ext
30063 LIBS=$ac_check_lib_save_LIBS
30065 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30066 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30067 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30068 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30071 if test $ac_cv_lib_nsl_gethostbyname = no; then
30072 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30073 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30074 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30075 echo $ECHO_N "(cached) $ECHO_C" >&6
30077 ac_check_lib_save_LIBS=$LIBS
30079 cat >conftest.$ac_ext <<_ACEOF
30082 cat confdefs.h >>conftest.$ac_ext
30083 cat >>conftest.$ac_ext <<_ACEOF
30084 /* end confdefs.h. */
30086 /* Override any GCC internal prototype to avoid an error.
30087 Use char because int might match the return type of a GCC
30088 builtin and then its argument prototype would still apply. */
30092 char gethostbyname ();
30096 return gethostbyname ();
30101 rm -f conftest.$ac_objext conftest$ac_exeext
30102 if { (ac_try="$ac_link"
30103 case "(($ac_try" in
30104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30105 *) ac_try_echo=$ac_try;;
30107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30108 (eval "$ac_link") 2>conftest.er1
30110 grep -v '^ *+' conftest.er1 >conftest.err
30112 cat conftest.err >&5
30113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30114 (exit $ac_status); } && {
30115 test -z "$ac_c_werror_flag" ||
30116 test ! -s conftest.err
30117 } && test -s conftest$ac_exeext &&
30118 $as_test_x conftest$ac_exeext; then
30119 ac_cv_lib_bsd_gethostbyname=yes
30121 echo "$as_me: failed program was:" >&5
30122 sed 's/^/| /' conftest.$ac_ext >&5
30124 ac_cv_lib_bsd_gethostbyname=no
30127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30128 conftest$ac_exeext conftest.$ac_ext
30129 LIBS=$ac_check_lib_save_LIBS
30131 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30132 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30133 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30134 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30140 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30141 # socket/setsockopt and other routines are undefined under SCO ODT
30142 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30143 # on later versions), says Simon Leinen: it contains gethostby*
30144 # variants that don't use the name server (or something). -lsocket
30145 # must be given before -lnsl if both are needed. We assume that
30146 # if connect needs -lnsl, so does gethostbyname.
30147 { echo "$as_me:$LINENO: checking for connect" >&5
30148 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30149 if test "${ac_cv_func_connect+set}" = set; then
30150 echo $ECHO_N "(cached) $ECHO_C" >&6
30152 cat >conftest.$ac_ext <<_ACEOF
30155 cat confdefs.h >>conftest.$ac_ext
30156 cat >>conftest.$ac_ext <<_ACEOF
30157 /* end confdefs.h. */
30158 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30160 #define connect innocuous_connect
30162 /* System header to define __stub macros and hopefully few prototypes,
30163 which can conflict with char connect (); below.
30164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30165 <limits.h> exists even on freestanding compilers. */
30168 # include <limits.h>
30170 # include <assert.h>
30175 /* Override any GCC internal prototype to avoid an error.
30176 Use char because int might match the return type of a GCC
30177 builtin and then its argument prototype would still apply. */
30182 /* The GNU C library defines this for functions which it implements
30183 to always fail with ENOSYS. Some functions are actually named
30184 something starting with __ and the normal name is an alias. */
30185 #if defined __stub_connect || defined __stub___connect
30197 rm -f conftest.$ac_objext conftest$ac_exeext
30198 if { (ac_try="$ac_link"
30199 case "(($ac_try" in
30200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30201 *) ac_try_echo=$ac_try;;
30203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30204 (eval "$ac_link") 2>conftest.er1
30206 grep -v '^ *+' conftest.er1 >conftest.err
30208 cat conftest.err >&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); } && {
30211 test -z "$ac_c_werror_flag" ||
30212 test ! -s conftest.err
30213 } && test -s conftest$ac_exeext &&
30214 $as_test_x conftest$ac_exeext; then
30215 ac_cv_func_connect=yes
30217 echo "$as_me: failed program was:" >&5
30218 sed 's/^/| /' conftest.$ac_ext >&5
30220 ac_cv_func_connect=no
30223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30224 conftest$ac_exeext conftest.$ac_ext
30226 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30227 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30229 if test $ac_cv_func_connect = no; then
30230 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30231 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30232 if test "${ac_cv_lib_socket_connect+set}" = set; then
30233 echo $ECHO_N "(cached) $ECHO_C" >&6
30235 ac_check_lib_save_LIBS=$LIBS
30236 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30237 cat >conftest.$ac_ext <<_ACEOF
30240 cat confdefs.h >>conftest.$ac_ext
30241 cat >>conftest.$ac_ext <<_ACEOF
30242 /* end confdefs.h. */
30244 /* Override any GCC internal prototype to avoid an error.
30245 Use char because int might match the return type of a GCC
30246 builtin and then its argument prototype would still apply. */
30259 rm -f conftest.$ac_objext conftest$ac_exeext
30260 if { (ac_try="$ac_link"
30261 case "(($ac_try" in
30262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30263 *) ac_try_echo=$ac_try;;
30265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30266 (eval "$ac_link") 2>conftest.er1
30268 grep -v '^ *+' conftest.er1 >conftest.err
30270 cat conftest.err >&5
30271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30272 (exit $ac_status); } && {
30273 test -z "$ac_c_werror_flag" ||
30274 test ! -s conftest.err
30275 } && test -s conftest$ac_exeext &&
30276 $as_test_x conftest$ac_exeext; then
30277 ac_cv_lib_socket_connect=yes
30279 echo "$as_me: failed program was:" >&5
30280 sed 's/^/| /' conftest.$ac_ext >&5
30282 ac_cv_lib_socket_connect=no
30285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30286 conftest$ac_exeext conftest.$ac_ext
30287 LIBS=$ac_check_lib_save_LIBS
30289 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30290 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30291 if test $ac_cv_lib_socket_connect = yes; then
30292 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30297 # Guillermo Gomez says -lposix is necessary on A/UX.
30298 { echo "$as_me:$LINENO: checking for remove" >&5
30299 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30300 if test "${ac_cv_func_remove+set}" = set; then
30301 echo $ECHO_N "(cached) $ECHO_C" >&6
30303 cat >conftest.$ac_ext <<_ACEOF
30306 cat confdefs.h >>conftest.$ac_ext
30307 cat >>conftest.$ac_ext <<_ACEOF
30308 /* end confdefs.h. */
30309 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30311 #define remove innocuous_remove
30313 /* System header to define __stub macros and hopefully few prototypes,
30314 which can conflict with char remove (); below.
30315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30316 <limits.h> exists even on freestanding compilers. */
30319 # include <limits.h>
30321 # include <assert.h>
30326 /* Override any GCC internal prototype to avoid an error.
30327 Use char because int might match the return type of a GCC
30328 builtin and then its argument prototype would still apply. */
30333 /* The GNU C library defines this for functions which it implements
30334 to always fail with ENOSYS. Some functions are actually named
30335 something starting with __ and the normal name is an alias. */
30336 #if defined __stub_remove || defined __stub___remove
30348 rm -f conftest.$ac_objext conftest$ac_exeext
30349 if { (ac_try="$ac_link"
30350 case "(($ac_try" in
30351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30352 *) ac_try_echo=$ac_try;;
30354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30355 (eval "$ac_link") 2>conftest.er1
30357 grep -v '^ *+' conftest.er1 >conftest.err
30359 cat conftest.err >&5
30360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361 (exit $ac_status); } && {
30362 test -z "$ac_c_werror_flag" ||
30363 test ! -s conftest.err
30364 } && test -s conftest$ac_exeext &&
30365 $as_test_x conftest$ac_exeext; then
30366 ac_cv_func_remove=yes
30368 echo "$as_me: failed program was:" >&5
30369 sed 's/^/| /' conftest.$ac_ext >&5
30371 ac_cv_func_remove=no
30374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30375 conftest$ac_exeext conftest.$ac_ext
30377 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30378 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30380 if test $ac_cv_func_remove = no; then
30381 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30382 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30383 if test "${ac_cv_lib_posix_remove+set}" = set; then
30384 echo $ECHO_N "(cached) $ECHO_C" >&6
30386 ac_check_lib_save_LIBS=$LIBS
30387 LIBS="-lposix $LIBS"
30388 cat >conftest.$ac_ext <<_ACEOF
30391 cat confdefs.h >>conftest.$ac_ext
30392 cat >>conftest.$ac_ext <<_ACEOF
30393 /* end confdefs.h. */
30395 /* Override any GCC internal prototype to avoid an error.
30396 Use char because int might match the return type of a GCC
30397 builtin and then its argument prototype would still apply. */
30410 rm -f conftest.$ac_objext conftest$ac_exeext
30411 if { (ac_try="$ac_link"
30412 case "(($ac_try" in
30413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30414 *) ac_try_echo=$ac_try;;
30416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30417 (eval "$ac_link") 2>conftest.er1
30419 grep -v '^ *+' conftest.er1 >conftest.err
30421 cat conftest.err >&5
30422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30423 (exit $ac_status); } && {
30424 test -z "$ac_c_werror_flag" ||
30425 test ! -s conftest.err
30426 } && test -s conftest$ac_exeext &&
30427 $as_test_x conftest$ac_exeext; then
30428 ac_cv_lib_posix_remove=yes
30430 echo "$as_me: failed program was:" >&5
30431 sed 's/^/| /' conftest.$ac_ext >&5
30433 ac_cv_lib_posix_remove=no
30436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30437 conftest$ac_exeext conftest.$ac_ext
30438 LIBS=$ac_check_lib_save_LIBS
30440 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30441 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30442 if test $ac_cv_lib_posix_remove = yes; then
30443 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30448 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30449 { echo "$as_me:$LINENO: checking for shmat" >&5
30450 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30451 if test "${ac_cv_func_shmat+set}" = set; then
30452 echo $ECHO_N "(cached) $ECHO_C" >&6
30454 cat >conftest.$ac_ext <<_ACEOF
30457 cat confdefs.h >>conftest.$ac_ext
30458 cat >>conftest.$ac_ext <<_ACEOF
30459 /* end confdefs.h. */
30460 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30462 #define shmat innocuous_shmat
30464 /* System header to define __stub macros and hopefully few prototypes,
30465 which can conflict with char shmat (); below.
30466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30467 <limits.h> exists even on freestanding compilers. */
30470 # include <limits.h>
30472 # include <assert.h>
30477 /* Override any GCC internal prototype to avoid an error.
30478 Use char because int might match the return type of a GCC
30479 builtin and then its argument prototype would still apply. */
30484 /* The GNU C library defines this for functions which it implements
30485 to always fail with ENOSYS. Some functions are actually named
30486 something starting with __ and the normal name is an alias. */
30487 #if defined __stub_shmat || defined __stub___shmat
30499 rm -f conftest.$ac_objext conftest$ac_exeext
30500 if { (ac_try="$ac_link"
30501 case "(($ac_try" in
30502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30503 *) ac_try_echo=$ac_try;;
30505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30506 (eval "$ac_link") 2>conftest.er1
30508 grep -v '^ *+' conftest.er1 >conftest.err
30510 cat conftest.err >&5
30511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30512 (exit $ac_status); } && {
30513 test -z "$ac_c_werror_flag" ||
30514 test ! -s conftest.err
30515 } && test -s conftest$ac_exeext &&
30516 $as_test_x conftest$ac_exeext; then
30517 ac_cv_func_shmat=yes
30519 echo "$as_me: failed program was:" >&5
30520 sed 's/^/| /' conftest.$ac_ext >&5
30522 ac_cv_func_shmat=no
30525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30526 conftest$ac_exeext conftest.$ac_ext
30528 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30529 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30531 if test $ac_cv_func_shmat = no; then
30532 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30533 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30534 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30535 echo $ECHO_N "(cached) $ECHO_C" >&6
30537 ac_check_lib_save_LIBS=$LIBS
30539 cat >conftest.$ac_ext <<_ACEOF
30542 cat confdefs.h >>conftest.$ac_ext
30543 cat >>conftest.$ac_ext <<_ACEOF
30544 /* end confdefs.h. */
30546 /* Override any GCC internal prototype to avoid an error.
30547 Use char because int might match the return type of a GCC
30548 builtin and then its argument prototype would still apply. */
30561 rm -f conftest.$ac_objext conftest$ac_exeext
30562 if { (ac_try="$ac_link"
30563 case "(($ac_try" in
30564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30565 *) ac_try_echo=$ac_try;;
30567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30568 (eval "$ac_link") 2>conftest.er1
30570 grep -v '^ *+' conftest.er1 >conftest.err
30572 cat conftest.err >&5
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); } && {
30575 test -z "$ac_c_werror_flag" ||
30576 test ! -s conftest.err
30577 } && test -s conftest$ac_exeext &&
30578 $as_test_x conftest$ac_exeext; then
30579 ac_cv_lib_ipc_shmat=yes
30581 echo "$as_me: failed program was:" >&5
30582 sed 's/^/| /' conftest.$ac_ext >&5
30584 ac_cv_lib_ipc_shmat=no
30587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30588 conftest$ac_exeext conftest.$ac_ext
30589 LIBS=$ac_check_lib_save_LIBS
30591 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30592 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30593 if test $ac_cv_lib_ipc_shmat = yes; then
30594 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30600 # Check for libraries that X11R6 Xt/Xaw programs need.
30601 ac_save_LDFLAGS=$LDFLAGS
30602 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30603 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30604 # check for ICE first), but we must link in the order -lSM -lICE or
30605 # we get undefined symbols. So assume we have SM if we have ICE.
30606 # These have to be linked with before -lX11, unlike the other
30607 # libraries we check for below, so use a different variable.
30608 # John Interrante, Karl Berry
30609 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30610 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30611 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30612 echo $ECHO_N "(cached) $ECHO_C" >&6
30614 ac_check_lib_save_LIBS=$LIBS
30615 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30616 cat >conftest.$ac_ext <<_ACEOF
30619 cat confdefs.h >>conftest.$ac_ext
30620 cat >>conftest.$ac_ext <<_ACEOF
30621 /* end confdefs.h. */
30623 /* Override any GCC internal prototype to avoid an error.
30624 Use char because int might match the return type of a GCC
30625 builtin and then its argument prototype would still apply. */
30629 char IceConnectionNumber ();
30633 return IceConnectionNumber ();
30638 rm -f conftest.$ac_objext conftest$ac_exeext
30639 if { (ac_try="$ac_link"
30640 case "(($ac_try" in
30641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642 *) ac_try_echo=$ac_try;;
30644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30645 (eval "$ac_link") 2>conftest.er1
30647 grep -v '^ *+' conftest.er1 >conftest.err
30649 cat conftest.err >&5
30650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30651 (exit $ac_status); } && {
30652 test -z "$ac_c_werror_flag" ||
30653 test ! -s conftest.err
30654 } && test -s conftest$ac_exeext &&
30655 $as_test_x conftest$ac_exeext; then
30656 ac_cv_lib_ICE_IceConnectionNumber=yes
30658 echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30661 ac_cv_lib_ICE_IceConnectionNumber=no
30664 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30665 conftest$ac_exeext conftest.$ac_ext
30666 LIBS=$ac_check_lib_save_LIBS
30668 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30669 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30670 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30671 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30674 LDFLAGS=$ac_save_LDFLAGS
30740 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30745 echo $ECHO_N "(cached) $ECHO_C" >&6
30747 ac_res=`eval echo '${'$as_ac_Header'}'`
30748 { echo "$as_me:$LINENO: result: $ac_res" >&5
30749 echo "${ECHO_T}$ac_res" >&6; }
30751 # Is the header compilable?
30752 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30753 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30754 cat >conftest.$ac_ext <<_ACEOF
30757 cat confdefs.h >>conftest.$ac_ext
30758 cat >>conftest.$ac_ext <<_ACEOF
30759 /* end confdefs.h. */
30760 $ac_includes_default
30761 #include <$ac_header>
30763 rm -f conftest.$ac_objext
30764 if { (ac_try="$ac_compile"
30765 case "(($ac_try" in
30766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30767 *) ac_try_echo=$ac_try;;
30769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30770 (eval "$ac_compile") 2>conftest.er1
30772 grep -v '^ *+' conftest.er1 >conftest.err
30774 cat conftest.err >&5
30775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30776 (exit $ac_status); } && {
30777 test -z "$ac_c_werror_flag" ||
30778 test ! -s conftest.err
30779 } && test -s conftest.$ac_objext; then
30780 ac_header_compiler=yes
30782 echo "$as_me: failed program was:" >&5
30783 sed 's/^/| /' conftest.$ac_ext >&5
30785 ac_header_compiler=no
30788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30789 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30790 echo "${ECHO_T}$ac_header_compiler" >&6; }
30792 # Is the header present?
30793 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30795 cat >conftest.$ac_ext <<_ACEOF
30798 cat confdefs.h >>conftest.$ac_ext
30799 cat >>conftest.$ac_ext <<_ACEOF
30800 /* end confdefs.h. */
30801 #include <$ac_header>
30803 if { (ac_try="$ac_cpp conftest.$ac_ext"
30804 case "(($ac_try" in
30805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30806 *) ac_try_echo=$ac_try;;
30808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30811 grep -v '^ *+' conftest.er1 >conftest.err
30813 cat conftest.err >&5
30814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30815 (exit $ac_status); } >/dev/null && {
30816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30817 test ! -s conftest.err
30819 ac_header_preproc=yes
30821 echo "$as_me: failed program was:" >&5
30822 sed 's/^/| /' conftest.$ac_ext >&5
30824 ac_header_preproc=no
30827 rm -f conftest.err conftest.$ac_ext
30828 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30829 echo "${ECHO_T}$ac_header_preproc" >&6; }
30831 # So? What about this header?
30832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30834 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30835 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30838 ac_header_preproc=yes
30841 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30842 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30843 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30844 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30845 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30846 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30847 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30848 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30849 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30851 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30852 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30859 echo $ECHO_N "(cached) $ECHO_C" >&6
30861 eval "$as_ac_Header=\$ac_header_preproc"
30863 ac_res=`eval echo '${'$as_ac_Header'}'`
30864 { echo "$as_me:$LINENO: result: $ac_res" >&5
30865 echo "${ECHO_T}$ac_res" >&6; }
30868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30869 cat >>confdefs.h <<_ACEOF
30870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30877 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
30878 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
30879 if test "${ac_cv_header_stdc+set}" = set; then
30880 echo $ECHO_N "(cached) $ECHO_C" >&6
30882 cat >conftest.$ac_ext <<_ACEOF
30885 cat confdefs.h >>conftest.$ac_ext
30886 cat >>conftest.$ac_ext <<_ACEOF
30887 /* end confdefs.h. */
30888 #include <stdlib.h>
30889 #include <stdarg.h>
30890 #include <string.h>
30901 rm -f conftest.$ac_objext
30902 if { (ac_try="$ac_compile"
30903 case "(($ac_try" in
30904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30905 *) ac_try_echo=$ac_try;;
30907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30908 (eval "$ac_compile") 2>conftest.er1
30910 grep -v '^ *+' conftest.er1 >conftest.err
30912 cat conftest.err >&5
30913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914 (exit $ac_status); } && {
30915 test -z "$ac_c_werror_flag" ||
30916 test ! -s conftest.err
30917 } && test -s conftest.$ac_objext; then
30918 ac_cv_header_stdc=yes
30920 echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30923 ac_cv_header_stdc=no
30926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30928 if test $ac_cv_header_stdc = yes; then
30929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30930 cat >conftest.$ac_ext <<_ACEOF
30933 cat confdefs.h >>conftest.$ac_ext
30934 cat >>conftest.$ac_ext <<_ACEOF
30935 /* end confdefs.h. */
30936 #include <string.h>
30939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30940 $EGREP "memchr" >/dev/null 2>&1; then
30943 ac_cv_header_stdc=no
30949 if test $ac_cv_header_stdc = yes; then
30950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30951 cat >conftest.$ac_ext <<_ACEOF
30954 cat confdefs.h >>conftest.$ac_ext
30955 cat >>conftest.$ac_ext <<_ACEOF
30956 /* end confdefs.h. */
30957 #include <stdlib.h>
30960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30961 $EGREP "free" >/dev/null 2>&1; then
30964 ac_cv_header_stdc=no
30970 if test $ac_cv_header_stdc = yes; then
30971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30972 if test "$cross_compiling" = yes; then
30975 cat >conftest.$ac_ext <<_ACEOF
30978 cat confdefs.h >>conftest.$ac_ext
30979 cat >>conftest.$ac_ext <<_ACEOF
30980 /* end confdefs.h. */
30982 #include <stdlib.h>
30983 #if ((' ' & 0x0FF) == 0x020)
30984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30987 # define ISLOWER(c) \
30988 (('a' <= (c) && (c) <= 'i') \
30989 || ('j' <= (c) && (c) <= 'r') \
30990 || ('s' <= (c) && (c) <= 'z'))
30991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30999 for (i = 0; i < 256; i++)
31000 if (XOR (islower (i), ISLOWER (i))
31001 || toupper (i) != TOUPPER (i))
31006 rm -f conftest$ac_exeext
31007 if { (ac_try="$ac_link"
31008 case "(($ac_try" in
31009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31010 *) ac_try_echo=$ac_try;;
31012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31013 (eval "$ac_link") 2>&5
31015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31017 { (case "(($ac_try" in
31018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31019 *) ac_try_echo=$ac_try;;
31021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31022 (eval "$ac_try") 2>&5
31024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31025 (exit $ac_status); }; }; then
31028 echo "$as_me: program exited with status $ac_status" >&5
31029 echo "$as_me: failed program was:" >&5
31030 sed 's/^/| /' conftest.$ac_ext >&5
31032 ( exit $ac_status )
31033 ac_cv_header_stdc=no
31035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31041 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31042 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31043 if test $ac_cv_header_stdc = yes; then
31045 cat >>confdefs.h <<\_ACEOF
31046 #define STDC_HEADERS 1
31051 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31052 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31053 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31054 echo $ECHO_N "(cached) $ECHO_C" >&6
31056 cat >conftest.$ac_ext <<_ACEOF
31059 cat confdefs.h >>conftest.$ac_ext
31060 cat >>conftest.$ac_ext <<_ACEOF
31061 /* end confdefs.h. */
31062 #include <sys/types.h>
31066 return makedev(0, 0);
31071 rm -f conftest.$ac_objext conftest$ac_exeext
31072 if { (ac_try="$ac_link"
31073 case "(($ac_try" in
31074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31075 *) ac_try_echo=$ac_try;;
31077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31078 (eval "$ac_link") 2>conftest.er1
31080 grep -v '^ *+' conftest.er1 >conftest.err
31082 cat conftest.err >&5
31083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31084 (exit $ac_status); } && {
31085 test -z "$ac_c_werror_flag" ||
31086 test ! -s conftest.err
31087 } && test -s conftest$ac_exeext &&
31088 $as_test_x conftest$ac_exeext; then
31089 ac_cv_header_sys_types_h_makedev=yes
31091 echo "$as_me: failed program was:" >&5
31092 sed 's/^/| /' conftest.$ac_ext >&5
31094 ac_cv_header_sys_types_h_makedev=no
31097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31098 conftest$ac_exeext conftest.$ac_ext
31101 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31102 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31104 if test $ac_cv_header_sys_types_h_makedev = no; then
31105 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31106 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31107 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31108 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31109 echo $ECHO_N "(cached) $ECHO_C" >&6
31111 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31112 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31114 # Is the header compilable?
31115 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31116 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31117 cat >conftest.$ac_ext <<_ACEOF
31120 cat confdefs.h >>conftest.$ac_ext
31121 cat >>conftest.$ac_ext <<_ACEOF
31122 /* end confdefs.h. */
31123 $ac_includes_default
31124 #include <sys/mkdev.h>
31126 rm -f conftest.$ac_objext
31127 if { (ac_try="$ac_compile"
31128 case "(($ac_try" in
31129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130 *) ac_try_echo=$ac_try;;
31132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133 (eval "$ac_compile") 2>conftest.er1
31135 grep -v '^ *+' conftest.er1 >conftest.err
31137 cat conftest.err >&5
31138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139 (exit $ac_status); } && {
31140 test -z "$ac_c_werror_flag" ||
31141 test ! -s conftest.err
31142 } && test -s conftest.$ac_objext; then
31143 ac_header_compiler=yes
31145 echo "$as_me: failed program was:" >&5
31146 sed 's/^/| /' conftest.$ac_ext >&5
31148 ac_header_compiler=no
31151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31153 echo "${ECHO_T}$ac_header_compiler" >&6; }
31155 # Is the header present?
31156 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31157 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31158 cat >conftest.$ac_ext <<_ACEOF
31161 cat confdefs.h >>conftest.$ac_ext
31162 cat >>conftest.$ac_ext <<_ACEOF
31163 /* end confdefs.h. */
31164 #include <sys/mkdev.h>
31166 if { (ac_try="$ac_cpp conftest.$ac_ext"
31167 case "(($ac_try" in
31168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31169 *) ac_try_echo=$ac_try;;
31171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31174 grep -v '^ *+' conftest.er1 >conftest.err
31176 cat conftest.err >&5
31177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31178 (exit $ac_status); } >/dev/null && {
31179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31180 test ! -s conftest.err
31182 ac_header_preproc=yes
31184 echo "$as_me: failed program was:" >&5
31185 sed 's/^/| /' conftest.$ac_ext >&5
31187 ac_header_preproc=no
31190 rm -f conftest.err conftest.$ac_ext
31191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31192 echo "${ECHO_T}$ac_header_preproc" >&6; }
31194 # So? What about this header?
31195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31197 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31198 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31199 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31200 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31201 ac_header_preproc=yes
31204 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31205 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31206 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31207 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31208 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31209 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31210 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31211 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31212 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31213 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31214 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31215 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31219 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31220 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31221 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31222 echo $ECHO_N "(cached) $ECHO_C" >&6
31224 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31226 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31227 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31230 if test $ac_cv_header_sys_mkdev_h = yes; then
31232 cat >>confdefs.h <<\_ACEOF
31233 #define MAJOR_IN_MKDEV 1
31240 if test $ac_cv_header_sys_mkdev_h = no; then
31241 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31242 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31243 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31244 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31245 echo $ECHO_N "(cached) $ECHO_C" >&6
31247 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31248 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31250 # Is the header compilable?
31251 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31252 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31253 cat >conftest.$ac_ext <<_ACEOF
31256 cat confdefs.h >>conftest.$ac_ext
31257 cat >>conftest.$ac_ext <<_ACEOF
31258 /* end confdefs.h. */
31259 $ac_includes_default
31260 #include <sys/sysmacros.h>
31262 rm -f conftest.$ac_objext
31263 if { (ac_try="$ac_compile"
31264 case "(($ac_try" in
31265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31266 *) ac_try_echo=$ac_try;;
31268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31269 (eval "$ac_compile") 2>conftest.er1
31271 grep -v '^ *+' conftest.er1 >conftest.err
31273 cat conftest.err >&5
31274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275 (exit $ac_status); } && {
31276 test -z "$ac_c_werror_flag" ||
31277 test ! -s conftest.err
31278 } && test -s conftest.$ac_objext; then
31279 ac_header_compiler=yes
31281 echo "$as_me: failed program was:" >&5
31282 sed 's/^/| /' conftest.$ac_ext >&5
31284 ac_header_compiler=no
31287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31289 echo "${ECHO_T}$ac_header_compiler" >&6; }
31291 # Is the header present?
31292 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31293 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31294 cat >conftest.$ac_ext <<_ACEOF
31297 cat confdefs.h >>conftest.$ac_ext
31298 cat >>conftest.$ac_ext <<_ACEOF
31299 /* end confdefs.h. */
31300 #include <sys/sysmacros.h>
31302 if { (ac_try="$ac_cpp conftest.$ac_ext"
31303 case "(($ac_try" in
31304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305 *) ac_try_echo=$ac_try;;
31307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31310 grep -v '^ *+' conftest.er1 >conftest.err
31312 cat conftest.err >&5
31313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314 (exit $ac_status); } >/dev/null && {
31315 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31316 test ! -s conftest.err
31318 ac_header_preproc=yes
31320 echo "$as_me: failed program was:" >&5
31321 sed 's/^/| /' conftest.$ac_ext >&5
31323 ac_header_preproc=no
31326 rm -f conftest.err conftest.$ac_ext
31327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31328 echo "${ECHO_T}$ac_header_preproc" >&6; }
31330 # So? What about this header?
31331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31333 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31334 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31335 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31336 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31337 ac_header_preproc=yes
31340 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31341 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31342 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31343 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31344 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31345 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31346 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31347 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31348 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31349 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31350 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31351 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31355 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31356 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31357 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31358 echo $ECHO_N "(cached) $ECHO_C" >&6
31360 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31362 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31363 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31366 if test $ac_cv_header_sys_sysmacros_h = yes; then
31368 cat >>confdefs.h <<\_ACEOF
31369 #define MAJOR_IN_SYSMACROS 1
31383 ac_header_dirent=no
31384 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31385 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31386 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31387 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31391 cat >conftest.$ac_ext <<_ACEOF
31394 cat confdefs.h >>conftest.$ac_ext
31395 cat >>conftest.$ac_ext <<_ACEOF
31396 /* end confdefs.h. */
31397 #include <sys/types.h>
31409 rm -f conftest.$ac_objext
31410 if { (ac_try="$ac_compile"
31411 case "(($ac_try" in
31412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31413 *) ac_try_echo=$ac_try;;
31415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31416 (eval "$ac_compile") 2>conftest.er1
31418 grep -v '^ *+' conftest.er1 >conftest.err
31420 cat conftest.err >&5
31421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31422 (exit $ac_status); } && {
31423 test -z "$ac_c_werror_flag" ||
31424 test ! -s conftest.err
31425 } && test -s conftest.$ac_objext; then
31426 eval "$as_ac_Header=yes"
31428 echo "$as_me: failed program was:" >&5
31429 sed 's/^/| /' conftest.$ac_ext >&5
31431 eval "$as_ac_Header=no"
31434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31436 ac_res=`eval echo '${'$as_ac_Header'}'`
31437 { echo "$as_me:$LINENO: result: $ac_res" >&5
31438 echo "${ECHO_T}$ac_res" >&6; }
31439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31440 cat >>confdefs.h <<_ACEOF
31441 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31444 ac_header_dirent=$ac_hdr; break
31448 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31449 if test $ac_header_dirent = dirent.h; then
31450 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31451 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31452 if test "${ac_cv_search_opendir+set}" = set; then
31453 echo $ECHO_N "(cached) $ECHO_C" >&6
31455 ac_func_search_save_LIBS=$LIBS
31456 cat >conftest.$ac_ext <<_ACEOF
31459 cat confdefs.h >>conftest.$ac_ext
31460 cat >>conftest.$ac_ext <<_ACEOF
31461 /* end confdefs.h. */
31463 /* Override any GCC internal prototype to avoid an error.
31464 Use char because int might match the return type of a GCC
31465 builtin and then its argument prototype would still apply. */
31478 for ac_lib in '' dir; do
31479 if test -z "$ac_lib"; then
31480 ac_res="none required"
31483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31485 rm -f conftest.$ac_objext conftest$ac_exeext
31486 if { (ac_try="$ac_link"
31487 case "(($ac_try" in
31488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31489 *) ac_try_echo=$ac_try;;
31491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31492 (eval "$ac_link") 2>conftest.er1
31494 grep -v '^ *+' conftest.er1 >conftest.err
31496 cat conftest.err >&5
31497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31498 (exit $ac_status); } && {
31499 test -z "$ac_c_werror_flag" ||
31500 test ! -s conftest.err
31501 } && test -s conftest$ac_exeext &&
31502 $as_test_x conftest$ac_exeext; then
31503 ac_cv_search_opendir=$ac_res
31505 echo "$as_me: failed program was:" >&5
31506 sed 's/^/| /' conftest.$ac_ext >&5
31511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31513 if test "${ac_cv_search_opendir+set}" = set; then
31517 if test "${ac_cv_search_opendir+set}" = set; then
31520 ac_cv_search_opendir=no
31522 rm conftest.$ac_ext
31523 LIBS=$ac_func_search_save_LIBS
31525 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31526 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31527 ac_res=$ac_cv_search_opendir
31528 if test "$ac_res" != no; then
31529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31534 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31535 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31536 if test "${ac_cv_search_opendir+set}" = set; then
31537 echo $ECHO_N "(cached) $ECHO_C" >&6
31539 ac_func_search_save_LIBS=$LIBS
31540 cat >conftest.$ac_ext <<_ACEOF
31543 cat confdefs.h >>conftest.$ac_ext
31544 cat >>conftest.$ac_ext <<_ACEOF
31545 /* end confdefs.h. */
31547 /* Override any GCC internal prototype to avoid an error.
31548 Use char because int might match the return type of a GCC
31549 builtin and then its argument prototype would still apply. */
31562 for ac_lib in '' x; do
31563 if test -z "$ac_lib"; then
31564 ac_res="none required"
31567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31569 rm -f conftest.$ac_objext conftest$ac_exeext
31570 if { (ac_try="$ac_link"
31571 case "(($ac_try" in
31572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31573 *) ac_try_echo=$ac_try;;
31575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31576 (eval "$ac_link") 2>conftest.er1
31578 grep -v '^ *+' conftest.er1 >conftest.err
31580 cat conftest.err >&5
31581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31582 (exit $ac_status); } && {
31583 test -z "$ac_c_werror_flag" ||
31584 test ! -s conftest.err
31585 } && test -s conftest$ac_exeext &&
31586 $as_test_x conftest$ac_exeext; then
31587 ac_cv_search_opendir=$ac_res
31589 echo "$as_me: failed program was:" >&5
31590 sed 's/^/| /' conftest.$ac_ext >&5
31595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31597 if test "${ac_cv_search_opendir+set}" = set; then
31601 if test "${ac_cv_search_opendir+set}" = set; then
31604 ac_cv_search_opendir=no
31606 rm conftest.$ac_ext
31607 LIBS=$ac_func_search_save_LIBS
31609 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31610 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31611 ac_res=$ac_cv_search_opendir
31612 if test "$ac_res" != no; then
31613 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31619 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31620 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31621 if test "${ac_cv_header_stat_broken+set}" = set; then
31622 echo $ECHO_N "(cached) $ECHO_C" >&6
31624 cat >conftest.$ac_ext <<_ACEOF
31627 cat confdefs.h >>conftest.$ac_ext
31628 cat >>conftest.$ac_ext <<_ACEOF
31629 /* end confdefs.h. */
31630 #include <sys/types.h>
31631 #include <sys/stat.h>
31633 #if defined S_ISBLK && defined S_IFDIR
31634 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31637 #if defined S_ISBLK && defined S_IFCHR
31638 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31641 #if defined S_ISLNK && defined S_IFREG
31642 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31645 #if defined S_ISSOCK && defined S_IFREG
31646 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31650 rm -f conftest.$ac_objext
31651 if { (ac_try="$ac_compile"
31652 case "(($ac_try" in
31653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31654 *) ac_try_echo=$ac_try;;
31656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31657 (eval "$ac_compile") 2>conftest.er1
31659 grep -v '^ *+' conftest.er1 >conftest.err
31661 cat conftest.err >&5
31662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31663 (exit $ac_status); } && {
31664 test -z "$ac_c_werror_flag" ||
31665 test ! -s conftest.err
31666 } && test -s conftest.$ac_objext; then
31667 ac_cv_header_stat_broken=no
31669 echo "$as_me: failed program was:" >&5
31670 sed 's/^/| /' conftest.$ac_ext >&5
31672 ac_cv_header_stat_broken=yes
31675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31677 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31678 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31679 if test $ac_cv_header_stat_broken = yes; then
31681 cat >>confdefs.h <<\_ACEOF
31682 #define STAT_MACROS_BROKEN 1
31687 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31688 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31689 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31690 echo $ECHO_N "(cached) $ECHO_C" >&6
31692 cat >conftest.$ac_ext <<_ACEOF
31695 cat confdefs.h >>conftest.$ac_ext
31696 cat >>conftest.$ac_ext <<_ACEOF
31697 /* end confdefs.h. */
31698 #include <sys/types.h>
31699 #include <sys/wait.h>
31700 #ifndef WEXITSTATUS
31701 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31704 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31712 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31717 rm -f conftest.$ac_objext
31718 if { (ac_try="$ac_compile"
31719 case "(($ac_try" in
31720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31721 *) ac_try_echo=$ac_try;;
31723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31724 (eval "$ac_compile") 2>conftest.er1
31726 grep -v '^ *+' conftest.er1 >conftest.err
31728 cat conftest.err >&5
31729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31730 (exit $ac_status); } && {
31731 test -z "$ac_c_werror_flag" ||
31732 test ! -s conftest.err
31733 } && test -s conftest.$ac_objext; then
31734 ac_cv_header_sys_wait_h=yes
31736 echo "$as_me: failed program was:" >&5
31737 sed 's/^/| /' conftest.$ac_ext >&5
31739 ac_cv_header_sys_wait_h=no
31742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31744 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
31745 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
31746 if test $ac_cv_header_sys_wait_h = yes; then
31748 cat >>confdefs.h <<\_ACEOF
31749 #define HAVE_SYS_WAIT_H 1
31754 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
31755 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
31756 if test "${ac_cv_header_time+set}" = set; then
31757 echo $ECHO_N "(cached) $ECHO_C" >&6
31759 cat >conftest.$ac_ext <<_ACEOF
31762 cat confdefs.h >>conftest.$ac_ext
31763 cat >>conftest.$ac_ext <<_ACEOF
31764 /* end confdefs.h. */
31765 #include <sys/types.h>
31766 #include <sys/time.h>
31772 if ((struct tm *) 0)
31778 rm -f conftest.$ac_objext
31779 if { (ac_try="$ac_compile"
31780 case "(($ac_try" in
31781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31782 *) ac_try_echo=$ac_try;;
31784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31785 (eval "$ac_compile") 2>conftest.er1
31787 grep -v '^ *+' conftest.er1 >conftest.err
31789 cat conftest.err >&5
31790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31791 (exit $ac_status); } && {
31792 test -z "$ac_c_werror_flag" ||
31793 test ! -s conftest.err
31794 } && test -s conftest.$ac_objext; then
31795 ac_cv_header_time=yes
31797 echo "$as_me: failed program was:" >&5
31798 sed 's/^/| /' conftest.$ac_ext >&5
31800 ac_cv_header_time=no
31803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31805 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
31806 echo "${ECHO_T}$ac_cv_header_time" >&6; }
31807 if test $ac_cv_header_time = yes; then
31809 cat >>confdefs.h <<\_ACEOF
31810 #define TIME_WITH_SYS_TIME 1
31815 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
31816 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
31817 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
31818 echo $ECHO_N "(cached) $ECHO_C" >&6
31820 cat >conftest.$ac_ext <<_ACEOF
31823 cat confdefs.h >>conftest.$ac_ext
31824 cat >>conftest.$ac_ext <<_ACEOF
31825 /* end confdefs.h. */
31826 $ac_includes_default
31830 static struct stat ac_aggr;
31831 if (ac_aggr.st_blksize)
31837 rm -f conftest.$ac_objext
31838 if { (ac_try="$ac_compile"
31839 case "(($ac_try" in
31840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31841 *) ac_try_echo=$ac_try;;
31843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31844 (eval "$ac_compile") 2>conftest.er1
31846 grep -v '^ *+' conftest.er1 >conftest.err
31848 cat conftest.err >&5
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); } && {
31851 test -z "$ac_c_werror_flag" ||
31852 test ! -s conftest.err
31853 } && test -s conftest.$ac_objext; then
31854 ac_cv_member_struct_stat_st_blksize=yes
31856 echo "$as_me: failed program was:" >&5
31857 sed 's/^/| /' conftest.$ac_ext >&5
31859 cat >conftest.$ac_ext <<_ACEOF
31862 cat confdefs.h >>conftest.$ac_ext
31863 cat >>conftest.$ac_ext <<_ACEOF
31864 /* end confdefs.h. */
31865 $ac_includes_default
31869 static struct stat ac_aggr;
31870 if (sizeof ac_aggr.st_blksize)
31876 rm -f conftest.$ac_objext
31877 if { (ac_try="$ac_compile"
31878 case "(($ac_try" in
31879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31880 *) ac_try_echo=$ac_try;;
31882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31883 (eval "$ac_compile") 2>conftest.er1
31885 grep -v '^ *+' conftest.er1 >conftest.err
31887 cat conftest.err >&5
31888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31889 (exit $ac_status); } && {
31890 test -z "$ac_c_werror_flag" ||
31891 test ! -s conftest.err
31892 } && test -s conftest.$ac_objext; then
31893 ac_cv_member_struct_stat_st_blksize=yes
31895 echo "$as_me: failed program was:" >&5
31896 sed 's/^/| /' conftest.$ac_ext >&5
31898 ac_cv_member_struct_stat_st_blksize=no
31901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31906 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
31907 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
31908 if test $ac_cv_member_struct_stat_st_blksize = yes; then
31910 cat >>confdefs.h <<_ACEOF
31911 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
31915 cat >>confdefs.h <<\_ACEOF
31916 #define HAVE_ST_BLKSIZE 1
31922 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
31923 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
31924 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
31925 echo $ECHO_N "(cached) $ECHO_C" >&6
31927 cat >conftest.$ac_ext <<_ACEOF
31930 cat confdefs.h >>conftest.$ac_ext
31931 cat >>conftest.$ac_ext <<_ACEOF
31932 /* end confdefs.h. */
31933 $ac_includes_default
31937 static struct stat ac_aggr;
31938 if (ac_aggr.st_blocks)
31944 rm -f conftest.$ac_objext
31945 if { (ac_try="$ac_compile"
31946 case "(($ac_try" in
31947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31948 *) ac_try_echo=$ac_try;;
31950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31951 (eval "$ac_compile") 2>conftest.er1
31953 grep -v '^ *+' conftest.er1 >conftest.err
31955 cat conftest.err >&5
31956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31957 (exit $ac_status); } && {
31958 test -z "$ac_c_werror_flag" ||
31959 test ! -s conftest.err
31960 } && test -s conftest.$ac_objext; then
31961 ac_cv_member_struct_stat_st_blocks=yes
31963 echo "$as_me: failed program was:" >&5
31964 sed 's/^/| /' conftest.$ac_ext >&5
31966 cat >conftest.$ac_ext <<_ACEOF
31969 cat confdefs.h >>conftest.$ac_ext
31970 cat >>conftest.$ac_ext <<_ACEOF
31971 /* end confdefs.h. */
31972 $ac_includes_default
31976 static struct stat ac_aggr;
31977 if (sizeof ac_aggr.st_blocks)
31983 rm -f conftest.$ac_objext
31984 if { (ac_try="$ac_compile"
31985 case "(($ac_try" in
31986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31987 *) ac_try_echo=$ac_try;;
31989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31990 (eval "$ac_compile") 2>conftest.er1
31992 grep -v '^ *+' conftest.er1 >conftest.err
31994 cat conftest.err >&5
31995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31996 (exit $ac_status); } && {
31997 test -z "$ac_c_werror_flag" ||
31998 test ! -s conftest.err
31999 } && test -s conftest.$ac_objext; then
32000 ac_cv_member_struct_stat_st_blocks=yes
32002 echo "$as_me: failed program was:" >&5
32003 sed 's/^/| /' conftest.$ac_ext >&5
32005 ac_cv_member_struct_stat_st_blocks=no
32008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32013 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32014 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32015 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32017 cat >>confdefs.h <<_ACEOF
32018 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32022 cat >>confdefs.h <<\_ACEOF
32023 #define HAVE_ST_BLOCKS 1
32027 case " $LIBOBJS " in
32028 *" fileblocks.$ac_objext "* ) ;;
32029 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32036 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32037 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32038 if test "${ac_cv_struct_tm+set}" = set; then
32039 echo $ECHO_N "(cached) $ECHO_C" >&6
32041 cat >conftest.$ac_ext <<_ACEOF
32044 cat confdefs.h >>conftest.$ac_ext
32045 cat >>conftest.$ac_ext <<_ACEOF
32046 /* end confdefs.h. */
32047 #include <sys/types.h>
32054 int *p = &tm.tm_sec;
32060 rm -f conftest.$ac_objext
32061 if { (ac_try="$ac_compile"
32062 case "(($ac_try" in
32063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32064 *) ac_try_echo=$ac_try;;
32066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32067 (eval "$ac_compile") 2>conftest.er1
32069 grep -v '^ *+' conftest.er1 >conftest.err
32071 cat conftest.err >&5
32072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32073 (exit $ac_status); } && {
32074 test -z "$ac_c_werror_flag" ||
32075 test ! -s conftest.err
32076 } && test -s conftest.$ac_objext; then
32077 ac_cv_struct_tm=time.h
32079 echo "$as_me: failed program was:" >&5
32080 sed 's/^/| /' conftest.$ac_ext >&5
32082 ac_cv_struct_tm=sys/time.h
32085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32087 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32088 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32089 if test $ac_cv_struct_tm = sys/time.h; then
32091 cat >>confdefs.h <<\_ACEOF
32092 #define TM_IN_SYS_TIME 1
32097 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32098 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32099 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32100 echo $ECHO_N "(cached) $ECHO_C" >&6
32102 cat >conftest.$ac_ext <<_ACEOF
32105 cat confdefs.h >>conftest.$ac_ext
32106 cat >>conftest.$ac_ext <<_ACEOF
32107 /* end confdefs.h. */
32108 #include <sys/types.h>
32109 #include <$ac_cv_struct_tm>
32115 static struct tm ac_aggr;
32116 if (ac_aggr.tm_zone)
32122 rm -f conftest.$ac_objext
32123 if { (ac_try="$ac_compile"
32124 case "(($ac_try" in
32125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126 *) ac_try_echo=$ac_try;;
32128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32129 (eval "$ac_compile") 2>conftest.er1
32131 grep -v '^ *+' conftest.er1 >conftest.err
32133 cat conftest.err >&5
32134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32135 (exit $ac_status); } && {
32136 test -z "$ac_c_werror_flag" ||
32137 test ! -s conftest.err
32138 } && test -s conftest.$ac_objext; then
32139 ac_cv_member_struct_tm_tm_zone=yes
32141 echo "$as_me: failed program was:" >&5
32142 sed 's/^/| /' conftest.$ac_ext >&5
32144 cat >conftest.$ac_ext <<_ACEOF
32147 cat confdefs.h >>conftest.$ac_ext
32148 cat >>conftest.$ac_ext <<_ACEOF
32149 /* end confdefs.h. */
32150 #include <sys/types.h>
32151 #include <$ac_cv_struct_tm>
32157 static struct tm ac_aggr;
32158 if (sizeof ac_aggr.tm_zone)
32164 rm -f conftest.$ac_objext
32165 if { (ac_try="$ac_compile"
32166 case "(($ac_try" in
32167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32168 *) ac_try_echo=$ac_try;;
32170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32171 (eval "$ac_compile") 2>conftest.er1
32173 grep -v '^ *+' conftest.er1 >conftest.err
32175 cat conftest.err >&5
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); } && {
32178 test -z "$ac_c_werror_flag" ||
32179 test ! -s conftest.err
32180 } && test -s conftest.$ac_objext; then
32181 ac_cv_member_struct_tm_tm_zone=yes
32183 echo "$as_me: failed program was:" >&5
32184 sed 's/^/| /' conftest.$ac_ext >&5
32186 ac_cv_member_struct_tm_tm_zone=no
32189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32194 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32195 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32196 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32198 cat >>confdefs.h <<_ACEOF
32199 #define HAVE_STRUCT_TM_TM_ZONE 1
32205 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32207 cat >>confdefs.h <<\_ACEOF
32208 #define HAVE_TM_ZONE 1
32212 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32213 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32214 if test "${ac_cv_have_decl_tzname+set}" = set; then
32215 echo $ECHO_N "(cached) $ECHO_C" >&6
32217 cat >conftest.$ac_ext <<_ACEOF
32220 cat confdefs.h >>conftest.$ac_ext
32221 cat >>conftest.$ac_ext <<_ACEOF
32222 /* end confdefs.h. */
32236 rm -f conftest.$ac_objext
32237 if { (ac_try="$ac_compile"
32238 case "(($ac_try" in
32239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32240 *) ac_try_echo=$ac_try;;
32242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32243 (eval "$ac_compile") 2>conftest.er1
32245 grep -v '^ *+' conftest.er1 >conftest.err
32247 cat conftest.err >&5
32248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32249 (exit $ac_status); } && {
32250 test -z "$ac_c_werror_flag" ||
32251 test ! -s conftest.err
32252 } && test -s conftest.$ac_objext; then
32253 ac_cv_have_decl_tzname=yes
32255 echo "$as_me: failed program was:" >&5
32256 sed 's/^/| /' conftest.$ac_ext >&5
32258 ac_cv_have_decl_tzname=no
32261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32263 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32264 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32265 if test $ac_cv_have_decl_tzname = yes; then
32267 cat >>confdefs.h <<_ACEOF
32268 #define HAVE_DECL_TZNAME 1
32273 cat >>confdefs.h <<_ACEOF
32274 #define HAVE_DECL_TZNAME 0
32281 { echo "$as_me:$LINENO: checking for tzname" >&5
32282 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32283 if test "${ac_cv_var_tzname+set}" = set; then
32284 echo $ECHO_N "(cached) $ECHO_C" >&6
32286 cat >conftest.$ac_ext <<_ACEOF
32289 cat confdefs.h >>conftest.$ac_ext
32290 cat >>conftest.$ac_ext <<_ACEOF
32291 /* end confdefs.h. */
32293 #if !HAVE_DECL_TZNAME
32294 extern char *tzname[];
32300 return tzname[0][0];
32305 rm -f conftest.$ac_objext conftest$ac_exeext
32306 if { (ac_try="$ac_link"
32307 case "(($ac_try" in
32308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32309 *) ac_try_echo=$ac_try;;
32311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32312 (eval "$ac_link") 2>conftest.er1
32314 grep -v '^ *+' conftest.er1 >conftest.err
32316 cat conftest.err >&5
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); } && {
32319 test -z "$ac_c_werror_flag" ||
32320 test ! -s conftest.err
32321 } && test -s conftest$ac_exeext &&
32322 $as_test_x conftest$ac_exeext; then
32323 ac_cv_var_tzname=yes
32325 echo "$as_me: failed program was:" >&5
32326 sed 's/^/| /' conftest.$ac_ext >&5
32328 ac_cv_var_tzname=no
32331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32332 conftest$ac_exeext conftest.$ac_ext
32334 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32335 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32336 if test $ac_cv_var_tzname = yes; then
32338 cat >>confdefs.h <<\_ACEOF
32339 #define HAVE_TZNAME 1
32346 { echo "$as_me:$LINENO: checking for utime.h" >&5
32347 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32348 if test "${ba_cv_header_utime_h+set}" = set; then
32349 echo $ECHO_N "(cached) $ECHO_C" >&6
32352 cat >conftest.$ac_ext <<_ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h. */
32359 #include <sys/types.h>
32372 rm -f conftest.$ac_objext
32373 if { (ac_try="$ac_compile"
32374 case "(($ac_try" in
32375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32376 *) ac_try_echo=$ac_try;;
32378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32379 (eval "$ac_compile") 2>conftest.er1
32381 grep -v '^ *+' conftest.er1 >conftest.err
32383 cat conftest.err >&5
32384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32385 (exit $ac_status); } && {
32386 test -z "$ac_c_werror_flag" ||
32387 test ! -s conftest.err
32388 } && test -s conftest.$ac_objext; then
32390 ba_cv_header_utime_h=yes
32393 echo "$as_me: failed program was:" >&5
32394 sed 's/^/| /' conftest.$ac_ext >&5
32397 ba_cv_header_utime_h=no
32402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32406 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32407 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32408 test $ba_cv_header_utime_h = yes &&
32409 cat >>confdefs.h <<\_ACEOF
32410 #define HAVE_UTIME_H 1
32414 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32415 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32416 if test "${ba_cv_header_socklen_t+set}" = set; then
32417 echo $ECHO_N "(cached) $ECHO_C" >&6
32420 cat >conftest.$ac_ext <<_ACEOF
32423 cat confdefs.h >>conftest.$ac_ext
32424 cat >>conftest.$ac_ext <<_ACEOF
32425 /* end confdefs.h. */
32427 #include <sys/types.h>
32428 #include <sys/socket.h>
32440 rm -f conftest.$ac_objext
32441 if { (ac_try="$ac_compile"
32442 case "(($ac_try" in
32443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32444 *) ac_try_echo=$ac_try;;
32446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32447 (eval "$ac_compile") 2>conftest.er1
32449 grep -v '^ *+' conftest.er1 >conftest.err
32451 cat conftest.err >&5
32452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32453 (exit $ac_status); } && {
32454 test -z "$ac_c_werror_flag" ||
32455 test ! -s conftest.err
32456 } && test -s conftest.$ac_objext; then
32458 ba_cv_header_socklen_t=yes
32461 echo "$as_me: failed program was:" >&5
32462 sed 's/^/| /' conftest.$ac_ext >&5
32465 ba_cv_header_socklen_t=no
32470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32474 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32475 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32476 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
32477 #define HAVE_SOCKLEN_T 1
32482 ac_cpp='$CXXCPP $CPPFLAGS'
32483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32487 { echo "$as_me:$LINENO: checking for typeof" >&5
32488 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32489 if test "${ba_cv_have_typeof+set}" = set; then
32490 echo $ECHO_N "(cached) $ECHO_C" >&6
32493 if test "$cross_compiling" = yes; then
32495 ba_cv_have_typeof=no
32499 cat >conftest.$ac_ext <<_ACEOF
32502 cat confdefs.h >>conftest.$ac_ext
32503 cat >>conftest.$ac_ext <<_ACEOF
32504 /* end confdefs.h. */
32506 main(){char *a = 0; a = (typeof a)a;}
32509 rm -f conftest$ac_exeext
32510 if { (ac_try="$ac_link"
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_link") 2>&5
32518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32520 { (case "(($ac_try" in
32521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32522 *) ac_try_echo=$ac_try;;
32524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32525 (eval "$ac_try") 2>&5
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); }; }; then
32530 ba_cv_have_typeof=yes
32533 echo "$as_me: program exited with status $ac_status" >&5
32534 echo "$as_me: failed program was:" >&5
32535 sed 's/^/| /' conftest.$ac_ext >&5
32537 ( exit $ac_status )
32539 ba_cv_have_typeof=no
32542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32549 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32550 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32551 test $ba_cv_have_typeof = yes &&
32552 cat >>confdefs.h <<\_ACEOF
32553 #define HAVE_TYPEOF 1
32557 ac_cpp='$CPP $CPPFLAGS'
32558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32563 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32564 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32565 if test "${ac_cv_c_const+set}" = set; then
32566 echo $ECHO_N "(cached) $ECHO_C" >&6
32568 cat >conftest.$ac_ext <<_ACEOF
32571 cat confdefs.h >>conftest.$ac_ext
32572 cat >>conftest.$ac_ext <<_ACEOF
32573 /* end confdefs.h. */
32578 /* FIXME: Include the comments suggested by Paul. */
32579 #ifndef __cplusplus
32580 /* Ultrix mips cc rejects this. */
32581 typedef int charset[2];
32583 /* SunOS 4.1.1 cc rejects this. */
32584 char const *const *pcpcc;
32586 /* NEC SVR4.0.2 mips cc rejects this. */
32587 struct point {int x, y;};
32588 static struct point const zero = {0,0};
32589 /* AIX XL C 1.02.0.0 rejects this.
32590 It does not let you subtract one const X* pointer from another in
32591 an arm of an if-expression whose if-part is not a constant
32593 const char *g = "string";
32594 pcpcc = &g + (g ? g-g : 0);
32595 /* HPUX 7.0 cc rejects these. */
32597 ppc = (char**) pcpcc;
32598 pcpcc = (char const *const *) ppc;
32599 { /* SCO 3.2v4 cc rejects this. */
32601 char const *s = 0 ? (char *) 0 : (char const *) 0;
32606 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32607 int x[] = {25, 17};
32608 const int *foo = &x[0];
32611 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32612 typedef const int *iptr;
32616 { /* AIX XL C 1.02.0.0 rejects this saying
32617 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32618 struct s { int j; const int *ap[3]; };
32619 struct s *b; b->j = 5;
32621 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32622 const int foo = 10;
32623 if (!foo) return 0;
32625 return !cs[0] && !zero.x;
32632 rm -f conftest.$ac_objext
32633 if { (ac_try="$ac_compile"
32634 case "(($ac_try" in
32635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32636 *) ac_try_echo=$ac_try;;
32638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32639 (eval "$ac_compile") 2>conftest.er1
32641 grep -v '^ *+' conftest.er1 >conftest.err
32643 cat conftest.err >&5
32644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32645 (exit $ac_status); } && {
32646 test -z "$ac_c_werror_flag" ||
32647 test ! -s conftest.err
32648 } && test -s conftest.$ac_objext; then
32651 echo "$as_me: failed program was:" >&5
32652 sed 's/^/| /' conftest.$ac_ext >&5
32657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32659 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32660 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32661 if test $ac_cv_c_const = no; then
32663 cat >>confdefs.h <<\_ACEOF
32670 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
32671 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
32673 # The order of these tests is important.
32674 cat >conftest.$ac_ext <<_ACEOF
32677 cat confdefs.h >>conftest.$ac_ext
32678 cat >>conftest.$ac_ext <<_ACEOF
32679 /* end confdefs.h. */
32681 #include <sys/statvfs.h>
32682 #include <sys/fstyp.h>
32685 if { (ac_try="$ac_cpp conftest.$ac_ext"
32686 case "(($ac_try" in
32687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32688 *) ac_try_echo=$ac_try;;
32690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32693 grep -v '^ *+' conftest.er1 >conftest.err
32695 cat conftest.err >&5
32696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32697 (exit $ac_status); } >/dev/null && {
32698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32699 test ! -s conftest.err
32701 cat >>confdefs.h <<\_ACEOF
32702 #define FSTYPE_STATVFS 1
32707 echo "$as_me: failed program was:" >&5
32708 sed 's/^/| /' conftest.$ac_ext >&5
32713 rm -f conftest.err conftest.$ac_ext
32714 if test $fstype = no; then
32715 cat >conftest.$ac_ext <<_ACEOF
32718 cat confdefs.h >>conftest.$ac_ext
32719 cat >>conftest.$ac_ext <<_ACEOF
32720 /* end confdefs.h. */
32722 #include <sys/statfs.h>
32723 #include <sys/fstyp.h>
32726 if { (ac_try="$ac_cpp conftest.$ac_ext"
32727 case "(($ac_try" in
32728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32729 *) ac_try_echo=$ac_try;;
32731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32734 grep -v '^ *+' conftest.er1 >conftest.err
32736 cat conftest.err >&5
32737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32738 (exit $ac_status); } >/dev/null && {
32739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32740 test ! -s conftest.err
32742 cat >>confdefs.h <<\_ACEOF
32743 #define FSTYPE_USG_STATFS 1
32748 echo "$as_me: failed program was:" >&5
32749 sed 's/^/| /' conftest.$ac_ext >&5
32754 rm -f conftest.err conftest.$ac_ext
32756 if test $fstype = no; then
32757 cat >conftest.$ac_ext <<_ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h. */
32764 #include <sys/statfs.h>
32765 #include <sys/vmount.h>
32768 if { (ac_try="$ac_cpp conftest.$ac_ext"
32769 case "(($ac_try" in
32770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32771 *) ac_try_echo=$ac_try;;
32773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32776 grep -v '^ *+' conftest.er1 >conftest.err
32778 cat conftest.err >&5
32779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32780 (exit $ac_status); } >/dev/null && {
32781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32782 test ! -s conftest.err
32784 cat >>confdefs.h <<\_ACEOF
32785 #define FSTYPE_AIX_STATFS 1
32790 echo "$as_me: failed program was:" >&5
32791 sed 's/^/| /' conftest.$ac_ext >&5
32796 rm -f conftest.err conftest.$ac_ext
32798 if test $fstype = no; then
32799 cat >conftest.$ac_ext <<_ACEOF
32802 cat confdefs.h >>conftest.$ac_ext
32803 cat >>conftest.$ac_ext <<_ACEOF
32804 /* end confdefs.h. */
32806 #include <mntent.h>
32809 if { (ac_try="$ac_cpp conftest.$ac_ext"
32810 case "(($ac_try" in
32811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32812 *) ac_try_echo=$ac_try;;
32814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32817 grep -v '^ *+' conftest.er1 >conftest.err
32819 cat conftest.err >&5
32820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32821 (exit $ac_status); } >/dev/null && {
32822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32823 test ! -s conftest.err
32825 cat >>confdefs.h <<\_ACEOF
32826 #define FSTYPE_MNTENT 1
32831 echo "$as_me: failed program was:" >&5
32832 sed 's/^/| /' conftest.$ac_ext >&5
32837 rm -f conftest.err conftest.$ac_ext
32839 if test $fstype = no; then
32840 cat >conftest.$ac_ext <<_ACEOF
32843 cat confdefs.h >>conftest.$ac_ext
32844 cat >>conftest.$ac_ext <<_ACEOF
32845 /* end confdefs.h. */
32846 #include <sys/mount.h>
32849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32850 $EGREP "f_type;" >/dev/null 2>&1; then
32851 cat >>confdefs.h <<\_ACEOF
32852 #define FSTYPE_STATFS 1
32859 if test $fstype = no; then
32860 cat >conftest.$ac_ext <<_ACEOF
32863 cat confdefs.h >>conftest.$ac_ext
32864 cat >>conftest.$ac_ext <<_ACEOF
32865 /* end confdefs.h. */
32867 #include <sys/mount.h>
32868 #include <sys/fs_types.h>
32871 if { (ac_try="$ac_cpp conftest.$ac_ext"
32872 case "(($ac_try" in
32873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32874 *) ac_try_echo=$ac_try;;
32876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32879 grep -v '^ *+' conftest.er1 >conftest.err
32881 cat conftest.err >&5
32882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 (exit $ac_status); } >/dev/null && {
32884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32885 test ! -s conftest.err
32887 cat >>confdefs.h <<\_ACEOF
32888 #define FSTYPE_GETMNT 1
32893 echo "$as_me: failed program was:" >&5
32894 sed 's/^/| /' conftest.$ac_ext >&5
32899 rm -f conftest.err conftest.$ac_ext
32901 { echo "$as_me:$LINENO: result: $fstype" >&5
32902 echo "${ECHO_T}$fstype" >&6; }
32904 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32905 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
32906 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
32907 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
32908 echo $ECHO_N "(cached) $ECHO_C" >&6
32910 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
32911 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
32913 # Is the header compilable?
32914 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
32915 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
32916 cat >conftest.$ac_ext <<_ACEOF
32919 cat confdefs.h >>conftest.$ac_ext
32920 cat >>conftest.$ac_ext <<_ACEOF
32921 /* end confdefs.h. */
32922 $ac_includes_default
32923 #include <sys/statvfs.h>
32925 rm -f conftest.$ac_objext
32926 if { (ac_try="$ac_compile"
32927 case "(($ac_try" in
32928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32929 *) ac_try_echo=$ac_try;;
32931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32932 (eval "$ac_compile") 2>conftest.er1
32934 grep -v '^ *+' conftest.er1 >conftest.err
32936 cat conftest.err >&5
32937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32938 (exit $ac_status); } && {
32939 test -z "$ac_c_werror_flag" ||
32940 test ! -s conftest.err
32941 } && test -s conftest.$ac_objext; then
32942 ac_header_compiler=yes
32944 echo "$as_me: failed program was:" >&5
32945 sed 's/^/| /' conftest.$ac_ext >&5
32947 ac_header_compiler=no
32950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32952 echo "${ECHO_T}$ac_header_compiler" >&6; }
32954 # Is the header present?
32955 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
32956 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
32957 cat >conftest.$ac_ext <<_ACEOF
32960 cat confdefs.h >>conftest.$ac_ext
32961 cat >>conftest.$ac_ext <<_ACEOF
32962 /* end confdefs.h. */
32963 #include <sys/statvfs.h>
32965 if { (ac_try="$ac_cpp conftest.$ac_ext"
32966 case "(($ac_try" in
32967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32968 *) ac_try_echo=$ac_try;;
32970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32973 grep -v '^ *+' conftest.er1 >conftest.err
32975 cat conftest.err >&5
32976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32977 (exit $ac_status); } >/dev/null && {
32978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32979 test ! -s conftest.err
32981 ac_header_preproc=yes
32983 echo "$as_me: failed program was:" >&5
32984 sed 's/^/| /' conftest.$ac_ext >&5
32986 ac_header_preproc=no
32989 rm -f conftest.err conftest.$ac_ext
32990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32991 echo "${ECHO_T}$ac_header_preproc" >&6; }
32993 # So? What about this header?
32994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32996 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
32997 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32998 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
32999 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33000 ac_header_preproc=yes
33003 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33004 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33005 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33006 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33007 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33008 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33009 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33010 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33011 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33012 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33013 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33014 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33018 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33019 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33020 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33021 echo $ECHO_N "(cached) $ECHO_C" >&6
33023 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33025 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33026 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33029 if test $ac_cv_header_sys_statvfs_h = yes; then
33031 cat >>confdefs.h <<\_ACEOF
33032 #define HAVE_SYS_STATVFS_H 1
33039 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33040 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33041 if test "${ac_cv_type_signal+set}" = set; then
33042 echo $ECHO_N "(cached) $ECHO_C" >&6
33044 cat >conftest.$ac_ext <<_ACEOF
33047 cat confdefs.h >>conftest.$ac_ext
33048 cat >>conftest.$ac_ext <<_ACEOF
33049 /* end confdefs.h. */
33050 #include <sys/types.h>
33051 #include <signal.h>
33056 return *(signal (0, 0)) (0) == 1;
33061 rm -f conftest.$ac_objext
33062 if { (ac_try="$ac_compile"
33063 case "(($ac_try" in
33064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33065 *) ac_try_echo=$ac_try;;
33067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33068 (eval "$ac_compile") 2>conftest.er1
33070 grep -v '^ *+' conftest.er1 >conftest.err
33072 cat conftest.err >&5
33073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074 (exit $ac_status); } && {
33075 test -z "$ac_c_werror_flag" ||
33076 test ! -s conftest.err
33077 } && test -s conftest.$ac_objext; then
33078 ac_cv_type_signal=int
33080 echo "$as_me: failed program was:" >&5
33081 sed 's/^/| /' conftest.$ac_ext >&5
33083 ac_cv_type_signal=void
33086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33088 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33089 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33091 cat >>confdefs.h <<_ACEOF
33092 #define RETSIGTYPE $ac_cv_type_signal
33097 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33098 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33099 if test "${bash_cv_signal_vintage+set}" = set; then
33100 echo $ECHO_N "(cached) $ECHO_C" >&6
33103 cat >conftest.$ac_ext <<_ACEOF
33106 cat confdefs.h >>conftest.$ac_ext
33107 cat >>conftest.$ac_ext <<_ACEOF
33108 /* end confdefs.h. */
33109 #include <signal.h>
33115 struct sigaction sa;
33116 sigemptyset(&ss); sigsuspend(&ss);
33117 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33118 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33124 rm -f conftest.$ac_objext conftest$ac_exeext
33125 if { (ac_try="$ac_link"
33126 case "(($ac_try" in
33127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33128 *) ac_try_echo=$ac_try;;
33130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33131 (eval "$ac_link") 2>conftest.er1
33133 grep -v '^ *+' conftest.er1 >conftest.err
33135 cat conftest.err >&5
33136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); } && {
33138 test -z "$ac_c_werror_flag" ||
33139 test ! -s conftest.err
33140 } && test -s conftest$ac_exeext &&
33141 $as_test_x conftest$ac_exeext; then
33142 bash_cv_signal_vintage="posix"
33144 echo "$as_me: failed program was:" >&5
33145 sed 's/^/| /' conftest.$ac_ext >&5
33148 cat >conftest.$ac_ext <<_ACEOF
33151 cat confdefs.h >>conftest.$ac_ext
33152 cat >>conftest.$ac_ext <<_ACEOF
33153 /* end confdefs.h. */
33154 #include <signal.h>
33159 int mask = sigmask(SIGINT);
33160 sigsetmask(mask); sigblock(mask); sigpause(mask);
33166 rm -f conftest.$ac_objext conftest$ac_exeext
33167 if { (ac_try="$ac_link"
33168 case "(($ac_try" in
33169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33170 *) ac_try_echo=$ac_try;;
33172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33173 (eval "$ac_link") 2>conftest.er1
33175 grep -v '^ *+' conftest.er1 >conftest.err
33177 cat conftest.err >&5
33178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33179 (exit $ac_status); } && {
33180 test -z "$ac_c_werror_flag" ||
33181 test ! -s conftest.err
33182 } && test -s conftest$ac_exeext &&
33183 $as_test_x conftest$ac_exeext; then
33184 bash_cv_signal_vintage="4.2bsd"
33186 echo "$as_me: failed program was:" >&5
33187 sed 's/^/| /' conftest.$ac_ext >&5
33190 cat >conftest.$ac_ext <<_ACEOF
33193 cat confdefs.h >>conftest.$ac_ext
33194 cat >>conftest.$ac_ext <<_ACEOF
33195 /* end confdefs.h. */
33197 #include <signal.h>
33198 RETSIGTYPE foo() { }
33203 int mask = sigmask(SIGINT);
33204 sigset(SIGINT, foo); sigrelse(SIGINT);
33205 sighold(SIGINT); sigpause(SIGINT);
33211 rm -f conftest.$ac_objext conftest$ac_exeext
33212 if { (ac_try="$ac_link"
33213 case "(($ac_try" in
33214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33215 *) ac_try_echo=$ac_try;;
33217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33218 (eval "$ac_link") 2>conftest.er1
33220 grep -v '^ *+' conftest.er1 >conftest.err
33222 cat conftest.err >&5
33223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224 (exit $ac_status); } && {
33225 test -z "$ac_c_werror_flag" ||
33226 test ! -s conftest.err
33227 } && test -s conftest$ac_exeext &&
33228 $as_test_x conftest$ac_exeext; then
33229 bash_cv_signal_vintage="svr3"
33231 echo "$as_me: failed program was:" >&5
33232 sed 's/^/| /' conftest.$ac_ext >&5
33234 bash_cv_signal_vintage="v7"
33238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33239 conftest$ac_exeext conftest.$ac_ext
33243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33244 conftest$ac_exeext conftest.$ac_ext
33248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33249 conftest$ac_exeext conftest.$ac_ext
33253 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33254 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33255 if test "$bash_cv_signal_vintage" = "posix"; then
33256 cat >>confdefs.h <<\_ACEOF
33257 #define HAVE_POSIX_SIGNALS 1
33260 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33261 cat >>confdefs.h <<\_ACEOF
33262 #define HAVE_BSD_SIGNALS 1
33265 elif test "$bash_cv_signal_vintage" = "svr3"; then
33266 cat >>confdefs.h <<\_ACEOF
33267 #define HAVE_USG_SIGHOLD 1
33272 { echo "$as_me:$LINENO: checking for mode_t" >&5
33273 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33274 if test "${ac_cv_type_mode_t+set}" = set; then
33275 echo $ECHO_N "(cached) $ECHO_C" >&6
33277 cat >conftest.$ac_ext <<_ACEOF
33280 cat confdefs.h >>conftest.$ac_ext
33281 cat >>conftest.$ac_ext <<_ACEOF
33282 /* end confdefs.h. */
33283 $ac_includes_default
33284 typedef mode_t ac__type_new_;
33288 if ((ac__type_new_ *) 0)
33290 if (sizeof (ac__type_new_))
33296 rm -f conftest.$ac_objext
33297 if { (ac_try="$ac_compile"
33298 case "(($ac_try" in
33299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33300 *) ac_try_echo=$ac_try;;
33302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33303 (eval "$ac_compile") 2>conftest.er1
33305 grep -v '^ *+' conftest.er1 >conftest.err
33307 cat conftest.err >&5
33308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33309 (exit $ac_status); } && {
33310 test -z "$ac_c_werror_flag" ||
33311 test ! -s conftest.err
33312 } && test -s conftest.$ac_objext; then
33313 ac_cv_type_mode_t=yes
33315 echo "$as_me: failed program was:" >&5
33316 sed 's/^/| /' conftest.$ac_ext >&5
33318 ac_cv_type_mode_t=no
33321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33323 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33324 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33325 if test $ac_cv_type_mode_t = yes; then
33329 cat >>confdefs.h <<_ACEOF
33335 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33336 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33337 if test "${ac_cv_type_uid_t+set}" = set; then
33338 echo $ECHO_N "(cached) $ECHO_C" >&6
33340 cat >conftest.$ac_ext <<_ACEOF
33343 cat confdefs.h >>conftest.$ac_ext
33344 cat >>conftest.$ac_ext <<_ACEOF
33345 /* end confdefs.h. */
33346 #include <sys/types.h>
33349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33350 $EGREP "uid_t" >/dev/null 2>&1; then
33351 ac_cv_type_uid_t=yes
33353 ac_cv_type_uid_t=no
33358 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33359 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33360 if test $ac_cv_type_uid_t = no; then
33362 cat >>confdefs.h <<\_ACEOF
33367 cat >>confdefs.h <<\_ACEOF
33373 { echo "$as_me:$LINENO: checking for size_t" >&5
33374 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33375 if test "${ac_cv_type_size_t+set}" = set; then
33376 echo $ECHO_N "(cached) $ECHO_C" >&6
33378 cat >conftest.$ac_ext <<_ACEOF
33381 cat confdefs.h >>conftest.$ac_ext
33382 cat >>conftest.$ac_ext <<_ACEOF
33383 /* end confdefs.h. */
33384 $ac_includes_default
33385 typedef size_t ac__type_new_;
33389 if ((ac__type_new_ *) 0)
33391 if (sizeof (ac__type_new_))
33397 rm -f conftest.$ac_objext
33398 if { (ac_try="$ac_compile"
33399 case "(($ac_try" in
33400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33401 *) ac_try_echo=$ac_try;;
33403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33404 (eval "$ac_compile") 2>conftest.er1
33406 grep -v '^ *+' conftest.er1 >conftest.err
33408 cat conftest.err >&5
33409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33410 (exit $ac_status); } && {
33411 test -z "$ac_c_werror_flag" ||
33412 test ! -s conftest.err
33413 } && test -s conftest.$ac_objext; then
33414 ac_cv_type_size_t=yes
33416 echo "$as_me: failed program was:" >&5
33417 sed 's/^/| /' conftest.$ac_ext >&5
33419 ac_cv_type_size_t=no
33422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33424 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33425 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33426 if test $ac_cv_type_size_t = yes; then
33430 cat >>confdefs.h <<_ACEOF
33431 #define size_t unsigned int
33436 { echo "$as_me:$LINENO: checking for pid_t" >&5
33437 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33438 if test "${ac_cv_type_pid_t+set}" = set; then
33439 echo $ECHO_N "(cached) $ECHO_C" >&6
33441 cat >conftest.$ac_ext <<_ACEOF
33444 cat confdefs.h >>conftest.$ac_ext
33445 cat >>conftest.$ac_ext <<_ACEOF
33446 /* end confdefs.h. */
33447 $ac_includes_default
33448 typedef pid_t ac__type_new_;
33452 if ((ac__type_new_ *) 0)
33454 if (sizeof (ac__type_new_))
33460 rm -f conftest.$ac_objext
33461 if { (ac_try="$ac_compile"
33462 case "(($ac_try" in
33463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33464 *) ac_try_echo=$ac_try;;
33466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33467 (eval "$ac_compile") 2>conftest.er1
33469 grep -v '^ *+' conftest.er1 >conftest.err
33471 cat conftest.err >&5
33472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); } && {
33474 test -z "$ac_c_werror_flag" ||
33475 test ! -s conftest.err
33476 } && test -s conftest.$ac_objext; then
33477 ac_cv_type_pid_t=yes
33479 echo "$as_me: failed program was:" >&5
33480 sed 's/^/| /' conftest.$ac_ext >&5
33482 ac_cv_type_pid_t=no
33485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33487 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33488 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33489 if test $ac_cv_type_pid_t = yes; then
33493 cat >>confdefs.h <<_ACEOF
33499 { echo "$as_me:$LINENO: checking for off_t" >&5
33500 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33501 if test "${ac_cv_type_off_t+set}" = set; then
33502 echo $ECHO_N "(cached) $ECHO_C" >&6
33504 cat >conftest.$ac_ext <<_ACEOF
33507 cat confdefs.h >>conftest.$ac_ext
33508 cat >>conftest.$ac_ext <<_ACEOF
33509 /* end confdefs.h. */
33510 $ac_includes_default
33511 typedef off_t ac__type_new_;
33515 if ((ac__type_new_ *) 0)
33517 if (sizeof (ac__type_new_))
33523 rm -f conftest.$ac_objext
33524 if { (ac_try="$ac_compile"
33525 case "(($ac_try" in
33526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33527 *) ac_try_echo=$ac_try;;
33529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33530 (eval "$ac_compile") 2>conftest.er1
33532 grep -v '^ *+' conftest.er1 >conftest.err
33534 cat conftest.err >&5
33535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33536 (exit $ac_status); } && {
33537 test -z "$ac_c_werror_flag" ||
33538 test ! -s conftest.err
33539 } && test -s conftest.$ac_objext; then
33540 ac_cv_type_off_t=yes
33542 echo "$as_me: failed program was:" >&5
33543 sed 's/^/| /' conftest.$ac_ext >&5
33545 ac_cv_type_off_t=no
33548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33550 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33551 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33552 if test $ac_cv_type_off_t = yes; then
33556 cat >>confdefs.h <<_ACEOF
33557 #define off_t long int
33563 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33564 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33565 if test "${ac_cv_type_intptr_t+set}" = set; then
33566 echo $ECHO_N "(cached) $ECHO_C" >&6
33568 cat >conftest.$ac_ext <<_ACEOF
33571 cat confdefs.h >>conftest.$ac_ext
33572 cat >>conftest.$ac_ext <<_ACEOF
33573 /* end confdefs.h. */
33574 $ac_includes_default
33575 typedef intptr_t ac__type_new_;
33579 if ((ac__type_new_ *) 0)
33581 if (sizeof (ac__type_new_))
33587 rm -f conftest.$ac_objext
33588 if { (ac_try="$ac_compile"
33589 case "(($ac_try" in
33590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33591 *) ac_try_echo=$ac_try;;
33593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33594 (eval "$ac_compile") 2>conftest.er1
33596 grep -v '^ *+' conftest.er1 >conftest.err
33598 cat conftest.err >&5
33599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33600 (exit $ac_status); } && {
33601 test -z "$ac_c_werror_flag" ||
33602 test ! -s conftest.err
33603 } && test -s conftest.$ac_objext; then
33604 ac_cv_type_intptr_t=yes
33606 echo "$as_me: failed program was:" >&5
33607 sed 's/^/| /' conftest.$ac_ext >&5
33609 ac_cv_type_intptr_t=no
33612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33614 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33615 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33616 if test $ac_cv_type_intptr_t = yes; then
33618 cat >>confdefs.h <<\_ACEOF
33619 #define HAVE_INTPTR_T 1
33623 for ac_type in 'int' 'long int' 'long long int'; do
33624 cat >conftest.$ac_ext <<_ACEOF
33627 cat confdefs.h >>conftest.$ac_ext
33628 cat >>conftest.$ac_ext <<_ACEOF
33629 /* end confdefs.h. */
33630 $ac_includes_default
33634 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33641 rm -f conftest.$ac_objext
33642 if { (ac_try="$ac_compile"
33643 case "(($ac_try" in
33644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33645 *) ac_try_echo=$ac_try;;
33647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33648 (eval "$ac_compile") 2>conftest.er1
33650 grep -v '^ *+' conftest.er1 >conftest.err
33652 cat conftest.err >&5
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); } && {
33655 test -z "$ac_c_werror_flag" ||
33656 test ! -s conftest.err
33657 } && test -s conftest.$ac_objext; then
33659 cat >>confdefs.h <<_ACEOF
33660 #define intptr_t $ac_type
33665 echo "$as_me: failed program was:" >&5
33666 sed 's/^/| /' conftest.$ac_ext >&5
33671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33672 test -z "$ac_type" && break
33678 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
33679 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
33680 if test "${ac_cv_type_uintptr_t+set}" = set; then
33681 echo $ECHO_N "(cached) $ECHO_C" >&6
33683 cat >conftest.$ac_ext <<_ACEOF
33686 cat confdefs.h >>conftest.$ac_ext
33687 cat >>conftest.$ac_ext <<_ACEOF
33688 /* end confdefs.h. */
33689 $ac_includes_default
33690 typedef uintptr_t ac__type_new_;
33694 if ((ac__type_new_ *) 0)
33696 if (sizeof (ac__type_new_))
33702 rm -f conftest.$ac_objext
33703 if { (ac_try="$ac_compile"
33704 case "(($ac_try" in
33705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33706 *) ac_try_echo=$ac_try;;
33708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33709 (eval "$ac_compile") 2>conftest.er1
33711 grep -v '^ *+' conftest.er1 >conftest.err
33713 cat conftest.err >&5
33714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33715 (exit $ac_status); } && {
33716 test -z "$ac_c_werror_flag" ||
33717 test ! -s conftest.err
33718 } && test -s conftest.$ac_objext; then
33719 ac_cv_type_uintptr_t=yes
33721 echo "$as_me: failed program was:" >&5
33722 sed 's/^/| /' conftest.$ac_ext >&5
33724 ac_cv_type_uintptr_t=no
33727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33729 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
33730 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
33731 if test $ac_cv_type_uintptr_t = yes; then
33733 cat >>confdefs.h <<\_ACEOF
33734 #define HAVE_UINTPTR_T 1
33738 for ac_type in 'unsigned int' 'unsigned long int' \
33739 'unsigned long long int'; do
33740 cat >conftest.$ac_ext <<_ACEOF
33743 cat confdefs.h >>conftest.$ac_ext
33744 cat >>conftest.$ac_ext <<_ACEOF
33745 /* end confdefs.h. */
33746 $ac_includes_default
33750 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
33757 rm -f conftest.$ac_objext
33758 if { (ac_try="$ac_compile"
33759 case "(($ac_try" in
33760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33761 *) ac_try_echo=$ac_try;;
33763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33764 (eval "$ac_compile") 2>conftest.er1
33766 grep -v '^ *+' conftest.er1 >conftest.err
33768 cat conftest.err >&5
33769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33770 (exit $ac_status); } && {
33771 test -z "$ac_c_werror_flag" ||
33772 test ! -s conftest.err
33773 } && test -s conftest.$ac_objext; then
33775 cat >>confdefs.h <<_ACEOF
33776 #define uintptr_t $ac_type
33781 echo "$as_me: failed program was:" >&5
33782 sed 's/^/| /' conftest.$ac_ext >&5
33787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33788 test -z "$ac_type" && break
33793 { echo "$as_me:$LINENO: checking for ino_t" >&5
33794 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
33795 if test "${ac_cv_type_ino_t+set}" = set; then
33796 echo $ECHO_N "(cached) $ECHO_C" >&6
33798 cat >conftest.$ac_ext <<_ACEOF
33801 cat confdefs.h >>conftest.$ac_ext
33802 cat >>conftest.$ac_ext <<_ACEOF
33803 /* end confdefs.h. */
33804 $ac_includes_default
33805 typedef ino_t ac__type_new_;
33809 if ((ac__type_new_ *) 0)
33811 if (sizeof (ac__type_new_))
33817 rm -f conftest.$ac_objext
33818 if { (ac_try="$ac_compile"
33819 case "(($ac_try" in
33820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33821 *) ac_try_echo=$ac_try;;
33823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33824 (eval "$ac_compile") 2>conftest.er1
33826 grep -v '^ *+' conftest.er1 >conftest.err
33828 cat conftest.err >&5
33829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33830 (exit $ac_status); } && {
33831 test -z "$ac_c_werror_flag" ||
33832 test ! -s conftest.err
33833 } && test -s conftest.$ac_objext; then
33834 ac_cv_type_ino_t=yes
33836 echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.$ac_ext >&5
33839 ac_cv_type_ino_t=no
33842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33844 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
33845 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
33846 if test $ac_cv_type_ino_t = yes; then
33850 cat >>confdefs.h <<_ACEOF
33851 #define ino_t unsigned long
33856 { echo "$as_me:$LINENO: checking for dev_t" >&5
33857 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
33858 if test "${ac_cv_type_dev_t+set}" = set; then
33859 echo $ECHO_N "(cached) $ECHO_C" >&6
33861 cat >conftest.$ac_ext <<_ACEOF
33864 cat confdefs.h >>conftest.$ac_ext
33865 cat >>conftest.$ac_ext <<_ACEOF
33866 /* end confdefs.h. */
33867 $ac_includes_default
33868 typedef dev_t ac__type_new_;
33872 if ((ac__type_new_ *) 0)
33874 if (sizeof (ac__type_new_))
33880 rm -f conftest.$ac_objext
33881 if { (ac_try="$ac_compile"
33882 case "(($ac_try" in
33883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33884 *) ac_try_echo=$ac_try;;
33886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33887 (eval "$ac_compile") 2>conftest.er1
33889 grep -v '^ *+' conftest.er1 >conftest.err
33891 cat conftest.err >&5
33892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33893 (exit $ac_status); } && {
33894 test -z "$ac_c_werror_flag" ||
33895 test ! -s conftest.err
33896 } && test -s conftest.$ac_objext; then
33897 ac_cv_type_dev_t=yes
33899 echo "$as_me: failed program was:" >&5
33900 sed 's/^/| /' conftest.$ac_ext >&5
33902 ac_cv_type_dev_t=no
33905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33907 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
33908 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
33909 if test $ac_cv_type_dev_t = yes; then
33913 cat >>confdefs.h <<_ACEOF
33914 #define dev_t unsigned long
33919 { echo "$as_me:$LINENO: checking for daddr_t" >&5
33920 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
33921 if test "${ac_cv_type_daddr_t+set}" = set; then
33922 echo $ECHO_N "(cached) $ECHO_C" >&6
33924 cat >conftest.$ac_ext <<_ACEOF
33927 cat confdefs.h >>conftest.$ac_ext
33928 cat >>conftest.$ac_ext <<_ACEOF
33929 /* end confdefs.h. */
33930 $ac_includes_default
33931 typedef daddr_t ac__type_new_;
33935 if ((ac__type_new_ *) 0)
33937 if (sizeof (ac__type_new_))
33943 rm -f conftest.$ac_objext
33944 if { (ac_try="$ac_compile"
33945 case "(($ac_try" in
33946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33947 *) ac_try_echo=$ac_try;;
33949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33950 (eval "$ac_compile") 2>conftest.er1
33952 grep -v '^ *+' conftest.er1 >conftest.err
33954 cat conftest.err >&5
33955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33956 (exit $ac_status); } && {
33957 test -z "$ac_c_werror_flag" ||
33958 test ! -s conftest.err
33959 } && test -s conftest.$ac_objext; then
33960 ac_cv_type_daddr_t=yes
33962 echo "$as_me: failed program was:" >&5
33963 sed 's/^/| /' conftest.$ac_ext >&5
33965 ac_cv_type_daddr_t=no
33968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33970 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
33971 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
33972 if test $ac_cv_type_daddr_t = yes; then
33976 cat >>confdefs.h <<_ACEOF
33977 #define daddr_t long
33982 { echo "$as_me:$LINENO: checking for major_t" >&5
33983 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
33984 if test "${ac_cv_type_major_t+set}" = set; then
33985 echo $ECHO_N "(cached) $ECHO_C" >&6
33987 cat >conftest.$ac_ext <<_ACEOF
33990 cat confdefs.h >>conftest.$ac_ext
33991 cat >>conftest.$ac_ext <<_ACEOF
33992 /* end confdefs.h. */
33993 $ac_includes_default
33994 typedef major_t ac__type_new_;
33998 if ((ac__type_new_ *) 0)
34000 if (sizeof (ac__type_new_))
34006 rm -f conftest.$ac_objext
34007 if { (ac_try="$ac_compile"
34008 case "(($ac_try" in
34009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34010 *) ac_try_echo=$ac_try;;
34012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34013 (eval "$ac_compile") 2>conftest.er1
34015 grep -v '^ *+' conftest.er1 >conftest.err
34017 cat conftest.err >&5
34018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34019 (exit $ac_status); } && {
34020 test -z "$ac_c_werror_flag" ||
34021 test ! -s conftest.err
34022 } && test -s conftest.$ac_objext; then
34023 ac_cv_type_major_t=yes
34025 echo "$as_me: failed program was:" >&5
34026 sed 's/^/| /' conftest.$ac_ext >&5
34028 ac_cv_type_major_t=no
34031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34033 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34034 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34035 if test $ac_cv_type_major_t = yes; then
34039 cat >>confdefs.h <<_ACEOF
34040 #define major_t int
34045 { echo "$as_me:$LINENO: checking for minor_t" >&5
34046 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34047 if test "${ac_cv_type_minor_t+set}" = set; then
34048 echo $ECHO_N "(cached) $ECHO_C" >&6
34050 cat >conftest.$ac_ext <<_ACEOF
34053 cat confdefs.h >>conftest.$ac_ext
34054 cat >>conftest.$ac_ext <<_ACEOF
34055 /* end confdefs.h. */
34056 $ac_includes_default
34057 typedef minor_t ac__type_new_;
34061 if ((ac__type_new_ *) 0)
34063 if (sizeof (ac__type_new_))
34069 rm -f conftest.$ac_objext
34070 if { (ac_try="$ac_compile"
34071 case "(($ac_try" in
34072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34073 *) ac_try_echo=$ac_try;;
34075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34076 (eval "$ac_compile") 2>conftest.er1
34078 grep -v '^ *+' conftest.er1 >conftest.err
34080 cat conftest.err >&5
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); } && {
34083 test -z "$ac_c_werror_flag" ||
34084 test ! -s conftest.err
34085 } && test -s conftest.$ac_objext; then
34086 ac_cv_type_minor_t=yes
34088 echo "$as_me: failed program was:" >&5
34089 sed 's/^/| /' conftest.$ac_ext >&5
34091 ac_cv_type_minor_t=no
34094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34096 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34097 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34098 if test $ac_cv_type_minor_t = yes; then
34102 cat >>confdefs.h <<_ACEOF
34103 #define minor_t int
34108 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34109 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34110 if test "${ac_cv_type_ssize_t+set}" = set; then
34111 echo $ECHO_N "(cached) $ECHO_C" >&6
34113 cat >conftest.$ac_ext <<_ACEOF
34116 cat confdefs.h >>conftest.$ac_ext
34117 cat >>conftest.$ac_ext <<_ACEOF
34118 /* end confdefs.h. */
34119 $ac_includes_default
34120 typedef ssize_t ac__type_new_;
34124 if ((ac__type_new_ *) 0)
34126 if (sizeof (ac__type_new_))
34132 rm -f conftest.$ac_objext
34133 if { (ac_try="$ac_compile"
34134 case "(($ac_try" in
34135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136 *) ac_try_echo=$ac_try;;
34138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34139 (eval "$ac_compile") 2>conftest.er1
34141 grep -v '^ *+' conftest.er1 >conftest.err
34143 cat conftest.err >&5
34144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34145 (exit $ac_status); } && {
34146 test -z "$ac_c_werror_flag" ||
34147 test ! -s conftest.err
34148 } && test -s conftest.$ac_objext; then
34149 ac_cv_type_ssize_t=yes
34151 echo "$as_me: failed program was:" >&5
34152 sed 's/^/| /' conftest.$ac_ext >&5
34154 ac_cv_type_ssize_t=no
34157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34159 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34160 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34161 if test $ac_cv_type_ssize_t = yes; then
34165 cat >>confdefs.h <<_ACEOF
34166 #define ssize_t int
34171 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34172 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34173 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34174 echo $ECHO_N "(cached) $ECHO_C" >&6
34176 cat >conftest.$ac_ext <<_ACEOF
34179 cat confdefs.h >>conftest.$ac_ext
34180 cat >>conftest.$ac_ext <<_ACEOF
34181 /* end confdefs.h. */
34182 $ac_includes_default
34186 static struct stat ac_aggr;
34187 if (ac_aggr.st_blocks)
34193 rm -f conftest.$ac_objext
34194 if { (ac_try="$ac_compile"
34195 case "(($ac_try" in
34196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34197 *) ac_try_echo=$ac_try;;
34199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34200 (eval "$ac_compile") 2>conftest.er1
34202 grep -v '^ *+' conftest.er1 >conftest.err
34204 cat conftest.err >&5
34205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34206 (exit $ac_status); } && {
34207 test -z "$ac_c_werror_flag" ||
34208 test ! -s conftest.err
34209 } && test -s conftest.$ac_objext; then
34210 ac_cv_member_struct_stat_st_blocks=yes
34212 echo "$as_me: failed program was:" >&5
34213 sed 's/^/| /' conftest.$ac_ext >&5
34215 cat >conftest.$ac_ext <<_ACEOF
34218 cat confdefs.h >>conftest.$ac_ext
34219 cat >>conftest.$ac_ext <<_ACEOF
34220 /* end confdefs.h. */
34221 $ac_includes_default
34225 static struct stat ac_aggr;
34226 if (sizeof ac_aggr.st_blocks)
34232 rm -f conftest.$ac_objext
34233 if { (ac_try="$ac_compile"
34234 case "(($ac_try" in
34235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34236 *) ac_try_echo=$ac_try;;
34238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34239 (eval "$ac_compile") 2>conftest.er1
34241 grep -v '^ *+' conftest.er1 >conftest.err
34243 cat conftest.err >&5
34244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34245 (exit $ac_status); } && {
34246 test -z "$ac_c_werror_flag" ||
34247 test ! -s conftest.err
34248 } && test -s conftest.$ac_objext; then
34249 ac_cv_member_struct_stat_st_blocks=yes
34251 echo "$as_me: failed program was:" >&5
34252 sed 's/^/| /' conftest.$ac_ext >&5
34254 ac_cv_member_struct_stat_st_blocks=no
34257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34262 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34263 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34264 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34266 cat >>confdefs.h <<_ACEOF
34267 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34271 cat >>confdefs.h <<\_ACEOF
34272 #define HAVE_ST_BLOCKS 1
34276 case " $LIBOBJS " in
34277 *" fileblocks.$ac_objext "* ) ;;
34278 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34285 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34286 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34287 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34288 echo $ECHO_N "(cached) $ECHO_C" >&6
34290 cat >conftest.$ac_ext <<_ACEOF
34293 cat confdefs.h >>conftest.$ac_ext
34294 cat >>conftest.$ac_ext <<_ACEOF
34295 /* end confdefs.h. */
34296 $ac_includes_default
34300 static struct stat ac_aggr;
34301 if (ac_aggr.st_rdev)
34307 rm -f conftest.$ac_objext
34308 if { (ac_try="$ac_compile"
34309 case "(($ac_try" in
34310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34311 *) ac_try_echo=$ac_try;;
34313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34314 (eval "$ac_compile") 2>conftest.er1
34316 grep -v '^ *+' conftest.er1 >conftest.err
34318 cat conftest.err >&5
34319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34320 (exit $ac_status); } && {
34321 test -z "$ac_c_werror_flag" ||
34322 test ! -s conftest.err
34323 } && test -s conftest.$ac_objext; then
34324 ac_cv_member_struct_stat_st_rdev=yes
34326 echo "$as_me: failed program was:" >&5
34327 sed 's/^/| /' conftest.$ac_ext >&5
34329 cat >conftest.$ac_ext <<_ACEOF
34332 cat confdefs.h >>conftest.$ac_ext
34333 cat >>conftest.$ac_ext <<_ACEOF
34334 /* end confdefs.h. */
34335 $ac_includes_default
34339 static struct stat ac_aggr;
34340 if (sizeof ac_aggr.st_rdev)
34346 rm -f conftest.$ac_objext
34347 if { (ac_try="$ac_compile"
34348 case "(($ac_try" in
34349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34350 *) ac_try_echo=$ac_try;;
34352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34353 (eval "$ac_compile") 2>conftest.er1
34355 grep -v '^ *+' conftest.er1 >conftest.err
34357 cat conftest.err >&5
34358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359 (exit $ac_status); } && {
34360 test -z "$ac_c_werror_flag" ||
34361 test ! -s conftest.err
34362 } && test -s conftest.$ac_objext; then
34363 ac_cv_member_struct_stat_st_rdev=yes
34365 echo "$as_me: failed program was:" >&5
34366 sed 's/^/| /' conftest.$ac_ext >&5
34368 ac_cv_member_struct_stat_st_rdev=no
34371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34376 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34377 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34378 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34380 cat >>confdefs.h <<_ACEOF
34381 #define HAVE_STRUCT_STAT_ST_RDEV 1
34385 cat >>confdefs.h <<\_ACEOF
34386 #define HAVE_ST_RDEV 1
34392 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34393 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34394 if test "${ac_cv_struct_tm+set}" = set; then
34395 echo $ECHO_N "(cached) $ECHO_C" >&6
34397 cat >conftest.$ac_ext <<_ACEOF
34400 cat confdefs.h >>conftest.$ac_ext
34401 cat >>conftest.$ac_ext <<_ACEOF
34402 /* end confdefs.h. */
34403 #include <sys/types.h>
34410 int *p = &tm.tm_sec;
34416 rm -f conftest.$ac_objext
34417 if { (ac_try="$ac_compile"
34418 case "(($ac_try" in
34419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34420 *) ac_try_echo=$ac_try;;
34422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34423 (eval "$ac_compile") 2>conftest.er1
34425 grep -v '^ *+' conftest.er1 >conftest.err
34427 cat conftest.err >&5
34428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34429 (exit $ac_status); } && {
34430 test -z "$ac_c_werror_flag" ||
34431 test ! -s conftest.err
34432 } && test -s conftest.$ac_objext; then
34433 ac_cv_struct_tm=time.h
34435 echo "$as_me: failed program was:" >&5
34436 sed 's/^/| /' conftest.$ac_ext >&5
34438 ac_cv_struct_tm=sys/time.h
34441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34443 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34444 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34445 if test $ac_cv_struct_tm = sys/time.h; then
34447 cat >>confdefs.h <<\_ACEOF
34448 #define TM_IN_SYS_TIME 1
34453 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34454 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34455 if test "${ac_cv_c_const+set}" = set; then
34456 echo $ECHO_N "(cached) $ECHO_C" >&6
34458 cat >conftest.$ac_ext <<_ACEOF
34461 cat confdefs.h >>conftest.$ac_ext
34462 cat >>conftest.$ac_ext <<_ACEOF
34463 /* end confdefs.h. */
34468 /* FIXME: Include the comments suggested by Paul. */
34469 #ifndef __cplusplus
34470 /* Ultrix mips cc rejects this. */
34471 typedef int charset[2];
34473 /* SunOS 4.1.1 cc rejects this. */
34474 char const *const *pcpcc;
34476 /* NEC SVR4.0.2 mips cc rejects this. */
34477 struct point {int x, y;};
34478 static struct point const zero = {0,0};
34479 /* AIX XL C 1.02.0.0 rejects this.
34480 It does not let you subtract one const X* pointer from another in
34481 an arm of an if-expression whose if-part is not a constant
34483 const char *g = "string";
34484 pcpcc = &g + (g ? g-g : 0);
34485 /* HPUX 7.0 cc rejects these. */
34487 ppc = (char**) pcpcc;
34488 pcpcc = (char const *const *) ppc;
34489 { /* SCO 3.2v4 cc rejects this. */
34491 char const *s = 0 ? (char *) 0 : (char const *) 0;
34496 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34497 int x[] = {25, 17};
34498 const int *foo = &x[0];
34501 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34502 typedef const int *iptr;
34506 { /* AIX XL C 1.02.0.0 rejects this saying
34507 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34508 struct s { int j; const int *ap[3]; };
34509 struct s *b; b->j = 5;
34511 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34512 const int foo = 10;
34513 if (!foo) return 0;
34515 return !cs[0] && !zero.x;
34522 rm -f conftest.$ac_objext
34523 if { (ac_try="$ac_compile"
34524 case "(($ac_try" in
34525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34526 *) ac_try_echo=$ac_try;;
34528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34529 (eval "$ac_compile") 2>conftest.er1
34531 grep -v '^ *+' conftest.er1 >conftest.err
34533 cat conftest.err >&5
34534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34535 (exit $ac_status); } && {
34536 test -z "$ac_c_werror_flag" ||
34537 test ! -s conftest.err
34538 } && test -s conftest.$ac_objext; then
34541 echo "$as_me: failed program was:" >&5
34542 sed 's/^/| /' conftest.$ac_ext >&5
34547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34549 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34550 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34551 if test $ac_cv_c_const = no; then
34553 cat >>confdefs.h <<\_ACEOF
34560 { echo "$as_me:$LINENO: checking for char" >&5
34561 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34562 if test "${ac_cv_type_char+set}" = set; then
34563 echo $ECHO_N "(cached) $ECHO_C" >&6
34565 cat >conftest.$ac_ext <<_ACEOF
34568 cat confdefs.h >>conftest.$ac_ext
34569 cat >>conftest.$ac_ext <<_ACEOF
34570 /* end confdefs.h. */
34571 $ac_includes_default
34572 typedef char ac__type_new_;
34576 if ((ac__type_new_ *) 0)
34578 if (sizeof (ac__type_new_))
34584 rm -f conftest.$ac_objext
34585 if { (ac_try="$ac_compile"
34586 case "(($ac_try" in
34587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34588 *) ac_try_echo=$ac_try;;
34590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34591 (eval "$ac_compile") 2>conftest.er1
34593 grep -v '^ *+' conftest.er1 >conftest.err
34595 cat conftest.err >&5
34596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34597 (exit $ac_status); } && {
34598 test -z "$ac_c_werror_flag" ||
34599 test ! -s conftest.err
34600 } && test -s conftest.$ac_objext; then
34601 ac_cv_type_char=yes
34603 echo "$as_me: failed program was:" >&5
34604 sed 's/^/| /' conftest.$ac_ext >&5
34609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34611 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34612 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34614 # The cast to long int works around a bug in the HP C Compiler
34615 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34616 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34617 # This bug is HP SR number 8606223364.
34618 { echo "$as_me:$LINENO: checking size of char" >&5
34619 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34620 if test "${ac_cv_sizeof_char+set}" = set; then
34621 echo $ECHO_N "(cached) $ECHO_C" >&6
34623 if test "$cross_compiling" = yes; then
34624 # Depending upon the size, compute the lo and hi bounds.
34625 cat >conftest.$ac_ext <<_ACEOF
34628 cat confdefs.h >>conftest.$ac_ext
34629 cat >>conftest.$ac_ext <<_ACEOF
34630 /* end confdefs.h. */
34631 $ac_includes_default
34632 typedef char ac__type_sizeof_;
34636 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34643 rm -f conftest.$ac_objext
34644 if { (ac_try="$ac_compile"
34645 case "(($ac_try" in
34646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34647 *) ac_try_echo=$ac_try;;
34649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34650 (eval "$ac_compile") 2>conftest.er1
34652 grep -v '^ *+' conftest.er1 >conftest.err
34654 cat conftest.err >&5
34655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34656 (exit $ac_status); } && {
34657 test -z "$ac_c_werror_flag" ||
34658 test ! -s conftest.err
34659 } && test -s conftest.$ac_objext; then
34662 cat >conftest.$ac_ext <<_ACEOF
34665 cat confdefs.h >>conftest.$ac_ext
34666 cat >>conftest.$ac_ext <<_ACEOF
34667 /* end confdefs.h. */
34668 $ac_includes_default
34669 typedef char ac__type_sizeof_;
34673 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34680 rm -f conftest.$ac_objext
34681 if { (ac_try="$ac_compile"
34682 case "(($ac_try" in
34683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34684 *) ac_try_echo=$ac_try;;
34686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34687 (eval "$ac_compile") 2>conftest.er1
34689 grep -v '^ *+' conftest.er1 >conftest.err
34691 cat conftest.err >&5
34692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34693 (exit $ac_status); } && {
34694 test -z "$ac_c_werror_flag" ||
34695 test ! -s conftest.err
34696 } && test -s conftest.$ac_objext; then
34697 ac_hi=$ac_mid; break
34699 echo "$as_me: failed program was:" >&5
34700 sed 's/^/| /' conftest.$ac_ext >&5
34702 ac_lo=`expr $ac_mid + 1`
34703 if test $ac_lo -le $ac_mid; then
34707 ac_mid=`expr 2 '*' $ac_mid + 1`
34710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34713 echo "$as_me: failed program was:" >&5
34714 sed 's/^/| /' conftest.$ac_ext >&5
34716 cat >conftest.$ac_ext <<_ACEOF
34719 cat confdefs.h >>conftest.$ac_ext
34720 cat >>conftest.$ac_ext <<_ACEOF
34721 /* end confdefs.h. */
34722 $ac_includes_default
34723 typedef char ac__type_sizeof_;
34727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34734 rm -f conftest.$ac_objext
34735 if { (ac_try="$ac_compile"
34736 case "(($ac_try" in
34737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34738 *) ac_try_echo=$ac_try;;
34740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34741 (eval "$ac_compile") 2>conftest.er1
34743 grep -v '^ *+' conftest.er1 >conftest.err
34745 cat conftest.err >&5
34746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747 (exit $ac_status); } && {
34748 test -z "$ac_c_werror_flag" ||
34749 test ! -s conftest.err
34750 } && test -s conftest.$ac_objext; then
34753 cat >conftest.$ac_ext <<_ACEOF
34756 cat confdefs.h >>conftest.$ac_ext
34757 cat >>conftest.$ac_ext <<_ACEOF
34758 /* end confdefs.h. */
34759 $ac_includes_default
34760 typedef char ac__type_sizeof_;
34764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34771 rm -f conftest.$ac_objext
34772 if { (ac_try="$ac_compile"
34773 case "(($ac_try" in
34774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34775 *) ac_try_echo=$ac_try;;
34777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34778 (eval "$ac_compile") 2>conftest.er1
34780 grep -v '^ *+' conftest.er1 >conftest.err
34782 cat conftest.err >&5
34783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784 (exit $ac_status); } && {
34785 test -z "$ac_c_werror_flag" ||
34786 test ! -s conftest.err
34787 } && test -s conftest.$ac_objext; then
34788 ac_lo=$ac_mid; break
34790 echo "$as_me: failed program was:" >&5
34791 sed 's/^/| /' conftest.$ac_ext >&5
34793 ac_hi=`expr '(' $ac_mid ')' - 1`
34794 if test $ac_mid -le $ac_hi; then
34798 ac_mid=`expr 2 '*' $ac_mid`
34801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34804 echo "$as_me: failed program was:" >&5
34805 sed 's/^/| /' conftest.$ac_ext >&5
34810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34814 # Binary search between lo and hi bounds.
34815 while test "x$ac_lo" != "x$ac_hi"; do
34816 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34817 cat >conftest.$ac_ext <<_ACEOF
34820 cat confdefs.h >>conftest.$ac_ext
34821 cat >>conftest.$ac_ext <<_ACEOF
34822 /* end confdefs.h. */
34823 $ac_includes_default
34824 typedef char ac__type_sizeof_;
34828 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34835 rm -f conftest.$ac_objext
34836 if { (ac_try="$ac_compile"
34837 case "(($ac_try" in
34838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34839 *) ac_try_echo=$ac_try;;
34841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34842 (eval "$ac_compile") 2>conftest.er1
34844 grep -v '^ *+' conftest.er1 >conftest.err
34846 cat conftest.err >&5
34847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34848 (exit $ac_status); } && {
34849 test -z "$ac_c_werror_flag" ||
34850 test ! -s conftest.err
34851 } && test -s conftest.$ac_objext; then
34854 echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.$ac_ext >&5
34857 ac_lo=`expr '(' $ac_mid ')' + 1`
34860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34863 ?*) ac_cv_sizeof_char=$ac_lo;;
34864 '') if test "$ac_cv_type_char" = yes; then
34865 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34866 See \`config.log' for more details." >&5
34867 echo "$as_me: error: cannot compute sizeof (char)
34868 See \`config.log' for more details." >&2;}
34869 { (exit 77); exit 77; }; }
34871 ac_cv_sizeof_char=0
34875 cat >conftest.$ac_ext <<_ACEOF
34878 cat confdefs.h >>conftest.$ac_ext
34879 cat >>conftest.$ac_ext <<_ACEOF
34880 /* end confdefs.h. */
34881 $ac_includes_default
34882 typedef char ac__type_sizeof_;
34883 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34884 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34886 #include <stdlib.h>
34891 FILE *f = fopen ("conftest.val", "w");
34894 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34896 long int i = longval ();
34897 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34899 fprintf (f, "%ld\n", i);
34903 unsigned long int i = ulongval ();
34904 if (i != ((long int) (sizeof (ac__type_sizeof_))))
34906 fprintf (f, "%lu\n", i);
34908 return ferror (f) || fclose (f) != 0;
34914 rm -f conftest$ac_exeext
34915 if { (ac_try="$ac_link"
34916 case "(($ac_try" in
34917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34918 *) ac_try_echo=$ac_try;;
34920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34921 (eval "$ac_link") 2>&5
34923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34925 { (case "(($ac_try" in
34926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34927 *) ac_try_echo=$ac_try;;
34929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34930 (eval "$ac_try") 2>&5
34932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34933 (exit $ac_status); }; }; then
34934 ac_cv_sizeof_char=`cat conftest.val`
34936 echo "$as_me: program exited with status $ac_status" >&5
34937 echo "$as_me: failed program was:" >&5
34938 sed 's/^/| /' conftest.$ac_ext >&5
34940 ( exit $ac_status )
34941 if test "$ac_cv_type_char" = yes; then
34942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
34943 See \`config.log' for more details." >&5
34944 echo "$as_me: error: cannot compute sizeof (char)
34945 See \`config.log' for more details." >&2;}
34946 { (exit 77); exit 77; }; }
34948 ac_cv_sizeof_char=0
34951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34955 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
34956 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
34960 cat >>confdefs.h <<_ACEOF
34961 #define SIZEOF_CHAR $ac_cv_sizeof_char
34965 { echo "$as_me:$LINENO: checking for short int" >&5
34966 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
34967 if test "${ac_cv_type_short_int+set}" = set; then
34968 echo $ECHO_N "(cached) $ECHO_C" >&6
34970 cat >conftest.$ac_ext <<_ACEOF
34973 cat confdefs.h >>conftest.$ac_ext
34974 cat >>conftest.$ac_ext <<_ACEOF
34975 /* end confdefs.h. */
34976 $ac_includes_default
34977 typedef short int ac__type_new_;
34981 if ((ac__type_new_ *) 0)
34983 if (sizeof (ac__type_new_))
34989 rm -f conftest.$ac_objext
34990 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
34998 grep -v '^ *+' conftest.er1 >conftest.err
35000 cat conftest.err >&5
35001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35002 (exit $ac_status); } && {
35003 test -z "$ac_c_werror_flag" ||
35004 test ! -s conftest.err
35005 } && test -s conftest.$ac_objext; then
35006 ac_cv_type_short_int=yes
35008 echo "$as_me: failed program was:" >&5
35009 sed 's/^/| /' conftest.$ac_ext >&5
35011 ac_cv_type_short_int=no
35014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35016 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35017 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35019 # The cast to long int works around a bug in the HP C Compiler
35020 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35021 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35022 # This bug is HP SR number 8606223364.
35023 { echo "$as_me:$LINENO: checking size of short int" >&5
35024 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35025 if test "${ac_cv_sizeof_short_int+set}" = set; then
35026 echo $ECHO_N "(cached) $ECHO_C" >&6
35028 if test "$cross_compiling" = yes; then
35029 # Depending upon the size, compute the lo and hi bounds.
35030 cat >conftest.$ac_ext <<_ACEOF
35033 cat confdefs.h >>conftest.$ac_ext
35034 cat >>conftest.$ac_ext <<_ACEOF
35035 /* end confdefs.h. */
35036 $ac_includes_default
35037 typedef short int ac__type_sizeof_;
35041 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35048 rm -f conftest.$ac_objext
35049 if { (ac_try="$ac_compile"
35050 case "(($ac_try" in
35051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35052 *) ac_try_echo=$ac_try;;
35054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35055 (eval "$ac_compile") 2>conftest.er1
35057 grep -v '^ *+' conftest.er1 >conftest.err
35059 cat conftest.err >&5
35060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061 (exit $ac_status); } && {
35062 test -z "$ac_c_werror_flag" ||
35063 test ! -s conftest.err
35064 } && test -s conftest.$ac_objext; then
35067 cat >conftest.$ac_ext <<_ACEOF
35070 cat confdefs.h >>conftest.$ac_ext
35071 cat >>conftest.$ac_ext <<_ACEOF
35072 /* end confdefs.h. */
35073 $ac_includes_default
35074 typedef short int ac__type_sizeof_;
35078 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35085 rm -f conftest.$ac_objext
35086 if { (ac_try="$ac_compile"
35087 case "(($ac_try" in
35088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35089 *) ac_try_echo=$ac_try;;
35091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35092 (eval "$ac_compile") 2>conftest.er1
35094 grep -v '^ *+' conftest.er1 >conftest.err
35096 cat conftest.err >&5
35097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35098 (exit $ac_status); } && {
35099 test -z "$ac_c_werror_flag" ||
35100 test ! -s conftest.err
35101 } && test -s conftest.$ac_objext; then
35102 ac_hi=$ac_mid; break
35104 echo "$as_me: failed program was:" >&5
35105 sed 's/^/| /' conftest.$ac_ext >&5
35107 ac_lo=`expr $ac_mid + 1`
35108 if test $ac_lo -le $ac_mid; then
35112 ac_mid=`expr 2 '*' $ac_mid + 1`
35115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35118 echo "$as_me: failed program was:" >&5
35119 sed 's/^/| /' conftest.$ac_ext >&5
35121 cat >conftest.$ac_ext <<_ACEOF
35124 cat confdefs.h >>conftest.$ac_ext
35125 cat >>conftest.$ac_ext <<_ACEOF
35126 /* end confdefs.h. */
35127 $ac_includes_default
35128 typedef short int ac__type_sizeof_;
35132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35139 rm -f conftest.$ac_objext
35140 if { (ac_try="$ac_compile"
35141 case "(($ac_try" in
35142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35143 *) ac_try_echo=$ac_try;;
35145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35146 (eval "$ac_compile") 2>conftest.er1
35148 grep -v '^ *+' conftest.er1 >conftest.err
35150 cat conftest.err >&5
35151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35152 (exit $ac_status); } && {
35153 test -z "$ac_c_werror_flag" ||
35154 test ! -s conftest.err
35155 } && test -s conftest.$ac_objext; then
35158 cat >conftest.$ac_ext <<_ACEOF
35161 cat confdefs.h >>conftest.$ac_ext
35162 cat >>conftest.$ac_ext <<_ACEOF
35163 /* end confdefs.h. */
35164 $ac_includes_default
35165 typedef short int ac__type_sizeof_;
35169 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35176 rm -f conftest.$ac_objext
35177 if { (ac_try="$ac_compile"
35178 case "(($ac_try" in
35179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35180 *) ac_try_echo=$ac_try;;
35182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35183 (eval "$ac_compile") 2>conftest.er1
35185 grep -v '^ *+' conftest.er1 >conftest.err
35187 cat conftest.err >&5
35188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35189 (exit $ac_status); } && {
35190 test -z "$ac_c_werror_flag" ||
35191 test ! -s conftest.err
35192 } && test -s conftest.$ac_objext; then
35193 ac_lo=$ac_mid; break
35195 echo "$as_me: failed program was:" >&5
35196 sed 's/^/| /' conftest.$ac_ext >&5
35198 ac_hi=`expr '(' $ac_mid ')' - 1`
35199 if test $ac_mid -le $ac_hi; then
35203 ac_mid=`expr 2 '*' $ac_mid`
35206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35209 echo "$as_me: failed program was:" >&5
35210 sed 's/^/| /' conftest.$ac_ext >&5
35215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35219 # Binary search between lo and hi bounds.
35220 while test "x$ac_lo" != "x$ac_hi"; do
35221 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35222 cat >conftest.$ac_ext <<_ACEOF
35225 cat confdefs.h >>conftest.$ac_ext
35226 cat >>conftest.$ac_ext <<_ACEOF
35227 /* end confdefs.h. */
35228 $ac_includes_default
35229 typedef short int ac__type_sizeof_;
35233 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35240 rm -f conftest.$ac_objext
35241 if { (ac_try="$ac_compile"
35242 case "(($ac_try" in
35243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35244 *) ac_try_echo=$ac_try;;
35246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35247 (eval "$ac_compile") 2>conftest.er1
35249 grep -v '^ *+' conftest.er1 >conftest.err
35251 cat conftest.err >&5
35252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35253 (exit $ac_status); } && {
35254 test -z "$ac_c_werror_flag" ||
35255 test ! -s conftest.err
35256 } && test -s conftest.$ac_objext; then
35259 echo "$as_me: failed program was:" >&5
35260 sed 's/^/| /' conftest.$ac_ext >&5
35262 ac_lo=`expr '(' $ac_mid ')' + 1`
35265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35268 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35269 '') if test "$ac_cv_type_short_int" = yes; then
35270 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35271 See \`config.log' for more details." >&5
35272 echo "$as_me: error: cannot compute sizeof (short int)
35273 See \`config.log' for more details." >&2;}
35274 { (exit 77); exit 77; }; }
35276 ac_cv_sizeof_short_int=0
35280 cat >conftest.$ac_ext <<_ACEOF
35283 cat confdefs.h >>conftest.$ac_ext
35284 cat >>conftest.$ac_ext <<_ACEOF
35285 /* end confdefs.h. */
35286 $ac_includes_default
35287 typedef short int ac__type_sizeof_;
35288 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35289 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35291 #include <stdlib.h>
35296 FILE *f = fopen ("conftest.val", "w");
35299 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35301 long int i = longval ();
35302 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35304 fprintf (f, "%ld\n", i);
35308 unsigned long int i = ulongval ();
35309 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35311 fprintf (f, "%lu\n", i);
35313 return ferror (f) || fclose (f) != 0;
35319 rm -f conftest$ac_exeext
35320 if { (ac_try="$ac_link"
35321 case "(($ac_try" in
35322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35323 *) ac_try_echo=$ac_try;;
35325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35326 (eval "$ac_link") 2>&5
35328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35329 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35330 { (case "(($ac_try" in
35331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35332 *) ac_try_echo=$ac_try;;
35334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35335 (eval "$ac_try") 2>&5
35337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35338 (exit $ac_status); }; }; then
35339 ac_cv_sizeof_short_int=`cat conftest.val`
35341 echo "$as_me: program exited with status $ac_status" >&5
35342 echo "$as_me: failed program was:" >&5
35343 sed 's/^/| /' conftest.$ac_ext >&5
35345 ( exit $ac_status )
35346 if test "$ac_cv_type_short_int" = yes; then
35347 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35348 See \`config.log' for more details." >&5
35349 echo "$as_me: error: cannot compute sizeof (short int)
35350 See \`config.log' for more details." >&2;}
35351 { (exit 77); exit 77; }; }
35353 ac_cv_sizeof_short_int=0
35356 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35360 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35361 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35365 cat >>confdefs.h <<_ACEOF
35366 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35370 { echo "$as_me:$LINENO: checking for int" >&5
35371 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35372 if test "${ac_cv_type_int+set}" = set; then
35373 echo $ECHO_N "(cached) $ECHO_C" >&6
35375 cat >conftest.$ac_ext <<_ACEOF
35378 cat confdefs.h >>conftest.$ac_ext
35379 cat >>conftest.$ac_ext <<_ACEOF
35380 /* end confdefs.h. */
35381 $ac_includes_default
35382 typedef int ac__type_new_;
35386 if ((ac__type_new_ *) 0)
35388 if (sizeof (ac__type_new_))
35394 rm -f conftest.$ac_objext
35395 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
35403 grep -v '^ *+' conftest.er1 >conftest.err
35405 cat conftest.err >&5
35406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35407 (exit $ac_status); } && {
35408 test -z "$ac_c_werror_flag" ||
35409 test ! -s conftest.err
35410 } && test -s conftest.$ac_objext; then
35413 echo "$as_me: failed program was:" >&5
35414 sed 's/^/| /' conftest.$ac_ext >&5
35419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35421 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35422 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35424 # The cast to long int works around a bug in the HP C Compiler
35425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35427 # This bug is HP SR number 8606223364.
35428 { echo "$as_me:$LINENO: checking size of int" >&5
35429 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35430 if test "${ac_cv_sizeof_int+set}" = set; then
35431 echo $ECHO_N "(cached) $ECHO_C" >&6
35433 if test "$cross_compiling" = yes; then
35434 # Depending upon the size, compute the lo and hi bounds.
35435 cat >conftest.$ac_ext <<_ACEOF
35438 cat confdefs.h >>conftest.$ac_ext
35439 cat >>conftest.$ac_ext <<_ACEOF
35440 /* end confdefs.h. */
35441 $ac_includes_default
35442 typedef int ac__type_sizeof_;
35446 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35453 rm -f conftest.$ac_objext
35454 if { (ac_try="$ac_compile"
35455 case "(($ac_try" in
35456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35457 *) ac_try_echo=$ac_try;;
35459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35460 (eval "$ac_compile") 2>conftest.er1
35462 grep -v '^ *+' conftest.er1 >conftest.err
35464 cat conftest.err >&5
35465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35466 (exit $ac_status); } && {
35467 test -z "$ac_c_werror_flag" ||
35468 test ! -s conftest.err
35469 } && test -s conftest.$ac_objext; then
35472 cat >conftest.$ac_ext <<_ACEOF
35475 cat confdefs.h >>conftest.$ac_ext
35476 cat >>conftest.$ac_ext <<_ACEOF
35477 /* end confdefs.h. */
35478 $ac_includes_default
35479 typedef int ac__type_sizeof_;
35483 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35490 rm -f conftest.$ac_objext
35491 if { (ac_try="$ac_compile"
35492 case "(($ac_try" in
35493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35494 *) ac_try_echo=$ac_try;;
35496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35497 (eval "$ac_compile") 2>conftest.er1
35499 grep -v '^ *+' conftest.er1 >conftest.err
35501 cat conftest.err >&5
35502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35503 (exit $ac_status); } && {
35504 test -z "$ac_c_werror_flag" ||
35505 test ! -s conftest.err
35506 } && test -s conftest.$ac_objext; then
35507 ac_hi=$ac_mid; break
35509 echo "$as_me: failed program was:" >&5
35510 sed 's/^/| /' conftest.$ac_ext >&5
35512 ac_lo=`expr $ac_mid + 1`
35513 if test $ac_lo -le $ac_mid; then
35517 ac_mid=`expr 2 '*' $ac_mid + 1`
35520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35523 echo "$as_me: failed program was:" >&5
35524 sed 's/^/| /' conftest.$ac_ext >&5
35526 cat >conftest.$ac_ext <<_ACEOF
35529 cat confdefs.h >>conftest.$ac_ext
35530 cat >>conftest.$ac_ext <<_ACEOF
35531 /* end confdefs.h. */
35532 $ac_includes_default
35533 typedef int ac__type_sizeof_;
35537 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35544 rm -f conftest.$ac_objext
35545 if { (ac_try="$ac_compile"
35546 case "(($ac_try" in
35547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35548 *) ac_try_echo=$ac_try;;
35550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35551 (eval "$ac_compile") 2>conftest.er1
35553 grep -v '^ *+' conftest.er1 >conftest.err
35555 cat conftest.err >&5
35556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35557 (exit $ac_status); } && {
35558 test -z "$ac_c_werror_flag" ||
35559 test ! -s conftest.err
35560 } && test -s conftest.$ac_objext; then
35563 cat >conftest.$ac_ext <<_ACEOF
35566 cat confdefs.h >>conftest.$ac_ext
35567 cat >>conftest.$ac_ext <<_ACEOF
35568 /* end confdefs.h. */
35569 $ac_includes_default
35570 typedef int ac__type_sizeof_;
35574 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35581 rm -f conftest.$ac_objext
35582 if { (ac_try="$ac_compile"
35583 case "(($ac_try" in
35584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35585 *) ac_try_echo=$ac_try;;
35587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35588 (eval "$ac_compile") 2>conftest.er1
35590 grep -v '^ *+' conftest.er1 >conftest.err
35592 cat conftest.err >&5
35593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35594 (exit $ac_status); } && {
35595 test -z "$ac_c_werror_flag" ||
35596 test ! -s conftest.err
35597 } && test -s conftest.$ac_objext; then
35598 ac_lo=$ac_mid; break
35600 echo "$as_me: failed program was:" >&5
35601 sed 's/^/| /' conftest.$ac_ext >&5
35603 ac_hi=`expr '(' $ac_mid ')' - 1`
35604 if test $ac_mid -le $ac_hi; then
35608 ac_mid=`expr 2 '*' $ac_mid`
35611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35614 echo "$as_me: failed program was:" >&5
35615 sed 's/^/| /' conftest.$ac_ext >&5
35620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35624 # Binary search between lo and hi bounds.
35625 while test "x$ac_lo" != "x$ac_hi"; do
35626 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35627 cat >conftest.$ac_ext <<_ACEOF
35630 cat confdefs.h >>conftest.$ac_ext
35631 cat >>conftest.$ac_ext <<_ACEOF
35632 /* end confdefs.h. */
35633 $ac_includes_default
35634 typedef int ac__type_sizeof_;
35638 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35645 rm -f conftest.$ac_objext
35646 if { (ac_try="$ac_compile"
35647 case "(($ac_try" in
35648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35649 *) ac_try_echo=$ac_try;;
35651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35652 (eval "$ac_compile") 2>conftest.er1
35654 grep -v '^ *+' conftest.er1 >conftest.err
35656 cat conftest.err >&5
35657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35658 (exit $ac_status); } && {
35659 test -z "$ac_c_werror_flag" ||
35660 test ! -s conftest.err
35661 } && test -s conftest.$ac_objext; then
35664 echo "$as_me: failed program was:" >&5
35665 sed 's/^/| /' conftest.$ac_ext >&5
35667 ac_lo=`expr '(' $ac_mid ')' + 1`
35670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35673 ?*) ac_cv_sizeof_int=$ac_lo;;
35674 '') if test "$ac_cv_type_int" = yes; then
35675 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35676 See \`config.log' for more details." >&5
35677 echo "$as_me: error: cannot compute sizeof (int)
35678 See \`config.log' for more details." >&2;}
35679 { (exit 77); exit 77; }; }
35685 cat >conftest.$ac_ext <<_ACEOF
35688 cat confdefs.h >>conftest.$ac_ext
35689 cat >>conftest.$ac_ext <<_ACEOF
35690 /* end confdefs.h. */
35691 $ac_includes_default
35692 typedef int ac__type_sizeof_;
35693 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35694 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35696 #include <stdlib.h>
35701 FILE *f = fopen ("conftest.val", "w");
35704 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35706 long int i = longval ();
35707 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35709 fprintf (f, "%ld\n", i);
35713 unsigned long int i = ulongval ();
35714 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35716 fprintf (f, "%lu\n", i);
35718 return ferror (f) || fclose (f) != 0;
35724 rm -f conftest$ac_exeext
35725 if { (ac_try="$ac_link"
35726 case "(($ac_try" in
35727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35728 *) ac_try_echo=$ac_try;;
35730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35731 (eval "$ac_link") 2>&5
35733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35735 { (case "(($ac_try" in
35736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35737 *) ac_try_echo=$ac_try;;
35739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35740 (eval "$ac_try") 2>&5
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); }; }; then
35744 ac_cv_sizeof_int=`cat conftest.val`
35746 echo "$as_me: program exited with status $ac_status" >&5
35747 echo "$as_me: failed program was:" >&5
35748 sed 's/^/| /' conftest.$ac_ext >&5
35750 ( exit $ac_status )
35751 if test "$ac_cv_type_int" = yes; then
35752 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
35753 See \`config.log' for more details." >&5
35754 echo "$as_me: error: cannot compute sizeof (int)
35755 See \`config.log' for more details." >&2;}
35756 { (exit 77); exit 77; }; }
35761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35765 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
35766 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
35770 cat >>confdefs.h <<_ACEOF
35771 #define SIZEOF_INT $ac_cv_sizeof_int
35775 { echo "$as_me:$LINENO: checking for long int" >&5
35776 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
35777 if test "${ac_cv_type_long_int+set}" = set; then
35778 echo $ECHO_N "(cached) $ECHO_C" >&6
35780 cat >conftest.$ac_ext <<_ACEOF
35783 cat confdefs.h >>conftest.$ac_ext
35784 cat >>conftest.$ac_ext <<_ACEOF
35785 /* end confdefs.h. */
35786 $ac_includes_default
35787 typedef long int ac__type_new_;
35791 if ((ac__type_new_ *) 0)
35793 if (sizeof (ac__type_new_))
35799 rm -f conftest.$ac_objext
35800 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
35808 grep -v '^ *+' conftest.er1 >conftest.err
35810 cat conftest.err >&5
35811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35812 (exit $ac_status); } && {
35813 test -z "$ac_c_werror_flag" ||
35814 test ! -s conftest.err
35815 } && test -s conftest.$ac_objext; then
35816 ac_cv_type_long_int=yes
35818 echo "$as_me: failed program was:" >&5
35819 sed 's/^/| /' conftest.$ac_ext >&5
35821 ac_cv_type_long_int=no
35824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35826 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
35827 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
35829 # The cast to long int works around a bug in the HP C Compiler
35830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35832 # This bug is HP SR number 8606223364.
35833 { echo "$as_me:$LINENO: checking size of long int" >&5
35834 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
35835 if test "${ac_cv_sizeof_long_int+set}" = set; then
35836 echo $ECHO_N "(cached) $ECHO_C" >&6
35838 if test "$cross_compiling" = yes; then
35839 # Depending upon the size, compute the lo and hi bounds.
35840 cat >conftest.$ac_ext <<_ACEOF
35843 cat confdefs.h >>conftest.$ac_ext
35844 cat >>conftest.$ac_ext <<_ACEOF
35845 /* end confdefs.h. */
35846 $ac_includes_default
35847 typedef long int ac__type_sizeof_;
35851 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35858 rm -f conftest.$ac_objext
35859 if { (ac_try="$ac_compile"
35860 case "(($ac_try" in
35861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35862 *) ac_try_echo=$ac_try;;
35864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35865 (eval "$ac_compile") 2>conftest.er1
35867 grep -v '^ *+' conftest.er1 >conftest.err
35869 cat conftest.err >&5
35870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35871 (exit $ac_status); } && {
35872 test -z "$ac_c_werror_flag" ||
35873 test ! -s conftest.err
35874 } && test -s conftest.$ac_objext; then
35877 cat >conftest.$ac_ext <<_ACEOF
35880 cat confdefs.h >>conftest.$ac_ext
35881 cat >>conftest.$ac_ext <<_ACEOF
35882 /* end confdefs.h. */
35883 $ac_includes_default
35884 typedef long int ac__type_sizeof_;
35888 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35895 rm -f conftest.$ac_objext
35896 if { (ac_try="$ac_compile"
35897 case "(($ac_try" in
35898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35899 *) ac_try_echo=$ac_try;;
35901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35902 (eval "$ac_compile") 2>conftest.er1
35904 grep -v '^ *+' conftest.er1 >conftest.err
35906 cat conftest.err >&5
35907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35908 (exit $ac_status); } && {
35909 test -z "$ac_c_werror_flag" ||
35910 test ! -s conftest.err
35911 } && test -s conftest.$ac_objext; then
35912 ac_hi=$ac_mid; break
35914 echo "$as_me: failed program was:" >&5
35915 sed 's/^/| /' conftest.$ac_ext >&5
35917 ac_lo=`expr $ac_mid + 1`
35918 if test $ac_lo -le $ac_mid; then
35922 ac_mid=`expr 2 '*' $ac_mid + 1`
35925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35928 echo "$as_me: failed program was:" >&5
35929 sed 's/^/| /' conftest.$ac_ext >&5
35931 cat >conftest.$ac_ext <<_ACEOF
35934 cat confdefs.h >>conftest.$ac_ext
35935 cat >>conftest.$ac_ext <<_ACEOF
35936 /* end confdefs.h. */
35937 $ac_includes_default
35938 typedef long int ac__type_sizeof_;
35942 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35949 rm -f conftest.$ac_objext
35950 if { (ac_try="$ac_compile"
35951 case "(($ac_try" in
35952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35953 *) ac_try_echo=$ac_try;;
35955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35956 (eval "$ac_compile") 2>conftest.er1
35958 grep -v '^ *+' conftest.er1 >conftest.err
35960 cat conftest.err >&5
35961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35962 (exit $ac_status); } && {
35963 test -z "$ac_c_werror_flag" ||
35964 test ! -s conftest.err
35965 } && test -s conftest.$ac_objext; then
35968 cat >conftest.$ac_ext <<_ACEOF
35971 cat confdefs.h >>conftest.$ac_ext
35972 cat >>conftest.$ac_ext <<_ACEOF
35973 /* end confdefs.h. */
35974 $ac_includes_default
35975 typedef long int ac__type_sizeof_;
35979 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35986 rm -f conftest.$ac_objext
35987 if { (ac_try="$ac_compile"
35988 case "(($ac_try" in
35989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35990 *) ac_try_echo=$ac_try;;
35992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35993 (eval "$ac_compile") 2>conftest.er1
35995 grep -v '^ *+' conftest.er1 >conftest.err
35997 cat conftest.err >&5
35998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999 (exit $ac_status); } && {
36000 test -z "$ac_c_werror_flag" ||
36001 test ! -s conftest.err
36002 } && test -s conftest.$ac_objext; then
36003 ac_lo=$ac_mid; break
36005 echo "$as_me: failed program was:" >&5
36006 sed 's/^/| /' conftest.$ac_ext >&5
36008 ac_hi=`expr '(' $ac_mid ')' - 1`
36009 if test $ac_mid -le $ac_hi; then
36013 ac_mid=`expr 2 '*' $ac_mid`
36016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36019 echo "$as_me: failed program was:" >&5
36020 sed 's/^/| /' conftest.$ac_ext >&5
36025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36029 # Binary search between lo and hi bounds.
36030 while test "x$ac_lo" != "x$ac_hi"; do
36031 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36032 cat >conftest.$ac_ext <<_ACEOF
36035 cat confdefs.h >>conftest.$ac_ext
36036 cat >>conftest.$ac_ext <<_ACEOF
36037 /* end confdefs.h. */
36038 $ac_includes_default
36039 typedef long int ac__type_sizeof_;
36043 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36050 rm -f conftest.$ac_objext
36051 if { (ac_try="$ac_compile"
36052 case "(($ac_try" in
36053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36054 *) ac_try_echo=$ac_try;;
36056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36057 (eval "$ac_compile") 2>conftest.er1
36059 grep -v '^ *+' conftest.er1 >conftest.err
36061 cat conftest.err >&5
36062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36063 (exit $ac_status); } && {
36064 test -z "$ac_c_werror_flag" ||
36065 test ! -s conftest.err
36066 } && test -s conftest.$ac_objext; then
36069 echo "$as_me: failed program was:" >&5
36070 sed 's/^/| /' conftest.$ac_ext >&5
36072 ac_lo=`expr '(' $ac_mid ')' + 1`
36075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36078 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36079 '') if test "$ac_cv_type_long_int" = yes; then
36080 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36081 See \`config.log' for more details." >&5
36082 echo "$as_me: error: cannot compute sizeof (long int)
36083 See \`config.log' for more details." >&2;}
36084 { (exit 77); exit 77; }; }
36086 ac_cv_sizeof_long_int=0
36090 cat >conftest.$ac_ext <<_ACEOF
36093 cat confdefs.h >>conftest.$ac_ext
36094 cat >>conftest.$ac_ext <<_ACEOF
36095 /* end confdefs.h. */
36096 $ac_includes_default
36097 typedef long int ac__type_sizeof_;
36098 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36099 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36101 #include <stdlib.h>
36106 FILE *f = fopen ("conftest.val", "w");
36109 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36111 long int i = longval ();
36112 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36114 fprintf (f, "%ld\n", i);
36118 unsigned long int i = ulongval ();
36119 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36121 fprintf (f, "%lu\n", i);
36123 return ferror (f) || fclose (f) != 0;
36129 rm -f conftest$ac_exeext
36130 if { (ac_try="$ac_link"
36131 case "(($ac_try" in
36132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36133 *) ac_try_echo=$ac_try;;
36135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36136 (eval "$ac_link") 2>&5
36138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36140 { (case "(($ac_try" in
36141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36142 *) ac_try_echo=$ac_try;;
36144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36145 (eval "$ac_try") 2>&5
36147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36148 (exit $ac_status); }; }; then
36149 ac_cv_sizeof_long_int=`cat conftest.val`
36151 echo "$as_me: program exited with status $ac_status" >&5
36152 echo "$as_me: failed program was:" >&5
36153 sed 's/^/| /' conftest.$ac_ext >&5
36155 ( exit $ac_status )
36156 if test "$ac_cv_type_long_int" = yes; then
36157 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36158 See \`config.log' for more details." >&5
36159 echo "$as_me: error: cannot compute sizeof (long int)
36160 See \`config.log' for more details." >&2;}
36161 { (exit 77); exit 77; }; }
36163 ac_cv_sizeof_long_int=0
36166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36170 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36171 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36175 cat >>confdefs.h <<_ACEOF
36176 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36180 { echo "$as_me:$LINENO: checking for long long int" >&5
36181 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36182 if test "${ac_cv_type_long_long_int+set}" = set; then
36183 echo $ECHO_N "(cached) $ECHO_C" >&6
36185 cat >conftest.$ac_ext <<_ACEOF
36188 cat confdefs.h >>conftest.$ac_ext
36189 cat >>conftest.$ac_ext <<_ACEOF
36190 /* end confdefs.h. */
36191 $ac_includes_default
36192 typedef long long int ac__type_new_;
36196 if ((ac__type_new_ *) 0)
36198 if (sizeof (ac__type_new_))
36204 rm -f conftest.$ac_objext
36205 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
36213 grep -v '^ *+' conftest.er1 >conftest.err
36215 cat conftest.err >&5
36216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36217 (exit $ac_status); } && {
36218 test -z "$ac_c_werror_flag" ||
36219 test ! -s conftest.err
36220 } && test -s conftest.$ac_objext; then
36221 ac_cv_type_long_long_int=yes
36223 echo "$as_me: failed program was:" >&5
36224 sed 's/^/| /' conftest.$ac_ext >&5
36226 ac_cv_type_long_long_int=no
36229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36231 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36232 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36234 # The cast to long int works around a bug in the HP C Compiler
36235 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36236 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36237 # This bug is HP SR number 8606223364.
36238 { echo "$as_me:$LINENO: checking size of long long int" >&5
36239 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36240 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36241 echo $ECHO_N "(cached) $ECHO_C" >&6
36243 if test "$cross_compiling" = yes; then
36244 # Depending upon the size, compute the lo and hi bounds.
36245 cat >conftest.$ac_ext <<_ACEOF
36248 cat confdefs.h >>conftest.$ac_ext
36249 cat >>conftest.$ac_ext <<_ACEOF
36250 /* end confdefs.h. */
36251 $ac_includes_default
36252 typedef long long int ac__type_sizeof_;
36256 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36263 rm -f conftest.$ac_objext
36264 if { (ac_try="$ac_compile"
36265 case "(($ac_try" in
36266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36267 *) ac_try_echo=$ac_try;;
36269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36270 (eval "$ac_compile") 2>conftest.er1
36272 grep -v '^ *+' conftest.er1 >conftest.err
36274 cat conftest.err >&5
36275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36276 (exit $ac_status); } && {
36277 test -z "$ac_c_werror_flag" ||
36278 test ! -s conftest.err
36279 } && test -s conftest.$ac_objext; then
36282 cat >conftest.$ac_ext <<_ACEOF
36285 cat confdefs.h >>conftest.$ac_ext
36286 cat >>conftest.$ac_ext <<_ACEOF
36287 /* end confdefs.h. */
36288 $ac_includes_default
36289 typedef long long int ac__type_sizeof_;
36293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36300 rm -f conftest.$ac_objext
36301 if { (ac_try="$ac_compile"
36302 case "(($ac_try" in
36303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36304 *) ac_try_echo=$ac_try;;
36306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36307 (eval "$ac_compile") 2>conftest.er1
36309 grep -v '^ *+' conftest.er1 >conftest.err
36311 cat conftest.err >&5
36312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313 (exit $ac_status); } && {
36314 test -z "$ac_c_werror_flag" ||
36315 test ! -s conftest.err
36316 } && test -s conftest.$ac_objext; then
36317 ac_hi=$ac_mid; break
36319 echo "$as_me: failed program was:" >&5
36320 sed 's/^/| /' conftest.$ac_ext >&5
36322 ac_lo=`expr $ac_mid + 1`
36323 if test $ac_lo -le $ac_mid; then
36327 ac_mid=`expr 2 '*' $ac_mid + 1`
36330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36333 echo "$as_me: failed program was:" >&5
36334 sed 's/^/| /' conftest.$ac_ext >&5
36336 cat >conftest.$ac_ext <<_ACEOF
36339 cat confdefs.h >>conftest.$ac_ext
36340 cat >>conftest.$ac_ext <<_ACEOF
36341 /* end confdefs.h. */
36342 $ac_includes_default
36343 typedef long long int ac__type_sizeof_;
36347 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36354 rm -f conftest.$ac_objext
36355 if { (ac_try="$ac_compile"
36356 case "(($ac_try" in
36357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36358 *) ac_try_echo=$ac_try;;
36360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36361 (eval "$ac_compile") 2>conftest.er1
36363 grep -v '^ *+' conftest.er1 >conftest.err
36365 cat conftest.err >&5
36366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36367 (exit $ac_status); } && {
36368 test -z "$ac_c_werror_flag" ||
36369 test ! -s conftest.err
36370 } && test -s conftest.$ac_objext; then
36373 cat >conftest.$ac_ext <<_ACEOF
36376 cat confdefs.h >>conftest.$ac_ext
36377 cat >>conftest.$ac_ext <<_ACEOF
36378 /* end confdefs.h. */
36379 $ac_includes_default
36380 typedef long long int ac__type_sizeof_;
36384 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36391 rm -f conftest.$ac_objext
36392 if { (ac_try="$ac_compile"
36393 case "(($ac_try" in
36394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36395 *) ac_try_echo=$ac_try;;
36397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36398 (eval "$ac_compile") 2>conftest.er1
36400 grep -v '^ *+' conftest.er1 >conftest.err
36402 cat conftest.err >&5
36403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404 (exit $ac_status); } && {
36405 test -z "$ac_c_werror_flag" ||
36406 test ! -s conftest.err
36407 } && test -s conftest.$ac_objext; then
36408 ac_lo=$ac_mid; break
36410 echo "$as_me: failed program was:" >&5
36411 sed 's/^/| /' conftest.$ac_ext >&5
36413 ac_hi=`expr '(' $ac_mid ')' - 1`
36414 if test $ac_mid -le $ac_hi; then
36418 ac_mid=`expr 2 '*' $ac_mid`
36421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36424 echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36434 # Binary search between lo and hi bounds.
36435 while test "x$ac_lo" != "x$ac_hi"; do
36436 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36437 cat >conftest.$ac_ext <<_ACEOF
36440 cat confdefs.h >>conftest.$ac_ext
36441 cat >>conftest.$ac_ext <<_ACEOF
36442 /* end confdefs.h. */
36443 $ac_includes_default
36444 typedef long long int ac__type_sizeof_;
36448 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36455 rm -f conftest.$ac_objext
36456 if { (ac_try="$ac_compile"
36457 case "(($ac_try" in
36458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36459 *) ac_try_echo=$ac_try;;
36461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36462 (eval "$ac_compile") 2>conftest.er1
36464 grep -v '^ *+' conftest.er1 >conftest.err
36466 cat conftest.err >&5
36467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468 (exit $ac_status); } && {
36469 test -z "$ac_c_werror_flag" ||
36470 test ! -s conftest.err
36471 } && test -s conftest.$ac_objext; then
36474 echo "$as_me: failed program was:" >&5
36475 sed 's/^/| /' conftest.$ac_ext >&5
36477 ac_lo=`expr '(' $ac_mid ')' + 1`
36480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36483 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36484 '') if test "$ac_cv_type_long_long_int" = yes; then
36485 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36486 See \`config.log' for more details." >&5
36487 echo "$as_me: error: cannot compute sizeof (long long int)
36488 See \`config.log' for more details." >&2;}
36489 { (exit 77); exit 77; }; }
36491 ac_cv_sizeof_long_long_int=0
36495 cat >conftest.$ac_ext <<_ACEOF
36498 cat confdefs.h >>conftest.$ac_ext
36499 cat >>conftest.$ac_ext <<_ACEOF
36500 /* end confdefs.h. */
36501 $ac_includes_default
36502 typedef long long int ac__type_sizeof_;
36503 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36504 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36506 #include <stdlib.h>
36511 FILE *f = fopen ("conftest.val", "w");
36514 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36516 long int i = longval ();
36517 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36519 fprintf (f, "%ld\n", i);
36523 unsigned long int i = ulongval ();
36524 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36526 fprintf (f, "%lu\n", i);
36528 return ferror (f) || fclose (f) != 0;
36534 rm -f conftest$ac_exeext
36535 if { (ac_try="$ac_link"
36536 case "(($ac_try" in
36537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36538 *) ac_try_echo=$ac_try;;
36540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36541 (eval "$ac_link") 2>&5
36543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36545 { (case "(($ac_try" in
36546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36547 *) ac_try_echo=$ac_try;;
36549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36550 (eval "$ac_try") 2>&5
36552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36553 (exit $ac_status); }; }; then
36554 ac_cv_sizeof_long_long_int=`cat conftest.val`
36556 echo "$as_me: program exited with status $ac_status" >&5
36557 echo "$as_me: failed program was:" >&5
36558 sed 's/^/| /' conftest.$ac_ext >&5
36560 ( exit $ac_status )
36561 if test "$ac_cv_type_long_long_int" = yes; then
36562 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36563 See \`config.log' for more details." >&5
36564 echo "$as_me: error: cannot compute sizeof (long long int)
36565 See \`config.log' for more details." >&2;}
36566 { (exit 77); exit 77; }; }
36568 ac_cv_sizeof_long_long_int=0
36571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36575 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36576 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36580 cat >>confdefs.h <<_ACEOF
36581 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36585 { echo "$as_me:$LINENO: checking for int *" >&5
36586 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36587 if test "${ac_cv_type_int_p+set}" = set; then
36588 echo $ECHO_N "(cached) $ECHO_C" >&6
36590 cat >conftest.$ac_ext <<_ACEOF
36593 cat confdefs.h >>conftest.$ac_ext
36594 cat >>conftest.$ac_ext <<_ACEOF
36595 /* end confdefs.h. */
36596 $ac_includes_default
36597 typedef int * ac__type_new_;
36601 if ((ac__type_new_ *) 0)
36603 if (sizeof (ac__type_new_))
36609 rm -f conftest.$ac_objext
36610 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
36618 grep -v '^ *+' conftest.er1 >conftest.err
36620 cat conftest.err >&5
36621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36622 (exit $ac_status); } && {
36623 test -z "$ac_c_werror_flag" ||
36624 test ! -s conftest.err
36625 } && test -s conftest.$ac_objext; then
36626 ac_cv_type_int_p=yes
36628 echo "$as_me: failed program was:" >&5
36629 sed 's/^/| /' conftest.$ac_ext >&5
36631 ac_cv_type_int_p=no
36634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36636 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36637 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36639 # The cast to long int works around a bug in the HP C Compiler
36640 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36641 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36642 # This bug is HP SR number 8606223364.
36643 { echo "$as_me:$LINENO: checking size of int *" >&5
36644 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
36645 if test "${ac_cv_sizeof_int_p+set}" = set; then
36646 echo $ECHO_N "(cached) $ECHO_C" >&6
36648 if test "$cross_compiling" = yes; then
36649 # Depending upon the size, compute the lo and hi bounds.
36650 cat >conftest.$ac_ext <<_ACEOF
36653 cat confdefs.h >>conftest.$ac_ext
36654 cat >>conftest.$ac_ext <<_ACEOF
36655 /* end confdefs.h. */
36656 $ac_includes_default
36657 typedef int * ac__type_sizeof_;
36661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36668 rm -f conftest.$ac_objext
36669 if { (ac_try="$ac_compile"
36670 case "(($ac_try" in
36671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36672 *) ac_try_echo=$ac_try;;
36674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36675 (eval "$ac_compile") 2>conftest.er1
36677 grep -v '^ *+' conftest.er1 >conftest.err
36679 cat conftest.err >&5
36680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36681 (exit $ac_status); } && {
36682 test -z "$ac_c_werror_flag" ||
36683 test ! -s conftest.err
36684 } && test -s conftest.$ac_objext; then
36687 cat >conftest.$ac_ext <<_ACEOF
36690 cat confdefs.h >>conftest.$ac_ext
36691 cat >>conftest.$ac_ext <<_ACEOF
36692 /* end confdefs.h. */
36693 $ac_includes_default
36694 typedef int * ac__type_sizeof_;
36698 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36705 rm -f conftest.$ac_objext
36706 if { (ac_try="$ac_compile"
36707 case "(($ac_try" in
36708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36709 *) ac_try_echo=$ac_try;;
36711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36712 (eval "$ac_compile") 2>conftest.er1
36714 grep -v '^ *+' conftest.er1 >conftest.err
36716 cat conftest.err >&5
36717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36718 (exit $ac_status); } && {
36719 test -z "$ac_c_werror_flag" ||
36720 test ! -s conftest.err
36721 } && test -s conftest.$ac_objext; then
36722 ac_hi=$ac_mid; break
36724 echo "$as_me: failed program was:" >&5
36725 sed 's/^/| /' conftest.$ac_ext >&5
36727 ac_lo=`expr $ac_mid + 1`
36728 if test $ac_lo -le $ac_mid; then
36732 ac_mid=`expr 2 '*' $ac_mid + 1`
36735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36738 echo "$as_me: failed program was:" >&5
36739 sed 's/^/| /' conftest.$ac_ext >&5
36741 cat >conftest.$ac_ext <<_ACEOF
36744 cat confdefs.h >>conftest.$ac_ext
36745 cat >>conftest.$ac_ext <<_ACEOF
36746 /* end confdefs.h. */
36747 $ac_includes_default
36748 typedef int * ac__type_sizeof_;
36752 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36759 rm -f conftest.$ac_objext
36760 if { (ac_try="$ac_compile"
36761 case "(($ac_try" in
36762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36763 *) ac_try_echo=$ac_try;;
36765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36766 (eval "$ac_compile") 2>conftest.er1
36768 grep -v '^ *+' conftest.er1 >conftest.err
36770 cat conftest.err >&5
36771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36772 (exit $ac_status); } && {
36773 test -z "$ac_c_werror_flag" ||
36774 test ! -s conftest.err
36775 } && test -s conftest.$ac_objext; then
36778 cat >conftest.$ac_ext <<_ACEOF
36781 cat confdefs.h >>conftest.$ac_ext
36782 cat >>conftest.$ac_ext <<_ACEOF
36783 /* end confdefs.h. */
36784 $ac_includes_default
36785 typedef int * ac__type_sizeof_;
36789 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36796 rm -f conftest.$ac_objext
36797 if { (ac_try="$ac_compile"
36798 case "(($ac_try" in
36799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36800 *) ac_try_echo=$ac_try;;
36802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36803 (eval "$ac_compile") 2>conftest.er1
36805 grep -v '^ *+' conftest.er1 >conftest.err
36807 cat conftest.err >&5
36808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); } && {
36810 test -z "$ac_c_werror_flag" ||
36811 test ! -s conftest.err
36812 } && test -s conftest.$ac_objext; then
36813 ac_lo=$ac_mid; break
36815 echo "$as_me: failed program was:" >&5
36816 sed 's/^/| /' conftest.$ac_ext >&5
36818 ac_hi=`expr '(' $ac_mid ')' - 1`
36819 if test $ac_mid -le $ac_hi; then
36823 ac_mid=`expr 2 '*' $ac_mid`
36826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36829 echo "$as_me: failed program was:" >&5
36830 sed 's/^/| /' conftest.$ac_ext >&5
36835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36839 # Binary search between lo and hi bounds.
36840 while test "x$ac_lo" != "x$ac_hi"; do
36841 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36842 cat >conftest.$ac_ext <<_ACEOF
36845 cat confdefs.h >>conftest.$ac_ext
36846 cat >>conftest.$ac_ext <<_ACEOF
36847 /* end confdefs.h. */
36848 $ac_includes_default
36849 typedef int * ac__type_sizeof_;
36853 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36860 rm -f conftest.$ac_objext
36861 if { (ac_try="$ac_compile"
36862 case "(($ac_try" in
36863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36864 *) ac_try_echo=$ac_try;;
36866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36867 (eval "$ac_compile") 2>conftest.er1
36869 grep -v '^ *+' conftest.er1 >conftest.err
36871 cat conftest.err >&5
36872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36873 (exit $ac_status); } && {
36874 test -z "$ac_c_werror_flag" ||
36875 test ! -s conftest.err
36876 } && test -s conftest.$ac_objext; then
36879 echo "$as_me: failed program was:" >&5
36880 sed 's/^/| /' conftest.$ac_ext >&5
36882 ac_lo=`expr '(' $ac_mid ')' + 1`
36885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36888 ?*) ac_cv_sizeof_int_p=$ac_lo;;
36889 '') if test "$ac_cv_type_int_p" = yes; then
36890 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36891 See \`config.log' for more details." >&5
36892 echo "$as_me: error: cannot compute sizeof (int *)
36893 See \`config.log' for more details." >&2;}
36894 { (exit 77); exit 77; }; }
36896 ac_cv_sizeof_int_p=0
36900 cat >conftest.$ac_ext <<_ACEOF
36903 cat confdefs.h >>conftest.$ac_ext
36904 cat >>conftest.$ac_ext <<_ACEOF
36905 /* end confdefs.h. */
36906 $ac_includes_default
36907 typedef int * ac__type_sizeof_;
36908 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36909 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36911 #include <stdlib.h>
36916 FILE *f = fopen ("conftest.val", "w");
36919 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36921 long int i = longval ();
36922 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36924 fprintf (f, "%ld\n", i);
36928 unsigned long int i = ulongval ();
36929 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36931 fprintf (f, "%lu\n", i);
36933 return ferror (f) || fclose (f) != 0;
36939 rm -f conftest$ac_exeext
36940 if { (ac_try="$ac_link"
36941 case "(($ac_try" in
36942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36943 *) ac_try_echo=$ac_try;;
36945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36946 (eval "$ac_link") 2>&5
36948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36949 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36950 { (case "(($ac_try" in
36951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36952 *) ac_try_echo=$ac_try;;
36954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36955 (eval "$ac_try") 2>&5
36957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36958 (exit $ac_status); }; }; then
36959 ac_cv_sizeof_int_p=`cat conftest.val`
36961 echo "$as_me: program exited with status $ac_status" >&5
36962 echo "$as_me: failed program was:" >&5
36963 sed 's/^/| /' conftest.$ac_ext >&5
36965 ( exit $ac_status )
36966 if test "$ac_cv_type_int_p" = yes; then
36967 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
36968 See \`config.log' for more details." >&5
36969 echo "$as_me: error: cannot compute sizeof (int *)
36970 See \`config.log' for more details." >&2;}
36971 { (exit 77); exit 77; }; }
36973 ac_cv_sizeof_int_p=0
36976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36980 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
36981 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
36985 cat >>confdefs.h <<_ACEOF
36986 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
36991 { echo "$as_me:$LINENO: checking for u_int type" >&5
36992 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
36993 if test "${ac_cv_have_u_int+set}" = set; then
36994 echo $ECHO_N "(cached) $ECHO_C" >&6
36997 cat >conftest.$ac_ext <<_ACEOF
37000 cat confdefs.h >>conftest.$ac_ext
37001 cat >>conftest.$ac_ext <<_ACEOF
37002 /* end confdefs.h. */
37004 #include <sys/types.h>
37016 rm -f conftest.$ac_objext
37017 if { (ac_try="$ac_compile"
37018 case "(($ac_try" in
37019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37020 *) ac_try_echo=$ac_try;;
37022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37023 (eval "$ac_compile") 2>conftest.er1
37025 grep -v '^ *+' conftest.er1 >conftest.err
37027 cat conftest.err >&5
37028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37029 (exit $ac_status); } && {
37030 test -z "$ac_c_werror_flag" ||
37031 test ! -s conftest.err
37032 } && test -s conftest.$ac_objext; then
37034 ac_cv_have_u_int="yes"
37037 echo "$as_me: failed program was:" >&5
37038 sed 's/^/| /' conftest.$ac_ext >&5
37041 ac_cv_have_u_int="no"
37046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37050 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37051 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37052 if test "x$ac_cv_have_u_int" = "xyes" ; then
37053 cat >>confdefs.h <<\_ACEOF
37054 #define HAVE_U_INT 1
37060 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37061 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37062 if test "${ac_cv_have_intmax_t+set}" = set; then
37063 echo $ECHO_N "(cached) $ECHO_C" >&6
37066 cat >conftest.$ac_ext <<_ACEOF
37069 cat confdefs.h >>conftest.$ac_ext
37070 cat >>conftest.$ac_ext <<_ACEOF
37071 /* end confdefs.h. */
37073 #include <sys/types.h>
37085 rm -f conftest.$ac_objext
37086 if { (ac_try="$ac_compile"
37087 case "(($ac_try" in
37088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37089 *) ac_try_echo=$ac_try;;
37091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37092 (eval "$ac_compile") 2>conftest.er1
37094 grep -v '^ *+' conftest.er1 >conftest.err
37096 cat conftest.err >&5
37097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098 (exit $ac_status); } && {
37099 test -z "$ac_c_werror_flag" ||
37100 test ! -s conftest.err
37101 } && test -s conftest.$ac_objext; then
37103 ac_cv_have_intmax_t="yes"
37106 echo "$as_me: failed program was:" >&5
37107 sed 's/^/| /' conftest.$ac_ext >&5
37110 cat >conftest.$ac_ext <<_ACEOF
37113 cat confdefs.h >>conftest.$ac_ext
37114 cat >>conftest.$ac_ext <<_ACEOF
37115 /* end confdefs.h. */
37117 #include <stdint.h>
37129 rm -f conftest.$ac_objext
37130 if { (ac_try="$ac_compile"
37131 case "(($ac_try" in
37132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37133 *) ac_try_echo=$ac_try;;
37135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37136 (eval "$ac_compile") 2>conftest.er1
37138 grep -v '^ *+' conftest.er1 >conftest.err
37140 cat conftest.err >&5
37141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142 (exit $ac_status); } && {
37143 test -z "$ac_c_werror_flag" ||
37144 test ! -s conftest.err
37145 } && test -s conftest.$ac_objext; then
37147 ac_cv_have_intmax_t="yes"
37150 echo "$as_me: failed program was:" >&5
37151 sed 's/^/| /' conftest.$ac_ext >&5
37154 ac_cv_have_intmax_t="no"
37159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37168 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37169 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37170 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37171 cat >>confdefs.h <<\_ACEOF
37172 #define HAVE_INTMAX_T 1
37178 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37179 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37180 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37181 echo $ECHO_N "(cached) $ECHO_C" >&6
37184 cat >conftest.$ac_ext <<_ACEOF
37187 cat confdefs.h >>conftest.$ac_ext
37188 cat >>conftest.$ac_ext <<_ACEOF
37189 /* end confdefs.h. */
37191 #include <sys/types.h>
37197 u_intmax_t a; a = 1;
37203 rm -f conftest.$ac_objext
37204 if { (ac_try="$ac_compile"
37205 case "(($ac_try" in
37206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37207 *) ac_try_echo=$ac_try;;
37209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37210 (eval "$ac_compile") 2>conftest.er1
37212 grep -v '^ *+' conftest.er1 >conftest.err
37214 cat conftest.err >&5
37215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37216 (exit $ac_status); } && {
37217 test -z "$ac_c_werror_flag" ||
37218 test ! -s conftest.err
37219 } && test -s conftest.$ac_objext; then
37221 ac_cv_have_u_intmax_t="yes"
37224 echo "$as_me: failed program was:" >&5
37225 sed 's/^/| /' conftest.$ac_ext >&5
37228 cat >conftest.$ac_ext <<_ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h. */
37235 #include <stdint.h>
37241 u_intmax_t a; a = 1;
37247 rm -f conftest.$ac_objext
37248 if { (ac_try="$ac_compile"
37249 case "(($ac_try" in
37250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37251 *) ac_try_echo=$ac_try;;
37253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37254 (eval "$ac_compile") 2>conftest.er1
37256 grep -v '^ *+' conftest.er1 >conftest.err
37258 cat conftest.err >&5
37259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37260 (exit $ac_status); } && {
37261 test -z "$ac_c_werror_flag" ||
37262 test ! -s conftest.err
37263 } && test -s conftest.$ac_objext; then
37265 ac_cv_have_u_intmax_t="yes"
37268 echo "$as_me: failed program was:" >&5
37269 sed 's/^/| /' conftest.$ac_ext >&5
37272 ac_cv_have_u_intmax_t="no"
37277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37286 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37287 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37288 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37289 cat >>confdefs.h <<\_ACEOF
37290 #define HAVE_U_INTMAX_T 1
37296 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37297 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37298 if test "${ac_cv_have_intxx_t+set}" = set; then
37299 echo $ECHO_N "(cached) $ECHO_C" >&6
37302 cat >conftest.$ac_ext <<_ACEOF
37305 cat confdefs.h >>conftest.$ac_ext
37306 cat >>conftest.$ac_ext <<_ACEOF
37307 /* end confdefs.h. */
37309 #include <sys/types.h>
37315 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37321 rm -f conftest.$ac_objext
37322 if { (ac_try="$ac_compile"
37323 case "(($ac_try" in
37324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37325 *) ac_try_echo=$ac_try;;
37327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37328 (eval "$ac_compile") 2>conftest.er1
37330 grep -v '^ *+' conftest.er1 >conftest.err
37332 cat conftest.err >&5
37333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37334 (exit $ac_status); } && {
37335 test -z "$ac_c_werror_flag" ||
37336 test ! -s conftest.err
37337 } && test -s conftest.$ac_objext; then
37339 ac_cv_have_intxx_t="yes"
37342 echo "$as_me: failed program was:" >&5
37343 sed 's/^/| /' conftest.$ac_ext >&5
37346 ac_cv_have_intxx_t="no"
37351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37355 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37356 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37357 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37358 cat >>confdefs.h <<\_ACEOF
37359 #define HAVE_INTXX_T 1
37365 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37366 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37367 if test "${ac_cv_have_int64_t+set}" = set; then
37368 echo $ECHO_N "(cached) $ECHO_C" >&6
37371 cat >conftest.$ac_ext <<_ACEOF
37374 cat confdefs.h >>conftest.$ac_ext
37375 cat >>conftest.$ac_ext <<_ACEOF
37376 /* end confdefs.h. */
37378 #include <sys/types.h>
37390 rm -f conftest.$ac_objext
37391 if { (ac_try="$ac_compile"
37392 case "(($ac_try" in
37393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37394 *) ac_try_echo=$ac_try;;
37396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37397 (eval "$ac_compile") 2>conftest.er1
37399 grep -v '^ *+' conftest.er1 >conftest.err
37401 cat conftest.err >&5
37402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37403 (exit $ac_status); } && {
37404 test -z "$ac_c_werror_flag" ||
37405 test ! -s conftest.err
37406 } && test -s conftest.$ac_objext; then
37408 ac_cv_have_int64_t="yes"
37411 echo "$as_me: failed program was:" >&5
37412 sed 's/^/| /' conftest.$ac_ext >&5
37415 ac_cv_have_int64_t="no"
37420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37424 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37425 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37426 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37427 cat >>confdefs.h <<\_ACEOF
37428 #define HAVE_INT64_T 1
37434 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37435 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37436 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37437 echo $ECHO_N "(cached) $ECHO_C" >&6
37440 cat >conftest.$ac_ext <<_ACEOF
37443 cat confdefs.h >>conftest.$ac_ext
37444 cat >>conftest.$ac_ext <<_ACEOF
37445 /* end confdefs.h. */
37447 #include <sys/types.h>
37453 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37459 rm -f conftest.$ac_objext
37460 if { (ac_try="$ac_compile"
37461 case "(($ac_try" in
37462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37463 *) ac_try_echo=$ac_try;;
37465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37466 (eval "$ac_compile") 2>conftest.er1
37468 grep -v '^ *+' conftest.er1 >conftest.err
37470 cat conftest.err >&5
37471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37472 (exit $ac_status); } && {
37473 test -z "$ac_c_werror_flag" ||
37474 test ! -s conftest.err
37475 } && test -s conftest.$ac_objext; then
37477 ac_cv_have_u_intxx_t="yes"
37480 echo "$as_me: failed program was:" >&5
37481 sed 's/^/| /' conftest.$ac_ext >&5
37484 ac_cv_have_u_intxx_t="no"
37489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37493 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37494 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37495 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37496 cat >>confdefs.h <<\_ACEOF
37497 #define HAVE_U_INTXX_T 1
37503 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37504 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37505 if test "${ac_cv_have_u_int64_t+set}" = set; then
37506 echo $ECHO_N "(cached) $ECHO_C" >&6
37509 cat >conftest.$ac_ext <<_ACEOF
37512 cat confdefs.h >>conftest.$ac_ext
37513 cat >>conftest.$ac_ext <<_ACEOF
37514 /* end confdefs.h. */
37516 #include <sys/types.h>
37522 u_int64_t a; a = 1;
37528 rm -f conftest.$ac_objext
37529 if { (ac_try="$ac_compile"
37530 case "(($ac_try" in
37531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37532 *) ac_try_echo=$ac_try;;
37534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37535 (eval "$ac_compile") 2>conftest.er1
37537 grep -v '^ *+' conftest.er1 >conftest.err
37539 cat conftest.err >&5
37540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541 (exit $ac_status); } && {
37542 test -z "$ac_c_werror_flag" ||
37543 test ! -s conftest.err
37544 } && test -s conftest.$ac_objext; then
37546 ac_cv_have_u_int64_t="yes"
37549 echo "$as_me: failed program was:" >&5
37550 sed 's/^/| /' conftest.$ac_ext >&5
37553 ac_cv_have_u_int64_t="no"
37558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37562 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37563 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37564 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37565 cat >>confdefs.h <<\_ACEOF
37566 #define HAVE_U_INT64_T 1
37572 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37573 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37575 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37576 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37577 cat >conftest.$ac_ext <<_ACEOF
37580 cat confdefs.h >>conftest.$ac_ext
37581 cat >>conftest.$ac_ext <<_ACEOF
37582 /* end confdefs.h. */
37584 #include <sys/bitypes.h>
37590 int8_t a; int16_t b; int32_t c;
37591 u_int8_t e; u_int16_t f; u_int32_t g;
37592 a = b = c = e = f = g = 1;
37598 rm -f conftest.$ac_objext
37599 if { (ac_try="$ac_compile"
37600 case "(($ac_try" in
37601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37602 *) ac_try_echo=$ac_try;;
37604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37605 (eval "$ac_compile") 2>conftest.er1
37607 grep -v '^ *+' conftest.er1 >conftest.err
37609 cat conftest.err >&5
37610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37611 (exit $ac_status); } && {
37612 test -z "$ac_c_werror_flag" ||
37613 test ! -s conftest.err
37614 } && test -s conftest.$ac_objext; then
37616 cat >>confdefs.h <<\_ACEOF
37617 #define HAVE_U_INTXX_T 1
37620 cat >>confdefs.h <<\_ACEOF
37621 #define HAVE_INTXX_T 1
37624 cat >>confdefs.h <<\_ACEOF
37625 #define HAVE_SYS_BITYPES_H 1
37628 { echo "$as_me:$LINENO: result: yes" >&5
37629 echo "${ECHO_T}yes" >&6; }
37632 echo "$as_me: failed program was:" >&5
37633 sed 's/^/| /' conftest.$ac_ext >&5
37636 { echo "$as_me:$LINENO: result: no" >&5
37637 echo "${ECHO_T}no" >&6; }
37642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37645 if test -z "$have_u_intxx_t" ; then
37646 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
37647 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
37648 if test "${ac_cv_have_uintxx_t+set}" = set; then
37649 echo $ECHO_N "(cached) $ECHO_C" >&6
37652 cat >conftest.$ac_ext <<_ACEOF
37655 cat confdefs.h >>conftest.$ac_ext
37656 cat >>conftest.$ac_ext <<_ACEOF
37657 /* end confdefs.h. */
37659 #include <sys/types.h>
37665 uint8_t a; uint16_t b;
37666 uint32_t c; a = b = c = 1;
37672 rm -f conftest.$ac_objext
37673 if { (ac_try="$ac_compile"
37674 case "(($ac_try" in
37675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37676 *) ac_try_echo=$ac_try;;
37678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37679 (eval "$ac_compile") 2>conftest.er1
37681 grep -v '^ *+' conftest.er1 >conftest.err
37683 cat conftest.err >&5
37684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685 (exit $ac_status); } && {
37686 test -z "$ac_c_werror_flag" ||
37687 test ! -s conftest.err
37688 } && test -s conftest.$ac_objext; then
37690 ac_cv_have_uintxx_t="yes"
37693 echo "$as_me: failed program was:" >&5
37694 sed 's/^/| /' conftest.$ac_ext >&5
37697 ac_cv_have_uintxx_t="no"
37702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37706 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
37707 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
37708 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
37709 cat >>confdefs.h <<\_ACEOF
37710 #define HAVE_UINTXX_T 1
37716 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
37717 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37719 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
37720 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
37721 cat >conftest.$ac_ext <<_ACEOF
37724 cat confdefs.h >>conftest.$ac_ext
37725 cat >>conftest.$ac_ext <<_ACEOF
37726 /* end confdefs.h. */
37728 #include <sys/bitypes.h>
37734 int64_t a; u_int64_t b;
37741 rm -f conftest.$ac_objext
37742 if { (ac_try="$ac_compile"
37743 case "(($ac_try" in
37744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37745 *) ac_try_echo=$ac_try;;
37747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37748 (eval "$ac_compile") 2>conftest.er1
37750 grep -v '^ *+' conftest.er1 >conftest.err
37752 cat conftest.err >&5
37753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37754 (exit $ac_status); } && {
37755 test -z "$ac_c_werror_flag" ||
37756 test ! -s conftest.err
37757 } && test -s conftest.$ac_objext; then
37759 cat >>confdefs.h <<\_ACEOF
37760 #define HAVE_U_INT64_T 1
37763 cat >>confdefs.h <<\_ACEOF
37764 #define HAVE_INT64_T 1
37767 { echo "$as_me:$LINENO: result: yes" >&5
37768 echo "${ECHO_T}yes" >&6; }
37771 echo "$as_me: failed program was:" >&5
37772 sed 's/^/| /' conftest.$ac_ext >&5
37775 { echo "$as_me:$LINENO: result: no" >&5
37776 echo "${ECHO_T}no" >&6; }
37781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37784 if (test -z "$have_uintxx_t" && \
37785 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37787 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
37788 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37789 cat >conftest.$ac_ext <<_ACEOF
37792 cat confdefs.h >>conftest.$ac_ext
37793 cat >>conftest.$ac_ext <<_ACEOF
37794 /* end confdefs.h. */
37796 #include <sys/bitypes.h>
37802 uint8_t a; uint16_t b;
37803 uint32_t c; a = b = c = 1;
37809 rm -f conftest.$ac_objext
37810 if { (ac_try="$ac_compile"
37811 case "(($ac_try" in
37812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37813 *) ac_try_echo=$ac_try;;
37815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37816 (eval "$ac_compile") 2>conftest.er1
37818 grep -v '^ *+' conftest.er1 >conftest.err
37820 cat conftest.err >&5
37821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37822 (exit $ac_status); } && {
37823 test -z "$ac_c_werror_flag" ||
37824 test ! -s conftest.err
37825 } && test -s conftest.$ac_objext; then
37827 cat >>confdefs.h <<\_ACEOF
37828 #define HAVE_UINTXX_T 1
37831 { echo "$as_me:$LINENO: result: yes" >&5
37832 echo "${ECHO_T}yes" >&6; }
37835 echo "$as_me: failed program was:" >&5
37836 sed 's/^/| /' conftest.$ac_ext >&5
37839 { echo "$as_me:$LINENO: result: no" >&5
37840 echo "${ECHO_T}no" >&6; }
37845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37877 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37878 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37879 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37880 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37881 echo $ECHO_N "(cached) $ECHO_C" >&6
37883 cat >conftest.$ac_ext <<_ACEOF
37886 cat confdefs.h >>conftest.$ac_ext
37887 cat >>conftest.$ac_ext <<_ACEOF
37888 /* end confdefs.h. */
37889 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37891 #define $ac_func innocuous_$ac_func
37893 /* System header to define __stub macros and hopefully few prototypes,
37894 which can conflict with char $ac_func (); below.
37895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37896 <limits.h> exists even on freestanding compilers. */
37899 # include <limits.h>
37901 # include <assert.h>
37906 /* Override any GCC internal prototype to avoid an error.
37907 Use char because int might match the return type of a GCC
37908 builtin and then its argument prototype would still apply. */
37913 /* The GNU C library defines this for functions which it implements
37914 to always fail with ENOSYS. Some functions are actually named
37915 something starting with __ and the normal name is an alias. */
37916 #if defined __stub_$ac_func || defined __stub___$ac_func
37923 return $ac_func ();
37928 rm -f conftest.$ac_objext conftest$ac_exeext
37929 if { (ac_try="$ac_link"
37930 case "(($ac_try" in
37931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37932 *) ac_try_echo=$ac_try;;
37934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37935 (eval "$ac_link") 2>conftest.er1
37937 grep -v '^ *+' conftest.er1 >conftest.err
37939 cat conftest.err >&5
37940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37941 (exit $ac_status); } && {
37942 test -z "$ac_c_werror_flag" ||
37943 test ! -s conftest.err
37944 } && test -s conftest$ac_exeext &&
37945 $as_test_x conftest$ac_exeext; then
37946 eval "$as_ac_var=yes"
37948 echo "$as_me: failed program was:" >&5
37949 sed 's/^/| /' conftest.$ac_ext >&5
37951 eval "$as_ac_var=no"
37954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37955 conftest$ac_exeext conftest.$ac_ext
37957 ac_res=`eval echo '${'$as_ac_var'}'`
37958 { echo "$as_me:$LINENO: result: $ac_res" >&5
37959 echo "${ECHO_T}$ac_res" >&6; }
37960 if test `eval echo '${'$as_ac_var'}'` = yes; then
37961 cat >>confdefs.h <<_ACEOF
37962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37966 echo 'configure: cannot find needed function.'; exit 1
37973 for ac_func in fchdir
37975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37979 echo $ECHO_N "(cached) $ECHO_C" >&6
37981 cat >conftest.$ac_ext <<_ACEOF
37984 cat confdefs.h >>conftest.$ac_ext
37985 cat >>conftest.$ac_ext <<_ACEOF
37986 /* end confdefs.h. */
37987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37989 #define $ac_func innocuous_$ac_func
37991 /* System header to define __stub macros and hopefully few prototypes,
37992 which can conflict with char $ac_func (); below.
37993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37994 <limits.h> exists even on freestanding compilers. */
37997 # include <limits.h>
37999 # include <assert.h>
38004 /* Override any GCC internal prototype to avoid an error.
38005 Use char because int might match the return type of a GCC
38006 builtin and then its argument prototype would still apply. */
38011 /* The GNU C library defines this for functions which it implements
38012 to always fail with ENOSYS. Some functions are actually named
38013 something starting with __ and the normal name is an alias. */
38014 #if defined __stub_$ac_func || defined __stub___$ac_func
38021 return $ac_func ();
38026 rm -f conftest.$ac_objext conftest$ac_exeext
38027 if { (ac_try="$ac_link"
38028 case "(($ac_try" in
38029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38030 *) ac_try_echo=$ac_try;;
38032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38033 (eval "$ac_link") 2>conftest.er1
38035 grep -v '^ *+' conftest.er1 >conftest.err
38037 cat conftest.err >&5
38038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38039 (exit $ac_status); } && {
38040 test -z "$ac_c_werror_flag" ||
38041 test ! -s conftest.err
38042 } && test -s conftest$ac_exeext &&
38043 $as_test_x conftest$ac_exeext; then
38044 eval "$as_ac_var=yes"
38046 echo "$as_me: failed program was:" >&5
38047 sed 's/^/| /' conftest.$ac_ext >&5
38049 eval "$as_ac_var=no"
38052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38053 conftest$ac_exeext conftest.$ac_ext
38055 ac_res=`eval echo '${'$as_ac_var'}'`
38056 { echo "$as_me:$LINENO: result: $ac_res" >&5
38057 echo "${ECHO_T}$ac_res" >&6; }
38058 if test `eval echo '${'$as_ac_var'}'` = yes; then
38059 cat >>confdefs.h <<_ACEOF
38060 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38062 cat >>confdefs.h <<\_ACEOF
38063 #define HAVE_FCHDIR 1
38070 for ac_func in strtoll
38072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38076 echo $ECHO_N "(cached) $ECHO_C" >&6
38078 cat >conftest.$ac_ext <<_ACEOF
38081 cat confdefs.h >>conftest.$ac_ext
38082 cat >>conftest.$ac_ext <<_ACEOF
38083 /* end confdefs.h. */
38084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38086 #define $ac_func innocuous_$ac_func
38088 /* System header to define __stub macros and hopefully few prototypes,
38089 which can conflict with char $ac_func (); below.
38090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38091 <limits.h> exists even on freestanding compilers. */
38094 # include <limits.h>
38096 # include <assert.h>
38101 /* Override any GCC internal prototype to avoid an error.
38102 Use char because int might match the return type of a GCC
38103 builtin and then its argument prototype would still apply. */
38108 /* The GNU C library defines this for functions which it implements
38109 to always fail with ENOSYS. Some functions are actually named
38110 something starting with __ and the normal name is an alias. */
38111 #if defined __stub_$ac_func || defined __stub___$ac_func
38118 return $ac_func ();
38123 rm -f conftest.$ac_objext conftest$ac_exeext
38124 if { (ac_try="$ac_link"
38125 case "(($ac_try" in
38126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38127 *) ac_try_echo=$ac_try;;
38129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38130 (eval "$ac_link") 2>conftest.er1
38132 grep -v '^ *+' conftest.er1 >conftest.err
38134 cat conftest.err >&5
38135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38136 (exit $ac_status); } && {
38137 test -z "$ac_c_werror_flag" ||
38138 test ! -s conftest.err
38139 } && test -s conftest$ac_exeext &&
38140 $as_test_x conftest$ac_exeext; then
38141 eval "$as_ac_var=yes"
38143 echo "$as_me: failed program was:" >&5
38144 sed 's/^/| /' conftest.$ac_ext >&5
38146 eval "$as_ac_var=no"
38149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38150 conftest$ac_exeext conftest.$ac_ext
38152 ac_res=`eval echo '${'$as_ac_var'}'`
38153 { echo "$as_me:$LINENO: result: $ac_res" >&5
38154 echo "${ECHO_T}$ac_res" >&6; }
38155 if test `eval echo '${'$as_ac_var'}'` = yes; then
38156 cat >>confdefs.h <<_ACEOF
38157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38159 cat >>confdefs.h <<\_ACEOF
38160 #define HAVE_STRTOLL 1
38167 for ac_func in posix_fadvise
38169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38173 echo $ECHO_N "(cached) $ECHO_C" >&6
38175 cat >conftest.$ac_ext <<_ACEOF
38178 cat confdefs.h >>conftest.$ac_ext
38179 cat >>conftest.$ac_ext <<_ACEOF
38180 /* end confdefs.h. */
38181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38183 #define $ac_func innocuous_$ac_func
38185 /* System header to define __stub macros and hopefully few prototypes,
38186 which can conflict with char $ac_func (); below.
38187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38188 <limits.h> exists even on freestanding compilers. */
38191 # include <limits.h>
38193 # include <assert.h>
38198 /* Override any GCC internal prototype to avoid an error.
38199 Use char because int might match the return type of a GCC
38200 builtin and then its argument prototype would still apply. */
38205 /* The GNU C library defines this for functions which it implements
38206 to always fail with ENOSYS. Some functions are actually named
38207 something starting with __ and the normal name is an alias. */
38208 #if defined __stub_$ac_func || defined __stub___$ac_func
38215 return $ac_func ();
38220 rm -f conftest.$ac_objext conftest$ac_exeext
38221 if { (ac_try="$ac_link"
38222 case "(($ac_try" in
38223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38224 *) ac_try_echo=$ac_try;;
38226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38227 (eval "$ac_link") 2>conftest.er1
38229 grep -v '^ *+' conftest.er1 >conftest.err
38231 cat conftest.err >&5
38232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38233 (exit $ac_status); } && {
38234 test -z "$ac_c_werror_flag" ||
38235 test ! -s conftest.err
38236 } && test -s conftest$ac_exeext &&
38237 $as_test_x conftest$ac_exeext; then
38238 eval "$as_ac_var=yes"
38240 echo "$as_me: failed program was:" >&5
38241 sed 's/^/| /' conftest.$ac_ext >&5
38243 eval "$as_ac_var=no"
38246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38247 conftest$ac_exeext conftest.$ac_ext
38249 ac_res=`eval echo '${'$as_ac_var'}'`
38250 { echo "$as_me:$LINENO: result: $ac_res" >&5
38251 echo "${ECHO_T}$ac_res" >&6; }
38252 if test `eval echo '${'$as_ac_var'}'` = yes; then
38253 cat >>confdefs.h <<_ACEOF
38254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38261 for ac_func in fdatasync
38263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38267 echo $ECHO_N "(cached) $ECHO_C" >&6
38269 cat >conftest.$ac_ext <<_ACEOF
38272 cat confdefs.h >>conftest.$ac_ext
38273 cat >>conftest.$ac_ext <<_ACEOF
38274 /* end confdefs.h. */
38275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38277 #define $ac_func innocuous_$ac_func
38279 /* System header to define __stub macros and hopefully few prototypes,
38280 which can conflict with char $ac_func (); below.
38281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38282 <limits.h> exists even on freestanding compilers. */
38285 # include <limits.h>
38287 # include <assert.h>
38292 /* Override any GCC internal prototype to avoid an error.
38293 Use char because int might match the return type of a GCC
38294 builtin and then its argument prototype would still apply. */
38299 /* The GNU C library defines this for functions which it implements
38300 to always fail with ENOSYS. Some functions are actually named
38301 something starting with __ and the normal name is an alias. */
38302 #if defined __stub_$ac_func || defined __stub___$ac_func
38309 return $ac_func ();
38314 rm -f conftest.$ac_objext conftest$ac_exeext
38315 if { (ac_try="$ac_link"
38316 case "(($ac_try" in
38317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38318 *) ac_try_echo=$ac_try;;
38320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38321 (eval "$ac_link") 2>conftest.er1
38323 grep -v '^ *+' conftest.er1 >conftest.err
38325 cat conftest.err >&5
38326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38327 (exit $ac_status); } && {
38328 test -z "$ac_c_werror_flag" ||
38329 test ! -s conftest.err
38330 } && test -s conftest$ac_exeext &&
38331 $as_test_x conftest$ac_exeext; then
38332 eval "$as_ac_var=yes"
38334 echo "$as_me: failed program was:" >&5
38335 sed 's/^/| /' conftest.$ac_ext >&5
38337 eval "$as_ac_var=no"
38340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38341 conftest$ac_exeext conftest.$ac_ext
38343 ac_res=`eval echo '${'$as_ac_var'}'`
38344 { echo "$as_me:$LINENO: result: $ac_res" >&5
38345 echo "${ECHO_T}$ac_res" >&6; }
38346 if test `eval echo '${'$as_ac_var'}'` = yes; then
38347 cat >>confdefs.h <<_ACEOF
38348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38356 for ac_func in chflags
38358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38362 echo $ECHO_N "(cached) $ECHO_C" >&6
38364 cat >conftest.$ac_ext <<_ACEOF
38367 cat confdefs.h >>conftest.$ac_ext
38368 cat >>conftest.$ac_ext <<_ACEOF
38369 /* end confdefs.h. */
38370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38372 #define $ac_func innocuous_$ac_func
38374 /* System header to define __stub macros and hopefully few prototypes,
38375 which can conflict with char $ac_func (); below.
38376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38377 <limits.h> exists even on freestanding compilers. */
38380 # include <limits.h>
38382 # include <assert.h>
38387 /* Override any GCC internal prototype to avoid an error.
38388 Use char because int might match the return type of a GCC
38389 builtin and then its argument prototype would still apply. */
38394 /* The GNU C library defines this for functions which it implements
38395 to always fail with ENOSYS. Some functions are actually named
38396 something starting with __ and the normal name is an alias. */
38397 #if defined __stub_$ac_func || defined __stub___$ac_func
38404 return $ac_func ();
38409 rm -f conftest.$ac_objext conftest$ac_exeext
38410 if { (ac_try="$ac_link"
38411 case "(($ac_try" in
38412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38413 *) ac_try_echo=$ac_try;;
38415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38416 (eval "$ac_link") 2>conftest.er1
38418 grep -v '^ *+' conftest.er1 >conftest.err
38420 cat conftest.err >&5
38421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38422 (exit $ac_status); } && {
38423 test -z "$ac_c_werror_flag" ||
38424 test ! -s conftest.err
38425 } && test -s conftest$ac_exeext &&
38426 $as_test_x conftest$ac_exeext; then
38427 eval "$as_ac_var=yes"
38429 echo "$as_me: failed program was:" >&5
38430 sed 's/^/| /' conftest.$ac_ext >&5
38432 eval "$as_ac_var=no"
38435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38436 conftest$ac_exeext conftest.$ac_ext
38438 ac_res=`eval echo '${'$as_ac_var'}'`
38439 { echo "$as_me:$LINENO: result: $ac_res" >&5
38440 echo "${ECHO_T}$ac_res" >&6; }
38441 if test `eval echo '${'$as_ac_var'}'` = yes; then
38442 cat >>confdefs.h <<_ACEOF
38443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38454 for ac_func in snprintf vsnprintf gethostid fseeko
38456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38460 echo $ECHO_N "(cached) $ECHO_C" >&6
38462 cat >conftest.$ac_ext <<_ACEOF
38465 cat confdefs.h >>conftest.$ac_ext
38466 cat >>conftest.$ac_ext <<_ACEOF
38467 /* end confdefs.h. */
38468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38470 #define $ac_func innocuous_$ac_func
38472 /* System header to define __stub macros and hopefully few prototypes,
38473 which can conflict with char $ac_func (); below.
38474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38475 <limits.h> exists even on freestanding compilers. */
38478 # include <limits.h>
38480 # include <assert.h>
38485 /* Override any GCC internal prototype to avoid an error.
38486 Use char because int might match the return type of a GCC
38487 builtin and then its argument prototype would still apply. */
38492 /* The GNU C library defines this for functions which it implements
38493 to always fail with ENOSYS. Some functions are actually named
38494 something starting with __ and the normal name is an alias. */
38495 #if defined __stub_$ac_func || defined __stub___$ac_func
38502 return $ac_func ();
38507 rm -f conftest.$ac_objext conftest$ac_exeext
38508 if { (ac_try="$ac_link"
38509 case "(($ac_try" in
38510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38511 *) ac_try_echo=$ac_try;;
38513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38514 (eval "$ac_link") 2>conftest.er1
38516 grep -v '^ *+' conftest.er1 >conftest.err
38518 cat conftest.err >&5
38519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38520 (exit $ac_status); } && {
38521 test -z "$ac_c_werror_flag" ||
38522 test ! -s conftest.err
38523 } && test -s conftest$ac_exeext &&
38524 $as_test_x conftest$ac_exeext; then
38525 eval "$as_ac_var=yes"
38527 echo "$as_me: failed program was:" >&5
38528 sed 's/^/| /' conftest.$ac_ext >&5
38530 eval "$as_ac_var=no"
38533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38534 conftest$ac_exeext conftest.$ac_ext
38536 ac_res=`eval echo '${'$as_ac_var'}'`
38537 { echo "$as_me:$LINENO: result: $ac_res" >&5
38538 echo "${ECHO_T}$ac_res" >&6; }
38539 if test `eval echo '${'$as_ac_var'}'` = yes; then
38540 cat >>confdefs.h <<_ACEOF
38541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38548 { echo "$as_me:$LINENO: checking for va_copy" >&5
38549 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38550 if test "${ba_cv_va_copy+set}" = set; then
38551 echo $ECHO_N "(cached) $ECHO_C" >&6
38554 cat >conftest.$ac_ext <<_ACEOF
38557 cat confdefs.h >>conftest.$ac_ext
38558 cat >>conftest.$ac_ext <<_ACEOF
38559 /* end confdefs.h. */
38561 #include <stdarg.h>
38562 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38563 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38569 call_use_va_copy(1,2,3)
38575 rm -f conftest.$ac_objext conftest$ac_exeext
38576 if { (ac_try="$ac_link"
38577 case "(($ac_try" in
38578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38579 *) ac_try_echo=$ac_try;;
38581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38582 (eval "$ac_link") 2>conftest.er1
38584 grep -v '^ *+' conftest.er1 >conftest.err
38586 cat conftest.err >&5
38587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38588 (exit $ac_status); } && {
38589 test -z "$ac_c_werror_flag" ||
38590 test ! -s conftest.err
38591 } && test -s conftest$ac_exeext &&
38592 $as_test_x conftest$ac_exeext; then
38597 echo "$as_me: failed program was:" >&5
38598 sed 's/^/| /' conftest.$ac_ext >&5
38606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38607 conftest$ac_exeext conftest.$ac_ext
38611 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38612 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38613 test $ba_cv_va_copy = yes &&
38614 cat >>confdefs.h <<\_ACEOF
38615 #define HAVE_VA_COPY 1
38623 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38626 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38628 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38629 echo $ECHO_N "(cached) $ECHO_C" >&6
38631 cat >conftest.$ac_ext <<_ACEOF
38634 cat confdefs.h >>conftest.$ac_ext
38635 cat >>conftest.$ac_ext <<_ACEOF
38636 /* end confdefs.h. */
38637 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38639 #define $ac_func innocuous_$ac_func
38641 /* System header to define __stub macros and hopefully few prototypes,
38642 which can conflict with char $ac_func (); below.
38643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38644 <limits.h> exists even on freestanding compilers. */
38647 # include <limits.h>
38649 # include <assert.h>
38654 /* Override any GCC internal prototype to avoid an error.
38655 Use char because int might match the return type of a GCC
38656 builtin and then its argument prototype would still apply. */
38661 /* The GNU C library defines this for functions which it implements
38662 to always fail with ENOSYS. Some functions are actually named
38663 something starting with __ and the normal name is an alias. */
38664 #if defined __stub_$ac_func || defined __stub___$ac_func
38671 return $ac_func ();
38676 rm -f conftest.$ac_objext conftest$ac_exeext
38677 if { (ac_try="$ac_link"
38678 case "(($ac_try" in
38679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38680 *) ac_try_echo=$ac_try;;
38682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38683 (eval "$ac_link") 2>conftest.er1
38685 grep -v '^ *+' conftest.er1 >conftest.err
38687 cat conftest.err >&5
38688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38689 (exit $ac_status); } && {
38690 test -z "$ac_c_werror_flag" ||
38691 test ! -s conftest.err
38692 } && test -s conftest$ac_exeext &&
38693 $as_test_x conftest$ac_exeext; then
38694 eval "$as_ac_var=yes"
38696 echo "$as_me: failed program was:" >&5
38697 sed 's/^/| /' conftest.$ac_ext >&5
38699 eval "$as_ac_var=no"
38702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38703 conftest$ac_exeext conftest.$ac_ext
38705 ac_res=`eval echo '${'$as_ac_var'}'`
38706 { echo "$as_me:$LINENO: result: $ac_res" >&5
38707 echo "${ECHO_T}$ac_res" >&6; }
38708 if test `eval echo '${'$as_ac_var'}'` = yes; then
38709 cat >>confdefs.h <<_ACEOF
38710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38717 # If resolver functions are not in libc check for -lnsl or -lresolv.
38718 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
38719 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
38720 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
38721 echo $ECHO_N "(cached) $ECHO_C" >&6
38723 cat >conftest.$ac_ext <<_ACEOF
38726 cat confdefs.h >>conftest.$ac_ext
38727 cat >>conftest.$ac_ext <<_ACEOF
38728 /* end confdefs.h. */
38729 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
38730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38731 #define gethostbyname_r innocuous_gethostbyname_r
38733 /* System header to define __stub macros and hopefully few prototypes,
38734 which can conflict with char gethostbyname_r (); below.
38735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38736 <limits.h> exists even on freestanding compilers. */
38739 # include <limits.h>
38741 # include <assert.h>
38744 #undef gethostbyname_r
38746 /* Override any GCC internal prototype to avoid an error.
38747 Use char because int might match the return type of a GCC
38748 builtin and then its argument prototype would still apply. */
38752 char gethostbyname_r ();
38753 /* The GNU C library defines this for functions which it implements
38754 to always fail with ENOSYS. Some functions are actually named
38755 something starting with __ and the normal name is an alias. */
38756 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
38763 return gethostbyname_r ();
38768 rm -f conftest.$ac_objext conftest$ac_exeext
38769 if { (ac_try="$ac_link"
38770 case "(($ac_try" in
38771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38772 *) ac_try_echo=$ac_try;;
38774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38775 (eval "$ac_link") 2>conftest.er1
38777 grep -v '^ *+' conftest.er1 >conftest.err
38779 cat conftest.err >&5
38780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38781 (exit $ac_status); } && {
38782 test -z "$ac_c_werror_flag" ||
38783 test ! -s conftest.err
38784 } && test -s conftest$ac_exeext &&
38785 $as_test_x conftest$ac_exeext; then
38786 ac_cv_func_gethostbyname_r=yes
38788 echo "$as_me: failed program was:" >&5
38789 sed 's/^/| /' conftest.$ac_ext >&5
38791 ac_cv_func_gethostbyname_r=no
38794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38795 conftest$ac_exeext conftest.$ac_ext
38797 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
38798 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
38799 if test $ac_cv_func_gethostbyname_r = yes; then
38800 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
38801 echo "${ECHO_T}using libc's resolver" >&6; }
38804 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
38805 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
38806 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
38807 echo $ECHO_N "(cached) $ECHO_C" >&6
38809 ac_check_lib_save_LIBS=$LIBS
38811 cat >conftest.$ac_ext <<_ACEOF
38814 cat confdefs.h >>conftest.$ac_ext
38815 cat >>conftest.$ac_ext <<_ACEOF
38816 /* end confdefs.h. */
38818 /* Override any GCC internal prototype to avoid an error.
38819 Use char because int might match the return type of a GCC
38820 builtin and then its argument prototype would still apply. */
38824 char gethostbyname_r ();
38828 return gethostbyname_r ();
38833 rm -f conftest.$ac_objext conftest$ac_exeext
38834 if { (ac_try="$ac_link"
38835 case "(($ac_try" in
38836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38837 *) ac_try_echo=$ac_try;;
38839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38840 (eval "$ac_link") 2>conftest.er1
38842 grep -v '^ *+' conftest.er1 >conftest.err
38844 cat conftest.err >&5
38845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38846 (exit $ac_status); } && {
38847 test -z "$ac_c_werror_flag" ||
38848 test ! -s conftest.err
38849 } && test -s conftest$ac_exeext &&
38850 $as_test_x conftest$ac_exeext; then
38851 ac_cv_lib_nsl_gethostbyname_r=yes
38853 echo "$as_me: failed program was:" >&5
38854 sed 's/^/| /' conftest.$ac_ext >&5
38856 ac_cv_lib_nsl_gethostbyname_r=no
38859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38860 conftest$ac_exeext conftest.$ac_ext
38861 LIBS=$ac_check_lib_save_LIBS
38863 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
38864 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
38865 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
38866 cat >>confdefs.h <<_ACEOF
38867 #define HAVE_LIBNSL 1
38875 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
38876 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
38877 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
38878 echo $ECHO_N "(cached) $ECHO_C" >&6
38880 ac_check_lib_save_LIBS=$LIBS
38881 LIBS="-lresolv $LIBS"
38882 cat >conftest.$ac_ext <<_ACEOF
38885 cat confdefs.h >>conftest.$ac_ext
38886 cat >>conftest.$ac_ext <<_ACEOF
38887 /* end confdefs.h. */
38889 /* Override any GCC internal prototype to avoid an error.
38890 Use char because int might match the return type of a GCC
38891 builtin and then its argument prototype would still apply. */
38895 char gethostbyname_r ();
38899 return gethostbyname_r ();
38904 rm -f conftest.$ac_objext conftest$ac_exeext
38905 if { (ac_try="$ac_link"
38906 case "(($ac_try" in
38907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38908 *) ac_try_echo=$ac_try;;
38910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38911 (eval "$ac_link") 2>conftest.er1
38913 grep -v '^ *+' conftest.er1 >conftest.err
38915 cat conftest.err >&5
38916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38917 (exit $ac_status); } && {
38918 test -z "$ac_c_werror_flag" ||
38919 test ! -s conftest.err
38920 } && test -s conftest$ac_exeext &&
38921 $as_test_x conftest$ac_exeext; then
38922 ac_cv_lib_resolv_gethostbyname_r=yes
38924 echo "$as_me: failed program was:" >&5
38925 sed 's/^/| /' conftest.$ac_ext >&5
38927 ac_cv_lib_resolv_gethostbyname_r=no
38930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38931 conftest$ac_exeext conftest.$ac_ext
38932 LIBS=$ac_check_lib_save_LIBS
38934 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
38935 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
38936 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
38937 cat >>confdefs.h <<_ACEOF
38938 #define HAVE_LIBRESOLV 1
38941 LIBS="-lresolv $LIBS"
38949 for ac_func in inet_pton
38951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38955 echo $ECHO_N "(cached) $ECHO_C" >&6
38957 cat >conftest.$ac_ext <<_ACEOF
38960 cat confdefs.h >>conftest.$ac_ext
38961 cat >>conftest.$ac_ext <<_ACEOF
38962 /* end confdefs.h. */
38963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38965 #define $ac_func innocuous_$ac_func
38967 /* System header to define __stub macros and hopefully few prototypes,
38968 which can conflict with char $ac_func (); below.
38969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38970 <limits.h> exists even on freestanding compilers. */
38973 # include <limits.h>
38975 # include <assert.h>
38980 /* Override any GCC internal prototype to avoid an error.
38981 Use char because int might match the return type of a GCC
38982 builtin and then its argument prototype would still apply. */
38987 /* The GNU C library defines this for functions which it implements
38988 to always fail with ENOSYS. Some functions are actually named
38989 something starting with __ and the normal name is an alias. */
38990 #if defined __stub_$ac_func || defined __stub___$ac_func
38997 return $ac_func ();
39002 rm -f conftest.$ac_objext conftest$ac_exeext
39003 if { (ac_try="$ac_link"
39004 case "(($ac_try" in
39005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39006 *) ac_try_echo=$ac_try;;
39008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39009 (eval "$ac_link") 2>conftest.er1
39011 grep -v '^ *+' conftest.er1 >conftest.err
39013 cat conftest.err >&5
39014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39015 (exit $ac_status); } && {
39016 test -z "$ac_c_werror_flag" ||
39017 test ! -s conftest.err
39018 } && test -s conftest$ac_exeext &&
39019 $as_test_x conftest$ac_exeext; then
39020 eval "$as_ac_var=yes"
39022 echo "$as_me: failed program was:" >&5
39023 sed 's/^/| /' conftest.$ac_ext >&5
39025 eval "$as_ac_var=no"
39028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39029 conftest$ac_exeext conftest.$ac_ext
39031 ac_res=`eval echo '${'$as_ac_var'}'`
39032 { echo "$as_me:$LINENO: result: $ac_res" >&5
39033 echo "${ECHO_T}$ac_res" >&6; }
39034 if test `eval echo '${'$as_ac_var'}'` = yes; then
39035 cat >>confdefs.h <<_ACEOF
39036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39038 cat >>confdefs.h <<\_ACEOF
39039 #define HAVE_INET_PTON 1
39046 for ac_func in inet_ntop
39048 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39049 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39050 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39051 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39052 echo $ECHO_N "(cached) $ECHO_C" >&6
39054 cat >conftest.$ac_ext <<_ACEOF
39057 cat confdefs.h >>conftest.$ac_ext
39058 cat >>conftest.$ac_ext <<_ACEOF
39059 /* end confdefs.h. */
39060 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39061 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39062 #define $ac_func innocuous_$ac_func
39064 /* System header to define __stub macros and hopefully few prototypes,
39065 which can conflict with char $ac_func (); below.
39066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39067 <limits.h> exists even on freestanding compilers. */
39070 # include <limits.h>
39072 # include <assert.h>
39077 /* Override any GCC internal prototype to avoid an error.
39078 Use char because int might match the return type of a GCC
39079 builtin and then its argument prototype would still apply. */
39084 /* The GNU C library defines this for functions which it implements
39085 to always fail with ENOSYS. Some functions are actually named
39086 something starting with __ and the normal name is an alias. */
39087 #if defined __stub_$ac_func || defined __stub___$ac_func
39094 return $ac_func ();
39099 rm -f conftest.$ac_objext conftest$ac_exeext
39100 if { (ac_try="$ac_link"
39101 case "(($ac_try" in
39102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39103 *) ac_try_echo=$ac_try;;
39105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39106 (eval "$ac_link") 2>conftest.er1
39108 grep -v '^ *+' conftest.er1 >conftest.err
39110 cat conftest.err >&5
39111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39112 (exit $ac_status); } && {
39113 test -z "$ac_c_werror_flag" ||
39114 test ! -s conftest.err
39115 } && test -s conftest$ac_exeext &&
39116 $as_test_x conftest$ac_exeext; then
39117 eval "$as_ac_var=yes"
39119 echo "$as_me: failed program was:" >&5
39120 sed 's/^/| /' conftest.$ac_ext >&5
39122 eval "$as_ac_var=no"
39125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39126 conftest$ac_exeext conftest.$ac_ext
39128 ac_res=`eval echo '${'$as_ac_var'}'`
39129 { echo "$as_me:$LINENO: result: $ac_res" >&5
39130 echo "${ECHO_T}$ac_res" >&6; }
39131 if test `eval echo '${'$as_ac_var'}'` = yes; then
39132 cat >>confdefs.h <<_ACEOF
39133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39135 cat >>confdefs.h <<\_ACEOF
39136 #define HAVE_INET_NTOP 1
39143 for ac_func in gethostbyname2
39145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39149 echo $ECHO_N "(cached) $ECHO_C" >&6
39151 cat >conftest.$ac_ext <<_ACEOF
39154 cat confdefs.h >>conftest.$ac_ext
39155 cat >>conftest.$ac_ext <<_ACEOF
39156 /* end confdefs.h. */
39157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39159 #define $ac_func innocuous_$ac_func
39161 /* System header to define __stub macros and hopefully few prototypes,
39162 which can conflict with char $ac_func (); below.
39163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39164 <limits.h> exists even on freestanding compilers. */
39167 # include <limits.h>
39169 # include <assert.h>
39174 /* Override any GCC internal prototype to avoid an error.
39175 Use char because int might match the return type of a GCC
39176 builtin and then its argument prototype would still apply. */
39181 /* The GNU C library defines this for functions which it implements
39182 to always fail with ENOSYS. Some functions are actually named
39183 something starting with __ and the normal name is an alias. */
39184 #if defined __stub_$ac_func || defined __stub___$ac_func
39191 return $ac_func ();
39196 rm -f conftest.$ac_objext conftest$ac_exeext
39197 if { (ac_try="$ac_link"
39198 case "(($ac_try" in
39199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39200 *) ac_try_echo=$ac_try;;
39202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39203 (eval "$ac_link") 2>conftest.er1
39205 grep -v '^ *+' conftest.er1 >conftest.err
39207 cat conftest.err >&5
39208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39209 (exit $ac_status); } && {
39210 test -z "$ac_c_werror_flag" ||
39211 test ! -s conftest.err
39212 } && test -s conftest$ac_exeext &&
39213 $as_test_x conftest$ac_exeext; then
39214 eval "$as_ac_var=yes"
39216 echo "$as_me: failed program was:" >&5
39217 sed 's/^/| /' conftest.$ac_ext >&5
39219 eval "$as_ac_var=no"
39222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39223 conftest$ac_exeext conftest.$ac_ext
39225 ac_res=`eval echo '${'$as_ac_var'}'`
39226 { echo "$as_me:$LINENO: result: $ac_res" >&5
39227 echo "${ECHO_T}$ac_res" >&6; }
39228 if test `eval echo '${'$as_ac_var'}'` = yes; then
39229 cat >>confdefs.h <<_ACEOF
39230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39232 cat >>confdefs.h <<\_ACEOF
39233 #define HAVE_GETHOSTBYNAME2 1
39240 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39241 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39242 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39243 echo $ECHO_N "(cached) $ECHO_C" >&6
39246 cat >conftest.$ac_ext <<_ACEOF
39249 cat confdefs.h >>conftest.$ac_ext
39250 cat >>conftest.$ac_ext <<_ACEOF
39251 /* end confdefs.h. */
39253 #include <sys/socket.h>
39259 struct sockaddr s; s.sa_len;
39265 rm -f conftest.$ac_objext
39266 if { (ac_try="$ac_compile"
39267 case "(($ac_try" in
39268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39269 *) ac_try_echo=$ac_try;;
39271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39272 (eval "$ac_compile") 2>conftest.er1
39274 grep -v '^ *+' conftest.er1 >conftest.err
39276 cat conftest.err >&5
39277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39278 (exit $ac_status); } && {
39279 test -z "$ac_c_werror_flag" ||
39280 test ! -s conftest.err
39281 } && test -s conftest.$ac_objext; then
39283 ac_cv_struct_sockaddr_sa_len=yes
39286 echo "$as_me: failed program was:" >&5
39287 sed 's/^/| /' conftest.$ac_ext >&5
39289 ac_cv_struct_sockaddr_sa_len=no
39294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39298 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39299 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39301 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39303 cat >>confdefs.h <<\_ACEOF
39304 #define HAVE_SA_LEN 1
39310 for ac_func in strftime
39312 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39313 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39314 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39315 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39316 echo $ECHO_N "(cached) $ECHO_C" >&6
39318 cat >conftest.$ac_ext <<_ACEOF
39321 cat confdefs.h >>conftest.$ac_ext
39322 cat >>conftest.$ac_ext <<_ACEOF
39323 /* end confdefs.h. */
39324 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39326 #define $ac_func innocuous_$ac_func
39328 /* System header to define __stub macros and hopefully few prototypes,
39329 which can conflict with char $ac_func (); below.
39330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39331 <limits.h> exists even on freestanding compilers. */
39334 # include <limits.h>
39336 # include <assert.h>
39341 /* Override any GCC internal prototype to avoid an error.
39342 Use char because int might match the return type of a GCC
39343 builtin and then its argument prototype would still apply. */
39348 /* The GNU C library defines this for functions which it implements
39349 to always fail with ENOSYS. Some functions are actually named
39350 something starting with __ and the normal name is an alias. */
39351 #if defined __stub_$ac_func || defined __stub___$ac_func
39358 return $ac_func ();
39363 rm -f conftest.$ac_objext conftest$ac_exeext
39364 if { (ac_try="$ac_link"
39365 case "(($ac_try" in
39366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39367 *) ac_try_echo=$ac_try;;
39369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39370 (eval "$ac_link") 2>conftest.er1
39372 grep -v '^ *+' conftest.er1 >conftest.err
39374 cat conftest.err >&5
39375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39376 (exit $ac_status); } && {
39377 test -z "$ac_c_werror_flag" ||
39378 test ! -s conftest.err
39379 } && test -s conftest$ac_exeext &&
39380 $as_test_x conftest$ac_exeext; then
39381 eval "$as_ac_var=yes"
39383 echo "$as_me: failed program was:" >&5
39384 sed 's/^/| /' conftest.$ac_ext >&5
39386 eval "$as_ac_var=no"
39389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39390 conftest$ac_exeext conftest.$ac_ext
39392 ac_res=`eval echo '${'$as_ac_var'}'`
39393 { echo "$as_me:$LINENO: result: $ac_res" >&5
39394 echo "${ECHO_T}$ac_res" >&6; }
39395 if test `eval echo '${'$as_ac_var'}'` = yes; then
39396 cat >>confdefs.h <<_ACEOF
39397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39401 # strftime is in -lintl on SCO UNIX.
39402 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39403 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39404 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39405 echo $ECHO_N "(cached) $ECHO_C" >&6
39407 ac_check_lib_save_LIBS=$LIBS
39408 LIBS="-lintl $LIBS"
39409 cat >conftest.$ac_ext <<_ACEOF
39412 cat confdefs.h >>conftest.$ac_ext
39413 cat >>conftest.$ac_ext <<_ACEOF
39414 /* end confdefs.h. */
39416 /* Override any GCC internal prototype to avoid an error.
39417 Use char because int might match the return type of a GCC
39418 builtin and then its argument prototype would still apply. */
39426 return strftime ();
39431 rm -f conftest.$ac_objext conftest$ac_exeext
39432 if { (ac_try="$ac_link"
39433 case "(($ac_try" in
39434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39435 *) ac_try_echo=$ac_try;;
39437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39438 (eval "$ac_link") 2>conftest.er1
39440 grep -v '^ *+' conftest.er1 >conftest.err
39442 cat conftest.err >&5
39443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39444 (exit $ac_status); } && {
39445 test -z "$ac_c_werror_flag" ||
39446 test ! -s conftest.err
39447 } && test -s conftest$ac_exeext &&
39448 $as_test_x conftest$ac_exeext; then
39449 ac_cv_lib_intl_strftime=yes
39451 echo "$as_me: failed program was:" >&5
39452 sed 's/^/| /' conftest.$ac_ext >&5
39454 ac_cv_lib_intl_strftime=no
39457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39458 conftest$ac_exeext conftest.$ac_ext
39459 LIBS=$ac_check_lib_save_LIBS
39461 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39462 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39463 if test $ac_cv_lib_intl_strftime = yes; then
39464 cat >>confdefs.h <<\_ACEOF
39465 #define HAVE_STRFTIME 1
39468 LIBS="-lintl $LIBS"
39475 for ac_func in vprintf
39477 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39478 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39479 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39480 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39481 echo $ECHO_N "(cached) $ECHO_C" >&6
39483 cat >conftest.$ac_ext <<_ACEOF
39486 cat confdefs.h >>conftest.$ac_ext
39487 cat >>conftest.$ac_ext <<_ACEOF
39488 /* end confdefs.h. */
39489 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39490 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39491 #define $ac_func innocuous_$ac_func
39493 /* System header to define __stub macros and hopefully few prototypes,
39494 which can conflict with char $ac_func (); below.
39495 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39496 <limits.h> exists even on freestanding compilers. */
39499 # include <limits.h>
39501 # include <assert.h>
39506 /* Override any GCC internal prototype to avoid an error.
39507 Use char because int might match the return type of a GCC
39508 builtin and then its argument prototype would still apply. */
39513 /* The GNU C library defines this for functions which it implements
39514 to always fail with ENOSYS. Some functions are actually named
39515 something starting with __ and the normal name is an alias. */
39516 #if defined __stub_$ac_func || defined __stub___$ac_func
39523 return $ac_func ();
39528 rm -f conftest.$ac_objext conftest$ac_exeext
39529 if { (ac_try="$ac_link"
39530 case "(($ac_try" in
39531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39532 *) ac_try_echo=$ac_try;;
39534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39535 (eval "$ac_link") 2>conftest.er1
39537 grep -v '^ *+' conftest.er1 >conftest.err
39539 cat conftest.err >&5
39540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39541 (exit $ac_status); } && {
39542 test -z "$ac_c_werror_flag" ||
39543 test ! -s conftest.err
39544 } && test -s conftest$ac_exeext &&
39545 $as_test_x conftest$ac_exeext; then
39546 eval "$as_ac_var=yes"
39548 echo "$as_me: failed program was:" >&5
39549 sed 's/^/| /' conftest.$ac_ext >&5
39551 eval "$as_ac_var=no"
39554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39555 conftest$ac_exeext conftest.$ac_ext
39557 ac_res=`eval echo '${'$as_ac_var'}'`
39558 { echo "$as_me:$LINENO: result: $ac_res" >&5
39559 echo "${ECHO_T}$ac_res" >&6; }
39560 if test `eval echo '${'$as_ac_var'}'` = yes; then
39561 cat >>confdefs.h <<_ACEOF
39562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39565 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39566 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39567 if test "${ac_cv_func__doprnt+set}" = set; then
39568 echo $ECHO_N "(cached) $ECHO_C" >&6
39570 cat >conftest.$ac_ext <<_ACEOF
39573 cat confdefs.h >>conftest.$ac_ext
39574 cat >>conftest.$ac_ext <<_ACEOF
39575 /* end confdefs.h. */
39576 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39578 #define _doprnt innocuous__doprnt
39580 /* System header to define __stub macros and hopefully few prototypes,
39581 which can conflict with char _doprnt (); below.
39582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39583 <limits.h> exists even on freestanding compilers. */
39586 # include <limits.h>
39588 # include <assert.h>
39593 /* Override any GCC internal prototype to avoid an error.
39594 Use char because int might match the return type of a GCC
39595 builtin and then its argument prototype would still apply. */
39600 /* The GNU C library defines this for functions which it implements
39601 to always fail with ENOSYS. Some functions are actually named
39602 something starting with __ and the normal name is an alias. */
39603 #if defined __stub__doprnt || defined __stub____doprnt
39615 rm -f conftest.$ac_objext conftest$ac_exeext
39616 if { (ac_try="$ac_link"
39617 case "(($ac_try" in
39618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39619 *) ac_try_echo=$ac_try;;
39621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39622 (eval "$ac_link") 2>conftest.er1
39624 grep -v '^ *+' conftest.er1 >conftest.err
39626 cat conftest.err >&5
39627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39628 (exit $ac_status); } && {
39629 test -z "$ac_c_werror_flag" ||
39630 test ! -s conftest.err
39631 } && test -s conftest$ac_exeext &&
39632 $as_test_x conftest$ac_exeext; then
39633 ac_cv_func__doprnt=yes
39635 echo "$as_me: failed program was:" >&5
39636 sed 's/^/| /' conftest.$ac_ext >&5
39638 ac_cv_func__doprnt=no
39641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39642 conftest$ac_exeext conftest.$ac_ext
39644 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
39645 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
39646 if test $ac_cv_func__doprnt = yes; then
39648 cat >>confdefs.h <<\_ACEOF
39649 #define HAVE_DOPRNT 1
39658 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
39659 # for constant arguments. Useless!
39660 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
39661 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
39662 if test "${ac_cv_working_alloca_h+set}" = set; then
39663 echo $ECHO_N "(cached) $ECHO_C" >&6
39665 cat >conftest.$ac_ext <<_ACEOF
39668 cat confdefs.h >>conftest.$ac_ext
39669 cat >>conftest.$ac_ext <<_ACEOF
39670 /* end confdefs.h. */
39671 #include <alloca.h>
39675 char *p = (char *) alloca (2 * sizeof (int));
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_working_alloca_h=yes
39701 echo "$as_me: failed program was:" >&5
39702 sed 's/^/| /' conftest.$ac_ext >&5
39704 ac_cv_working_alloca_h=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_working_alloca_h" >&5
39711 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
39712 if test $ac_cv_working_alloca_h = yes; then
39714 cat >>confdefs.h <<\_ACEOF
39715 #define HAVE_ALLOCA_H 1
39720 { echo "$as_me:$LINENO: checking for alloca" >&5
39721 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
39722 if test "${ac_cv_func_alloca_works+set}" = set; then
39723 echo $ECHO_N "(cached) $ECHO_C" >&6
39725 cat >conftest.$ac_ext <<_ACEOF
39728 cat confdefs.h >>conftest.$ac_ext
39729 cat >>conftest.$ac_ext <<_ACEOF
39730 /* end confdefs.h. */
39732 # define alloca __builtin_alloca
39735 # include <malloc.h>
39736 # define alloca _alloca
39738 # ifdef HAVE_ALLOCA_H
39739 # include <alloca.h>
39744 # ifndef alloca /* predefined by HP cc +Olibcalls */
39755 char *p = (char *) alloca (1);
39761 rm -f conftest.$ac_objext conftest$ac_exeext
39762 if { (ac_try="$ac_link"
39763 case "(($ac_try" in
39764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39765 *) ac_try_echo=$ac_try;;
39767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39768 (eval "$ac_link") 2>conftest.er1
39770 grep -v '^ *+' conftest.er1 >conftest.err
39772 cat conftest.err >&5
39773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39774 (exit $ac_status); } && {
39775 test -z "$ac_c_werror_flag" ||
39776 test ! -s conftest.err
39777 } && test -s conftest$ac_exeext &&
39778 $as_test_x conftest$ac_exeext; then
39779 ac_cv_func_alloca_works=yes
39781 echo "$as_me: failed program was:" >&5
39782 sed 's/^/| /' conftest.$ac_ext >&5
39784 ac_cv_func_alloca_works=no
39787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39788 conftest$ac_exeext conftest.$ac_ext
39790 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
39791 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
39793 if test $ac_cv_func_alloca_works = yes; then
39795 cat >>confdefs.h <<\_ACEOF
39796 #define HAVE_ALLOCA 1
39800 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
39801 # that cause trouble. Some versions do not even contain alloca or
39802 # contain a buggy version. If you still want to use their alloca,
39803 # use ar to extract alloca.o from them instead of compiling alloca.c.
39805 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
39807 cat >>confdefs.h <<\_ACEOF
39812 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
39813 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
39814 if test "${ac_cv_os_cray+set}" = set; then
39815 echo $ECHO_N "(cached) $ECHO_C" >&6
39817 cat >conftest.$ac_ext <<_ACEOF
39820 cat confdefs.h >>conftest.$ac_ext
39821 cat >>conftest.$ac_ext <<_ACEOF
39822 /* end confdefs.h. */
39823 #if defined CRAY && ! defined CRAY2
39830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39831 $EGREP "webecray" >/dev/null 2>&1; then
39839 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
39840 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
39841 if test $ac_cv_os_cray = yes; then
39842 for ac_func in _getb67 GETB67 getb67; do
39843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39847 echo $ECHO_N "(cached) $ECHO_C" >&6
39849 cat >conftest.$ac_ext <<_ACEOF
39852 cat confdefs.h >>conftest.$ac_ext
39853 cat >>conftest.$ac_ext <<_ACEOF
39854 /* end confdefs.h. */
39855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39857 #define $ac_func innocuous_$ac_func
39859 /* System header to define __stub macros and hopefully few prototypes,
39860 which can conflict with char $ac_func (); below.
39861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39862 <limits.h> exists even on freestanding compilers. */
39865 # include <limits.h>
39867 # include <assert.h>
39872 /* Override any GCC internal prototype to avoid an error.
39873 Use char because int might match the return type of a GCC
39874 builtin and then its argument prototype would still apply. */
39879 /* The GNU C library defines this for functions which it implements
39880 to always fail with ENOSYS. Some functions are actually named
39881 something starting with __ and the normal name is an alias. */
39882 #if defined __stub_$ac_func || defined __stub___$ac_func
39889 return $ac_func ();
39894 rm -f conftest.$ac_objext conftest$ac_exeext
39895 if { (ac_try="$ac_link"
39896 case "(($ac_try" in
39897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39898 *) ac_try_echo=$ac_try;;
39900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39901 (eval "$ac_link") 2>conftest.er1
39903 grep -v '^ *+' conftest.er1 >conftest.err
39905 cat conftest.err >&5
39906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907 (exit $ac_status); } && {
39908 test -z "$ac_c_werror_flag" ||
39909 test ! -s conftest.err
39910 } && test -s conftest$ac_exeext &&
39911 $as_test_x conftest$ac_exeext; then
39912 eval "$as_ac_var=yes"
39914 echo "$as_me: failed program was:" >&5
39915 sed 's/^/| /' conftest.$ac_ext >&5
39917 eval "$as_ac_var=no"
39920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39921 conftest$ac_exeext conftest.$ac_ext
39923 ac_res=`eval echo '${'$as_ac_var'}'`
39924 { echo "$as_me:$LINENO: result: $ac_res" >&5
39925 echo "${ECHO_T}$ac_res" >&6; }
39926 if test `eval echo '${'$as_ac_var'}'` = yes; then
39928 cat >>confdefs.h <<_ACEOF
39929 #define CRAY_STACKSEG_END $ac_func
39938 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
39939 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
39940 if test "${ac_cv_c_stack_direction+set}" = set; then
39941 echo $ECHO_N "(cached) $ECHO_C" >&6
39943 if test "$cross_compiling" = yes; then
39944 ac_cv_c_stack_direction=0
39946 cat >conftest.$ac_ext <<_ACEOF
39949 cat confdefs.h >>conftest.$ac_ext
39950 cat >>conftest.$ac_ext <<_ACEOF
39951 /* end confdefs.h. */
39952 $ac_includes_default
39954 find_stack_direction ()
39956 static char *addr = 0;
39961 return find_stack_direction ();
39964 return (&dummy > addr) ? 1 : -1;
39970 return find_stack_direction () < 0;
39973 rm -f conftest$ac_exeext
39974 if { (ac_try="$ac_link"
39975 case "(($ac_try" in
39976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39977 *) ac_try_echo=$ac_try;;
39979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39980 (eval "$ac_link") 2>&5
39982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39984 { (case "(($ac_try" in
39985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39986 *) ac_try_echo=$ac_try;;
39988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39989 (eval "$ac_try") 2>&5
39991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39992 (exit $ac_status); }; }; then
39993 ac_cv_c_stack_direction=1
39995 echo "$as_me: program exited with status $ac_status" >&5
39996 echo "$as_me: failed program was:" >&5
39997 sed 's/^/| /' conftest.$ac_ext >&5
39999 ( exit $ac_status )
40000 ac_cv_c_stack_direction=-1
40002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40007 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40008 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40010 cat >>confdefs.h <<_ACEOF
40011 #define STACK_DIRECTION $ac_cv_c_stack_direction
40017 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40018 # -lseq on Dynix/PTX, -lgen on Unixware.
40019 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40020 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40021 if test "${ac_cv_search_getmntent+set}" = set; then
40022 echo $ECHO_N "(cached) $ECHO_C" >&6
40024 ac_func_search_save_LIBS=$LIBS
40025 cat >conftest.$ac_ext <<_ACEOF
40028 cat confdefs.h >>conftest.$ac_ext
40029 cat >>conftest.$ac_ext <<_ACEOF
40030 /* end confdefs.h. */
40032 /* Override any GCC internal prototype to avoid an error.
40033 Use char because int might match the return type of a GCC
40034 builtin and then its argument prototype would still apply. */
40042 return getmntent ();
40047 for ac_lib in '' sun seq gen; do
40048 if test -z "$ac_lib"; then
40049 ac_res="none required"
40052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40054 rm -f conftest.$ac_objext conftest$ac_exeext
40055 if { (ac_try="$ac_link"
40056 case "(($ac_try" in
40057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40058 *) ac_try_echo=$ac_try;;
40060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40061 (eval "$ac_link") 2>conftest.er1
40063 grep -v '^ *+' conftest.er1 >conftest.err
40065 cat conftest.err >&5
40066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40067 (exit $ac_status); } && {
40068 test -z "$ac_c_werror_flag" ||
40069 test ! -s conftest.err
40070 } && test -s conftest$ac_exeext &&
40071 $as_test_x conftest$ac_exeext; then
40072 ac_cv_search_getmntent=$ac_res
40074 echo "$as_me: failed program was:" >&5
40075 sed 's/^/| /' conftest.$ac_ext >&5
40080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40082 if test "${ac_cv_search_getmntent+set}" = set; then
40086 if test "${ac_cv_search_getmntent+set}" = set; then
40089 ac_cv_search_getmntent=no
40091 rm conftest.$ac_ext
40092 LIBS=$ac_func_search_save_LIBS
40094 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40095 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40096 ac_res=$ac_cv_search_getmntent
40097 if test "$ac_res" != no; then
40098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40099 ac_cv_func_getmntent=yes
40101 cat >>confdefs.h <<\_ACEOF
40102 #define HAVE_GETMNTENT 1
40106 ac_cv_func_getmntent=no
40110 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40111 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40112 if test "${ac_cv_func_closedir_void+set}" = set; then
40113 echo $ECHO_N "(cached) $ECHO_C" >&6
40115 if test "$cross_compiling" = yes; then
40116 ac_cv_func_closedir_void=yes
40118 cat >conftest.$ac_ext <<_ACEOF
40121 cat confdefs.h >>conftest.$ac_ext
40122 cat >>conftest.$ac_ext <<_ACEOF
40123 /* end confdefs.h. */
40124 $ac_includes_default
40125 #include <$ac_header_dirent>
40126 #ifndef __cplusplus
40133 return closedir (opendir (".")) != 0;
40138 rm -f conftest$ac_exeext
40139 if { (ac_try="$ac_link"
40140 case "(($ac_try" in
40141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40142 *) ac_try_echo=$ac_try;;
40144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40145 (eval "$ac_link") 2>&5
40147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40149 { (case "(($ac_try" in
40150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40151 *) ac_try_echo=$ac_try;;
40153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40154 (eval "$ac_try") 2>&5
40156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157 (exit $ac_status); }; }; then
40158 ac_cv_func_closedir_void=no
40160 echo "$as_me: program exited with status $ac_status" >&5
40161 echo "$as_me: failed program was:" >&5
40162 sed 's/^/| /' conftest.$ac_ext >&5
40164 ( exit $ac_status )
40165 ac_cv_func_closedir_void=yes
40167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40172 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40173 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40174 if test $ac_cv_func_closedir_void = yes; then
40176 cat >>confdefs.h <<\_ACEOF
40177 #define CLOSEDIR_VOID 1
40182 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40183 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40184 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40185 echo $ECHO_N "(cached) $ECHO_C" >&6
40187 if test "$cross_compiling" = yes; then
40188 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40189 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40190 { (exit 1); exit 1; }; }
40192 cat >conftest.$ac_ext <<_ACEOF
40195 cat confdefs.h >>conftest.$ac_ext
40196 cat >>conftest.$ac_ext <<_ACEOF
40197 /* end confdefs.h. */
40198 $ac_includes_default
40202 /* If this system has a BSD-style setpgrp which takes arguments,
40203 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40204 exit successfully. */
40205 return setpgrp (1,1) != -1;
40210 rm -f conftest$ac_exeext
40211 if { (ac_try="$ac_link"
40212 case "(($ac_try" in
40213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40214 *) ac_try_echo=$ac_try;;
40216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40217 (eval "$ac_link") 2>&5
40219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40221 { (case "(($ac_try" in
40222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40223 *) ac_try_echo=$ac_try;;
40225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40226 (eval "$ac_try") 2>&5
40228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40229 (exit $ac_status); }; }; then
40230 ac_cv_func_setpgrp_void=no
40232 echo "$as_me: program exited with status $ac_status" >&5
40233 echo "$as_me: failed program was:" >&5
40234 sed 's/^/| /' conftest.$ac_ext >&5
40236 ( exit $ac_status )
40237 ac_cv_func_setpgrp_void=yes
40239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40244 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40245 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40246 if test $ac_cv_func_setpgrp_void = yes; then
40248 cat >>confdefs.h <<\_ACEOF
40249 #define SETPGRP_VOID 1
40253 # AC_FUNC_FNMATCH dnl use local version
40255 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40256 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40257 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40258 echo $ECHO_N "(cached) $ECHO_C" >&6
40260 ac_check_lib_save_LIBS=$LIBS
40261 LIBS="-lintl $LIBS"
40262 cat >conftest.$ac_ext <<_ACEOF
40265 cat confdefs.h >>conftest.$ac_ext
40266 cat >>conftest.$ac_ext <<_ACEOF
40267 /* end confdefs.h. */
40269 /* Override any GCC internal prototype to avoid an error.
40270 Use char because int might match the return type of a GCC
40271 builtin and then its argument prototype would still apply. */
40284 rm -f conftest.$ac_objext conftest$ac_exeext
40285 if { (ac_try="$ac_link"
40286 case "(($ac_try" in
40287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40288 *) ac_try_echo=$ac_try;;
40290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40291 (eval "$ac_link") 2>conftest.er1
40293 grep -v '^ *+' conftest.er1 >conftest.err
40295 cat conftest.err >&5
40296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40297 (exit $ac_status); } && {
40298 test -z "$ac_c_werror_flag" ||
40299 test ! -s conftest.err
40300 } && test -s conftest$ac_exeext &&
40301 $as_test_x conftest$ac_exeext; then
40302 ac_cv_lib_intl_gettext=yes
40304 echo "$as_me: failed program was:" >&5
40305 sed 's/^/| /' conftest.$ac_ext >&5
40307 ac_cv_lib_intl_gettext=no
40310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40311 conftest$ac_exeext conftest.$ac_ext
40312 LIBS=$ac_check_lib_save_LIBS
40314 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40315 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40316 if test $ac_cv_lib_intl_gettext = yes; then
40317 LIBS="$LIBS -lintl"
40322 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40323 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40324 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40325 echo $ECHO_N "(cached) $ECHO_C" >&6
40327 ac_check_lib_save_LIBS=$LIBS
40329 cat >conftest.$ac_ext <<_ACEOF
40332 cat confdefs.h >>conftest.$ac_ext
40333 cat >>conftest.$ac_ext <<_ACEOF
40334 /* end confdefs.h. */
40336 /* Override any GCC internal prototype to avoid an error.
40337 Use char because int might match the return type of a GCC
40338 builtin and then its argument prototype would still apply. */
40346 return getpwnam ();
40351 rm -f conftest.$ac_objext conftest$ac_exeext
40352 if { (ac_try="$ac_link"
40353 case "(($ac_try" in
40354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40355 *) ac_try_echo=$ac_try;;
40357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40358 (eval "$ac_link") 2>conftest.er1
40360 grep -v '^ *+' conftest.er1 >conftest.err
40362 cat conftest.err >&5
40363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40364 (exit $ac_status); } && {
40365 test -z "$ac_c_werror_flag" ||
40366 test ! -s conftest.err
40367 } && test -s conftest$ac_exeext &&
40368 $as_test_x conftest$ac_exeext; then
40369 ac_cv_lib_sun_getpwnam=yes
40371 echo "$as_me: failed program was:" >&5
40372 sed 's/^/| /' conftest.$ac_ext >&5
40374 ac_cv_lib_sun_getpwnam=no
40377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40378 conftest$ac_exeext conftest.$ac_ext
40379 LIBS=$ac_check_lib_save_LIBS
40381 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40382 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40383 if test $ac_cv_lib_sun_getpwnam = yes; then
40384 cat >>confdefs.h <<_ACEOF
40385 #define HAVE_LIBSUN 1
40394 for ac_header in zlib.h
40396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40401 echo $ECHO_N "(cached) $ECHO_C" >&6
40403 ac_res=`eval echo '${'$as_ac_Header'}'`
40404 { echo "$as_me:$LINENO: result: $ac_res" >&5
40405 echo "${ECHO_T}$ac_res" >&6; }
40407 # Is the header compilable?
40408 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40410 cat >conftest.$ac_ext <<_ACEOF
40413 cat confdefs.h >>conftest.$ac_ext
40414 cat >>conftest.$ac_ext <<_ACEOF
40415 /* end confdefs.h. */
40416 $ac_includes_default
40417 #include <$ac_header>
40419 rm -f conftest.$ac_objext
40420 if { (ac_try="$ac_compile"
40421 case "(($ac_try" in
40422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40423 *) ac_try_echo=$ac_try;;
40425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40426 (eval "$ac_compile") 2>conftest.er1
40428 grep -v '^ *+' conftest.er1 >conftest.err
40430 cat conftest.err >&5
40431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40432 (exit $ac_status); } && {
40433 test -z "$ac_c_werror_flag" ||
40434 test ! -s conftest.err
40435 } && test -s conftest.$ac_objext; then
40436 ac_header_compiler=yes
40438 echo "$as_me: failed program was:" >&5
40439 sed 's/^/| /' conftest.$ac_ext >&5
40441 ac_header_compiler=no
40444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40445 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40446 echo "${ECHO_T}$ac_header_compiler" >&6; }
40448 # Is the header present?
40449 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40450 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40451 cat >conftest.$ac_ext <<_ACEOF
40454 cat confdefs.h >>conftest.$ac_ext
40455 cat >>conftest.$ac_ext <<_ACEOF
40456 /* end confdefs.h. */
40457 #include <$ac_header>
40459 if { (ac_try="$ac_cpp conftest.$ac_ext"
40460 case "(($ac_try" in
40461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40462 *) ac_try_echo=$ac_try;;
40464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40467 grep -v '^ *+' conftest.er1 >conftest.err
40469 cat conftest.err >&5
40470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471 (exit $ac_status); } >/dev/null && {
40472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40473 test ! -s conftest.err
40475 ac_header_preproc=yes
40477 echo "$as_me: failed program was:" >&5
40478 sed 's/^/| /' conftest.$ac_ext >&5
40480 ac_header_preproc=no
40483 rm -f conftest.err conftest.$ac_ext
40484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40485 echo "${ECHO_T}$ac_header_preproc" >&6; }
40487 # So? What about this header?
40488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40494 ac_header_preproc=yes
40497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40515 echo $ECHO_N "(cached) $ECHO_C" >&6
40517 eval "$as_ac_Header=\$ac_header_preproc"
40519 ac_res=`eval echo '${'$as_ac_Header'}'`
40520 { echo "$as_me:$LINENO: result: $ac_res" >&5
40521 echo "${ECHO_T}$ac_res" >&6; }
40524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40525 cat >>confdefs.h <<_ACEOF
40526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40533 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40534 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40535 if test "${ac_cv_lib_z_deflate+set}" = set; then
40536 echo $ECHO_N "(cached) $ECHO_C" >&6
40538 ac_check_lib_save_LIBS=$LIBS
40540 cat >conftest.$ac_ext <<_ACEOF
40543 cat confdefs.h >>conftest.$ac_ext
40544 cat >>conftest.$ac_ext <<_ACEOF
40545 /* end confdefs.h. */
40547 /* Override any GCC internal prototype to avoid an error.
40548 Use char because int might match the return type of a GCC
40549 builtin and then its argument prototype would still apply. */
40562 rm -f conftest.$ac_objext conftest$ac_exeext
40563 if { (ac_try="$ac_link"
40564 case "(($ac_try" in
40565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40566 *) ac_try_echo=$ac_try;;
40568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40569 (eval "$ac_link") 2>conftest.er1
40571 grep -v '^ *+' conftest.er1 >conftest.err
40573 cat conftest.err >&5
40574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40575 (exit $ac_status); } && {
40576 test -z "$ac_c_werror_flag" ||
40577 test ! -s conftest.err
40578 } && test -s conftest$ac_exeext &&
40579 $as_test_x conftest$ac_exeext; then
40580 ac_cv_lib_z_deflate=yes
40582 echo "$as_me: failed program was:" >&5
40583 sed 's/^/| /' conftest.$ac_ext >&5
40585 ac_cv_lib_z_deflate=no
40588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40589 conftest$ac_exeext conftest.$ac_ext
40590 LIBS=$ac_check_lib_save_LIBS
40592 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40593 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40594 if test $ac_cv_lib_z_deflate = yes; then
40599 if test x$FDLIBS = x-lz; then
40600 cat >>confdefs.h <<\_ACEOF
40601 #define HAVE_LIBZ 1
40608 # Check whether --enable-acl was given.
40609 if test "${enable_acl+set}" = set; then
40610 enableval=$enable_acl;
40611 if test x$enableval = xyes; then
40613 elif test x$enableval = xno; then
40622 have_extended_acl=no
40623 if test x$support_acl = xyes -o x$support_acl = xauto; then
40624 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40625 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40626 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40627 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40628 echo $ECHO_N "(cached) $ECHO_C" >&6
40630 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40631 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40633 # Is the header compilable?
40634 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40635 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40636 cat >conftest.$ac_ext <<_ACEOF
40639 cat confdefs.h >>conftest.$ac_ext
40640 cat >>conftest.$ac_ext <<_ACEOF
40641 /* end confdefs.h. */
40642 $ac_includes_default
40643 #include <sys/acl.h>
40645 rm -f conftest.$ac_objext
40646 if { (ac_try="$ac_compile"
40647 case "(($ac_try" in
40648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40649 *) ac_try_echo=$ac_try;;
40651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40652 (eval "$ac_compile") 2>conftest.er1
40654 grep -v '^ *+' conftest.er1 >conftest.err
40656 cat conftest.err >&5
40657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40658 (exit $ac_status); } && {
40659 test -z "$ac_c_werror_flag" ||
40660 test ! -s conftest.err
40661 } && test -s conftest.$ac_objext; then
40662 ac_header_compiler=yes
40664 echo "$as_me: failed program was:" >&5
40665 sed 's/^/| /' conftest.$ac_ext >&5
40667 ac_header_compiler=no
40670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40672 echo "${ECHO_T}$ac_header_compiler" >&6; }
40674 # Is the header present?
40675 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
40676 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
40677 cat >conftest.$ac_ext <<_ACEOF
40680 cat confdefs.h >>conftest.$ac_ext
40681 cat >>conftest.$ac_ext <<_ACEOF
40682 /* end confdefs.h. */
40683 #include <sys/acl.h>
40685 if { (ac_try="$ac_cpp conftest.$ac_ext"
40686 case "(($ac_try" in
40687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40688 *) ac_try_echo=$ac_try;;
40690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40693 grep -v '^ *+' conftest.er1 >conftest.err
40695 cat conftest.err >&5
40696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40697 (exit $ac_status); } >/dev/null && {
40698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40699 test ! -s conftest.err
40701 ac_header_preproc=yes
40703 echo "$as_me: failed program was:" >&5
40704 sed 's/^/| /' conftest.$ac_ext >&5
40706 ac_header_preproc=no
40709 rm -f conftest.err conftest.$ac_ext
40710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40711 echo "${ECHO_T}$ac_header_preproc" >&6; }
40713 # So? What about this header?
40714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40716 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
40717 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40718 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
40719 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
40720 ac_header_preproc=yes
40723 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
40724 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
40725 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
40726 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
40727 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
40728 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
40729 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
40730 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
40731 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
40732 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
40733 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
40734 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
40738 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40739 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40740 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40741 echo $ECHO_N "(cached) $ECHO_C" >&6
40743 ac_cv_header_sys_acl_h=$ac_header_preproc
40745 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40746 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40749 if test $ac_cv_header_sys_acl_h = yes; then
40751 cat >>confdefs.h <<\_ACEOF
40752 #define HAVE_SYS_ACL_H 1
40758 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
40759 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
40760 if test "${ac_cv_func_acl_get_file+set}" = set; then
40761 echo $ECHO_N "(cached) $ECHO_C" >&6
40763 cat >conftest.$ac_ext <<_ACEOF
40766 cat confdefs.h >>conftest.$ac_ext
40767 cat >>conftest.$ac_ext <<_ACEOF
40768 /* end confdefs.h. */
40769 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
40770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40771 #define acl_get_file innocuous_acl_get_file
40773 /* System header to define __stub macros and hopefully few prototypes,
40774 which can conflict with char acl_get_file (); below.
40775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40776 <limits.h> exists even on freestanding compilers. */
40779 # include <limits.h>
40781 # include <assert.h>
40784 #undef acl_get_file
40786 /* Override any GCC internal prototype to avoid an error.
40787 Use char because int might match the return type of a GCC
40788 builtin and then its argument prototype would still apply. */
40792 char acl_get_file ();
40793 /* The GNU C library defines this for functions which it implements
40794 to always fail with ENOSYS. Some functions are actually named
40795 something starting with __ and the normal name is an alias. */
40796 #if defined __stub_acl_get_file || defined __stub___acl_get_file
40803 return acl_get_file ();
40808 rm -f conftest.$ac_objext conftest$ac_exeext
40809 if { (ac_try="$ac_link"
40810 case "(($ac_try" in
40811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40812 *) ac_try_echo=$ac_try;;
40814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40815 (eval "$ac_link") 2>conftest.er1
40817 grep -v '^ *+' conftest.er1 >conftest.err
40819 cat conftest.err >&5
40820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40821 (exit $ac_status); } && {
40822 test -z "$ac_c_werror_flag" ||
40823 test ! -s conftest.err
40824 } && test -s conftest$ac_exeext &&
40825 $as_test_x conftest$ac_exeext; then
40826 ac_cv_func_acl_get_file=yes
40828 echo "$as_me: failed program was:" >&5
40829 sed 's/^/| /' conftest.$ac_ext >&5
40831 ac_cv_func_acl_get_file=no
40834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40835 conftest$ac_exeext conftest.$ac_ext
40837 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
40838 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
40839 if test $ac_cv_func_acl_get_file = yes; then
40845 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
40846 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
40847 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
40848 echo $ECHO_N "(cached) $ECHO_C" >&6
40850 ac_check_lib_save_LIBS=$LIBS
40852 cat >conftest.$ac_ext <<_ACEOF
40855 cat confdefs.h >>conftest.$ac_ext
40856 cat >>conftest.$ac_ext <<_ACEOF
40857 /* end confdefs.h. */
40859 /* Override any GCC internal prototype to avoid an error.
40860 Use char because int might match the return type of a GCC
40861 builtin and then its argument prototype would still apply. */
40865 char 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_lib_acl_acl_get_file=yes
40894 echo "$as_me: failed program was:" >&5
40895 sed 's/^/| /' conftest.$ac_ext >&5
40897 ac_cv_lib_acl_acl_get_file=no
40900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40901 conftest$ac_exeext conftest.$ac_ext
40902 LIBS=$ac_check_lib_save_LIBS
40904 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
40905 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
40906 if test $ac_cv_lib_acl_acl_get_file = yes; then
40909 FDLIBS="-lacl $FDLIBS"
40913 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
40914 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
40915 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
40916 echo $ECHO_N "(cached) $ECHO_C" >&6
40918 ac_check_lib_save_LIBS=$LIBS
40919 LIBS="-lpacl $LIBS"
40920 cat >conftest.$ac_ext <<_ACEOF
40923 cat confdefs.h >>conftest.$ac_ext
40924 cat >>conftest.$ac_ext <<_ACEOF
40925 /* end confdefs.h. */
40927 /* Override any GCC internal prototype to avoid an error.
40928 Use char because int might match the return type of a GCC
40929 builtin and then its argument prototype would still apply. */
40933 char acl_get_file ();
40937 return acl_get_file ();
40942 rm -f conftest.$ac_objext conftest$ac_exeext
40943 if { (ac_try="$ac_link"
40944 case "(($ac_try" in
40945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40946 *) ac_try_echo=$ac_try;;
40948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40949 (eval "$ac_link") 2>conftest.er1
40951 grep -v '^ *+' conftest.er1 >conftest.err
40953 cat conftest.err >&5
40954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40955 (exit $ac_status); } && {
40956 test -z "$ac_c_werror_flag" ||
40957 test ! -s conftest.err
40958 } && test -s conftest$ac_exeext &&
40959 $as_test_x conftest$ac_exeext; then
40960 ac_cv_lib_pacl_acl_get_file=yes
40962 echo "$as_me: failed program was:" >&5
40963 sed 's/^/| /' conftest.$ac_ext >&5
40965 ac_cv_lib_pacl_acl_get_file=no
40968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40969 conftest$ac_exeext conftest.$ac_ext
40970 LIBS=$ac_check_lib_save_LIBS
40972 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
40973 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
40974 if test $ac_cv_lib_pacl_acl_get_file = yes; then
40977 FDLIBS="-lpacl $FDLIBS"
40981 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
40982 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
40983 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
40984 echo $ECHO_N "(cached) $ECHO_C" >&6
40986 ac_check_lib_save_LIBS=$LIBS
40988 cat >conftest.$ac_ext <<_ACEOF
40991 cat confdefs.h >>conftest.$ac_ext
40992 cat >>conftest.$ac_ext <<_ACEOF
40993 /* end confdefs.h. */
40995 /* Override any GCC internal prototype to avoid an error.
40996 Use char because int might match the return type of a GCC
40997 builtin and then its argument prototype would still apply. */
41005 return acltotext ();
41010 rm -f conftest.$ac_objext conftest$ac_exeext
41011 if { (ac_try="$ac_link"
41012 case "(($ac_try" in
41013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41014 *) ac_try_echo=$ac_try;;
41016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41017 (eval "$ac_link") 2>conftest.er1
41019 grep -v '^ *+' conftest.er1 >conftest.err
41021 cat conftest.err >&5
41022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41023 (exit $ac_status); } && {
41024 test -z "$ac_c_werror_flag" ||
41025 test ! -s conftest.err
41026 } && test -s conftest$ac_exeext &&
41027 $as_test_x conftest$ac_exeext; then
41028 ac_cv_lib_sec_acltotext=yes
41030 echo "$as_me: failed program was:" >&5
41031 sed 's/^/| /' conftest.$ac_ext >&5
41033 ac_cv_lib_sec_acltotext=no
41036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41037 conftest$ac_exeext conftest.$ac_ext
41038 LIBS=$ac_check_lib_save_LIBS
41040 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41041 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41042 if test $ac_cv_lib_sec_acltotext = yes; then
41045 FDLIBS="-lsec $FDLIBS"
41047 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41048 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41049 if test "${ac_cv_lib_sec_acl_totext+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. */
41067 char acl_totext ();
41071 return acl_totext ();
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_acl_totext=yes
41096 echo "$as_me: failed program was:" >&5
41097 sed 's/^/| /' conftest.$ac_ext >&5
41099 ac_cv_lib_sec_acl_totext=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_acl_totext" >&5
41107 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41108 if test $ac_cv_lib_sec_acl_totext = yes; then
41110 have_extended_acl=yes
41132 if test x$support_acl = xyes -a $have_acl != yes; then
41133 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41134 please either load the acl libraries or rerun configure without --enable-acl" >&5
41135 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41136 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41137 { (exit 1); exit 1; }; }
41139 if test $have_acl = yes; then
41141 cat >>confdefs.h <<\_ACEOF
41147 if test $have_extended_acl = yes; then
41149 cat >>confdefs.h <<\_ACEOF
41150 #define HAVE_EXTENDED_ACL 1
41158 # Check whether --enable-xattr was given.
41159 if test "${enable_xattr+set}" = set; then
41160 enableval=$enable_xattr;
41161 if test x$enableval = xyes; then
41163 elif test x$enableval = xno; then
41172 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41173 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41174 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41175 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41176 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41177 echo $ECHO_N "(cached) $ECHO_C" >&6
41179 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41180 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41182 # Is the header compilable?
41183 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41184 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41185 cat >conftest.$ac_ext <<_ACEOF
41188 cat confdefs.h >>conftest.$ac_ext
41189 cat >>conftest.$ac_ext <<_ACEOF
41190 /* end confdefs.h. */
41191 $ac_includes_default
41192 #include <sys/extattr.h>
41194 rm -f conftest.$ac_objext
41195 if { (ac_try="$ac_compile"
41196 case "(($ac_try" in
41197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41198 *) ac_try_echo=$ac_try;;
41200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41201 (eval "$ac_compile") 2>conftest.er1
41203 grep -v '^ *+' conftest.er1 >conftest.err
41205 cat conftest.err >&5
41206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41207 (exit $ac_status); } && {
41208 test -z "$ac_c_werror_flag" ||
41209 test ! -s conftest.err
41210 } && test -s conftest.$ac_objext; then
41211 ac_header_compiler=yes
41213 echo "$as_me: failed program was:" >&5
41214 sed 's/^/| /' conftest.$ac_ext >&5
41216 ac_header_compiler=no
41219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41220 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41221 echo "${ECHO_T}$ac_header_compiler" >&6; }
41223 # Is the header present?
41224 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41225 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41226 cat >conftest.$ac_ext <<_ACEOF
41229 cat confdefs.h >>conftest.$ac_ext
41230 cat >>conftest.$ac_ext <<_ACEOF
41231 /* end confdefs.h. */
41232 #include <sys/extattr.h>
41234 if { (ac_try="$ac_cpp conftest.$ac_ext"
41235 case "(($ac_try" in
41236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41237 *) ac_try_echo=$ac_try;;
41239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41240 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41242 grep -v '^ *+' conftest.er1 >conftest.err
41244 cat conftest.err >&5
41245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41246 (exit $ac_status); } >/dev/null && {
41247 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41248 test ! -s conftest.err
41250 ac_header_preproc=yes
41252 echo "$as_me: failed program was:" >&5
41253 sed 's/^/| /' conftest.$ac_ext >&5
41255 ac_header_preproc=no
41258 rm -f conftest.err conftest.$ac_ext
41259 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41260 echo "${ECHO_T}$ac_header_preproc" >&6; }
41262 # So? What about this header?
41263 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41265 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41266 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41267 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41268 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41269 ac_header_preproc=yes
41272 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41273 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41274 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
41275 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
41276 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41277 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41278 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
41279 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41280 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41281 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41282 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41283 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41287 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41288 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41289 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41290 echo $ECHO_N "(cached) $ECHO_C" >&6
41292 ac_cv_header_sys_extattr_h=$ac_header_preproc
41294 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41295 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41298 if test $ac_cv_header_sys_extattr_h = yes; then
41300 cat >>confdefs.h <<\_ACEOF
41301 #define HAVE_SYS_EXTATTR_H 1
41307 if test "${ac_cv_header_libutil_h+set}" = set; then
41308 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41309 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41310 if test "${ac_cv_header_libutil_h+set}" = set; then
41311 echo $ECHO_N "(cached) $ECHO_C" >&6
41313 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41314 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41316 # Is the header compilable?
41317 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41318 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41319 cat >conftest.$ac_ext <<_ACEOF
41322 cat confdefs.h >>conftest.$ac_ext
41323 cat >>conftest.$ac_ext <<_ACEOF
41324 /* end confdefs.h. */
41325 $ac_includes_default
41326 #include <libutil.h>
41328 rm -f conftest.$ac_objext
41329 if { (ac_try="$ac_compile"
41330 case "(($ac_try" in
41331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41332 *) ac_try_echo=$ac_try;;
41334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41335 (eval "$ac_compile") 2>conftest.er1
41337 grep -v '^ *+' conftest.er1 >conftest.err
41339 cat conftest.err >&5
41340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41341 (exit $ac_status); } && {
41342 test -z "$ac_c_werror_flag" ||
41343 test ! -s conftest.err
41344 } && test -s conftest.$ac_objext; then
41345 ac_header_compiler=yes
41347 echo "$as_me: failed program was:" >&5
41348 sed 's/^/| /' conftest.$ac_ext >&5
41350 ac_header_compiler=no
41353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41355 echo "${ECHO_T}$ac_header_compiler" >&6; }
41357 # Is the header present?
41358 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41359 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41360 cat >conftest.$ac_ext <<_ACEOF
41363 cat confdefs.h >>conftest.$ac_ext
41364 cat >>conftest.$ac_ext <<_ACEOF
41365 /* end confdefs.h. */
41366 #include <libutil.h>
41368 if { (ac_try="$ac_cpp conftest.$ac_ext"
41369 case "(($ac_try" in
41370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41371 *) ac_try_echo=$ac_try;;
41373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41376 grep -v '^ *+' conftest.er1 >conftest.err
41378 cat conftest.err >&5
41379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41380 (exit $ac_status); } >/dev/null && {
41381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41382 test ! -s conftest.err
41384 ac_header_preproc=yes
41386 echo "$as_me: failed program was:" >&5
41387 sed 's/^/| /' conftest.$ac_ext >&5
41389 ac_header_preproc=no
41392 rm -f conftest.err conftest.$ac_ext
41393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41394 echo "${ECHO_T}$ac_header_preproc" >&6; }
41396 # So? What about this header?
41397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41399 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41400 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41401 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41402 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41403 ac_header_preproc=yes
41406 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41407 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41408 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
41409 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
41410 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41411 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41412 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
41413 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
41414 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41415 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41416 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41417 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41421 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41422 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41423 if test "${ac_cv_header_libutil_h+set}" = set; then
41424 echo $ECHO_N "(cached) $ECHO_C" >&6
41426 ac_cv_header_libutil_h=$ac_header_preproc
41428 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41429 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41432 if test $ac_cv_header_libutil_h = yes; then
41434 cat >>confdefs.h <<\_ACEOF
41435 #define HAVE_LIBUTIL_H 1
41444 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41450 echo $ECHO_N "(cached) $ECHO_C" >&6
41452 cat >conftest.$ac_ext <<_ACEOF
41455 cat confdefs.h >>conftest.$ac_ext
41456 cat >>conftest.$ac_ext <<_ACEOF
41457 /* end confdefs.h. */
41458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41460 #define $ac_func innocuous_$ac_func
41462 /* System header to define __stub macros and hopefully few prototypes,
41463 which can conflict with char $ac_func (); below.
41464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41465 <limits.h> exists even on freestanding compilers. */
41468 # include <limits.h>
41470 # include <assert.h>
41475 /* Override any GCC internal prototype to avoid an error.
41476 Use char because int might match the return type of a GCC
41477 builtin and then its argument prototype would still apply. */
41482 /* The GNU C library defines this for functions which it implements
41483 to always fail with ENOSYS. Some functions are actually named
41484 something starting with __ and the normal name is an alias. */
41485 #if defined __stub_$ac_func || defined __stub___$ac_func
41492 return $ac_func ();
41497 rm -f conftest.$ac_objext conftest$ac_exeext
41498 if { (ac_try="$ac_link"
41499 case "(($ac_try" in
41500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41501 *) ac_try_echo=$ac_try;;
41503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41504 (eval "$ac_link") 2>conftest.er1
41506 grep -v '^ *+' conftest.er1 >conftest.err
41508 cat conftest.err >&5
41509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41510 (exit $ac_status); } && {
41511 test -z "$ac_c_werror_flag" ||
41512 test ! -s conftest.err
41513 } && test -s conftest$ac_exeext &&
41514 $as_test_x conftest$ac_exeext; then
41515 eval "$as_ac_var=yes"
41517 echo "$as_me: failed program was:" >&5
41518 sed 's/^/| /' conftest.$ac_ext >&5
41520 eval "$as_ac_var=no"
41523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41524 conftest$ac_exeext conftest.$ac_ext
41526 ac_res=`eval echo '${'$as_ac_var'}'`
41527 { echo "$as_me:$LINENO: result: $ac_res" >&5
41528 echo "${ECHO_T}$ac_res" >&6; }
41529 if test `eval echo '${'$as_ac_var'}'` = yes; then
41530 cat >>confdefs.h <<_ACEOF
41531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41536 cat >>confdefs.h <<\_ACEOF
41537 #define HAVE_EXTATTR_GET_LINK 1
41541 cat >>confdefs.h <<\_ACEOF
41542 #define HAVE_EXTATTR_SET_LINK 1
41546 cat >>confdefs.h <<\_ACEOF
41547 #define HAVE_EXTATTR_LIST_LINK 1
41556 if test $have_xattr = no; then
41560 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41566 echo $ECHO_N "(cached) $ECHO_C" >&6
41568 cat >conftest.$ac_ext <<_ACEOF
41571 cat confdefs.h >>conftest.$ac_ext
41572 cat >>conftest.$ac_ext <<_ACEOF
41573 /* end confdefs.h. */
41574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41576 #define $ac_func innocuous_$ac_func
41578 /* System header to define __stub macros and hopefully few prototypes,
41579 which can conflict with char $ac_func (); below.
41580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41581 <limits.h> exists even on freestanding compilers. */
41584 # include <limits.h>
41586 # include <assert.h>
41591 /* Override any GCC internal prototype to avoid an error.
41592 Use char because int might match the return type of a GCC
41593 builtin and then its argument prototype would still apply. */
41598 /* The GNU C library defines this for functions which it implements
41599 to always fail with ENOSYS. Some functions are actually named
41600 something starting with __ and the normal name is an alias. */
41601 #if defined __stub_$ac_func || defined __stub___$ac_func
41608 return $ac_func ();
41613 rm -f conftest.$ac_objext conftest$ac_exeext
41614 if { (ac_try="$ac_link"
41615 case "(($ac_try" in
41616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41617 *) ac_try_echo=$ac_try;;
41619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41620 (eval "$ac_link") 2>conftest.er1
41622 grep -v '^ *+' conftest.er1 >conftest.err
41624 cat conftest.err >&5
41625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41626 (exit $ac_status); } && {
41627 test -z "$ac_c_werror_flag" ||
41628 test ! -s conftest.err
41629 } && test -s conftest$ac_exeext &&
41630 $as_test_x conftest$ac_exeext; then
41631 eval "$as_ac_var=yes"
41633 echo "$as_me: failed program was:" >&5
41634 sed 's/^/| /' conftest.$ac_ext >&5
41636 eval "$as_ac_var=no"
41639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41640 conftest$ac_exeext conftest.$ac_ext
41642 ac_res=`eval echo '${'$as_ac_var'}'`
41643 { echo "$as_me:$LINENO: result: $ac_res" >&5
41644 echo "${ECHO_T}$ac_res" >&6; }
41645 if test `eval echo '${'$as_ac_var'}'` = yes; then
41646 cat >>confdefs.h <<_ACEOF
41647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41652 cat >>confdefs.h <<\_ACEOF
41653 #define HAVE_EXTATTR_GET_FILE 1
41657 cat >>confdefs.h <<\_ACEOF
41658 #define HAVE_EXTATTR_SET_FILE 1
41662 cat >>confdefs.h <<\_ACEOF
41663 #define HAVE_EXTATTR_LIST_FILE 1
41673 if test $have_xattr = yes; then
41674 have_extattr_string_in_libc=no
41677 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
41679 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41680 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41681 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41682 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41683 echo $ECHO_N "(cached) $ECHO_C" >&6
41685 cat >conftest.$ac_ext <<_ACEOF
41688 cat confdefs.h >>conftest.$ac_ext
41689 cat >>conftest.$ac_ext <<_ACEOF
41690 /* end confdefs.h. */
41691 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41693 #define $ac_func innocuous_$ac_func
41695 /* System header to define __stub macros and hopefully few prototypes,
41696 which can conflict with char $ac_func (); below.
41697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41698 <limits.h> exists even on freestanding compilers. */
41701 # include <limits.h>
41703 # include <assert.h>
41708 /* Override any GCC internal prototype to avoid an error.
41709 Use char because int might match the return type of a GCC
41710 builtin and then its argument prototype would still apply. */
41715 /* The GNU C library defines this for functions which it implements
41716 to always fail with ENOSYS. Some functions are actually named
41717 something starting with __ and the normal name is an alias. */
41718 #if defined __stub_$ac_func || defined __stub___$ac_func
41725 return $ac_func ();
41730 rm -f conftest.$ac_objext conftest$ac_exeext
41731 if { (ac_try="$ac_link"
41732 case "(($ac_try" in
41733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41734 *) ac_try_echo=$ac_try;;
41736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41737 (eval "$ac_link") 2>conftest.er1
41739 grep -v '^ *+' conftest.er1 >conftest.err
41741 cat conftest.err >&5
41742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41743 (exit $ac_status); } && {
41744 test -z "$ac_c_werror_flag" ||
41745 test ! -s conftest.err
41746 } && test -s conftest$ac_exeext &&
41747 $as_test_x conftest$ac_exeext; then
41748 eval "$as_ac_var=yes"
41750 echo "$as_me: failed program was:" >&5
41751 sed 's/^/| /' conftest.$ac_ext >&5
41753 eval "$as_ac_var=no"
41756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41757 conftest$ac_exeext conftest.$ac_ext
41759 ac_res=`eval echo '${'$as_ac_var'}'`
41760 { echo "$as_me:$LINENO: result: $ac_res" >&5
41761 echo "${ECHO_T}$ac_res" >&6; }
41762 if test `eval echo '${'$as_ac_var'}'` = yes; then
41763 cat >>confdefs.h <<_ACEOF
41764 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41767 have_extattr_string_in_libc=yes
41769 cat >>confdefs.h <<\_ACEOF
41770 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41774 cat >>confdefs.h <<\_ACEOF
41775 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41784 if test $have_extattr_string_in_libc = no; then
41785 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
41786 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
41787 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
41788 echo $ECHO_N "(cached) $ECHO_C" >&6
41790 ac_check_lib_save_LIBS=$LIBS
41791 LIBS="-lutil $LIBS"
41792 cat >conftest.$ac_ext <<_ACEOF
41795 cat confdefs.h >>conftest.$ac_ext
41796 cat >>conftest.$ac_ext <<_ACEOF
41797 /* end confdefs.h. */
41799 /* Override any GCC internal prototype to avoid an error.
41800 Use char because int might match the return type of a GCC
41801 builtin and then its argument prototype would still apply. */
41805 char extattr_namespace_to_string extattr_string_to_namespace ();
41809 return extattr_namespace_to_string extattr_string_to_namespace ();
41814 rm -f conftest.$ac_objext conftest$ac_exeext
41815 if { (ac_try="$ac_link"
41816 case "(($ac_try" in
41817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41818 *) ac_try_echo=$ac_try;;
41820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41821 (eval "$ac_link") 2>conftest.er1
41823 grep -v '^ *+' conftest.er1 >conftest.err
41825 cat conftest.err >&5
41826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41827 (exit $ac_status); } && {
41828 test -z "$ac_c_werror_flag" ||
41829 test ! -s conftest.err
41830 } && test -s conftest$ac_exeext &&
41831 $as_test_x conftest$ac_exeext; then
41832 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
41834 echo "$as_me: failed program was:" >&5
41835 sed 's/^/| /' conftest.$ac_ext >&5
41837 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
41840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41841 conftest$ac_exeext conftest.$ac_ext
41842 LIBS=$ac_check_lib_save_LIBS
41844 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
41845 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
41846 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
41849 cat >>confdefs.h <<\_ACEOF
41850 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
41854 cat >>confdefs.h <<\_ACEOF
41855 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
41858 FDLIBS="-lutil $FDLIBS"
41866 if test $have_xattr = no; then
41867 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41868 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41869 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41870 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41871 echo $ECHO_N "(cached) $ECHO_C" >&6
41873 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41874 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41876 # Is the header compilable?
41877 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
41878 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
41879 cat >conftest.$ac_ext <<_ACEOF
41882 cat confdefs.h >>conftest.$ac_ext
41883 cat >>conftest.$ac_ext <<_ACEOF
41884 /* end confdefs.h. */
41885 $ac_includes_default
41886 #include <sys/xattr.h>
41888 rm -f conftest.$ac_objext
41889 if { (ac_try="$ac_compile"
41890 case "(($ac_try" in
41891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41892 *) ac_try_echo=$ac_try;;
41894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41895 (eval "$ac_compile") 2>conftest.er1
41897 grep -v '^ *+' conftest.er1 >conftest.err
41899 cat conftest.err >&5
41900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41901 (exit $ac_status); } && {
41902 test -z "$ac_c_werror_flag" ||
41903 test ! -s conftest.err
41904 } && test -s conftest.$ac_objext; then
41905 ac_header_compiler=yes
41907 echo "$as_me: failed program was:" >&5
41908 sed 's/^/| /' conftest.$ac_ext >&5
41910 ac_header_compiler=no
41913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41914 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41915 echo "${ECHO_T}$ac_header_compiler" >&6; }
41917 # Is the header present?
41918 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
41919 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
41920 cat >conftest.$ac_ext <<_ACEOF
41923 cat confdefs.h >>conftest.$ac_ext
41924 cat >>conftest.$ac_ext <<_ACEOF
41925 /* end confdefs.h. */
41926 #include <sys/xattr.h>
41928 if { (ac_try="$ac_cpp conftest.$ac_ext"
41929 case "(($ac_try" in
41930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41931 *) ac_try_echo=$ac_try;;
41933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41936 grep -v '^ *+' conftest.er1 >conftest.err
41938 cat conftest.err >&5
41939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940 (exit $ac_status); } >/dev/null && {
41941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41942 test ! -s conftest.err
41944 ac_header_preproc=yes
41946 echo "$as_me: failed program was:" >&5
41947 sed 's/^/| /' conftest.$ac_ext >&5
41949 ac_header_preproc=no
41952 rm -f conftest.err conftest.$ac_ext
41953 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41954 echo "${ECHO_T}$ac_header_preproc" >&6; }
41956 # So? What about this header?
41957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41959 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41960 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41961 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
41962 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
41963 ac_header_preproc=yes
41966 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
41967 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
41968 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
41969 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
41970 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
41971 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
41972 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
41973 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41974 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
41975 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
41976 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
41977 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
41981 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
41982 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
41983 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
41984 echo $ECHO_N "(cached) $ECHO_C" >&6
41986 ac_cv_header_sys_xattr_h=$ac_header_preproc
41988 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
41989 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
41992 if test $ac_cv_header_sys_xattr_h = yes; then
41994 cat >>confdefs.h <<\_ACEOF
41995 #define HAVE_SYS_XATTR_H 1
42004 for ac_func in llistxattr lgetxattr lsetxattr
42006 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42007 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42008 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42009 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42010 echo $ECHO_N "(cached) $ECHO_C" >&6
42012 cat >conftest.$ac_ext <<_ACEOF
42015 cat confdefs.h >>conftest.$ac_ext
42016 cat >>conftest.$ac_ext <<_ACEOF
42017 /* end confdefs.h. */
42018 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42019 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42020 #define $ac_func innocuous_$ac_func
42022 /* System header to define __stub macros and hopefully few prototypes,
42023 which can conflict with char $ac_func (); below.
42024 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42025 <limits.h> exists even on freestanding compilers. */
42028 # include <limits.h>
42030 # include <assert.h>
42035 /* Override any GCC internal prototype to avoid an error.
42036 Use char because int might match the return type of a GCC
42037 builtin and then its argument prototype would still apply. */
42042 /* The GNU C library defines this for functions which it implements
42043 to always fail with ENOSYS. Some functions are actually named
42044 something starting with __ and the normal name is an alias. */
42045 #if defined __stub_$ac_func || defined __stub___$ac_func
42052 return $ac_func ();
42057 rm -f conftest.$ac_objext conftest$ac_exeext
42058 if { (ac_try="$ac_link"
42059 case "(($ac_try" in
42060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42061 *) ac_try_echo=$ac_try;;
42063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42064 (eval "$ac_link") 2>conftest.er1
42066 grep -v '^ *+' conftest.er1 >conftest.err
42068 cat conftest.err >&5
42069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42070 (exit $ac_status); } && {
42071 test -z "$ac_c_werror_flag" ||
42072 test ! -s conftest.err
42073 } && test -s conftest$ac_exeext &&
42074 $as_test_x conftest$ac_exeext; then
42075 eval "$as_ac_var=yes"
42077 echo "$as_me: failed program was:" >&5
42078 sed 's/^/| /' conftest.$ac_ext >&5
42080 eval "$as_ac_var=no"
42083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42084 conftest$ac_exeext conftest.$ac_ext
42086 ac_res=`eval echo '${'$as_ac_var'}'`
42087 { echo "$as_me:$LINENO: result: $ac_res" >&5
42088 echo "${ECHO_T}$ac_res" >&6; }
42089 if test `eval echo '${'$as_ac_var'}'` = yes; then
42090 cat >>confdefs.h <<_ACEOF
42091 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42096 cat >>confdefs.h <<\_ACEOF
42097 #define HAVE_LLISTXATTR 1
42101 cat >>confdefs.h <<\_ACEOF
42102 #define HAVE_LGETXATTR 1
42106 cat >>confdefs.h <<\_ACEOF
42107 #define HAVE_LSETXATTR 1
42116 if test $have_xattr = no; then
42120 for ac_func in listxattr getxattr setxattr
42122 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42123 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42124 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42125 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42126 echo $ECHO_N "(cached) $ECHO_C" >&6
42128 cat >conftest.$ac_ext <<_ACEOF
42131 cat confdefs.h >>conftest.$ac_ext
42132 cat >>conftest.$ac_ext <<_ACEOF
42133 /* end confdefs.h. */
42134 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42136 #define $ac_func innocuous_$ac_func
42138 /* System header to define __stub macros and hopefully few prototypes,
42139 which can conflict with char $ac_func (); below.
42140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42141 <limits.h> exists even on freestanding compilers. */
42144 # include <limits.h>
42146 # include <assert.h>
42151 /* Override any GCC internal prototype to avoid an error.
42152 Use char because int might match the return type of a GCC
42153 builtin and then its argument prototype would still apply. */
42158 /* The GNU C library defines this for functions which it implements
42159 to always fail with ENOSYS. Some functions are actually named
42160 something starting with __ and the normal name is an alias. */
42161 #if defined __stub_$ac_func || defined __stub___$ac_func
42168 return $ac_func ();
42173 rm -f conftest.$ac_objext conftest$ac_exeext
42174 if { (ac_try="$ac_link"
42175 case "(($ac_try" in
42176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42177 *) ac_try_echo=$ac_try;;
42179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42180 (eval "$ac_link") 2>conftest.er1
42182 grep -v '^ *+' conftest.er1 >conftest.err
42184 cat conftest.err >&5
42185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42186 (exit $ac_status); } && {
42187 test -z "$ac_c_werror_flag" ||
42188 test ! -s conftest.err
42189 } && test -s conftest$ac_exeext &&
42190 $as_test_x conftest$ac_exeext; then
42191 eval "$as_ac_var=yes"
42193 echo "$as_me: failed program was:" >&5
42194 sed 's/^/| /' conftest.$ac_ext >&5
42196 eval "$as_ac_var=no"
42199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42200 conftest$ac_exeext conftest.$ac_ext
42202 ac_res=`eval echo '${'$as_ac_var'}'`
42203 { echo "$as_me:$LINENO: result: $ac_res" >&5
42204 echo "${ECHO_T}$ac_res" >&6; }
42205 if test `eval echo '${'$as_ac_var'}'` = yes; then
42206 cat >>confdefs.h <<_ACEOF
42207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42212 cat >>confdefs.h <<\_ACEOF
42213 #define HAVE_LISTXATTR 1
42217 cat >>confdefs.h <<\_ACEOF
42218 #define HAVE_GETXATTR 1
42222 cat >>confdefs.h <<\_ACEOF
42223 #define HAVE_SETXATTR 1
42234 if test $have_xattr = no; then
42235 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42236 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42237 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42238 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42239 echo $ECHO_N "(cached) $ECHO_C" >&6
42241 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42242 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42244 # Is the header compilable?
42245 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42246 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42247 cat >conftest.$ac_ext <<_ACEOF
42250 cat confdefs.h >>conftest.$ac_ext
42251 cat >>conftest.$ac_ext <<_ACEOF
42252 /* end confdefs.h. */
42253 $ac_includes_default
42254 #include <sys/attr.h>
42256 rm -f conftest.$ac_objext
42257 if { (ac_try="$ac_compile"
42258 case "(($ac_try" in
42259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42260 *) ac_try_echo=$ac_try;;
42262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42263 (eval "$ac_compile") 2>conftest.er1
42265 grep -v '^ *+' conftest.er1 >conftest.err
42267 cat conftest.err >&5
42268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42269 (exit $ac_status); } && {
42270 test -z "$ac_c_werror_flag" ||
42271 test ! -s conftest.err
42272 } && test -s conftest.$ac_objext; then
42273 ac_header_compiler=yes
42275 echo "$as_me: failed program was:" >&5
42276 sed 's/^/| /' conftest.$ac_ext >&5
42278 ac_header_compiler=no
42281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42283 echo "${ECHO_T}$ac_header_compiler" >&6; }
42285 # Is the header present?
42286 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42287 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42288 cat >conftest.$ac_ext <<_ACEOF
42291 cat confdefs.h >>conftest.$ac_ext
42292 cat >>conftest.$ac_ext <<_ACEOF
42293 /* end confdefs.h. */
42294 #include <sys/attr.h>
42296 if { (ac_try="$ac_cpp conftest.$ac_ext"
42297 case "(($ac_try" in
42298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42299 *) ac_try_echo=$ac_try;;
42301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42302 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42304 grep -v '^ *+' conftest.er1 >conftest.err
42306 cat conftest.err >&5
42307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42308 (exit $ac_status); } >/dev/null && {
42309 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42310 test ! -s conftest.err
42312 ac_header_preproc=yes
42314 echo "$as_me: failed program was:" >&5
42315 sed 's/^/| /' conftest.$ac_ext >&5
42317 ac_header_preproc=no
42320 rm -f conftest.err conftest.$ac_ext
42321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42322 echo "${ECHO_T}$ac_header_preproc" >&6; }
42324 # So? What about this header?
42325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42327 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42328 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42329 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42330 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42331 ac_header_preproc=yes
42334 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42335 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42336 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
42337 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
42338 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42339 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42340 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
42341 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42342 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42343 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42344 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42345 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42349 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42350 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42351 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42352 echo $ECHO_N "(cached) $ECHO_C" >&6
42354 ac_cv_header_sys_attr_h=$ac_header_preproc
42356 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42357 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42360 if test $ac_cv_header_sys_attr_h = yes; then
42362 cat >>confdefs.h <<\_ACEOF
42363 #define HAVE_SYS_ATTR_H 1
42369 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42370 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42371 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42372 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42373 echo $ECHO_N "(cached) $ECHO_C" >&6
42375 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42376 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42378 # Is the header compilable?
42379 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42380 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42381 cat >conftest.$ac_ext <<_ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h. */
42387 $ac_includes_default
42388 #include <sys/nvpair.h>
42390 rm -f conftest.$ac_objext
42391 if { (ac_try="$ac_compile"
42392 case "(($ac_try" in
42393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42394 *) ac_try_echo=$ac_try;;
42396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42397 (eval "$ac_compile") 2>conftest.er1
42399 grep -v '^ *+' conftest.er1 >conftest.err
42401 cat conftest.err >&5
42402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42403 (exit $ac_status); } && {
42404 test -z "$ac_c_werror_flag" ||
42405 test ! -s conftest.err
42406 } && test -s conftest.$ac_objext; then
42407 ac_header_compiler=yes
42409 echo "$as_me: failed program was:" >&5
42410 sed 's/^/| /' conftest.$ac_ext >&5
42412 ac_header_compiler=no
42415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42417 echo "${ECHO_T}$ac_header_compiler" >&6; }
42419 # Is the header present?
42420 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42421 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42422 cat >conftest.$ac_ext <<_ACEOF
42425 cat confdefs.h >>conftest.$ac_ext
42426 cat >>conftest.$ac_ext <<_ACEOF
42427 /* end confdefs.h. */
42428 #include <sys/nvpair.h>
42430 if { (ac_try="$ac_cpp conftest.$ac_ext"
42431 case "(($ac_try" in
42432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42433 *) ac_try_echo=$ac_try;;
42435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42438 grep -v '^ *+' conftest.er1 >conftest.err
42440 cat conftest.err >&5
42441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42442 (exit $ac_status); } >/dev/null && {
42443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42444 test ! -s conftest.err
42446 ac_header_preproc=yes
42448 echo "$as_me: failed program was:" >&5
42449 sed 's/^/| /' conftest.$ac_ext >&5
42451 ac_header_preproc=no
42454 rm -f conftest.err conftest.$ac_ext
42455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42456 echo "${ECHO_T}$ac_header_preproc" >&6; }
42458 # So? What about this header?
42459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42461 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42462 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42463 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42464 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42465 ac_header_preproc=yes
42468 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42469 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42470 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
42471 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
42472 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42473 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42474 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
42475 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
42476 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42477 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42478 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42479 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42483 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42484 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42485 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42486 echo $ECHO_N "(cached) $ECHO_C" >&6
42488 ac_cv_header_sys_nvpair_h=$ac_header_preproc
42490 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42491 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42494 if test $ac_cv_header_sys_nvpair_h = yes; then
42496 cat >>confdefs.h <<\_ACEOF
42497 #define HAVE_SYS_NVPAIR_H 1
42503 if test "${ac_cv_header_attr_h+set}" = set; then
42504 { echo "$as_me:$LINENO: checking for attr.h" >&5
42505 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42506 if test "${ac_cv_header_attr_h+set}" = set; then
42507 echo $ECHO_N "(cached) $ECHO_C" >&6
42509 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42510 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42512 # Is the header compilable?
42513 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42514 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42515 cat >conftest.$ac_ext <<_ACEOF
42518 cat confdefs.h >>conftest.$ac_ext
42519 cat >>conftest.$ac_ext <<_ACEOF
42520 /* end confdefs.h. */
42521 $ac_includes_default
42524 rm -f conftest.$ac_objext
42525 if { (ac_try="$ac_compile"
42526 case "(($ac_try" in
42527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42528 *) ac_try_echo=$ac_try;;
42530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42531 (eval "$ac_compile") 2>conftest.er1
42533 grep -v '^ *+' conftest.er1 >conftest.err
42535 cat conftest.err >&5
42536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42537 (exit $ac_status); } && {
42538 test -z "$ac_c_werror_flag" ||
42539 test ! -s conftest.err
42540 } && test -s conftest.$ac_objext; then
42541 ac_header_compiler=yes
42543 echo "$as_me: failed program was:" >&5
42544 sed 's/^/| /' conftest.$ac_ext >&5
42546 ac_header_compiler=no
42549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42551 echo "${ECHO_T}$ac_header_compiler" >&6; }
42553 # Is the header present?
42554 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42555 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42556 cat >conftest.$ac_ext <<_ACEOF
42559 cat confdefs.h >>conftest.$ac_ext
42560 cat >>conftest.$ac_ext <<_ACEOF
42561 /* end confdefs.h. */
42564 if { (ac_try="$ac_cpp conftest.$ac_ext"
42565 case "(($ac_try" in
42566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42567 *) ac_try_echo=$ac_try;;
42569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42572 grep -v '^ *+' conftest.er1 >conftest.err
42574 cat conftest.err >&5
42575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42576 (exit $ac_status); } >/dev/null && {
42577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42578 test ! -s conftest.err
42580 ac_header_preproc=yes
42582 echo "$as_me: failed program was:" >&5
42583 sed 's/^/| /' conftest.$ac_ext >&5
42585 ac_header_preproc=no
42588 rm -f conftest.err conftest.$ac_ext
42589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42590 echo "${ECHO_T}$ac_header_preproc" >&6; }
42592 # So? What about this header?
42593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42595 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42596 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42597 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42598 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42599 ac_header_preproc=yes
42602 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42603 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42604 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
42605 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
42606 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42607 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42608 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
42609 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42610 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42611 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42612 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42613 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42617 { echo "$as_me:$LINENO: checking for attr.h" >&5
42618 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42619 if test "${ac_cv_header_attr_h+set}" = set; then
42620 echo $ECHO_N "(cached) $ECHO_C" >&6
42622 ac_cv_header_attr_h=$ac_header_preproc
42624 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42625 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42628 if test $ac_cv_header_attr_h = yes; then
42630 cat >>confdefs.h <<\_ACEOF
42631 #define HAVE_ATTR_H 1
42643 for ac_func in openat fstatat unlinkat fchownat futimesat
42645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42649 echo $ECHO_N "(cached) $ECHO_C" >&6
42651 cat >conftest.$ac_ext <<_ACEOF
42654 cat confdefs.h >>conftest.$ac_ext
42655 cat >>conftest.$ac_ext <<_ACEOF
42656 /* end confdefs.h. */
42657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42659 #define $ac_func innocuous_$ac_func
42661 /* System header to define __stub macros and hopefully few prototypes,
42662 which can conflict with char $ac_func (); below.
42663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42664 <limits.h> exists even on freestanding compilers. */
42667 # include <limits.h>
42669 # include <assert.h>
42674 /* Override any GCC internal prototype to avoid an error.
42675 Use char because int might match the return type of a GCC
42676 builtin and then its argument prototype would still apply. */
42681 /* The GNU C library defines this for functions which it implements
42682 to always fail with ENOSYS. Some functions are actually named
42683 something starting with __ and the normal name is an alias. */
42684 #if defined __stub_$ac_func || defined __stub___$ac_func
42691 return $ac_func ();
42696 rm -f conftest.$ac_objext conftest$ac_exeext
42697 if { (ac_try="$ac_link"
42698 case "(($ac_try" in
42699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42700 *) ac_try_echo=$ac_try;;
42702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42703 (eval "$ac_link") 2>conftest.er1
42705 grep -v '^ *+' conftest.er1 >conftest.err
42707 cat conftest.err >&5
42708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42709 (exit $ac_status); } && {
42710 test -z "$ac_c_werror_flag" ||
42711 test ! -s conftest.err
42712 } && test -s conftest$ac_exeext &&
42713 $as_test_x conftest$ac_exeext; then
42714 eval "$as_ac_var=yes"
42716 echo "$as_me: failed program was:" >&5
42717 sed 's/^/| /' conftest.$ac_ext >&5
42719 eval "$as_ac_var=no"
42722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42723 conftest$ac_exeext conftest.$ac_ext
42725 ac_res=`eval echo '${'$as_ac_var'}'`
42726 { echo "$as_me:$LINENO: result: $ac_res" >&5
42727 echo "${ECHO_T}$ac_res" >&6; }
42728 if test `eval echo '${'$as_ac_var'}'` = yes; then
42729 cat >>confdefs.h <<_ACEOF
42730 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42735 cat >>confdefs.h <<\_ACEOF
42736 #define HAVE_OPENAT 1
42740 cat >>confdefs.h <<\_ACEOF
42741 #define HAVE_FSTATAT 1
42745 cat >>confdefs.h <<\_ACEOF
42746 #define HAVE_UNLINKAT 1
42750 cat >>confdefs.h <<\_ACEOF
42751 #define HAVE_FCHOWNAT 1
42755 cat >>confdefs.h <<\_ACEOF
42756 #define HAVE_FUTIMESAT 1
42765 if test $have_xattr = yes; then
42766 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
42767 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
42768 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
42769 echo $ECHO_N "(cached) $ECHO_C" >&6
42771 ac_check_lib_save_LIBS=$LIBS
42772 LIBS="-lnvpair $LIBS"
42773 cat >conftest.$ac_ext <<_ACEOF
42776 cat confdefs.h >>conftest.$ac_ext
42777 cat >>conftest.$ac_ext <<_ACEOF
42778 /* end confdefs.h. */
42780 /* Override any GCC internal prototype to avoid an error.
42781 Use char because int might match the return type of a GCC
42782 builtin and then its argument prototype would still apply. */
42786 char nvlist_next_nvpair ();
42790 return nvlist_next_nvpair ();
42795 rm -f conftest.$ac_objext conftest$ac_exeext
42796 if { (ac_try="$ac_link"
42797 case "(($ac_try" in
42798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42799 *) ac_try_echo=$ac_try;;
42801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42802 (eval "$ac_link") 2>conftest.er1
42804 grep -v '^ *+' conftest.er1 >conftest.err
42806 cat conftest.err >&5
42807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42808 (exit $ac_status); } && {
42809 test -z "$ac_c_werror_flag" ||
42810 test ! -s conftest.err
42811 } && test -s conftest$ac_exeext &&
42812 $as_test_x conftest$ac_exeext; then
42813 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
42815 echo "$as_me: failed program was:" >&5
42816 sed 's/^/| /' conftest.$ac_ext >&5
42818 ac_cv_lib_nvpair_nvlist_next_nvpair=no
42821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42822 conftest$ac_exeext conftest.$ac_ext
42823 LIBS=$ac_check_lib_save_LIBS
42825 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
42826 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
42827 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
42830 cat >>confdefs.h <<\_ACEOF
42831 #define HAVE_NVLIST_NEXT_NVPAIR 1
42834 FDLIBS="-lnvpair $FDLIBS"
42842 if test x$support_xattr = xyes -a $have_xattr != yes; then
42843 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
42844 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
42845 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
42846 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
42847 { (exit 1); exit 1; }; }
42849 if test $have_xattr = yes; then
42851 cat >>confdefs.h <<\_ACEOF
42852 #define HAVE_XATTR 1
42860 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
42861 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
42862 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
42863 echo $ECHO_N "(cached) $ECHO_C" >&6
42865 ac_check_lib_save_LIBS=$LIBS
42866 LIBS="-lpthread $LIBS"
42867 cat >conftest.$ac_ext <<_ACEOF
42870 cat confdefs.h >>conftest.$ac_ext
42871 cat >>conftest.$ac_ext <<_ACEOF
42872 /* end confdefs.h. */
42874 /* Override any GCC internal prototype to avoid an error.
42875 Use char because int might match the return type of a GCC
42876 builtin and then its argument prototype would still apply. */
42880 char pthread_create ();
42884 return pthread_create ();
42889 rm -f conftest.$ac_objext conftest$ac_exeext
42890 if { (ac_try="$ac_link"
42891 case "(($ac_try" in
42892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42893 *) ac_try_echo=$ac_try;;
42895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42896 (eval "$ac_link") 2>conftest.er1
42898 grep -v '^ *+' conftest.er1 >conftest.err
42900 cat conftest.err >&5
42901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42902 (exit $ac_status); } && {
42903 test -z "$ac_c_werror_flag" ||
42904 test ! -s conftest.err
42905 } && test -s conftest$ac_exeext &&
42906 $as_test_x conftest$ac_exeext; then
42907 ac_cv_lib_pthread_pthread_create=yes
42909 echo "$as_me: failed program was:" >&5
42910 sed 's/^/| /' conftest.$ac_ext >&5
42912 ac_cv_lib_pthread_pthread_create=no
42915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42916 conftest$ac_exeext conftest.$ac_ext
42917 LIBS=$ac_check_lib_save_LIBS
42919 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
42920 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
42921 if test $ac_cv_lib_pthread_pthread_create = yes; then
42922 PTHREAD_LIB="-lpthread"
42925 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
42926 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
42927 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
42928 echo $ECHO_N "(cached) $ECHO_C" >&6
42930 ac_check_lib_save_LIBS=$LIBS
42931 LIBS="-lpthreads $LIBS"
42932 cat >conftest.$ac_ext <<_ACEOF
42935 cat confdefs.h >>conftest.$ac_ext
42936 cat >>conftest.$ac_ext <<_ACEOF
42937 /* end confdefs.h. */
42939 /* Override any GCC internal prototype to avoid an error.
42940 Use char because int might match the return type of a GCC
42941 builtin and then its argument prototype would still apply. */
42945 char pthread_create ();
42949 return pthread_create ();
42954 rm -f conftest.$ac_objext conftest$ac_exeext
42955 if { (ac_try="$ac_link"
42956 case "(($ac_try" in
42957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42958 *) ac_try_echo=$ac_try;;
42960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42961 (eval "$ac_link") 2>conftest.er1
42963 grep -v '^ *+' conftest.er1 >conftest.err
42965 cat conftest.err >&5
42966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42967 (exit $ac_status); } && {
42968 test -z "$ac_c_werror_flag" ||
42969 test ! -s conftest.err
42970 } && test -s conftest$ac_exeext &&
42971 $as_test_x conftest$ac_exeext; then
42972 ac_cv_lib_pthreads_pthread_create=yes
42974 echo "$as_me: failed program was:" >&5
42975 sed 's/^/| /' conftest.$ac_ext >&5
42977 ac_cv_lib_pthreads_pthread_create=no
42980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42981 conftest$ac_exeext conftest.$ac_ext
42982 LIBS=$ac_check_lib_save_LIBS
42984 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
42985 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
42986 if test $ac_cv_lib_pthreads_pthread_create = yes; then
42987 PTHREAD_LIB="-lpthreads"
42990 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
42991 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
42992 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
42993 echo $ECHO_N "(cached) $ECHO_C" >&6
42995 ac_check_lib_save_LIBS=$LIBS
42997 cat >conftest.$ac_ext <<_ACEOF
43000 cat confdefs.h >>conftest.$ac_ext
43001 cat >>conftest.$ac_ext <<_ACEOF
43002 /* end confdefs.h. */
43004 /* Override any GCC internal prototype to avoid an error.
43005 Use char because int might match the return type of a GCC
43006 builtin and then its argument prototype would still apply. */
43010 char pthread_create ();
43014 return pthread_create ();
43019 rm -f conftest.$ac_objext conftest$ac_exeext
43020 if { (ac_try="$ac_link"
43021 case "(($ac_try" in
43022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43023 *) ac_try_echo=$ac_try;;
43025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43026 (eval "$ac_link") 2>conftest.er1
43028 grep -v '^ *+' conftest.er1 >conftest.err
43030 cat conftest.err >&5
43031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43032 (exit $ac_status); } && {
43033 test -z "$ac_c_werror_flag" ||
43034 test ! -s conftest.err
43035 } && test -s conftest$ac_exeext &&
43036 $as_test_x conftest$ac_exeext; then
43037 ac_cv_lib_c_r_pthread_create=yes
43039 echo "$as_me: failed program was:" >&5
43040 sed 's/^/| /' conftest.$ac_ext >&5
43042 ac_cv_lib_c_r_pthread_create=no
43045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43046 conftest$ac_exeext conftest.$ac_ext
43047 LIBS=$ac_check_lib_save_LIBS
43049 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43050 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43051 if test $ac_cv_lib_c_r_pthread_create = yes; then
43052 PTHREAD_LIB="-lc_r"
43055 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43056 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43057 if test "${ac_cv_func_pthread_create+set}" = set; then
43058 echo $ECHO_N "(cached) $ECHO_C" >&6
43060 cat >conftest.$ac_ext <<_ACEOF
43063 cat confdefs.h >>conftest.$ac_ext
43064 cat >>conftest.$ac_ext <<_ACEOF
43065 /* end confdefs.h. */
43066 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43068 #define pthread_create innocuous_pthread_create
43070 /* System header to define __stub macros and hopefully few prototypes,
43071 which can conflict with char pthread_create (); below.
43072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43073 <limits.h> exists even on freestanding compilers. */
43076 # include <limits.h>
43078 # include <assert.h>
43081 #undef pthread_create
43083 /* Override any GCC internal prototype to avoid an error.
43084 Use char because int might match the return type of a GCC
43085 builtin and then its argument prototype would still apply. */
43089 char pthread_create ();
43090 /* The GNU C library defines this for functions which it implements
43091 to always fail with ENOSYS. Some functions are actually named
43092 something starting with __ and the normal name is an alias. */
43093 #if defined __stub_pthread_create || defined __stub___pthread_create
43100 return pthread_create ();
43105 rm -f conftest.$ac_objext conftest$ac_exeext
43106 if { (ac_try="$ac_link"
43107 case "(($ac_try" in
43108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43109 *) ac_try_echo=$ac_try;;
43111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43112 (eval "$ac_link") 2>conftest.er1
43114 grep -v '^ *+' conftest.er1 >conftest.err
43116 cat conftest.err >&5
43117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43118 (exit $ac_status); } && {
43119 test -z "$ac_c_werror_flag" ||
43120 test ! -s conftest.err
43121 } && test -s conftest$ac_exeext &&
43122 $as_test_x conftest$ac_exeext; then
43123 ac_cv_func_pthread_create=yes
43125 echo "$as_me: failed program was:" >&5
43126 sed 's/^/| /' conftest.$ac_ext >&5
43128 ac_cv_func_pthread_create=no
43131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43132 conftest$ac_exeext conftest.$ac_ext
43134 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43135 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43152 for ac_header in sys/prctl.h sys/capability.h
43154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43156 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43159 echo $ECHO_N "(cached) $ECHO_C" >&6
43161 ac_res=`eval echo '${'$as_ac_Header'}'`
43162 { echo "$as_me:$LINENO: result: $ac_res" >&5
43163 echo "${ECHO_T}$ac_res" >&6; }
43165 # Is the header compilable?
43166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43168 cat >conftest.$ac_ext <<_ACEOF
43171 cat confdefs.h >>conftest.$ac_ext
43172 cat >>conftest.$ac_ext <<_ACEOF
43173 /* end confdefs.h. */
43174 $ac_includes_default
43175 #include <$ac_header>
43177 rm -f conftest.$ac_objext
43178 if { (ac_try="$ac_compile"
43179 case "(($ac_try" in
43180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43181 *) ac_try_echo=$ac_try;;
43183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43184 (eval "$ac_compile") 2>conftest.er1
43186 grep -v '^ *+' conftest.er1 >conftest.err
43188 cat conftest.err >&5
43189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43190 (exit $ac_status); } && {
43191 test -z "$ac_c_werror_flag" ||
43192 test ! -s conftest.err
43193 } && test -s conftest.$ac_objext; then
43194 ac_header_compiler=yes
43196 echo "$as_me: failed program was:" >&5
43197 sed 's/^/| /' conftest.$ac_ext >&5
43199 ac_header_compiler=no
43202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43204 echo "${ECHO_T}$ac_header_compiler" >&6; }
43206 # Is the header present?
43207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43209 cat >conftest.$ac_ext <<_ACEOF
43212 cat confdefs.h >>conftest.$ac_ext
43213 cat >>conftest.$ac_ext <<_ACEOF
43214 /* end confdefs.h. */
43215 #include <$ac_header>
43217 if { (ac_try="$ac_cpp conftest.$ac_ext"
43218 case "(($ac_try" in
43219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43220 *) ac_try_echo=$ac_try;;
43222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43223 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43225 grep -v '^ *+' conftest.er1 >conftest.err
43227 cat conftest.err >&5
43228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43229 (exit $ac_status); } >/dev/null && {
43230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43231 test ! -s conftest.err
43233 ac_header_preproc=yes
43235 echo "$as_me: failed program was:" >&5
43236 sed 's/^/| /' conftest.$ac_ext >&5
43238 ac_header_preproc=no
43241 rm -f conftest.err conftest.$ac_ext
43242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43243 echo "${ECHO_T}$ac_header_preproc" >&6; }
43245 # So? What about this header?
43246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43252 ac_header_preproc=yes
43255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43273 echo $ECHO_N "(cached) $ECHO_C" >&6
43275 eval "$as_ac_Header=\$ac_header_preproc"
43277 ac_res=`eval echo '${'$as_ac_Header'}'`
43278 { echo "$as_me:$LINENO: result: $ac_res" >&5
43279 echo "${ECHO_T}$ac_res" >&6; }
43282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43283 cat >>confdefs.h <<_ACEOF
43284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43293 for ac_func in prctl setreuid
43295 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43296 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43297 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43299 echo $ECHO_N "(cached) $ECHO_C" >&6
43301 cat >conftest.$ac_ext <<_ACEOF
43304 cat confdefs.h >>conftest.$ac_ext
43305 cat >>conftest.$ac_ext <<_ACEOF
43306 /* end confdefs.h. */
43307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43309 #define $ac_func innocuous_$ac_func
43311 /* System header to define __stub macros and hopefully few prototypes,
43312 which can conflict with char $ac_func (); below.
43313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43314 <limits.h> exists even on freestanding compilers. */
43317 # include <limits.h>
43319 # include <assert.h>
43324 /* Override any GCC internal prototype to avoid an error.
43325 Use char because int might match the return type of a GCC
43326 builtin and then its argument prototype would still apply. */
43331 /* The GNU C library defines this for functions which it implements
43332 to always fail with ENOSYS. Some functions are actually named
43333 something starting with __ and the normal name is an alias. */
43334 #if defined __stub_$ac_func || defined __stub___$ac_func
43341 return $ac_func ();
43346 rm -f conftest.$ac_objext conftest$ac_exeext
43347 if { (ac_try="$ac_link"
43348 case "(($ac_try" in
43349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43350 *) ac_try_echo=$ac_try;;
43352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43353 (eval "$ac_link") 2>conftest.er1
43355 grep -v '^ *+' conftest.er1 >conftest.err
43357 cat conftest.err >&5
43358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43359 (exit $ac_status); } && {
43360 test -z "$ac_c_werror_flag" ||
43361 test ! -s conftest.err
43362 } && test -s conftest$ac_exeext &&
43363 $as_test_x conftest$ac_exeext; then
43364 eval "$as_ac_var=yes"
43366 echo "$as_me: failed program was:" >&5
43367 sed 's/^/| /' conftest.$ac_ext >&5
43369 eval "$as_ac_var=no"
43372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43373 conftest$ac_exeext conftest.$ac_ext
43375 ac_res=`eval echo '${'$as_ac_var'}'`
43376 { echo "$as_me:$LINENO: result: $ac_res" >&5
43377 echo "${ECHO_T}$ac_res" >&6; }
43378 if test `eval echo '${'$as_ac_var'}'` = yes; then
43379 cat >>confdefs.h <<_ACEOF
43380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43386 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43387 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43388 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43389 echo $ECHO_N "(cached) $ECHO_C" >&6
43391 ac_check_lib_save_LIBS=$LIBS
43393 cat >conftest.$ac_ext <<_ACEOF
43396 cat confdefs.h >>conftest.$ac_ext
43397 cat >>conftest.$ac_ext <<_ACEOF
43398 /* end confdefs.h. */
43400 /* Override any GCC internal prototype to avoid an error.
43401 Use char because int might match the return type of a GCC
43402 builtin and then its argument prototype would still apply. */
43406 char cap_set_proc ();
43410 return cap_set_proc ();
43415 rm -f conftest.$ac_objext conftest$ac_exeext
43416 if { (ac_try="$ac_link"
43417 case "(($ac_try" in
43418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43419 *) ac_try_echo=$ac_try;;
43421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43422 (eval "$ac_link") 2>conftest.er1
43424 grep -v '^ *+' conftest.er1 >conftest.err
43426 cat conftest.err >&5
43427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43428 (exit $ac_status); } && {
43429 test -z "$ac_c_werror_flag" ||
43430 test ! -s conftest.err
43431 } && test -s conftest$ac_exeext &&
43432 $as_test_x conftest$ac_exeext; then
43433 ac_cv_lib_cap_cap_set_proc=yes
43435 echo "$as_me: failed program was:" >&5
43436 sed 's/^/| /' conftest.$ac_ext >&5
43438 ac_cv_lib_cap_cap_set_proc=no
43441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43442 conftest$ac_exeext conftest.$ac_ext
43443 LIBS=$ac_check_lib_save_LIBS
43445 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43446 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43447 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43453 if test x$CAP_LIBS = x-lcap; then
43455 cat >>confdefs.h <<\_ACEOF
43456 #define HAVE_LIBCAP 1
43463 cat >>confdefs.h <<\_ACEOF
43468 CFLAGS=${CFLAGS--O}
43470 if test x$have_gcc = xyes ; then
43471 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43472 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43474 LDFLAGS=${LDFLAGS--O}
43475 DB_LIBS="${SQL_LFLAGS}"
43476 CPPFLAGS="$CPPFLAGS"
43503 PFILES="platforms/Makefile"
43508 hostname=`uname -n | cut -d '.' -f 1`
43509 if test x${hostname} = x ; then
43510 hostname="localhost"
43512 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43513 if test ! $? = 0; then
43514 hostname="localhost"
43517 case "$DISTNAME" in
43520 PSCMD="ps -e -o pid,comm"
43521 PFILES="${PFILES} \
43522 platforms/aix/Makefile"
43523 TAPEDRIVE="/dev/rmt0.1"
43527 PTHREAD_LIB="-lpthread -lexc"
43528 if test "${CC}" = "gcc" ; then
43535 TAPEDRIVE="/dev/nrmt0"
43538 DISTVER=`uname -a |awk '{print $3}'`
43539 TAPEDRIVE="/dev/nrmt0"
43540 PTHREAD_LIB="-pthread"
43541 CFLAGS="${CFLAGS} -pthread"
43542 PSCMD="ps -ax -o pid,command"
43545 PFILES="${PFILES} \
43546 platforms/bsdi/Makefile \
43547 platforms/bsdi/bacula-fd \
43548 platforms/bsdi/bacula-sd \
43549 platforms/bsdi/bacula-dir"
43550 largefile_support="yes"
43553 DISTVER=`uname -a |awk '{print $3}'`
43554 TAPEDRIVE="/dev/nrst0"
43556 WCFLAGS="-mwindows"
43557 WLDFLAGS="-mwindows"
43561 TAPEDRIVE="/dev/nst0"
43562 PSCMD="ps -e -o pid,command"
43564 PFILES="${PFILES} \
43565 platforms/darwin/Makefile"
43569 TAPEDRIVE="/dev/nst0"
43570 PSCMD="ps -e -o pid,command"
43572 PFILES="${PFILES} \
43573 platforms/osx/Makefile"
43576 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43579 DISTVER=`cat /etc/debian_version`
43580 if test -f /etc/lsb-release ; then
43582 if test "x$DISTRIB_ID" != "x" ; then
43583 DISTNAME=$DISTRIB_ID
43585 if test "x$DISTRIB_RELEASE" != "x" ; then
43586 DISTVER=$DISTRIB_RELEASE
43589 if test "$DISTNAME" = "Ubuntu" ; then
43592 TAPEDRIVE="/dev/nst0"
43593 PSCMD="ps -e -o pid,command"
43594 if test "$DISTNAME" = "ubuntu" ; then
43595 PFILES="${PFILES} \
43596 platforms/ubuntu/Makefile \
43597 platforms/ubuntu/bacula-fd \
43598 platforms/ubuntu/bacula-sd \
43599 platforms/ubuntu/bacula-dir"
43601 PFILES="${PFILES} \
43602 platforms/debian/Makefile \
43603 platforms/debian/bacula-fd \
43604 platforms/debian/bacula-sd \
43605 platforms/debian/bacula-dir"
43609 DISTVER=`uname -a |awk '{print $3}'`
43610 VER=`echo $DISTVER | cut -c 1`
43611 if test x$VER = x4 ; then
43612 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43613 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43617 TAPEDRIVE="/dev/nrsa0"
43618 PSCMD="ps -ax -o pid,command"
43619 PFILES="${PFILES} \
43620 platforms/freebsd/Makefile \
43621 platforms/freebsd/bacula-fd \
43622 platforms/freebsd/bacula-sd \
43623 platforms/freebsd/bacula-dir"
43624 largefile_support="yes"
43627 PSCMD="UNIX95=1; ps -e -o pid,comm"
43628 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43630 TAPEDRIVE="/dev/rmt/0hnb"
43631 PTHREAD_LIB="-lpthread"
43632 cat >>confdefs.h <<\_ACEOF
43633 #define _INCLUDE_LONGLONG 1
43639 TAPEDRIVE="/dev/rmt/0cbn"
43640 PSCMD="ps -e -o pid,comm"
43641 PFILES="${PFILES} \
43642 platforms/irix/Makefile \
43643 platforms/irix/bacula-fd \
43644 platforms/irix/bacula-sd \
43645 platforms/irix/bacula-dir"
43648 DISTVER=`uname -a |awk '{print $3}'`
43651 TAPEDRIVE="/dev/nrst0"
43652 PSCMD="ps -ax -o pid,command"
43653 PTHREAD_LIB="-pthread"
43654 CFLAGS="${CFLAGS} -pthread"
43657 DISTVER=`uname -a |awk '{print $3}'`
43660 TAPEDRIVE="/dev/nrst0"
43661 PSCMD="ps -ax -o pid,command"
43662 PTHREAD_LIB="-pthread"
43663 CFLAGS="${CFLAGS} -pthread"
43664 PFILES="${PFILES} \
43665 platforms/openbsd/Makefile \
43666 platforms/openbsd/bacula-fd \
43667 platforms/openbsd/bacula-sd \
43668 platforms/openbsd/bacula-dir"
43671 if test -f /etc/whitebox-release ; then
43672 f=/etc/whitebox-release
43674 f=/etc/redhat-release
43676 if test `cat $f | grep release |\
43677 cut -f 3 -d ' '`x = "Enterprise"x ; then
43678 DISTVER="Enterprise "`cat $f | grep release |\
43681 DISTVER=`cat /etc/redhat-release | grep release |\
43684 TAPEDRIVE="/dev/nst0"
43685 PSCMD="ps -e -o pid,command"
43686 PFILES="${PFILES} \
43687 platforms/redhat/Makefile \
43688 platforms/redhat/bacula-fd \
43689 platforms/redhat/bacula-sd \
43690 platforms/redhat/bacula-dir
43694 DISTVER=`cat /etc/mandrake-release | grep release |\
43696 TAPEDRIVE="/dev/nst0"
43697 PSCMD="ps -e -o pid,command"
43698 PFILES="${PFILES} \
43699 platforms/mandrake/Makefile \
43700 platforms/mandrake/bacula-fd \
43701 platforms/mandrake/bacula-sd \
43702 platforms/mandrake/bacula-dir \
43703 platforms/mandrake/bacula.spec \
43707 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
43708 TAPEDRIVE="/dev/nst0"
43709 PSCMD="ps -e -o pid,command"
43710 PFILES="${PFILES} \
43711 platforms/gentoo/Makefile \
43712 platforms/gentoo/bacula-init \
43713 platforms/gentoo/bacula-fd \
43714 platforms/gentoo/bacula-sd \
43715 platforms/gentoo/bacula-dir"
43718 DISTVER=`cat /etc/slackware-version`
43719 TAPEDRIVE="/dev/nst0"
43720 PSCMD="ps -e -o pid,command"
43721 PFILES="${PFILES} \
43722 platforms/slackware/Makefile \
43723 platforms/slackware/rc.bacula-fd \
43724 platforms/slackware/rc.bacula-sd \
43725 platforms/slackware/rc.bacula-dir\
43726 platforms/slackware/functions.bacula"
43730 TAPEDRIVE="/dev/rmt/0cbn"
43731 PSCMD="ps -e -o pid,comm"
43732 PFILES="${PFILES} \
43733 platforms/solaris/Makefile \
43734 platforms/solaris/bacula-fd \
43735 platforms/solaris/bacula-sd \
43736 platforms/solaris/bacula-dir"
43737 if test x$DISTVER = x5.6 ; then
43738 cat >>confdefs.h <<\_ACEOF
43739 #define HAVE_OLD_SOCKOPT 1
43743 LIBS="$LIBS -lresolv"
43746 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
43748 TAPEDRIVE="/dev/nst0"
43749 PSCMD="ps -e -o pid,command"
43750 PFILES="${PFILES} \
43751 platforms/suse/Makefile \
43752 platforms/suse/bacula-fd \
43753 platforms/suse/bacula-sd \
43754 platforms/suse/bacula-dir \
43755 platforms/suse/bacula \
43756 platforms/suse/bacula.spec"
43761 TAPEDRIVE="/dev/nst0"
43762 PSCMD="ps -e -o pid,command"
43763 PFILES="${PFILES} \
43764 platforms/suse/Makefile \
43765 platforms/suse/bacula-fd \
43766 platforms/suse/bacula-sd \
43767 platforms/suse/bacula-dir"
43771 TAPEDRIVE="/dev/nst0"
43774 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
43780 LIBS="$PTHREAD_LIB $LIBS"
43782 cat >>confdefs.h <<_ACEOF
43786 cat >>confdefs.h <<_ACEOF
43797 MCOMMON=./autoconf/Make.common
43800 if test "x${subsysdir}" = "x${sbindir}" ; then
43803 echo "You have set both --sbindir and --with-subsys-dir"
43804 echo " equal to: ${subsysdir} "
43805 echo "This is not permitted. Please reconfigure."
43807 echo "Aborting configuration ..."
43813 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_sqlite_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
43815 ac_config_commands="$ac_config_commands default"
43817 cat >confcache <<\_ACEOF
43818 # This file is a shell script that caches the results of configure
43819 # tests run on this system so they can be shared between configure
43820 # scripts and configure runs, see configure's option --config-cache.
43821 # It is not useful on other systems. If it contains results you don't
43822 # want to keep, you may remove or edit it.
43824 # config.status only pays attention to the cache file if you give it
43825 # the --recheck option to rerun configure.
43827 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43828 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43829 # following values.
43833 # The following way of writing the cache mishandles newlines in values,
43834 # but we know of no workaround that is simple, portable, and efficient.
43835 # So, we kill variables containing newlines.
43836 # Ultrix sh set writes to stderr and can't be redirected directly,
43837 # and sets the high bit in the cache file unless we assign to the vars.
43839 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43840 eval ac_val=\$$ac_var
43844 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
43845 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
43848 _ | IFS | as_nl) ;; #(
43849 *) $as_unset $ac_var ;;
43855 case $as_nl`(ac_space=' '; set) 2>&1` in #(
43856 *${as_nl}ac_space=\ *)
43857 # `set' does not quote correctly, so add quotes (double-quote
43858 # substitution turns \\\\ into \\, and sed turns \\ into \).
43861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43864 # `set' quotes correctly as required by POSIX, so do not add quotes.
43865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43876 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43878 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43879 if test -w "$cache_file"; then
43880 test "x$cache_file" != "x/dev/null" &&
43881 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
43882 echo "$as_me: updating cache $cache_file" >&6;}
43883 cat confcache >$cache_file
43885 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43886 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43892 # Let make expand exec_prefix.
43893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43895 DEFS=-DHAVE_CONFIG_H
43899 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43900 # 1. Remove the extension, and $U if already installed.
43901 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43902 ac_i=`echo "$ac_i" | sed "$ac_script"`
43903 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
43904 # will be set to the directory where LIBOBJS objects are built.
43905 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43906 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43908 LIBOBJS=$ac_libobjs
43910 LTLIBOBJS=$ac_ltlibobjs
43914 : ${CONFIG_STATUS=./config.status}
43915 ac_clean_files_save=$ac_clean_files
43916 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43917 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43918 echo "$as_me: creating $CONFIG_STATUS" >&6;}
43919 cat >$CONFIG_STATUS <<_ACEOF
43921 # Generated by $as_me.
43922 # Run this file to recreate the current configuration.
43923 # Compiler output produced by configure, useful for debugging
43924 # configure, is in config.log if it exists.
43927 ac_cs_recheck=false
43929 SHELL=\${CONFIG_SHELL-$SHELL}
43932 cat >>$CONFIG_STATUS <<\_ACEOF
43933 ## --------------------- ##
43934 ## M4sh Initialization. ##
43935 ## --------------------- ##
43937 # Be more Bourne compatible
43938 DUALCASE=1; export DUALCASE # for MKS sh
43939 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43942 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43943 # is contrary to our usage. Disable this feature.
43944 alias -g '${1+"$@"}'='"$@"'
43945 setopt NO_GLOB_SUBST
43947 case `(set -o) 2>/dev/null` in
43948 *posix*) set -o posix ;;
43957 # Avoid depending upon Character Ranges.
43958 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43959 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43960 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43961 as_cr_digits='0123456789'
43962 as_cr_alnum=$as_cr_Letters$as_cr_digits
43964 # The user is always right.
43965 if test "${PATH_SEPARATOR+set}" != set; then
43966 echo "#! /bin/sh" >conf$$.sh
43967 echo "exit 0" >>conf$$.sh
43969 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43977 # Support unset when possible.
43978 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43986 # We need space, tab and new line, in precisely that order. Quoting is
43987 # there to prevent editors from complaining about space-tab.
43988 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43989 # splitting by setting IFS to empty value.)
43994 # Find who we are. Look in the path if we contain no directory separator.
43996 *[\\/]* ) as_myself=$0 ;;
43997 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43998 for as_dir in $PATH
44001 test -z "$as_dir" && as_dir=.
44002 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44008 # We did not find ourselves, most probably we were run as `sh COMMAND'
44009 # in which case we are not to be found in the path.
44010 if test "x$as_myself" = x; then
44013 if test ! -f "$as_myself"; then
44014 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44015 { (exit 1); exit 1; }
44018 # Work around bugs in pre-3.0 UWIN ksh.
44019 for as_var in ENV MAIL MAILPATH
44020 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44028 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44029 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44030 LC_TELEPHONE LC_TIME
44032 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44033 eval $as_var=C; export $as_var
44035 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44039 # Required to use basename.
44040 if expr a : '\(a\)' >/dev/null 2>&1 &&
44041 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44047 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44048 as_basename=basename
44054 # Name of the executable.
44055 as_me=`$as_basename -- "$0" ||
44056 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44057 X"$0" : 'X\(//\)$' \| \
44058 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44060 sed '/^.*\/\([^/][^/]*\)\/*$/{
44079 as_lineno_1=$LINENO
44080 as_lineno_2=$LINENO
44081 test "x$as_lineno_1" != "x$as_lineno_2" &&
44082 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44084 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44085 # uniformly replaced by the line number. The first 'sed' inserts a
44086 # line-number line after each line using $LINENO; the second 'sed'
44087 # does the real work. The second script uses 'N' to pair each
44088 # line-number line with the line containing $LINENO, and appends
44089 # trailing '-' during substitution so that $LINENO is not a special
44090 # case at line end.
44091 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44092 # scripts with optimization help from Paolo Bonzini. Blame Lee
44093 # E. McMahon (1931-1989) for sed's syntax. :-)
44105 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44108 ' >$as_me.lineno &&
44109 chmod +x "$as_me.lineno" ||
44110 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44111 { (exit 1); exit 1; }; }
44113 # Don't try to exec as it changes $[0], causing all sort of problems
44114 # (the dirname of $[0] is not the place where we might find the
44115 # original and so on. Autoconf is especially sensitive to this).
44116 . "./$as_me.lineno"
44117 # Exit status is that of the last command.
44122 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44128 ECHO_C= ECHO_N= ECHO_T=
44129 case `echo -n x` in
44131 case `echo 'x\c'` in
44132 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44139 if expr a : '\(a\)' >/dev/null 2>&1 &&
44140 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44146 rm -f conf$$ conf$$.exe conf$$.file
44147 if test -d conf$$.dir; then
44148 rm -f conf$$.dir/conf$$.file
44154 if ln -s conf$$.file conf$$ 2>/dev/null; then
44156 # ... but there are two gotchas:
44157 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44158 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44159 # In both cases, we have to default to `cp -p'.
44160 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44162 elif ln conf$$.file conf$$ 2>/dev/null; then
44167 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44168 rmdir conf$$.dir 2>/dev/null
44170 if mkdir -p . 2>/dev/null; then
44173 test -d ./-p && rmdir ./-p
44177 if test -x / >/dev/null 2>&1; then
44178 as_test_x='test -x'
44180 if ls -dL / >/dev/null 2>&1; then
44187 if test -d "$1"; then
44193 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44194 ???[sx]*):;;*)false;;esac;fi
44198 as_executable_p=$as_test_x
44200 # Sed expression to map a string onto a valid CPP name.
44201 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44203 # Sed expression to map a string onto a valid variable name.
44204 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44209 # Save the log message, to keep $[0] and so on meaningful, and to
44210 # report actual input values of CONFIG_FILES etc. instead of their
44211 # values after options handling.
44213 This file was extended by $as_me, which was
44214 generated by GNU Autoconf 2.61. Invocation command line was
44216 CONFIG_FILES = $CONFIG_FILES
44217 CONFIG_HEADERS = $CONFIG_HEADERS
44218 CONFIG_LINKS = $CONFIG_LINKS
44219 CONFIG_COMMANDS = $CONFIG_COMMANDS
44222 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44227 cat >>$CONFIG_STATUS <<_ACEOF
44228 # Files that config.status was made for.
44229 config_files="$ac_config_files"
44230 config_headers="$ac_config_headers"
44231 config_commands="$ac_config_commands"
44235 cat >>$CONFIG_STATUS <<\_ACEOF
44237 \`$as_me' instantiates files from templates according to the
44238 current configuration.
44240 Usage: $0 [OPTIONS] [FILE]...
44242 -h, --help print this help, then exit
44243 -V, --version print version number and configuration settings, then exit
44244 -q, --quiet do not print progress messages
44245 -d, --debug don't remove temporary files
44246 --recheck update $as_me by reconfiguring in the same conditions
44247 --file=FILE[:TEMPLATE]
44248 instantiate the configuration file FILE
44249 --header=FILE[:TEMPLATE]
44250 instantiate the configuration header FILE
44252 Configuration files:
44255 Configuration headers:
44258 Configuration commands:
44261 Report bugs to <bug-autoconf@gnu.org>."
44264 cat >>$CONFIG_STATUS <<_ACEOF
44267 configured by $0, generated by GNU Autoconf 2.61,
44268 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44270 Copyright (C) 2006 Free Software Foundation, Inc.
44271 This config.status script is free software; the Free Software Foundation
44272 gives unlimited permission to copy, distribute and modify it."
44279 cat >>$CONFIG_STATUS <<\_ACEOF
44280 # If no file are specified by the user, then we need to provide default
44281 # value. By we need to know if files were specified by the user.
44287 ac_option=`expr "X$1" : 'X\([^=]*\)='`
44288 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44299 # Handling of the options.
44300 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44302 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44303 echo "$ac_cs_version"; exit ;;
44304 --debug | --debu | --deb | --de | --d | -d )
44306 --file | --fil | --fi | --f )
44308 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44309 ac_need_defaults=false;;
44310 --header | --heade | --head | --hea )
44312 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44313 ac_need_defaults=false;;
44315 # Conflict between --help and --header
44316 { echo "$as_me: error: ambiguous option: $1
44317 Try \`$0 --help' for more information." >&2
44318 { (exit 1); exit 1; }; };;
44319 --help | --hel | -h )
44320 echo "$ac_cs_usage"; exit ;;
44321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44322 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44325 # This is an error.
44326 -*) { echo "$as_me: error: unrecognized option: $1
44327 Try \`$0 --help' for more information." >&2
44328 { (exit 1); exit 1; }; } ;;
44330 *) ac_config_targets="$ac_config_targets $1"
44331 ac_need_defaults=false ;;
44337 ac_configure_extra_args=
44339 if $ac_cs_silent; then
44341 ac_configure_extra_args="$ac_configure_extra_args --silent"
44345 cat >>$CONFIG_STATUS <<_ACEOF
44346 if \$ac_cs_recheck; then
44347 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44348 CONFIG_SHELL=$SHELL
44349 export CONFIG_SHELL
44350 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44354 cat >>$CONFIG_STATUS <<\_ACEOF
44358 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44359 ## Running $as_me. ##
44365 cat >>$CONFIG_STATUS <<_ACEOF
44371 # The HP-UX ksh and POSIX shell print the target directory to stdout
44372 # if CDPATH is set.
44373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44375 sed_quote_subst='$sed_quote_subst'
44376 double_quote_subst='$double_quote_subst'
44377 delay_variable_subst='$delay_variable_subst'
44378 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44379 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44380 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44381 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44382 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44383 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44384 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44385 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44386 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44387 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44388 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44389 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44390 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44391 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44392 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44393 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44394 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44395 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44396 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44397 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44398 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44399 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44400 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44401 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44402 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44403 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44404 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44405 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44406 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44407 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44408 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44409 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44410 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44411 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44412 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44413 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44414 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44415 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44416 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44417 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44418 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44419 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44420 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44421 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44422 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"`'
44423 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"`'
44424 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44425 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44426 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44427 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44428 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44429 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44430 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44431 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44432 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44433 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44434 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44435 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44436 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44437 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44438 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44439 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44440 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44441 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44442 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44443 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44444 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44445 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44446 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44447 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44448 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44449 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44450 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44451 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44452 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44453 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44454 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44455 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44456 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44457 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44458 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44459 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44460 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44461 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44462 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44463 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44464 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44465 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44466 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44467 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44468 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44469 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44470 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44471 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44472 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44473 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44474 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44475 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44476 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44477 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44478 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44479 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44480 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44481 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44482 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44483 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44484 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44485 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44486 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44487 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44488 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44489 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44490 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44491 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44492 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44493 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44494 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44495 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44496 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44497 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44498 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44499 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44500 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44501 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44502 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44503 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44504 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44505 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44506 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44507 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44508 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44509 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44510 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44511 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44512 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44513 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44514 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44515 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44516 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44517 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44518 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44519 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44520 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44521 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44522 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44523 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44524 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44525 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44526 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44527 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44528 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44529 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44530 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44531 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44532 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44533 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44534 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44535 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44536 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44537 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44538 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44539 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44540 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44541 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44542 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44543 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44544 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44545 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44546 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44547 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44548 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44551 LTCFLAGS='$LTCFLAGS'
44552 compiler='$compiler_DEFAULT'
44554 # Quote evaled strings.
44566 deplibs_check_method \
44575 lt_cv_sys_global_symbol_pipe \
44576 lt_cv_sys_global_symbol_to_cdecl \
44577 lt_cv_sys_global_symbol_to_c_name_address \
44578 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44581 lt_prog_compiler_no_builtin_flag \
44582 lt_prog_compiler_wl \
44583 lt_prog_compiler_pic \
44584 lt_prog_compiler_static \
44585 lt_cv_prog_compiler_c_o \
44593 export_dynamic_flag_spec \
44594 whole_archive_flag_spec \
44595 compiler_needs_object \
44597 allow_undefined_flag \
44598 no_undefined_flag \
44599 hardcode_libdir_flag_spec \
44600 hardcode_libdir_flag_spec_ld \
44601 hardcode_libdir_separator \
44606 variables_saved_for_relink \
44608 library_names_spec \
44613 compiler_lib_search_dirs \
44618 compiler_lib_search_path \
44621 lt_prog_compiler_no_builtin_flag_CXX \
44622 lt_prog_compiler_wl_CXX \
44623 lt_prog_compiler_pic_CXX \
44624 lt_prog_compiler_static_CXX \
44625 lt_cv_prog_compiler_c_o_CXX \
44626 export_dynamic_flag_spec_CXX \
44627 whole_archive_flag_spec_CXX \
44628 compiler_needs_object_CXX \
44630 allow_undefined_flag_CXX \
44631 no_undefined_flag_CXX \
44632 hardcode_libdir_flag_spec_CXX \
44633 hardcode_libdir_flag_spec_ld_CXX \
44634 hardcode_libdir_separator_CXX \
44635 fix_srcfile_path_CXX \
44636 exclude_expsyms_CXX \
44637 include_expsyms_CXX \
44638 file_list_spec_CXX \
44639 compiler_lib_search_dirs_CXX \
44640 predep_objects_CXX \
44641 postdep_objects_CXX \
44644 compiler_lib_search_path_CXX; do
44645 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44646 *[\\\\\\\`\\"\\\$]*)
44647 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
44650 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44655 # Double-quote double-evaled strings.
44656 for var in reload_cmds \
44657 old_postinstall_cmds \
44658 old_postuninstall_cmds \
44660 extract_expsyms_cmds \
44661 old_archive_from_new_cmds \
44662 old_archive_from_expsyms_cmds \
44664 archive_expsym_cmds \
44666 module_expsym_cmds \
44667 export_symbols_cmds \
44670 postuninstall_cmds \
44672 sys_lib_search_path_spec \
44673 sys_lib_dlsearch_path_spec \
44674 old_archive_cmds_CXX \
44675 old_archive_from_new_cmds_CXX \
44676 old_archive_from_expsyms_cmds_CXX \
44678 archive_expsym_cmds_CXX \
44680 module_expsym_cmds_CXX \
44681 export_symbols_cmds_CXX \
44682 prelink_cmds_CXX; do
44683 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
44684 *[\\\\\\\`\\"\\\$]*)
44685 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
44688 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44693 # Fix-up fallback echo if it was mangled by the above quoting rules.
44695 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
44699 ac_aux_dir='$ac_aux_dir'
44700 xsi_shell='$xsi_shell'
44701 lt_shell_append='$lt_shell_append'
44703 # See if we are running on zsh, and set the options which allow our
44704 # commands through without removal of \ escapes INIT.
44705 if test -n "\${ZSH_VERSION+set}" ; then
44706 setopt NO_GLOB_SUBST
44712 TIMESTAMP='$TIMESTAMP'
44720 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
44721 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
44723 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
44724 # Capture the value of LINGUAS because we need it to compute CATALOGS.
44725 LINGUAS="${LINGUAS-%UNSET%}"
44730 cat >>$CONFIG_STATUS <<\_ACEOF
44732 # Handling of arguments.
44733 for ac_config_target in $ac_config_targets
44735 case $ac_config_target in
44736 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
44737 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44738 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
44739 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
44740 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44741 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
44742 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
44743 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
44744 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
44745 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
44746 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
44747 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
44748 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
44749 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
44750 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
44751 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
44752 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
44753 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
44754 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
44755 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
44756 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
44757 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
44758 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
44759 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
44760 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
44761 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
44762 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
44763 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
44764 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
44765 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
44766 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
44767 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
44768 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
44769 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
44770 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
44771 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
44772 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
44773 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
44774 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
44775 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
44776 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
44777 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
44778 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
44779 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
44780 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
44781 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
44782 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
44783 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
44784 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
44785 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
44786 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
44787 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
44788 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
44789 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
44790 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
44791 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
44792 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
44793 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
44794 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
44795 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
44796 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
44797 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
44798 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
44799 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
44800 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
44801 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
44802 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
44803 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
44804 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
44805 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
44806 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
44807 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
44808 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
44809 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
44810 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
44811 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
44812 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
44813 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
44814 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
44815 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
44816 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
44817 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
44818 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
44819 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
44820 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
44821 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
44822 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
44823 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
44824 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
44825 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
44826 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
44827 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
44828 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
44829 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
44830 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
44831 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
44832 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
44833 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
44834 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
44835 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
44836 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
44837 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
44838 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
44839 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
44840 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
44841 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
44842 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
44843 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
44844 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
44845 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
44846 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
44847 "updatedb/update_sqlite_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_9_to_10" ;;
44848 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
44849 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
44850 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
44851 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
44852 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
44853 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
44855 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44856 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44857 { (exit 1); exit 1; }; };;
44862 # If the user did not use the arguments to specify the items to instantiate,
44863 # then the envvar interface is used. Set only those that are not.
44864 # We use the long form for the default assignment because of an extremely
44865 # bizarre bug on SunOS 4.1.3.
44866 if $ac_need_defaults; then
44867 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44868 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44869 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44872 # Have a temporary directory for convenience. Make it in the build tree
44873 # simply because there is no reason against having it here, and in addition,
44874 # creating and moving files from /tmp can sometimes cause problems.
44875 # Hook for its removal unless debugging.
44876 # Note that there is a small window in which the directory will not be cleaned:
44877 # after its creation but before its name has been assigned to `$tmp'.
44881 trap 'exit_status=$?
44882 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
44884 trap '{ (exit 1); exit 1; }' 1 2 13 15
44886 # Create a (secure) tmp directory for tmp files.
44889 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
44890 test -n "$tmp" && test -d "$tmp"
44893 tmp=./conf$$-$RANDOM
44894 (umask 077 && mkdir "$tmp")
44897 echo "$me: cannot create a temporary directory in ." >&2
44898 { (exit 1); exit 1; }
44902 # Set up the sed scripts for CONFIG_FILES section.
44905 # No need to generate the scripts if there are no CONFIG_FILES.
44906 # This happens for instance when ./config.status config.h
44907 if test -n "$CONFIG_FILES"; then
44911 # Create sed commands to just substitute file output variables.
44913 # Remaining file output variables are in a fragment that also has non-file
44919 for ac_last_try in false false false false false :; do
44920 cat >conf$$subs.sed <<_ACEOF
44921 SHELL!$SHELL$ac_delim
44922 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
44923 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
44924 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
44925 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
44926 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
44927 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
44928 exec_prefix!$exec_prefix$ac_delim
44929 prefix!$prefix$ac_delim
44930 program_transform_name!$program_transform_name$ac_delim
44931 bindir!$bindir$ac_delim
44932 sbindir!$sbindir$ac_delim
44933 libexecdir!$libexecdir$ac_delim
44934 datarootdir!$datarootdir$ac_delim
44935 datadir!$datadir$ac_delim
44936 sysconfdir!$sysconfdir$ac_delim
44937 sharedstatedir!$sharedstatedir$ac_delim
44938 localstatedir!$localstatedir$ac_delim
44939 includedir!$includedir$ac_delim
44940 oldincludedir!$oldincludedir$ac_delim
44941 docdir!$docdir$ac_delim
44942 infodir!$infodir$ac_delim
44943 htmldir!$htmldir$ac_delim
44944 dvidir!$dvidir$ac_delim
44945 pdfdir!$pdfdir$ac_delim
44946 psdir!$psdir$ac_delim
44947 libdir!$libdir$ac_delim
44948 localedir!$localedir$ac_delim
44949 mandir!$mandir$ac_delim
44950 DEFS!$DEFS$ac_delim
44951 ECHO_C!$ECHO_C$ac_delim
44952 ECHO_N!$ECHO_N$ac_delim
44953 ECHO_T!$ECHO_T$ac_delim
44954 LIBS!$LIBS$ac_delim
44955 build_alias!$build_alias$ac_delim
44956 host_alias!$host_alias$ac_delim
44957 target_alias!$target_alias$ac_delim
44958 BUILD_DIR!$BUILD_DIR$ac_delim
44959 TOP_DIR!$TOP_DIR$ac_delim
44960 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
44961 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
44962 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
44963 TRUEPRG!$TRUEPRG$ac_delim
44964 FALSEPRG!$FALSEPRG$ac_delim
44965 VERSION!$VERSION$ac_delim
44966 DATE!$DATE$ac_delim
44967 LSMDATE!$LSMDATE$ac_delim
44968 BACULA!$BACULA$ac_delim
44969 post_host!$post_host$ac_delim
44971 CFLAGS!$CFLAGS$ac_delim
44972 LDFLAGS!$LDFLAGS$ac_delim
44973 CPPFLAGS!$CPPFLAGS$ac_delim
44974 ac_ct_CC!$ac_ct_CC$ac_delim
44975 EXEEXT!$EXEEXT$ac_delim
44976 OBJEXT!$OBJEXT$ac_delim
44978 CXXFLAGS!$CXXFLAGS$ac_delim
44979 ac_ct_CXX!$ac_ct_CXX$ac_delim
44981 GREP!$GREP$ac_delim
44982 EGREP!$EGREP$ac_delim
44983 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
44984 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
44985 INSTALL_DATA!$INSTALL_DATA$ac_delim
44987 REMOVE!$REMOVE$ac_delim
44990 ECHO!$ECHO$ac_delim
44994 OPENSSL!$OPENSSL$ac_delim
44997 MKISOFS!$MKISOFS$ac_delim
44998 PYTHON!$PYTHON$ac_delim
44999 GROWISOFS!$GROWISOFS$ac_delim
45000 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45001 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45002 PKGCONFIG!$PKGCONFIG$ac_delim
45003 QMAKE!$QMAKE$ac_delim
45004 QMAKEQT4!$QMAKEQT4$ac_delim
45005 GMAKE!$GMAKE$ac_delim
45006 WXCONFIG!$WXCONFIG$ac_delim
45007 WXFLAGS!$WXFLAGS$ac_delim
45008 CDRECORD!$CDRECORD$ac_delim
45009 PIDOF!$PIDOF$ac_delim
45011 ARFLAGS!$ARFLAGS$ac_delim
45012 MAKE_SHELL!$MAKE_SHELL$ac_delim
45013 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45014 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45017 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45019 elif $ac_last_try; then
45020 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45021 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45022 { (exit 1); exit 1; }; }
45024 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45028 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45029 if test -n "$ac_eof"; then
45030 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45031 ac_eof=`expr $ac_eof + 1`
45034 cat >>$CONFIG_STATUS <<_ACEOF
45035 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45037 /^[ ]*@MCOMMON@[ ]*$/{
45043 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45044 s/^/s,@/; s/!/@,|#_!!_#|/
45047 s/'"$ac_delim"'$/,g/; t
45049 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45050 ' >>$CONFIG_STATUS <conf$$subs.sed
45051 rm -f conf$$subs.sed
45052 cat >>$CONFIG_STATUS <<_ACEOF
45058 for ac_last_try in false false false false false :; do
45059 cat >conf$$subs.sed <<_ACEOF
45060 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45061 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45062 LIBTOOL!$LIBTOOL$ac_delim
45063 build!$build$ac_delim
45064 build_cpu!$build_cpu$ac_delim
45065 build_vendor!$build_vendor$ac_delim
45066 build_os!$build_os$ac_delim
45067 host!$host$ac_delim
45068 host_cpu!$host_cpu$ac_delim
45069 host_vendor!$host_vendor$ac_delim
45070 host_os!$host_os$ac_delim
45071 FGREP!$FGREP$ac_delim
45073 DUMPBIN!$DUMPBIN$ac_delim
45074 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45076 LN_S!$LN_S$ac_delim
45077 OBJDUMP!$OBJDUMP$ac_delim
45078 STRIP!$STRIP$ac_delim
45079 RANLIB!$RANLIB$ac_delim
45080 lt_ECHO!$lt_ECHO$ac_delim
45081 DSYMUTIL!$DSYMUTIL$ac_delim
45082 NMEDIT!$NMEDIT$ac_delim
45083 LIPO!$LIPO$ac_delim
45084 OTOOL!$OTOOL$ac_delim
45085 OTOOL64!$OTOOL64$ac_delim
45086 CXXCPP!$CXXCPP$ac_delim
45087 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45088 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45089 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45090 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45091 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45092 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45093 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45094 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45095 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45096 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45097 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45098 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45099 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45100 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45101 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45102 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45103 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45104 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45105 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45106 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45107 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45108 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45109 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45110 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45111 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45112 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45113 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45114 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45115 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45116 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45117 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45118 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45119 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45120 SET_MAKE!$SET_MAKE$ac_delim
45121 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45122 USE_NLS!$USE_NLS$ac_delim
45123 MSGFMT!$MSGFMT$ac_delim
45124 GMSGFMT!$GMSGFMT$ac_delim
45125 XGETTEXT!$XGETTEXT$ac_delim
45126 MSGMERGE!$MSGMERGE$ac_delim
45127 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45128 LIBICONV!$LIBICONV$ac_delim
45129 LTLIBICONV!$LTLIBICONV$ac_delim
45130 INTLLIBS!$INTLLIBS$ac_delim
45131 LIBINTL!$LIBINTL$ac_delim
45132 LTLIBINTL!$LTLIBINTL$ac_delim
45133 POSUB!$POSUB$ac_delim
45134 GLIBC2!$GLIBC2$ac_delim
45135 ALLOCA!$ALLOCA$ac_delim
45136 GLIBC21!$GLIBC21$ac_delim
45137 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45138 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45139 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45140 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45141 INTLBISON!$INTLBISON$ac_delim
45142 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45143 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45144 CATOBJEXT!$CATOBJEXT$ac_delim
45145 DATADIRNAME!$DATADIRNAME$ac_delim
45146 INSTOBJEXT!$INSTOBJEXT$ac_delim
45147 GENCAT!$GENCAT$ac_delim
45148 INTLOBJS!$INTLOBJS$ac_delim
45149 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45150 BAT_DIR!$BAT_DIR$ac_delim
45151 QWT_INC!$QWT_INC$ac_delim
45152 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45153 QWT_LIB!$QWT_LIB$ac_delim
45155 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45156 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45159 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45161 elif $ac_last_try; then
45162 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45163 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45164 { (exit 1); exit 1; }; }
45166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45170 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45171 if test -n "$ac_eof"; then
45172 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45173 ac_eof=`expr $ac_eof + 1`
45176 cat >>$CONFIG_STATUS <<_ACEOF
45177 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45181 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45182 s/^/s,@/; s/!/@,|#_!!_#|/
45185 s/'"$ac_delim"'$/,g/; t
45187 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45188 ' >>$CONFIG_STATUS <conf$$subs.sed
45189 rm -f conf$$subs.sed
45190 cat >>$CONFIG_STATUS <<_ACEOF
45196 for ac_last_try in false false false false false :; do
45197 cat >conf$$subs.sed <<_ACEOF
45198 WX_DIR!$WX_DIR$ac_delim
45199 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45200 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45201 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45202 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45203 STATIC_FD!$STATIC_FD$ac_delim
45204 STATIC_SD!$STATIC_SD$ac_delim
45205 STATIC_DIR!$STATIC_DIR$ac_delim
45206 STATIC_CONS!$STATIC_CONS$ac_delim
45207 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45208 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45209 ALL_DIRS!$ALL_DIRS$ac_delim
45210 DIRD_DIR!$DIRD_DIR$ac_delim
45211 DIR_TOOLS!$DIR_TOOLS$ac_delim
45212 STORED_DIR!$STORED_DIR$ac_delim
45213 CONS_INC!$CONS_INC$ac_delim
45214 CONS_OBJ!$CONS_OBJ$ac_delim
45215 CONS_SRC!$CONS_SRC$ac_delim
45216 CONS_LIBS!$CONS_LIBS$ac_delim
45217 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45218 READLINE_SRC!$READLINE_SRC$ac_delim
45219 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45220 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45221 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45222 OPENSSL_INC!$OPENSSL_INC$ac_delim
45223 working_dir!$working_dir$ac_delim
45224 archivedir!$archivedir$ac_delim
45225 basename!$basename$ac_delim
45226 hostname!$hostname$ac_delim
45227 scriptdir!$scriptdir$ac_delim
45228 bsrdir!$bsrdir$ac_delim
45229 logdir!$logdir$ac_delim
45230 plugindir!$plugindir$ac_delim
45231 dump_email!$dump_email$ac_delim
45232 job_email!$job_email$ac_delim
45233 smtp_host!$smtp_host$ac_delim
45234 piddir!$piddir$ac_delim
45235 subsysdir!$subsysdir$ac_delim
45236 baseport!$baseport$ac_delim
45237 dir_port!$dir_port$ac_delim
45238 fd_port!$fd_port$ac_delim
45239 sd_port!$sd_port$ac_delim
45240 dir_password!$dir_password$ac_delim
45241 fd_password!$fd_password$ac_delim
45242 sd_password!$sd_password$ac_delim
45243 mon_dir_password!$mon_dir_password$ac_delim
45244 mon_fd_password!$mon_fd_password$ac_delim
45245 mon_sd_password!$mon_sd_password$ac_delim
45246 db_name!$db_name$ac_delim
45247 db_user!$db_user$ac_delim
45248 db_password!$db_password$ac_delim
45249 db_port!$db_port$ac_delim
45250 dir_user!$dir_user$ac_delim
45251 dir_group!$dir_group$ac_delim
45252 sd_user!$sd_user$ac_delim
45253 sd_group!$sd_group$ac_delim
45254 fd_user!$fd_user$ac_delim
45255 fd_group!$fd_group$ac_delim
45256 SBINPERM!$SBINPERM$ac_delim
45257 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45258 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45259 SQL_BINDIR!$SQL_BINDIR$ac_delim
45260 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45261 uncomment_dbi!$uncomment_dbi$ac_delim
45262 DB_PROG!$DB_PROG$ac_delim
45263 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45264 cats!$cats$ac_delim
45265 DB_TYPE!$DB_TYPE$ac_delim
45266 GETCONF!$GETCONF$ac_delim
45267 XMKMF!$XMKMF$ac_delim
45268 X_CFLAGS!$X_CFLAGS$ac_delim
45269 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45270 X_LIBS!$X_LIBS$ac_delim
45271 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45272 LIBOBJS!$LIBOBJS$ac_delim
45273 CAP_LIBS!$CAP_LIBS$ac_delim
45274 FDLIBS!$FDLIBS$ac_delim
45275 DEBUG!$DEBUG$ac_delim
45276 DINCLUDE!$DINCLUDE$ac_delim
45277 DLIB!$DLIB$ac_delim
45278 DB_LIBS!$DB_LIBS$ac_delim
45279 WCFLAGS!$WCFLAGS$ac_delim
45280 WLDFLAGS!$WLDFLAGS$ac_delim
45281 WRAPLIBS!$WRAPLIBS$ac_delim
45282 OBJLIST!$OBJLIST$ac_delim
45283 TAPEDRIVE!$TAPEDRIVE$ac_delim
45284 PSCMD!$PSCMD$ac_delim
45285 WIN32!$WIN32$ac_delim
45286 MACOSX!$MACOSX$ac_delim
45287 DISTNAME!$DISTNAME$ac_delim
45288 DISTVER!$DISTVER$ac_delim
45289 LTLIBOBJS!$LTLIBOBJS$ac_delim
45292 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
45294 elif $ac_last_try; then
45295 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45296 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45297 { (exit 1); exit 1; }; }
45299 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45303 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45304 if test -n "$ac_eof"; then
45305 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45306 ac_eof=`expr $ac_eof + 1`
45309 cat >>$CONFIG_STATUS <<_ACEOF
45310 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45314 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45315 s/^/s,@/; s/!/@,|#_!!_#|/
45318 s/'"$ac_delim"'$/,g/; t
45320 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45321 ' >>$CONFIG_STATUS <conf$$subs.sed
45322 rm -f conf$$subs.sed
45323 cat >>$CONFIG_STATUS <<_ACEOF
45330 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45331 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45332 # trailing colons and then remove the whole line if VPATH becomes empty
45333 # (actually we leave an empty line to preserve line numbers).
45334 if test "x$srcdir" = x.; then
45335 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45336 s/:*\$(srcdir):*/:/
45337 s/:*\${srcdir}:*/:/
45339 s/^\([^=]*=[ ]*\):*/\1/
45345 cat >>$CONFIG_STATUS <<\_ACEOF
45346 fi # test -n "$CONFIG_FILES"
45349 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
45352 :[FHLC]) ac_mode=$ac_tag; continue;;
45354 case $ac_mode$ac_tag in
45356 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45357 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45358 { (exit 1); exit 1; }; };;
45359 :[FH]-) ac_tag=-:-;;
45360 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45377 -) ac_f="$tmp/stdin";;
45378 *) # Look for the file first in the build tree, then in the source tree
45379 # (if the path is not absolute). The absolute path cannot be DOS-style,
45380 # because $ac_f cannot contain `:'.
45384 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45386 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45387 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45388 { (exit 1); exit 1; }; };;
45390 ac_file_inputs="$ac_file_inputs $ac_f"
45393 # Let's still pretend it is `configure' which instantiates (i.e., don't
45394 # use $as_me), people would be surprised to read:
45395 # /* config.h. Generated by config.status. */
45396 configure_input="Generated from "`IFS=:
45397 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45398 if test x"$ac_file" != x-; then
45399 configure_input="$ac_file. $configure_input"
45400 { echo "$as_me:$LINENO: creating $ac_file" >&5
45401 echo "$as_me: creating $ac_file" >&6;}
45405 *:-:* | *:-) cat >"$tmp/stdin";;
45410 ac_dir=`$as_dirname -- "$ac_file" ||
45411 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45412 X"$ac_file" : 'X\(//\)[^/]' \| \
45413 X"$ac_file" : 'X\(//\)$' \| \
45414 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45420 /^X\(\/\/\)[^/].*/{
45435 -*) as_dir=./$as_dir;;
45437 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45441 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45442 *) as_qdir=$as_dir;;
45444 as_dirs="'$as_qdir' $as_dirs"
45445 as_dir=`$as_dirname -- "$as_dir" ||
45446 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45447 X"$as_dir" : 'X\(//\)[^/]' \| \
45448 X"$as_dir" : 'X\(//\)$' \| \
45449 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45455 /^X\(\/\/\)[^/].*/{
45468 test -d "$as_dir" && break
45470 test -z "$as_dirs" || eval "mkdir $as_dirs"
45471 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45472 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45473 { (exit 1); exit 1; }; }; }
45477 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45479 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45480 # A ".." for each directory in $ac_dir_suffix.
45481 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45482 case $ac_top_builddir_sub in
45483 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45484 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45487 ac_abs_top_builddir=$ac_pwd
45488 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45489 # for backward compatibility:
45490 ac_top_builddir=$ac_top_build_prefix
45493 .) # We are building in place.
45495 ac_top_srcdir=$ac_top_builddir_sub
45496 ac_abs_top_srcdir=$ac_pwd ;;
45497 [\\/]* | ?:[\\/]* ) # Absolute name.
45498 ac_srcdir=$srcdir$ac_dir_suffix;
45499 ac_top_srcdir=$srcdir
45500 ac_abs_top_srcdir=$srcdir ;;
45501 *) # Relative name.
45502 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45503 ac_top_srcdir=$ac_top_build_prefix$srcdir
45504 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45506 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45516 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45517 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45521 cat >>$CONFIG_STATUS <<\_ACEOF
45522 # If the template does not know about datarootdir, expand it.
45523 # FIXME: This hack should be removed a few years after 2.60.
45524 ac_datarootdir_hack=; ac_datarootdir_seen=
45526 case `sed -n '/datarootdir/ {
45535 ' $ac_file_inputs` in
45536 *datarootdir*) ac_datarootdir_seen=yes;;
45537 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45538 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45539 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45541 cat >>$CONFIG_STATUS <<_ACEOF
45542 ac_datarootdir_hack='
45543 s&@datadir@&$datadir&g
45544 s&@docdir@&$docdir&g
45545 s&@infodir@&$infodir&g
45546 s&@localedir@&$localedir&g
45547 s&@mandir@&$mandir&g
45548 s&\\\${datarootdir}&$datarootdir&g' ;;
45552 # Neutralize VPATH when `$srcdir' = `.'.
45553 # Shell code in configure.ac might set extrasub.
45554 # FIXME: do we really want to maintain this feature?
45555 cat >>$CONFIG_STATUS <<_ACEOF
45559 cat >>$CONFIG_STATUS <<\_ACEOF
45561 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45562 s&@configure_input@&$configure_input&;t t
45563 s&@top_builddir@&$ac_top_builddir_sub&;t t
45564 s&@srcdir@&$ac_srcdir&;t t
45565 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45566 s&@top_srcdir@&$ac_top_srcdir&;t t
45567 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45568 s&@builddir@&$ac_builddir&;t t
45569 s&@abs_builddir@&$ac_abs_builddir&;t t
45570 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45571 s&@INSTALL@&$ac_INSTALL&;t t
45572 $ac_datarootdir_hack
45573 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
45575 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45576 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45577 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45578 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45579 which seems to be undefined. Please make sure it is defined." >&5
45580 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45581 which seems to be undefined. Please make sure it is defined." >&2;}
45585 -) cat "$tmp/out"; rm -f "$tmp/out";;
45586 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
45595 # Transform confdefs.h into a sed script `conftest.defines', that
45596 # substitutes the proper values into config.h.in to produce config.h.
45597 rm -f conftest.defines conftest.tail
45598 # First, append a space to every undef/define line, to ease matching.
45599 echo 's/$/ /' >conftest.defines
45600 # Then, protect against being on the right side of a sed subst, or in
45601 # an unquoted here document, in config.status. If some macros were
45602 # called several times there might be several #defines for the same
45603 # symbol, which is useless. But do not sort them, since the last
45604 # AC_DEFINE must be honored.
45605 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
45606 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
45607 # NAME is the cpp macro being defined, VALUE is the value it is being given.
45608 # PARAMS is the parameter list in the macro definition--in most cases, it's
45609 # just an empty string.
45610 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
45611 ac_dB='\\)[ (].*,\\1define\\2'
45619 s/^[ ]*#[ ]*define[ ][ ]*//
45624 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
45625 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
45626 ' >>conftest.defines
45628 # Remove the space that was appended to ease matching.
45629 # Then replace #undef with comments. This is necessary, for
45630 # example, in the case of _POSIX_SOURCE, which is predefined and required
45631 # on some systems where configure will not decide to define it.
45632 # (The regexp can be short, since the line contains either #define or #undef.)
45634 s,^[ #]*u.*,/* & */,' >>conftest.defines
45636 # Break up conftest.defines:
45637 ac_max_sed_lines=50
45639 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
45640 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
45641 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
45643 ac_in='$ac_file_inputs'
45644 ac_out='"$tmp/out1"'
45645 ac_nxt='"$tmp/out2"'
45649 # Write a here document:
45650 cat >>$CONFIG_STATUS <<_ACEOF
45651 # First, check the format of the line:
45652 cat >"\$tmp/defines.sed" <<\\CEOF
45653 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
45654 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
45658 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
45660 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
45661 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
45662 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
45663 grep . conftest.tail >/dev/null || break
45664 rm -f conftest.defines
45665 mv conftest.tail conftest.defines
45667 rm -f conftest.defines conftest.tail
45669 echo "ac_result=$ac_in" >>$CONFIG_STATUS
45670 cat >>$CONFIG_STATUS <<\_ACEOF
45671 if test x"$ac_file" != x-; then
45672 echo "/* $configure_input */" >"$tmp/config.h"
45673 cat "$ac_result" >>"$tmp/config.h"
45674 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
45675 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
45676 echo "$as_me: $ac_file is unchanged" >&6;}
45679 mv "$tmp/config.h" $ac_file
45682 echo "/* $configure_input */"
45688 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
45689 echo "$as_me: executing $ac_file commands" >&6;}
45694 case $ac_file$ac_mode in
45697 # See if we are running on zsh, and set the options which allow our
45698 # commands through without removal of \ escapes.
45699 if test -n "${ZSH_VERSION+set}" ; then
45700 setopt NO_GLOB_SUBST
45703 cfgfile="${ofile}T"
45704 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
45707 cat <<_LT_EOF >> "$cfgfile"
45710 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
45711 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
45712 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
45713 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
45715 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
45716 # 2006, 2007, 2008 Free Software Foundation, Inc.
45717 # Written by Gordon Matzigkeit, 1996
45719 # This file is part of GNU Libtool.
45721 # GNU Libtool is free software; you can redistribute it and/or
45722 # modify it under the terms of the GNU General Public License as
45723 # published by the Free Software Foundation; either version 2 of
45724 # the License, or (at your option) any later version.
45726 # As a special exception to the GNU General Public License,
45727 # if you distribute this file as part of a program or library that
45728 # is built using GNU Libtool, you may include this file under the
45729 # same distribution terms that you use for the rest of that program.
45731 # GNU Libtool is distributed in the hope that it will be useful,
45732 # but WITHOUT ANY WARRANTY; without even the implied warranty of
45733 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
45734 # GNU General Public License for more details.
45736 # You should have received a copy of the GNU General Public License
45737 # along with GNU Libtool; see the file COPYING. If not, a copy
45738 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
45739 # obtained by writing to the Free Software Foundation, Inc.,
45740 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
45743 # The names of the tagged configurations supported by this script.
45744 available_tags="CXX "
45746 # ### BEGIN LIBTOOL CONFIG
45748 # Which release of libtool.m4 was used?
45749 macro_version=$macro_version
45750 macro_revision=$macro_revision
45752 # Whether or not to build shared libraries.
45753 build_libtool_libs=$enable_shared
45755 # Whether or not to build static libraries.
45756 build_old_libs=$enable_static
45758 # What type of objects to build.
45761 # Whether or not to optimize for fast installation.
45762 fast_install=$enable_fast_install
45765 host_alias=$host_alias
45769 # The build system.
45770 build_alias=$build_alias
45774 # A sed program that does not truncate output.
45777 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
45778 Xsed="\$SED -e 1s/^X//"
45780 # A grep program that handles long lines.
45786 # A literal string matcher.
45789 # A BSD- or MS-compatible name lister.
45792 # Whether we need soft or hard links.
45795 # What is the maximum length of a command?
45796 max_cmd_len=$max_cmd_len
45798 # Object file suffix (normally "o").
45801 # Executable file suffix (normally "").
45804 # whether the shell understands "unset".
45807 # turn spaces into newlines.
45810 # turn newlines into spaces.
45813 # How to create reloadable object files.
45814 reload_flag=$lt_reload_flag
45815 reload_cmds=$lt_reload_cmds
45817 # An object symbol dumper.
45818 OBJDUMP=$lt_OBJDUMP
45820 # Method to check whether dependent libraries are shared objects.
45821 deplibs_check_method=$lt_deplibs_check_method
45823 # Command to use when deplibs_check_method == "file_magic".
45824 file_magic_cmd=$lt_file_magic_cmd
45828 AR_FLAGS=$lt_AR_FLAGS
45830 # A symbol stripping program.
45833 # Commands used to install an old-style archive.
45835 old_postinstall_cmds=$lt_old_postinstall_cmds
45836 old_postuninstall_cmds=$lt_old_postuninstall_cmds
45841 # LTCC compiler flags.
45842 LTCFLAGS=$lt_CFLAGS
45844 # Take the output of nm and produce a listing of raw symbols and C names.
45845 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
45847 # Transform the output of nm in a proper C declaration.
45848 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
45850 # Transform the output of nm in a C name address pair.
45851 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
45853 # Transform the output of nm in a C name address pair when lib prefix is needed.
45854 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
45856 # The name of the directory that contains temporary libtool files.
45859 # Shell to use when invoking shell scripts.
45862 # An echo program that does not interpret backslashes.
45865 # Used to examine libraries when file_magic_cmd begins with "file".
45866 MAGIC_CMD=$MAGIC_CMD
45868 # Must we lock files when doing compilation?
45869 need_locks=$lt_need_locks
45871 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
45872 DSYMUTIL=$lt_DSYMUTIL
45874 # Tool to change global to local symbols on Mac OS X.
45877 # Tool to manipulate fat objects and archives on Mac OS X.
45880 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
45883 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
45884 OTOOL64=$lt_OTOOL64
45886 # Old archive suffix (normally "a").
45889 # Shared library suffix (normally ".so").
45890 shrext_cmds=$lt_shrext_cmds
45892 # The commands to extract the exported symbol list from a shared archive.
45893 extract_expsyms_cmds=$lt_extract_expsyms_cmds
45895 # Variables whose values should be saved in libtool wrapper scripts and
45896 # restored at link time.
45897 variables_saved_for_relink=$lt_variables_saved_for_relink
45899 # Do we need the "lib" prefix for modules?
45900 need_lib_prefix=$need_lib_prefix
45902 # Do we need a version for libraries?
45903 need_version=$need_version
45905 # Library versioning type.
45906 version_type=$version_type
45908 # Shared library runtime path variable.
45909 runpath_var=$runpath_var
45911 # Shared library path variable.
45912 shlibpath_var=$shlibpath_var
45914 # Is shlibpath searched before the hard-coded library search path?
45915 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
45917 # Format of library name prefix.
45918 libname_spec=$lt_libname_spec
45920 # List of archive names. First name is the real one, the rest are links.
45921 # The last name is the one that the linker finds with -lNAME
45922 library_names_spec=$lt_library_names_spec
45924 # The coded name of the library, if different from the real name.
45925 soname_spec=$lt_soname_spec
45927 # Command to use after installation of a shared archive.
45928 postinstall_cmds=$lt_postinstall_cmds
45930 # Command to use after uninstallation of a shared archive.
45931 postuninstall_cmds=$lt_postuninstall_cmds
45933 # Commands used to finish a libtool library installation in a directory.
45934 finish_cmds=$lt_finish_cmds
45936 # As "finish_cmds", except a single script fragment to be evaled but
45938 finish_eval=$lt_finish_eval
45940 # Whether we should hardcode library paths into libraries.
45941 hardcode_into_libs=$hardcode_into_libs
45943 # Compile-time system search path for libraries.
45944 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45946 # Run-time system search path for libraries.
45947 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
45949 # Whether dlopen is supported.
45950 dlopen_support=$enable_dlopen
45952 # Whether dlopen of programs is supported.
45953 dlopen_self=$enable_dlopen_self
45955 # Whether dlopen of statically linked programs is supported.
45956 dlopen_self_static=$enable_dlopen_self_static
45958 # Commands to strip libraries.
45959 old_striplib=$lt_old_striplib
45960 striplib=$lt_striplib
45963 # The linker used to build libraries.
45966 # Commands used to build an old-style archive.
45967 old_archive_cmds=$lt_old_archive_cmds
45969 # A language specific compiler.
45972 # Is the compiler the GNU compiler?
45975 # Compiler flag to turn off builtin functions.
45976 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45978 # How to pass a linker flag through the compiler.
45979 wl=$lt_lt_prog_compiler_wl
45981 # Additional compiler flags for building library objects.
45982 pic_flag=$lt_lt_prog_compiler_pic
45984 # Compiler flag to prevent dynamic linking.
45985 link_static_flag=$lt_lt_prog_compiler_static
45987 # Does compiler simultaneously support -c and -o options?
45988 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45990 # Whether or not to add -lc for building shared libraries.
45991 build_libtool_need_lc=$archive_cmds_need_lc
45993 # Whether or not to disallow shared libs when runtime libs are static.
45994 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45996 # Compiler flag to allow reflexive dlopens.
45997 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45999 # Compiler flag to generate shared objects directly from archives.
46000 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46002 # Whether the compiler copes with passing no objects directly.
46003 compiler_needs_object=$lt_compiler_needs_object
46005 # Create an old-style archive from a shared archive.
46006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46008 # Create a temporary old-style archive to link instead of a shared archive.
46009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46011 # Commands used to build a shared archive.
46012 archive_cmds=$lt_archive_cmds
46013 archive_expsym_cmds=$lt_archive_expsym_cmds
46015 # Commands used to build a loadable module if different from building
46016 # a shared archive.
46017 module_cmds=$lt_module_cmds
46018 module_expsym_cmds=$lt_module_expsym_cmds
46020 # Whether we are building with GNU ld or not.
46021 with_gnu_ld=$lt_with_gnu_ld
46023 # Flag that allows shared libraries with undefined symbols to be built.
46024 allow_undefined_flag=$lt_allow_undefined_flag
46026 # Flag that enforces no undefined symbols.
46027 no_undefined_flag=$lt_no_undefined_flag
46029 # Flag to hardcode \$libdir into a binary during linking.
46030 # This must work even if \$libdir does not exist
46031 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46033 # If ld is used when linking, flag to hardcode \$libdir into a binary
46034 # during linking. This must work even if \$libdir does not exist.
46035 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46037 # Whether we need a single "-rpath" flag with a separated argument.
46038 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46040 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46041 # DIR into the resulting binary.
46042 hardcode_direct=$hardcode_direct
46044 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46045 # DIR into the resulting binary and the resulting library dependency is
46046 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46047 # library is relocated.
46048 hardcode_direct_absolute=$hardcode_direct_absolute
46050 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46051 # into the resulting binary.
46052 hardcode_minus_L=$hardcode_minus_L
46054 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46055 # into the resulting binary.
46056 hardcode_shlibpath_var=$hardcode_shlibpath_var
46058 # Set to "yes" if building a shared library automatically hardcodes DIR
46059 # into the library and all subsequent libraries and executables linked
46061 hardcode_automatic=$hardcode_automatic
46063 # Set to yes if linker adds runtime paths of dependent libraries
46064 # to runtime path list.
46065 inherit_rpath=$inherit_rpath
46067 # Whether libtool must link a program against all its dependency libraries.
46068 link_all_deplibs=$link_all_deplibs
46070 # Fix the shell variable \$srcfile for the compiler.
46071 fix_srcfile_path=$lt_fix_srcfile_path
46073 # Set to "yes" if exported symbols are required.
46074 always_export_symbols=$always_export_symbols
46076 # The commands to list exported symbols.
46077 export_symbols_cmds=$lt_export_symbols_cmds
46079 # Symbols that should not be listed in the preloaded symbols.
46080 exclude_expsyms=$lt_exclude_expsyms
46082 # Symbols that must always be exported.
46083 include_expsyms=$lt_include_expsyms
46085 # Commands necessary for linking programs (against libraries) with templates.
46086 prelink_cmds=$lt_prelink_cmds
46088 # Specify filename containing input files.
46089 file_list_spec=$lt_file_list_spec
46091 # How to hardcode a shared library path into an executable.
46092 hardcode_action=$hardcode_action
46094 # The directories searched by this compiler when creating a shared library.
46095 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46097 # Dependencies to place before and after the objects being linked to
46098 # create a shared library.
46099 predep_objects=$lt_predep_objects
46100 postdep_objects=$lt_postdep_objects
46101 predeps=$lt_predeps
46102 postdeps=$lt_postdeps
46104 # The library search path used internally by the compiler when linking
46105 # a shared library.
46106 compiler_lib_search_path=$lt_compiler_lib_search_path
46108 # ### END LIBTOOL CONFIG
46114 cat <<\_LT_EOF >> "$cfgfile"
46115 # AIX sometimes has problems with the GCC collect2 program. For some
46116 # reason, if we set the COLLECT_NAMES environment variable, the problems
46117 # vanish in a puff of smoke.
46118 if test "X${COLLECT_NAMES+set}" != Xset; then
46120 export COLLECT_NAMES
46127 ltmain="$ac_aux_dir/ltmain.sh"
46130 # We use sed instead of cat because bash on DJGPP gets confused if
46131 # if finds mixed CR/LF and LF-only lines. Since sed operates in
46132 # text mode, it properly converts lines to CR/LF. This bash problem
46133 # is reportedly fixed, but why not run on old versions too?
46134 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46135 || (rm -f "$cfgfile"; exit 1)
46139 cat << \_LT_EOF >> "$cfgfile"
46141 # func_dirname file append nondir_replacement
46142 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46143 # otherwise set result to NONDIR_REPLACEMENT.
46147 */*) func_dirname_result="${1%/*}${2}" ;;
46148 * ) func_dirname_result="${3}" ;;
46152 # func_basename file
46155 func_basename_result="${1##*/}"
46158 # func_dirname_and_basename file append nondir_replacement
46159 # perform func_basename and func_dirname in a single function
46161 # dirname: Compute the dirname of FILE. If nonempty,
46162 # add APPEND to the result, otherwise set result
46163 # to NONDIR_REPLACEMENT.
46164 # value returned in "$func_dirname_result"
46165 # basename: Compute filename of FILE.
46166 # value retuned in "$func_basename_result"
46167 # Implementation must be kept synchronized with func_dirname
46168 # and func_basename. For efficiency, we do not delegate to
46169 # those functions but instead duplicate the functionality here.
46170 func_dirname_and_basename ()
46173 */*) func_dirname_result="${1%/*}${2}" ;;
46174 * ) func_dirname_result="${3}" ;;
46176 func_basename_result="${1##*/}"
46179 # func_stripname prefix suffix name
46180 # strip PREFIX and SUFFIX off of NAME.
46181 # PREFIX and SUFFIX must not contain globbing or regex special
46182 # characters, hashes, percent signs, but SUFFIX may contain a leading
46183 # dot (in which case that matches only a dot).
46186 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46187 # positional parameters, so assign one to ordinary parameter first.
46188 func_stripname_result=${3}
46189 func_stripname_result=${func_stripname_result#"${1}"}
46190 func_stripname_result=${func_stripname_result%"${2}"}
46196 func_opt_split_opt=${1%%=*}
46197 func_opt_split_arg=${1#*=}
46204 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46205 *) func_lo2o_result=${1} ;;
46209 # func_xform libobj-or-source
46212 func_xform_result=${1%.*}.lo
46215 # func_arith arithmetic-term...
46218 func_arith_result=$(( $* ))
46222 # STRING may not start with a hyphen.
46225 func_len_result=${#1}
46230 *) # Bourne compatible functions.
46231 cat << \_LT_EOF >> "$cfgfile"
46233 # func_dirname file append nondir_replacement
46234 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46235 # otherwise set result to NONDIR_REPLACEMENT.
46238 # Extract subdirectory from the argument.
46239 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46240 if test "X$func_dirname_result" = "X${1}"; then
46241 func_dirname_result="${3}"
46243 func_dirname_result="$func_dirname_result${2}"
46247 # func_basename file
46250 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46254 # func_stripname prefix suffix name
46255 # strip PREFIX and SUFFIX off of NAME.
46256 # PREFIX and SUFFIX must not contain globbing or regex special
46257 # characters, hashes, percent signs, but SUFFIX may contain a leading
46258 # dot (in which case that matches only a dot).
46259 # func_strip_suffix prefix name
46263 .*) func_stripname_result=`$ECHO "X${3}" \
46264 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46265 *) func_stripname_result=`$ECHO "X${3}" \
46266 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46271 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46272 my_sed_long_arg='1s/^-[^=]*=//'
46277 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46278 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46284 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46287 # func_xform libobj-or-source
46290 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46293 # func_arith arithmetic-term...
46296 func_arith_result=`expr "$@"`
46300 # STRING may not start with a hyphen.
46303 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46309 case $lt_shell_append in
46311 cat << \_LT_EOF >> "$cfgfile"
46313 # func_append var value
46314 # Append VALUE to the end of shell variable VAR.
46322 cat << \_LT_EOF >> "$cfgfile"
46324 # func_append var value
46325 # Append VALUE to the end of shell variable VAR.
46336 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46337 || (rm -f "$cfgfile"; exit 1)
46339 mv -f "$cfgfile" "$ofile" ||
46340 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46344 cat <<_LT_EOF >> "$ofile"
46346 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46348 # The linker used to build libraries.
46351 # Commands used to build an old-style archive.
46352 old_archive_cmds=$lt_old_archive_cmds_CXX
46354 # A language specific compiler.
46355 CC=$lt_compiler_CXX
46357 # Is the compiler the GNU compiler?
46360 # Compiler flag to turn off builtin functions.
46361 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46363 # How to pass a linker flag through the compiler.
46364 wl=$lt_lt_prog_compiler_wl_CXX
46366 # Additional compiler flags for building library objects.
46367 pic_flag=$lt_lt_prog_compiler_pic_CXX
46369 # Compiler flag to prevent dynamic linking.
46370 link_static_flag=$lt_lt_prog_compiler_static_CXX
46372 # Does compiler simultaneously support -c and -o options?
46373 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46375 # Whether or not to add -lc for building shared libraries.
46376 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46378 # Whether or not to disallow shared libs when runtime libs are static.
46379 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46381 # Compiler flag to allow reflexive dlopens.
46382 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46384 # Compiler flag to generate shared objects directly from archives.
46385 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46387 # Whether the compiler copes with passing no objects directly.
46388 compiler_needs_object=$lt_compiler_needs_object_CXX
46390 # Create an old-style archive from a shared archive.
46391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46393 # Create a temporary old-style archive to link instead of a shared archive.
46394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46396 # Commands used to build a shared archive.
46397 archive_cmds=$lt_archive_cmds_CXX
46398 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46400 # Commands used to build a loadable module if different from building
46401 # a shared archive.
46402 module_cmds=$lt_module_cmds_CXX
46403 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46405 # Whether we are building with GNU ld or not.
46406 with_gnu_ld=$lt_with_gnu_ld_CXX
46408 # Flag that allows shared libraries with undefined symbols to be built.
46409 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46411 # Flag that enforces no undefined symbols.
46412 no_undefined_flag=$lt_no_undefined_flag_CXX
46414 # Flag to hardcode \$libdir into a binary during linking.
46415 # This must work even if \$libdir does not exist
46416 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46418 # If ld is used when linking, flag to hardcode \$libdir into a binary
46419 # during linking. This must work even if \$libdir does not exist.
46420 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46422 # Whether we need a single "-rpath" flag with a separated argument.
46423 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46425 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46426 # DIR into the resulting binary.
46427 hardcode_direct=$hardcode_direct_CXX
46429 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46430 # DIR into the resulting binary and the resulting library dependency is
46431 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46432 # library is relocated.
46433 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46435 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46436 # into the resulting binary.
46437 hardcode_minus_L=$hardcode_minus_L_CXX
46439 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46440 # into the resulting binary.
46441 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46443 # Set to "yes" if building a shared library automatically hardcodes DIR
46444 # into the library and all subsequent libraries and executables linked
46446 hardcode_automatic=$hardcode_automatic_CXX
46448 # Set to yes if linker adds runtime paths of dependent libraries
46449 # to runtime path list.
46450 inherit_rpath=$inherit_rpath_CXX
46452 # Whether libtool must link a program against all its dependency libraries.
46453 link_all_deplibs=$link_all_deplibs_CXX
46455 # Fix the shell variable \$srcfile for the compiler.
46456 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46458 # Set to "yes" if exported symbols are required.
46459 always_export_symbols=$always_export_symbols_CXX
46461 # The commands to list exported symbols.
46462 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46464 # Symbols that should not be listed in the preloaded symbols.
46465 exclude_expsyms=$lt_exclude_expsyms_CXX
46467 # Symbols that must always be exported.
46468 include_expsyms=$lt_include_expsyms_CXX
46470 # Commands necessary for linking programs (against libraries) with templates.
46471 prelink_cmds=$lt_prelink_cmds_CXX
46473 # Specify filename containing input files.
46474 file_list_spec=$lt_file_list_spec_CXX
46476 # How to hardcode a shared library path into an executable.
46477 hardcode_action=$hardcode_action_CXX
46479 # The directories searched by this compiler when creating a shared library.
46480 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46482 # Dependencies to place before and after the objects being linked to
46483 # create a shared library.
46484 predep_objects=$lt_predep_objects_CXX
46485 postdep_objects=$lt_postdep_objects_CXX
46486 predeps=$lt_predeps_CXX
46487 postdeps=$lt_postdeps_CXX
46489 # The library search path used internally by the compiler when linking
46490 # a shared library.
46491 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46493 # ### END LIBTOOL TAG CONFIG: CXX
46498 for ac_file in $CONFIG_FILES; do
46499 # Support "outfile[:infile[:infile...]]"
46501 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46503 # PO directories have a Makefile.in generated from Makefile.in.in.
46504 case "$ac_file" in */Makefile.in)
46505 # Adjust a relative srcdir.
46506 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46507 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46508 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46509 # In autoconf-2.13 it is called $ac_given_srcdir.
46510 # In autoconf-2.50 it is called $srcdir.
46511 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46512 case "$ac_given_srcdir" in
46513 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46514 /*) top_srcdir="$ac_given_srcdir" ;;
46515 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46517 # Treat a directory as a PO directory if and only if it has a
46518 # POTFILES.in file. This allows packages to have multiple PO
46519 # directories under different names or in different locations.
46520 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46521 rm -f "$ac_dir/POTFILES"
46522 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46523 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46524 POMAKEFILEDEPS="POTFILES.in"
46525 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46526 # on $ac_dir but don't depend on user-specified configuration
46528 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46529 # The LINGUAS file contains the set of available languages.
46530 if test -n "$OBSOLETE_ALL_LINGUAS"; then
46531 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46533 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46534 # Hide the ALL_LINGUAS assigment from automake.
46535 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46536 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46538 # The set of available languages was given in configure.in.
46539 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46542 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46543 # Compute UPDATEPOFILES
46544 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46545 # Compute DUMMYPOFILES
46546 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46548 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46549 case "$ac_given_srcdir" in
46551 *) srcdirpre='$(srcdir)/' ;;
46557 for lang in $ALL_LINGUAS; do
46558 POFILES="$POFILES $srcdirpre$lang.po"
46559 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46560 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46561 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46563 # CATALOGS depends on both $ac_dir and the user's LINGUAS
46564 # environment variable.
46566 if test -n "$ALL_LINGUAS"; then
46567 for presentlang in $ALL_LINGUAS; do
46569 if test "%UNSET%" != "$LINGUAS"; then
46570 desiredlanguages="$LINGUAS"
46572 desiredlanguages="$ALL_LINGUAS"
46574 for desiredlang in $desiredlanguages; do
46575 # Use the presentlang catalog if desiredlang is
46576 # a. equal to presentlang, or
46577 # b. a variant of presentlang (because in this case,
46578 # presentlang can be used as a fallback for messages
46579 # which are not translated in the desiredlang catalog).
46580 case "$desiredlang" in
46581 "$presentlang"*) useit=yes;;
46584 if test $useit = yes; then
46585 INST_LINGUAS="$INST_LINGUAS $presentlang"
46590 if test -n "$INST_LINGUAS"; then
46591 for lang in $INST_LINGUAS; do
46592 CATALOGS="$CATALOGS $lang.gmo"
46595 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
46596 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"
46597 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
46598 if test -f "$f"; then
46600 *.orig | *.bak | *~) ;;
46601 *) cat "$f" >> "$ac_dir/Makefile" ;;
46616 { (exit 0); exit 0; }
46618 chmod +x $CONFIG_STATUS
46619 ac_clean_files=$ac_clean_files_save
46622 # configure is writing to config.log, and then calls config.status.
46623 # config.status does its own redirection, appending to config.log.
46624 # Unfortunately, on DOS this fails, as config.log is still kept open
46625 # by configure, so config.status won't be able to write to it; its
46626 # output is simply discarded. So we exec the FD to /dev/null,
46627 # effectively closing config.log, so it can be properly (re)opened and
46628 # appended to by config.status. When coming back to configure, we
46629 # need to make the FD available again.
46630 if test "$no_create" != yes; then
46632 ac_config_status_args=
46633 test "$silent" = yes &&
46634 ac_config_status_args="$ac_config_status_args --quiet"
46636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
46638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
46639 # would make configure fail if this is the last instruction.
46640 $ac_cs_success || { (exit 1); exit 1; }
46644 if test "${support_bat}" = "yes" ; then
46645 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
46646 { { echo "$as_me:$LINENO: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&5
46647 echo "$as_me: error: Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation" >&2;}
46648 { (exit 1); exit 1; }; }
46653 if test "x$QMAKEQT4" != "xnone"; then
46658 echo "Creating bat Makefile"
46662 ${MAKE:-make} clean
46666 if test X"$GCC" = "Xyes" ; then
46667 echo "Doing make of dependencies"
46668 ${MAKE:-make} depend
46672 chmod 755 install_conf_file build-depkgs-qt-console
46676 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
46677 chmod 755 dvd-handler dvd-simulator
46678 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
46682 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
46683 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
46687 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
46688 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
46690 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
46691 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
46693 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
46694 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
46696 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
46697 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
46699 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
46700 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
46702 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
46703 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
46705 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
46706 chmod 755 $c/sqlite
46709 chmod 755 src/win32/build-depkgs-mingw32
46711 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
46712 largefile_support="yes"
46715 if test X"$GCC" = "Xyes" ; then
46716 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46717 if test "x${CCVERSION}" = "x" ; then
46718 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46720 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
46721 if test x"${CXXVERSION}" = x ; then
46722 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
46726 # clean up any old junk
46730 ${MAKE:-make} clean
46732 if test "x${db_type}" = "xInternal" ; then
46735 echo "You have not specified either --enable-client-only or one of the"
46736 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
46737 echo " This is not permitted. Please reconfigure."
46739 echo "Aborting the configuration ..."
46746 Configuration on `date`:
46748 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
46749 Bacula version: ${BACULA} ${VERSION} (${DATE})
46750 Source code location: ${srcdir}
46751 Install binaries: ${sbindir}
46752 Install libraries: ${libdir}
46753 Install config files: ${sysconfdir}
46754 Scripts directory: ${scriptdir}
46755 Archive directory: ${archivedir}
46756 Working directory: ${working_dir}
46757 PID directory: ${piddir}
46758 Subsys directory: ${subsysdir}
46759 Man directory: ${mandir}
46760 Data directory: ${datarootdir}
46761 Plugin directory: ${plugindir}
46762 C Compiler: ${CC} ${CCVERSION}
46763 C++ Compiler: ${CXX} ${CXXVERSION}
46764 Compiler flags: ${WCFLAGS} ${CFLAGS}
46765 Linker flags: ${WLDFLAGS} ${LDFLAGS}
46767 Statically Linked Tools: ${support_static_tools}
46768 Statically Linked FD: ${support_static_fd}
46769 Statically Linked SD: ${support_static_sd}
46770 Statically Linked DIR: ${support_static_dir}
46771 Statically Linked CONS: ${support_static_cons}
46772 Database type: ${db_type}
46773 Database port: ${db_port}
46774 Database lib: ${DB_LIBS}
46775 Database name: ${db_name}
46776 Database user: ${db_user}
46778 Job Output Email: ${job_email}
46779 Traceback Email: ${dump_email}
46780 SMTP Host Address: ${smtp_host}
46782 Director Port: ${dir_port}
46783 File daemon Port: ${fd_port}
46784 Storage daemon Port: ${sd_port}
46786 Director User: ${dir_user}
46787 Director Group: ${dir_group}
46788 Storage Daemon User: ${sd_user}
46789 Storage DaemonGroup: ${sd_group}
46790 File Daemon User: ${fd_user}
46791 File Daemon Group: ${fd_group}
46793 SQL binaries Directory ${SQL_BINDIR}
46795 Large file support: $largefile_support
46796 Bacula conio support: ${got_conio} ${CONS_LIBS}
46797 readline support: ${got_readline} ${PRTREADLINE_SRC}
46798 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
46799 TLS support: ${support_tls}
46800 Encryption support: ${support_crypto}
46801 ZLIB support: ${have_zlib}
46802 enable-smartalloc: ${support_smartalloc}
46803 enable-lockmgr: ${support_lockmgr}
46804 bat support: ${support_bat} ${QWT_LDFLAGS}
46805 enable-gnome: ${support_gnome} ${gnome_version}
46806 enable-bwx-console: ${support_wx_console} ${wx_version}
46807 enable-tray-monitor: ${support_tray_monitor}
46808 client-only: ${build_client_only}
46809 build-dird: ${build_dird}
46810 build-stored: ${build_stored}
46811 ACL support: ${have_acl}
46812 XATTR support: ${have_xattr}
46813 Python support: ${support_python} ${PYTHON_LIBS}
46814 Batch insert enabled: ${support_batch_insert}