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
818 LIBBACCFG_LT_REVISION
824 LIBBACSQL_LT_REVISION
826 LIBBACFIND_LT_CURRENT
827 LIBBACFIND_LT_REVISION
902 DEFAULT_SHARED_OBJECT_TYPE
903 LIBTOOL_INSTALL_TARGET
904 LIBTOOL_UNINSTALL_TARGET
908 INCLUDE_INSTALL_TARGET
909 INCLUDE_UNINSTALL_TARGET
921 HAVE_FREEBSD_OS_FALSE
925 HAVE_OPENBSD_OS_FALSE
956 BUILD_INCLUDED_LIBINTL
963 INTL_LIBTOOL_SUFFIX_PREFIX
972 TRAY_MONITOR_CPPFLAGS
1063 ac_subst_files='MCOMMON'
1064 ac_precious_vars='build_alias
1082 # Initialize some variables set by options.
1084 ac_init_version=false
1085 # The variables have the same names as the options, with
1086 # dashes changed to underlines.
1087 cache_file=/dev/null
1094 program_transform_name=s,x,x,
1102 # Installation directory options.
1103 # These are left unexpanded so users can "make install exec_prefix=/foo"
1104 # and all the variables that are supposed to be based on exec_prefix
1105 # by default will actually change.
1106 # Use braces instead of parens because sh, perl, etc. also accept them.
1107 # (The list follows the same order as the GNU Coding Standards.)
1108 bindir='${exec_prefix}/bin'
1109 sbindir='${exec_prefix}/sbin'
1110 libexecdir='${exec_prefix}/libexec'
1111 datarootdir='${prefix}/share'
1112 datadir='${datarootdir}'
1113 sysconfdir='${prefix}/etc'
1114 sharedstatedir='${prefix}/com'
1115 localstatedir='${prefix}/var'
1116 includedir='${prefix}/include'
1117 oldincludedir='/usr/include'
1118 docdir='${datarootdir}/doc/${PACKAGE}'
1119 infodir='${datarootdir}/info'
1124 libdir='${exec_prefix}/lib'
1125 localedir='${datarootdir}/locale'
1126 mandir='${datarootdir}/man'
1132 # If the previous option needs an argument, assign it.
1133 if test -n "$ac_prev"; then
1134 eval $ac_prev=\$ac_option
1140 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1144 # Accept the important Cygnus configure options, so we can diagnose typos.
1146 case $ac_dashdash$ac_option in
1150 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1152 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1153 bindir=$ac_optarg ;;
1155 -build | --build | --buil | --bui | --bu)
1156 ac_prev=build_alias ;;
1157 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1158 build_alias=$ac_optarg ;;
1160 -cache-file | --cache-file | --cache-fil | --cache-fi \
1161 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1162 ac_prev=cache_file ;;
1163 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1164 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1165 cache_file=$ac_optarg ;;
1167 --config-cache | -C)
1168 cache_file=config.cache ;;
1170 -datadir | --datadir | --datadi | --datad)
1172 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1173 datadir=$ac_optarg ;;
1175 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1176 | --dataroo | --dataro | --datar)
1177 ac_prev=datarootdir ;;
1178 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1179 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1180 datarootdir=$ac_optarg ;;
1182 -disable-* | --disable-*)
1183 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1187 { (exit 1); exit 1; }; }
1188 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1189 eval enable_$ac_feature=no ;;
1191 -docdir | --docdir | --docdi | --doc | --do)
1193 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1194 docdir=$ac_optarg ;;
1196 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1198 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1199 dvidir=$ac_optarg ;;
1201 -enable-* | --enable-*)
1202 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1205 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1206 { (exit 1); exit 1; }; }
1207 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1208 eval enable_$ac_feature=\$ac_optarg ;;
1210 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1211 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1212 | --exec | --exe | --ex)
1213 ac_prev=exec_prefix ;;
1214 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1215 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1216 | --exec=* | --exe=* | --ex=*)
1217 exec_prefix=$ac_optarg ;;
1219 -gas | --gas | --ga | --g)
1220 # Obsolete; use --with-gas.
1223 -help | --help | --hel | --he | -h)
1224 ac_init_help=long ;;
1225 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1226 ac_init_help=recursive ;;
1227 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1228 ac_init_help=short ;;
1230 -host | --host | --hos | --ho)
1231 ac_prev=host_alias ;;
1232 -host=* | --host=* | --hos=* | --ho=*)
1233 host_alias=$ac_optarg ;;
1235 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1237 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1239 htmldir=$ac_optarg ;;
1241 -includedir | --includedir | --includedi | --included | --include \
1242 | --includ | --inclu | --incl | --inc)
1243 ac_prev=includedir ;;
1244 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1245 | --includ=* | --inclu=* | --incl=* | --inc=*)
1246 includedir=$ac_optarg ;;
1248 -infodir | --infodir | --infodi | --infod | --info | --inf)
1250 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1251 infodir=$ac_optarg ;;
1253 -libdir | --libdir | --libdi | --libd)
1255 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1256 libdir=$ac_optarg ;;
1258 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1259 | --libexe | --libex | --libe)
1260 ac_prev=libexecdir ;;
1261 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1262 | --libexe=* | --libex=* | --libe=*)
1263 libexecdir=$ac_optarg ;;
1265 -localedir | --localedir | --localedi | --localed | --locale)
1266 ac_prev=localedir ;;
1267 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1268 localedir=$ac_optarg ;;
1270 -localstatedir | --localstatedir | --localstatedi | --localstated \
1271 | --localstate | --localstat | --localsta | --localst | --locals)
1272 ac_prev=localstatedir ;;
1273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1274 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1275 localstatedir=$ac_optarg ;;
1277 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1279 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1280 mandir=$ac_optarg ;;
1282 -nfp | --nfp | --nf)
1283 # Obsolete; use --without-fp.
1286 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1287 | --no-cr | --no-c | -n)
1290 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1291 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1294 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1295 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1296 | --oldin | --oldi | --old | --ol | --o)
1297 ac_prev=oldincludedir ;;
1298 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1299 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1300 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1301 oldincludedir=$ac_optarg ;;
1303 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1305 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1306 prefix=$ac_optarg ;;
1308 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1309 | --program-pre | --program-pr | --program-p)
1310 ac_prev=program_prefix ;;
1311 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1312 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1313 program_prefix=$ac_optarg ;;
1315 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1316 | --program-suf | --program-su | --program-s)
1317 ac_prev=program_suffix ;;
1318 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1319 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1320 program_suffix=$ac_optarg ;;
1322 -program-transform-name | --program-transform-name \
1323 | --program-transform-nam | --program-transform-na \
1324 | --program-transform-n | --program-transform- \
1325 | --program-transform | --program-transfor \
1326 | --program-transfo | --program-transf \
1327 | --program-trans | --program-tran \
1328 | --progr-tra | --program-tr | --program-t)
1329 ac_prev=program_transform_name ;;
1330 -program-transform-name=* | --program-transform-name=* \
1331 | --program-transform-nam=* | --program-transform-na=* \
1332 | --program-transform-n=* | --program-transform-=* \
1333 | --program-transform=* | --program-transfor=* \
1334 | --program-transfo=* | --program-transf=* \
1335 | --program-trans=* | --program-tran=* \
1336 | --progr-tra=* | --program-tr=* | --program-t=*)
1337 program_transform_name=$ac_optarg ;;
1339 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1341 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1342 pdfdir=$ac_optarg ;;
1344 -psdir | --psdir | --psdi | --psd | --ps)
1346 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1350 | -silent | --silent | --silen | --sile | --sil)
1353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1357 sbindir=$ac_optarg ;;
1359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1361 | --sharedst | --shareds | --shared | --share | --shar \
1363 ac_prev=sharedstatedir ;;
1364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1368 sharedstatedir=$ac_optarg ;;
1370 -site | --site | --sit)
1372 -site=* | --site=* | --sit=*)
1375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1378 srcdir=$ac_optarg ;;
1380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1381 | --syscon | --sysco | --sysc | --sys | --sy)
1382 ac_prev=sysconfdir ;;
1383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1385 sysconfdir=$ac_optarg ;;
1387 -target | --target | --targe | --targ | --tar | --ta | --t)
1388 ac_prev=target_alias ;;
1389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1390 target_alias=$ac_optarg ;;
1392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1395 -version | --version | --versio | --versi | --vers | -V)
1396 ac_init_version=: ;;
1399 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1400 # Reject names that are not valid shell variable names.
1401 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402 { echo "$as_me: error: invalid package name: $ac_package" >&2
1403 { (exit 1); exit 1; }; }
1404 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1405 eval with_$ac_package=\$ac_optarg ;;
1407 -without-* | --without-*)
1408 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1409 # Reject names that are not valid shell variable names.
1410 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411 { echo "$as_me: error: invalid package name: $ac_package" >&2
1412 { (exit 1); exit 1; }; }
1413 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1414 eval with_$ac_package=no ;;
1417 # Obsolete; use --with-x.
1420 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1421 | --x-incl | --x-inc | --x-in | --x-i)
1422 ac_prev=x_includes ;;
1423 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1424 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1425 x_includes=$ac_optarg ;;
1427 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1428 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1429 ac_prev=x_libraries ;;
1430 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1431 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1432 x_libraries=$ac_optarg ;;
1434 -*) { echo "$as_me: error: unrecognized option: $ac_option
1435 Try \`$0 --help' for more information." >&2
1436 { (exit 1); exit 1; }; }
1440 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1441 # Reject names that are not valid shell variable names.
1442 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1443 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1444 { (exit 1); exit 1; }; }
1445 eval $ac_envvar=\$ac_optarg
1446 export $ac_envvar ;;
1449 # FIXME: should be removed in autoconf 3.0.
1450 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1451 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1452 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1453 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1459 if test -n "$ac_prev"; then
1460 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1461 { echo "$as_me: error: missing argument to $ac_option" >&2
1462 { (exit 1); exit 1; }; }
1465 # Be sure to have absolute directory names.
1466 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1467 datadir sysconfdir sharedstatedir localstatedir includedir \
1468 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1469 libdir localedir mandir
1471 eval ac_val=\$$ac_var
1473 [\\/$]* | ?:[\\/]* ) continue;;
1474 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1476 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1477 { (exit 1); exit 1; }; }
1480 # There might be people who depend on the old broken behavior: `$host'
1481 # used to hold the argument of --host etc.
1482 # FIXME: To remove some day.
1485 target=$target_alias
1487 # FIXME: To remove some day.
1488 if test "x$host_alias" != x; then
1489 if test "x$build_alias" = x; then
1490 cross_compiling=maybe
1491 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1492 If a cross compiler is detected then cross compile mode will be used." >&2
1493 elif test "x$build_alias" != "x$host_alias"; then
1499 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1501 test "$silent" = yes && exec 6>/dev/null
1504 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1505 ac_ls_di=`ls -di .` &&
1506 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1507 { echo "$as_me: error: Working directory cannot be determined" >&2
1508 { (exit 1); exit 1; }; }
1509 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1510 { echo "$as_me: error: pwd does not report name of working directory" >&2
1511 { (exit 1); exit 1; }; }
1514 # Find the source files, if location was not specified.
1515 if test -z "$srcdir"; then
1516 ac_srcdir_defaulted=yes
1517 # Try the directory containing this script, then the parent directory.
1518 ac_confdir=`$as_dirname -- "$0" ||
1519 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520 X"$0" : 'X\(//\)[^/]' \| \
1521 X"$0" : 'X\(//\)$' \| \
1522 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1542 if test ! -r "$srcdir/$ac_unique_file"; then
1546 ac_srcdir_defaulted=no
1548 if test ! -r "$srcdir/$ac_unique_file"; then
1549 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1551 { (exit 1); exit 1; }; }
1553 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1555 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1556 { (exit 1); exit 1; }; }
1558 # When building in place, set srcdir=.
1559 if test "$ac_abs_confdir" = "$ac_pwd"; then
1562 # Remove unnecessary trailing slashes from srcdir.
1563 # Double slashes in file names in object file debugging info
1564 # mess up M-x gdb in Emacs.
1566 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568 for ac_var in $ac_precious_vars; do
1569 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1570 eval ac_env_${ac_var}_value=\$${ac_var}
1571 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1572 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1576 # Report the --help message.
1578 if test "$ac_init_help" = "long"; then
1579 # Omit some internal or obsolete options to make the list less imposing.
1580 # This message is too long to be a string in the A/UX 3.1 sh.
1582 \`configure' configures this package to adapt to many kinds of systems.
1584 Usage: $0 [OPTION]... [VAR=VALUE]...
1586 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1587 VAR=VALUE. See below for descriptions of some of the useful variables.
1589 Defaults for the options are specified in brackets.
1592 -h, --help display this help and exit
1593 --help=short display options specific to this package
1594 --help=recursive display the short help of all the included packages
1595 -V, --version display version information and exit
1596 -q, --quiet, --silent do not print \`checking...' messages
1597 --cache-file=FILE cache test results in FILE [disabled]
1598 -C, --config-cache alias for \`--cache-file=config.cache'
1599 -n, --no-create do not create output files
1600 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1602 Installation directories:
1603 --prefix=PREFIX install architecture-independent files in PREFIX
1604 [$ac_default_prefix]
1605 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1608 By default, \`make install' will install all the files in
1609 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1610 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1611 for instance \`--prefix=\$HOME'.
1613 For better control, use the options below.
1615 Fine tuning of the installation directories:
1616 --bindir=DIR user executables [EPREFIX/bin]
1617 --sbindir=DIR system admin executables [EPREFIX/sbin]
1618 --libexecdir=DIR program executables [EPREFIX/libexec]
1619 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1620 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1621 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1622 --libdir=DIR object code libraries [EPREFIX/lib]
1623 --includedir=DIR C header files [PREFIX/include]
1624 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1625 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1626 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1627 --infodir=DIR info documentation [DATAROOTDIR/info]
1628 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1629 --mandir=DIR man documentation [DATAROOTDIR/man]
1630 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1631 --htmldir=DIR html documentation [DOCDIR]
1632 --dvidir=DIR dvi documentation [DOCDIR]
1633 --pdfdir=DIR pdf documentation [DOCDIR]
1634 --psdir=DIR ps documentation [DOCDIR]
1640 --x-includes=DIR X include files are in DIR
1641 --x-libraries=DIR X library files are in DIR
1644 --build=BUILD configure for building on BUILD [guessed]
1645 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1649 if test -n "$ac_init_help"; then
1654 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1655 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1656 --enable-libtool enable building using GNU libtool [default=yes]
1657 --enable-shared[=PKGS] build shared libraries [default=yes]
1658 --enable-static[=PKGS] build static libraries [default=no]
1659 --enable-fast-install[=PKGS]
1660 optimize for fast installation [default=yes]
1661 --disable-libtool-lock avoid locking (might break parallel builds)
1662 --enable-includes enable installing of include files [default=no]
1663 --disable-nls do not use Native Language Support
1664 --disable-rpath do not hardcode runtime library paths
1665 --enable-gnome enable build of bgnome-console GUI [default=no]
1666 --enable-bat enable build of bat Qt4 GUI [default=no]
1667 --enable-bwx-console enable build of wxWidgets console [default=no]
1668 --enable-tray-monitor enable build of Gnome tray monitor (compatible with
1670 --enable-smartalloc enable smartalloc debugging support [default=no]
1671 --enable-lockmgr enable lock manager support [default=no]
1672 --enable-static-tools enable static tape tools [default=no]
1673 --enable-static-fd enable static File daemon [default=no]
1674 --enable-static-sd enable static Storage daemon [default=no]
1675 --enable-static-dir enable static Director [default=no]
1676 --enable-static-cons enable static Console [default=no]
1677 --enable-client-only build client (File daemon) only [default=no]
1678 --enable-build-dird enable building of dird (Director) [default=yes]
1679 --enable-build-stored enable building of stored (Storage daemon)
1681 --disable-conio disable conio support [default=no]
1682 --enable-ipv6 enable ipv6 support [default=yes]
1683 --disable-readline disable readline support [default=yes]
1684 --enable-batch-insert enable the DB batch insert code [default=no]
1685 --disable-largefile omit support for large files
1686 --disable-acl disable acl support [default=auto]
1687 --disable-xattr disable xattr support [default=auto]
1690 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1691 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1692 --with-pic try to use only PIC/non-PIC objects [default=use
1694 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1695 --with-gnu-ld assume the C compiler uses GNU ld default=no
1696 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1697 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1698 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1699 --without-libintl-prefix don't search for libintl in includedir and libdir
1700 --with-included-gettext use the GNU gettext library included here
1701 --with-readline[=DIR] specify readline library directory
1702 --with-python[=DIR] Include Python support. DIR is the Python base
1703 install directory, default is to search through a
1704 number of common places for the Python files.
1705 --with-tcp-wrappers[=DIR]
1706 enable tcpwrappers support
1707 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1708 --with-working-dir=PATH specify path of Bacula working directory
1709 --with-archivedir=PATH specify path of SD archive directory
1710 --with-basename=RESNAME specify base resource name for daemons
1711 --with-hostname=RESNAME specify host name for daemons
1712 --with-scriptdir=PATH specify path of Bacula scripts directory
1713 --with-bsrdir=PATH specify path of Bacula bsrs directory
1714 --with-logdir=PATH specify path of Bacula logs directory
1715 --with-plugindir=PATH specify path of Bacula plugins directory
1716 --with-dump-email=EMAIL dump email address
1717 --with-job-email=EMAIL job output email address
1718 --with-smtp-host=HOST SMTP mail host address
1719 --with-pid-dir=PATH specify location of Bacula pid files
1720 --with-subsys-dir=PATH specify location of Bacula subsys file
1721 --with-baseport=PORT specify base port address for daemons
1722 --with-dir-password=PASSWORD
1723 specify Director's password
1724 --with-fd-password=PASSWORD
1725 specify Client's password
1726 --with-sd-password=PASSWORD
1727 specify Storage daemon's password
1728 --with-mon-dir-password=PASSWORD
1729 specify Director's password used by the monitor
1730 --with-mon-fd-password=PASSWORD
1731 specify Client's password used by the monitor
1732 --with-mon-sd-password=PASSWORD
1733 specify Storage daemon's password used by the
1735 --with-db-name=DBNAME specify database name [default=bacula]
1736 --with-db-user=UNAME specify database user [default=bacula]
1737 --with-db-password=PWD specify database password [default=*none*]
1738 --with-db-port=DBPORT specify a database port [default=null]
1739 --with-dir-user=USER specify user for Director daemon
1740 --with-dir-group=GROUP specify group for Director daemon
1741 --with-sd-user=USER specify user for Storage daemon
1742 --with-sd-group=GROUP specify group for Storage daemon
1743 --with-fd-user=USER specify user for File daemon
1744 --with-fd-group=GROUP specify group for File daemon
1745 --with-sbin-perm=MODE specify permissions for sbin binaries [default=0754]
1746 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1747 base install directory, [default=/usr/local/pgsql]
1748 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base install
1749 directory, default is to search through a number of
1750 common places for the MySQL files.
1751 --with-embedded-mysql[=DIR]
1752 Include MySQL support. DIR is the MySQL base install
1753 directory, default is to search through a number of
1754 common places for the MySQL files.
1755 --with-ingres[=DIR] Include Ingres support. DIR is the Ingres base
1756 install directory, default is to search through a
1757 number of common places for the Ingres files.
1758 --with-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1759 install directory, default is to search through a
1760 number of common places for the SQLite3 files.
1761 --with-dbi[=DIR] Include DBI support. DIR is the DBD base install
1762 directory, default is to search through a number of
1763 common places for the DBI files.
1764 --with-dbi-driver[=DRIVER]
1765 Suport for DBI driver. DRIVER is the one DBI driver
1766 like Mysql, Postgresql, others. Default is to not
1767 configure any driver.
1768 --with-x use the X Window System
1770 Some influential environment variables:
1771 CC C compiler command
1772 CFLAGS C compiler flags
1773 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1774 nonstandard directory <lib dir>
1775 LIBS libraries to pass to the linker, e.g. -l<library>
1776 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1777 you have headers in a nonstandard directory <include dir>
1778 CXX C++ compiler command
1779 CXXFLAGS C++ compiler flags
1781 WXCONFIG wx-config command. On some systems, you must set it to
1782 wx-config-2.6 to use wxWidgets 2.6.
1783 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1784 CXXCPP C++ preprocessor
1785 XMKMF Path to xmkmf, Makefile generator for X Window System
1787 Use these variables to override the choices made by `configure' or to help
1788 it to find libraries and programs with nonstandard names/locations.
1794 if test "$ac_init_help" = "recursive"; then
1795 # If there are subdirs, report their specific --help.
1796 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1797 test -d "$ac_dir" || continue
1801 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1803 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1804 # A ".." for each directory in $ac_dir_suffix.
1805 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1806 case $ac_top_builddir_sub in
1807 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1811 ac_abs_top_builddir=$ac_pwd
1812 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1813 # for backward compatibility:
1814 ac_top_builddir=$ac_top_build_prefix
1817 .) # We are building in place.
1819 ac_top_srcdir=$ac_top_builddir_sub
1820 ac_abs_top_srcdir=$ac_pwd ;;
1821 [\\/]* | ?:[\\/]* ) # Absolute name.
1822 ac_srcdir=$srcdir$ac_dir_suffix;
1823 ac_top_srcdir=$srcdir
1824 ac_abs_top_srcdir=$srcdir ;;
1826 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1827 ac_top_srcdir=$ac_top_build_prefix$srcdir
1828 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1830 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1832 cd "$ac_dir" || { ac_status=$?; continue; }
1833 # Check for guested configure.
1834 if test -f "$ac_srcdir/configure.gnu"; then
1836 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1837 elif test -f "$ac_srcdir/configure"; then
1839 $SHELL "$ac_srcdir/configure" --help=recursive
1841 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1843 cd "$ac_pwd" || { ac_status=$?; break; }
1847 test -n "$ac_init_help" && exit $ac_status
1848 if $ac_init_version; then
1851 generated by GNU Autoconf 2.61
1853 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1854 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1855 This configure script is free software; the Free Software Foundation
1856 gives unlimited permission to copy, distribute and modify it.
1860 cat >config.log <<_ACEOF
1861 This file contains any messages produced by compilers while
1862 running configure, to aid debugging if configure makes a mistake.
1864 It was created by $as_me, which was
1865 generated by GNU Autoconf 2.61. Invocation command line was
1877 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1878 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1879 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1880 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1881 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1883 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1884 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1886 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1887 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1888 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1889 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1890 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1891 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1892 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 test -z "$as_dir" && as_dir=.
1901 echo "PATH: $as_dir"
1917 # Keep a trace of the command line.
1918 # Strip out --no-create and --no-recursion so they do not pile up.
1919 # Strip out --silent because we don't want to record it for future runs.
1920 # Also quote any args containing shell meta-characters.
1921 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_must_keep_next=false
1931 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1932 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1933 | -silent | --silent | --silen | --sile | --sil)
1936 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1939 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1941 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1942 if test $ac_must_keep_next = true; then
1943 ac_must_keep_next=false # Got value, back to normal.
1946 *=* | --config-cache | -C | -disable-* | --disable-* \
1947 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1948 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1949 | -with-* | --with-* | -without-* | --without-* | --x)
1950 case "$ac_configure_args0 " in
1951 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1954 -* ) ac_must_keep_next=true ;;
1957 ac_configure_args="$ac_configure_args '$ac_arg'"
1962 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1963 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1965 # When interrupted or exit'd, cleanup temporary files, and complete
1966 # config.log. We remove comments because anyway the quotes in there
1967 # would cause problems or look ugly.
1968 # WARNING: Use '\'' to represent an apostrophe within the trap.
1969 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1970 trap 'exit_status=$?
1971 # Save into config.log some information that might help in debugging.
1976 ## ---------------- ##
1977 ## Cache variables. ##
1978 ## ---------------- ##
1981 # The following way of writing the cache mishandles newlines in values,
1983 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1984 eval ac_val=\$$ac_var
1988 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1989 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1992 _ | IFS | as_nl) ;; #(
1993 *) $as_unset $ac_var ;;
1998 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1999 *${as_nl}ac_space=\ *)
2001 "s/'\''/'\''\\\\'\'''\''/g;
2002 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2013 ## ----------------- ##
2014 ## Output variables. ##
2015 ## ----------------- ##
2018 for ac_var in $ac_subst_vars
2020 eval ac_val=\$$ac_var
2022 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2024 echo "$ac_var='\''$ac_val'\''"
2028 if test -n "$ac_subst_files"; then
2030 ## ------------------- ##
2031 ## File substitutions. ##
2032 ## ------------------- ##
2035 for ac_var in $ac_subst_files
2037 eval ac_val=\$$ac_var
2039 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2041 echo "$ac_var='\''$ac_val'\''"
2046 if test -s confdefs.h; then
2056 test "$ac_signal" != 0 &&
2057 echo "$as_me: caught signal $ac_signal"
2058 echo "$as_me: exit $exit_status"
2060 rm -f core *.core core.conftest.* &&
2061 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2064 for ac_signal in 1 2 13 15; do
2065 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2069 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2070 rm -f -r conftest* confdefs.h
2072 # Predefined preprocessor variables.
2074 cat >>confdefs.h <<_ACEOF
2075 #define PACKAGE_NAME "$PACKAGE_NAME"
2079 cat >>confdefs.h <<_ACEOF
2080 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_STRING "$PACKAGE_STRING"
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2099 # Let the site file select an alternate cache file if it wants to.
2100 # Prefer explicitly selected file to automatically selected ones.
2101 if test -n "$CONFIG_SITE"; then
2102 set x "$CONFIG_SITE"
2103 elif test "x$prefix" != xNONE; then
2104 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2106 set x "$ac_default_prefix/share/config.site" \
2107 "$ac_default_prefix/etc/config.site"
2112 if test -r "$ac_site_file"; then
2113 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2114 echo "$as_me: loading site script $ac_site_file" >&6;}
2115 sed 's/^/| /' "$ac_site_file" >&5
2120 if test -r "$cache_file"; then
2121 # Some versions of bash will fail to source /dev/null (special
2122 # files actually), so we avoid doing that.
2123 if test -f "$cache_file"; then
2124 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2125 echo "$as_me: loading cache $cache_file" >&6;}
2127 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2128 *) . "./$cache_file";;
2132 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2133 echo "$as_me: creating cache $cache_file" >&6;}
2137 # Check that the precious variables saved in the cache have kept the same
2139 ac_cache_corrupted=false
2140 for ac_var in $ac_precious_vars; do
2141 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2142 eval ac_new_set=\$ac_env_${ac_var}_set
2143 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2144 eval ac_new_val=\$ac_env_${ac_var}_value
2145 case $ac_old_set,$ac_new_set in
2147 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2148 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2149 ac_cache_corrupted=: ;;
2151 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2152 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2153 ac_cache_corrupted=: ;;
2156 if test "x$ac_old_val" != "x$ac_new_val"; then
2157 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2158 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2159 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2160 echo "$as_me: former value: $ac_old_val" >&2;}
2161 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2162 echo "$as_me: current value: $ac_new_val" >&2;}
2163 ac_cache_corrupted=:
2166 # Pass precious variables to config.status.
2167 if test "$ac_new_set" = set; then
2169 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 *) ac_arg=$ac_var=$ac_new_val ;;
2172 case " $ac_configure_args " in
2173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2174 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2178 if $ac_cache_corrupted; then
2179 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2180 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2181 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2182 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2183 { (exit 1); exit 1; }; }
2203 ac_cpp='$CPP $CPPFLAGS'
2204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2216 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
2217 if test -f "$ac_dir/install-sh"; then
2219 ac_install_sh="$ac_aux_dir/install-sh -c"
2221 elif test -f "$ac_dir/install.sh"; then
2223 ac_install_sh="$ac_aux_dir/install.sh -c"
2225 elif test -f "$ac_dir/shtool"; then
2227 ac_install_sh="$ac_aux_dir/shtool install -c"
2231 if test -z "$ac_aux_dir"; then
2232 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2233 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2234 { (exit 1); exit 1; }; }
2237 # These three variables are undocumented and unsupported,
2238 # and are intended to be withdrawn in a future Autoconf release.
2239 # They can cause serious problems if a builder's source tree is in a directory
2240 # whose full name contains unusual characters.
2241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2246 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2249 WIN32BUILDDIR=${BUILD_DIR}/src/win32
2250 WIN32MAINDIR=${BUILD_DIR}
2251 WIN32TOPDIR=${TOP_DIR}
2261 # Extract the first word of "$ac_prog", so it can be a program name with args.
2262 set dummy $ac_prog; ac_word=$2
2263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2265 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2291 TRUEPRG=$ac_cv_path_TRUEPRG
2292 if test -n "$TRUEPRG"; then
2293 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2294 echo "${ECHO_T}$TRUEPRG" >&6; }
2296 { echo "$as_me:$LINENO: result: no" >&5
2297 echo "${ECHO_T}no" >&6; }
2301 test -n "$TRUEPRG" && break
2303 test -n "$TRUEPRG" || TRUEPRG=":"
2305 for ac_prog in false
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 FALSEPRG=$ac_cv_path_FALSEPRG
2338 if test -n "$FALSEPRG"; then
2339 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2340 echo "${ECHO_T}$FALSEPRG" >&6; }
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2347 test -n "$FALSEPRG" && break
2349 test -n "$FALSEPRG" || FALSEPRG=":"
2354 if test "x$BACULA" != x; then
2355 post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
2357 BACULA=${BACULA:-Bacula}
2358 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2359 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2360 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2362 LIBBAC_LT_CURRENT=`sed -n -e 's/^.*LIBBAC_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2363 LIBBAC_LT_REVISION=`sed -n -e 's/^.*LIBBAC_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2364 LIBBAC_LT_AGE=`sed -n -e 's/^.*LIBBAC_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2365 LIBBACCFG_LT_CURRENT=`sed -n -e 's/^.*LIBBACCFG_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2366 LIBBACCFG_LT_REVISION=`sed -n -e 's/^.*LIBBACCFG_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2367 LIBBACCFG_LT_AGE=`sed -n -e 's/^.*LIBBACCFG_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2368 LIBBACPY_LT_CURRENT=`sed -n -e 's/^.*LIBBACPY_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2369 LIBBACPY_LT_REVISION=`sed -n -e 's/^.*LIBBACPY_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2370 LIBBACPY_LT_AGE=`sed -n -e 's/^.*LIBBACPY_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2373 LIBBACSQL_LT_CURRENT=`sed -n -e 's/^.*LIBBACSQL_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2374 LIBBACSQL_LT_REVISION=`sed -n -e 's/^.*LIBBACSQL_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2375 LIBBACSQL_LT_AGE=`sed -n -e 's/^.*LIBBACSQL_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2377 LIBBACFIND_LT_CURRENT=`sed -n -e 's/^.*LIBBACFIND_LT_CURRENT *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2378 LIBBACFIND_LT_REVISION=`sed -n -e 's/^.*LIBBACFIND_LT_REVISION *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2379 LIBBACFIND_LT_AGE=`sed -n -e 's/^.*LIBBACFIND_LT_AGE *\(.*\)$/\1/p' ${srcdir}/src/version.h`
2381 echo "configuring for ${BACULA} $VERSION ($DATE)"
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 if test -n "$CC"; then
2420 { echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6; }
2423 { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2429 if test -z "$ac_cv_prog_CC"; then
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432 set dummy gcc; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_ac_ct_CC="gcc"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2467 if test "x$ac_ct_CC" = x; then
2470 case $cross_compiling:$ac_tool_warned in
2472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet. If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&5
2475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476 whose name does not start with the host triplet. If you think this
2477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2478 ac_tool_warned=yes ;;
2486 if test -z "$CC"; then
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}cc; ac_word=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC="${ac_tool_prefix}cc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 if test -n "$CC"; then
2517 { echo "$as_me:$LINENO: result: $CC" >&5
2518 echo "${ECHO_T}$CC" >&6; }
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2527 if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529 set dummy cc; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected=yes
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy $ac_cv_prog_CC
2562 if test $# != 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2573 if test -n "$CC"; then
2574 { echo "$as_me:$LINENO: result: $CC" >&5
2575 echo "${ECHO_T}$CC" >&6; }
2577 { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2583 if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
2585 for ac_prog in cl.exe
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2624 test -n "$CC" && break
2627 if test -z "$CC"; then
2629 for ac_prog in cl.exe
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632 set dummy $ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_ac_ct_CC="$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659 if test -n "$ac_ct_CC"; then
2660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$ac_ct_CC" && break
2671 if test "x$ac_ct_CC" = x; then
2674 case $cross_compiling:$ac_tool_warned in
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned=yes ;;
2691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
2697 # Provide some information about the compiler.
2698 echo "$as_me:$LINENO: checking for C compiler version" >&5
2699 ac_compiler=`set X $ac_compile; echo $2`
2700 { (ac_try="$ac_compiler --version >&5"
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler --version >&5") 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try="$ac_compiler -v >&5"
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720 { (ac_try="$ac_compiler -V >&5"
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler -V >&5") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
2731 cat >conftest.$ac_ext <<_ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2746 ac_clean_files_save=$ac_clean_files
2747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2748 # Try to create an executable without -o first, disregard a.out.
2749 # It will help us diagnose broken compilers, and finding out an intuition
2751 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755 # List of possible output files, starting from the most likely.
2756 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2757 # only as a last resort. b.out is created by i960 compilers.
2758 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760 # The IRIX 6 linker writes into existing files which may not be
2761 # executable, retaining their permissions. Remove them first so a
2762 # subsequent execution test works.
2764 for ac_file in $ac_files
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 if { (ac_try="$ac_link_default"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_link_default") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
2783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2786 # so that the user can short-circuit this test for compilers unknown to
2788 for ac_file in $ac_files ''
2790 test -f "$ac_file" || continue
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795 # We found the default executable, but exeext='' is most
2799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 # We set ac_cv_exeext here because the later test for it is not
2804 # safe: cross compilers may not add the suffix if given an `-o'
2805 # argument, so we may need to know it at that point already.
2806 # Even if this section looks crufty: it has the advantage of
2813 test "$ac_cv_exeext" = no && ac_cv_exeext=
2819 { echo "$as_me:$LINENO: result: $ac_file" >&5
2820 echo "${ECHO_T}$ac_file" >&6; }
2821 if test -z "$ac_file"; then
2822 echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2825 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&5
2827 echo "$as_me: error: C compiler cannot create executables
2828 See \`config.log' for more details." >&2;}
2829 { (exit 77); exit 77; }; }
2832 ac_exeext=$ac_cv_exeext
2834 # Check that the compiler produces executables we can run. If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2839 # If not cross compiling, check that we can run a simple program.
2840 if test "$cross_compiling" != yes; then
2841 if { ac_try='./$ac_file'
2842 { (case "(($ac_try" in
2843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2853 if test "$cross_compiling" = maybe; then
2856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2866 { echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6; }
2869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2870 ac_clean_files=$ac_clean_files_save
2871 # Check that the compiler produces executables we can run. If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2875 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2876 echo "${ECHO_T}$cross_compiling" >&6; }
2878 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2880 if { (ac_try="$ac_link"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_link") 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; then
2890 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2894 for ac_file in conftest.exe conftest conftest.*; do
2895 test -f "$ac_file" || continue
2897 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2898 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&2;}
2908 { (exit 1); exit 1; }; }
2911 rm -f conftest$ac_cv_exeext
2912 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2913 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2915 rm -f conftest.$ac_ext
2916 EXEEXT=$ac_cv_exeext
2918 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2920 if test "${ac_cv_objext+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2938 rm -f conftest.o conftest.obj
2939 if { (ac_try="$ac_compile"
2941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; then
2949 for ac_file in conftest.o conftest.obj conftest.*; do
2950 test -f "$ac_file" || continue;
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&5
2963 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&2;}
2965 { (exit 1); exit 1; }; }
2968 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2970 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2971 echo "${ECHO_T}$ac_cv_objext" >&6; }
2972 OBJEXT=$ac_cv_objext
2974 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2975 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2976 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2977 echo $ECHO_N "(cached) $ECHO_C" >&6
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3006 grep -v '^ *+' conftest.er1 >conftest.err
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); } && {
3011 test -z "$ac_c_werror_flag" ||
3012 test ! -s conftest.err
3013 } && test -s conftest.$ac_objext; then
3016 echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3026 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3027 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3028 GCC=`test $ac_compiler_gnu = yes && echo yes`
3029 ac_test_CFLAGS=${CFLAGS+set}
3030 ac_save_CFLAGS=$CFLAGS
3031 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3032 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3033 if test "${ac_cv_prog_cc_g+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3036 ac_save_c_werror_flag=$ac_c_werror_flag
3037 ac_c_werror_flag=yes
3040 cat >conftest.$ac_ext <<_ACEOF
3043 cat confdefs.h >>conftest.$ac_ext
3044 cat >>conftest.$ac_ext <<_ACEOF
3045 /* end confdefs.h. */
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_compile") 2>conftest.er1
3064 grep -v '^ *+' conftest.er1 >conftest.err
3066 cat conftest.err >&5
3067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068 (exit $ac_status); } && {
3069 test -z "$ac_c_werror_flag" ||
3070 test ! -s conftest.err
3071 } && test -s conftest.$ac_objext; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3078 cat >conftest.$ac_ext <<_ACEOF
3081 cat confdefs.h >>conftest.$ac_ext
3082 cat >>conftest.$ac_ext <<_ACEOF
3083 /* end confdefs.h. */
3093 rm -f conftest.$ac_objext
3094 if { (ac_try="$ac_compile"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_compile") 2>conftest.er1
3102 grep -v '^ *+' conftest.er1 >conftest.err
3104 cat conftest.err >&5
3105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106 (exit $ac_status); } && {
3107 test -z "$ac_c_werror_flag" ||
3108 test ! -s conftest.err
3109 } && test -s conftest.$ac_objext; then
3112 echo "$as_me: failed program was:" >&5
3113 sed 's/^/| /' conftest.$ac_ext >&5
3115 ac_c_werror_flag=$ac_save_c_werror_flag
3117 cat >conftest.$ac_ext <<_ACEOF
3120 cat confdefs.h >>conftest.$ac_ext
3121 cat >>conftest.$ac_ext <<_ACEOF
3122 /* end confdefs.h. */
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3141 grep -v '^ *+' conftest.er1 >conftest.err
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3166 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3168 if test "$ac_test_CFLAGS" = set; then
3169 CFLAGS=$ac_save_CFLAGS
3170 elif test $ac_cv_prog_cc_g = yes; then
3171 if test "$GCC" = yes; then
3177 if test "$GCC" = yes; then
3183 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3184 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3185 if test "${ac_cv_prog_cc_c89+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 ac_cv_prog_cc_c89=no
3190 cat >conftest.$ac_ext <<_ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3198 #include <sys/types.h>
3199 #include <sys/stat.h>
3200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3201 struct buf { int x; };
3202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3203 static char *e (p, i)
3209 static char *f (char * (*g) (char **, int), char **p, ...)
3214 s = g (p, va_arg (v,int));
3219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3220 function prototypes and stuff, but not '\xHH' hex character constants.
3221 These don't provoke an error unfortunately, instead are silently treated
3222 as 'x'. The following induces an error, until -std is added to get
3223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3224 array size at least. It's necessary to write '\x00'==0 to get something
3225 that's true only with -std. */
3226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3229 inside strings and character constants. */
3231 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3233 int test (int i, double x);
3234 struct s1 {int (*f) (int a);};
3235 struct s2 {int (*f) (double a);};
3236 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3247 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3248 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3250 CC="$ac_save_CC $ac_arg"
3251 rm -f conftest.$ac_objext
3252 if { (ac_try="$ac_compile"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_compile") 2>conftest.er1
3260 grep -v '^ *+' conftest.er1 >conftest.err
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } && {
3265 test -z "$ac_c_werror_flag" ||
3266 test ! -s conftest.err
3267 } && test -s conftest.$ac_objext; then
3268 ac_cv_prog_cc_c89=$ac_arg
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3276 rm -f core conftest.err conftest.$ac_objext
3277 test "x$ac_cv_prog_cc_c89" != "xno" && break
3279 rm -f conftest.$ac_ext
3284 case "x$ac_cv_prog_cc_c89" in
3286 { echo "$as_me:$LINENO: result: none needed" >&5
3287 echo "${ECHO_T}none needed" >&6; } ;;
3289 { echo "$as_me:$LINENO: result: unsupported" >&5
3290 echo "${ECHO_T}unsupported" >&6; } ;;
3292 CC="$CC $ac_cv_prog_cc_c89"
3293 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3294 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 ac_cpp='$CXXCPP $CPPFLAGS'
3306 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3309 if test -z "$CXX"; then
3310 if test -n "$CCC"; then
3313 if test -n "$ac_tool_prefix"; then
3314 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3320 if test "${ac_cv_prog_CXX+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 if test -n "$CXX"; then
3324 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3333 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 if test -n "$CXX"; then
3345 { echo "$as_me:$LINENO: result: $CXX" >&5
3346 echo "${ECHO_T}$CXX" >&6; }
3348 { echo "$as_me:$LINENO: result: no" >&5
3349 echo "${ECHO_T}no" >&6; }
3353 test -n "$CXX" && break
3356 if test -z "$CXX"; then
3358 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3360 # Extract the first word of "$ac_prog", so it can be a program name with args.
3361 set dummy $ac_prog; ac_word=$2
3362 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3363 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3364 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 if test -n "$ac_ct_CXX"; then
3368 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_ac_ct_CXX="$ac_prog"
3378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3388 if test -n "$ac_ct_CXX"; then
3389 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3390 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3392 { echo "$as_me:$LINENO: result: no" >&5
3393 echo "${ECHO_T}no" >&6; }
3397 test -n "$ac_ct_CXX" && break
3400 if test "x$ac_ct_CXX" = x; then
3403 case $cross_compiling:$ac_tool_warned in
3405 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3406 whose name does not start with the host triplet. If you think this
3407 configuration is useful to you, please write to autoconf@gnu.org." >&5
3408 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3409 whose name does not start with the host triplet. If you think this
3410 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3411 ac_tool_warned=yes ;;
3419 # Provide some information about the compiler.
3420 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3421 ac_compiler=`set X $ac_compile; echo $2`
3422 { (ac_try="$ac_compiler --version >&5"
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_compiler --version >&5") 2>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }
3432 { (ac_try="$ac_compiler -v >&5"
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3438 (eval "$ac_compiler -v >&5") 2>&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }
3442 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }
3453 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3456 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3476 rm -f conftest.$ac_objext
3477 if { (ac_try="$ac_compile"
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3483 (eval "$ac_compile") 2>conftest.er1
3485 grep -v '^ *+' conftest.er1 >conftest.err
3487 cat conftest.err >&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); } && {
3490 test -z "$ac_cxx_werror_flag" ||
3491 test ! -s conftest.err
3492 } && test -s conftest.$ac_objext; then
3495 echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3502 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3505 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3506 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3507 GXX=`test $ac_compiler_gnu = yes && echo yes`
3508 ac_test_CXXFLAGS=${CXXFLAGS+set}
3509 ac_save_CXXFLAGS=$CXXFLAGS
3510 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3511 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3512 if test "${ac_cv_prog_cxx_g+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3516 ac_cxx_werror_flag=yes
3519 cat >conftest.$ac_ext <<_ACEOF
3522 cat confdefs.h >>conftest.$ac_ext
3523 cat >>conftest.$ac_ext <<_ACEOF
3524 /* end confdefs.h. */
3534 rm -f conftest.$ac_objext
3535 if { (ac_try="$ac_compile"
3537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538 *) ac_try_echo=$ac_try;;
3540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3541 (eval "$ac_compile") 2>conftest.er1
3543 grep -v '^ *+' conftest.er1 >conftest.err
3545 cat conftest.err >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); } && {
3548 test -z "$ac_cxx_werror_flag" ||
3549 test ! -s conftest.err
3550 } && test -s conftest.$ac_objext; then
3551 ac_cv_prog_cxx_g=yes
3553 echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3557 cat >conftest.$ac_ext <<_ACEOF
3560 cat confdefs.h >>conftest.$ac_ext
3561 cat >>conftest.$ac_ext <<_ACEOF
3562 /* end confdefs.h. */
3572 rm -f conftest.$ac_objext
3573 if { (ac_try="$ac_compile"
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compile") 2>conftest.er1
3581 grep -v '^ *+' conftest.er1 >conftest.err
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585 (exit $ac_status); } && {
3586 test -z "$ac_cxx_werror_flag" ||
3587 test ! -s conftest.err
3588 } && test -s conftest.$ac_objext; then
3591 echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3594 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3596 cat >conftest.$ac_ext <<_ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */
3611 rm -f conftest.$ac_objext
3612 if { (ac_try="$ac_compile"
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compile") 2>conftest.er1
3620 grep -v '^ *+' conftest.er1 >conftest.err
3622 cat conftest.err >&5
3623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624 (exit $ac_status); } && {
3625 test -z "$ac_cxx_werror_flag" ||
3626 test ! -s conftest.err
3627 } && test -s conftest.$ac_objext; then
3628 ac_cv_prog_cxx_g=yes
3630 echo "$as_me: failed program was:" >&5
3631 sed 's/^/| /' conftest.$ac_ext >&5
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3645 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3646 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3647 if test "$ac_test_CXXFLAGS" = set; then
3648 CXXFLAGS=$ac_save_CXXFLAGS
3649 elif test $ac_cv_prog_cxx_g = yes; then
3650 if test "$GXX" = yes; then
3656 if test "$GXX" = yes; then
3663 ac_cpp='$CPP $CPPFLAGS'
3664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3668 if test "x$CC" != xcc; then
3669 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3670 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3672 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3673 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3675 set dummy $CC; ac_cc=`echo $2 |
3676 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3677 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3680 cat >conftest.$ac_ext <<_ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3695 # Make sure it works both with $CC and with simple cc.
3696 # We do the test twice because some compilers refuse to overwrite an
3697 # existing .o file with -o, though they will create one.
3698 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3700 if { (case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_try") 2>&5
3707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } &&
3709 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3714 (eval "$ac_try") 2>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); };
3719 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3720 if test "x$CC" != xcc; then
3721 # Test first that cc exists at all.
3722 if { ac_try='cc -c conftest.$ac_ext >&5'
3723 { (case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_try") 2>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3732 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3734 if { (case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_try") 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); } &&
3743 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_try") 2>&5
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); };
3756 # cc exists but doesn't like -o.
3757 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3762 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3764 rm -f core conftest*
3767 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3768 { echo "$as_me:$LINENO: result: yes" >&5
3769 echo "${ECHO_T}yes" >&6; }
3771 { echo "$as_me:$LINENO: result: no" >&5
3772 echo "${ECHO_T}no" >&6; }
3774 cat >>confdefs.h <<\_ACEOF
3775 #define NO_MINUS_C_MINUS_O 1
3781 ac_cpp='$CPP $CPPFLAGS'
3782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3785 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3786 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3787 # On Suns, sometimes $CPP names a directory.
3788 if test -n "$CPP" && test -d "$CPP"; then
3791 if test -z "$CPP"; then
3792 if test "${ac_cv_prog_CPP+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 # Double quotes because CPP needs to be expanded
3796 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3799 for ac_c_preproc_warn_flag in '' yes
3801 # Use a header file that comes with gcc, so configuring glibc
3802 # with a fresh cross-compiler works.
3803 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3804 # <limits.h> exists even on freestanding compilers.
3805 # On the NeXT, cc -E runs the code through the compiler's parser,
3806 # not just through cpp. "Syntax error" is here to catch this case.
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3814 # include <limits.h>
3816 # include <assert.h>
3820 if { (ac_try="$ac_cpp conftest.$ac_ext"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3832 (exit $ac_status); } >/dev/null && {
3833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3841 # Broken: fails on valid input.
3845 rm -f conftest.err conftest.$ac_ext
3847 # OK, works on sane cases. Now check whether nonexistent headers
3848 # can be detected and how.
3849 cat >conftest.$ac_ext <<_ACEOF
3852 cat confdefs.h >>conftest.$ac_ext
3853 cat >>conftest.$ac_ext <<_ACEOF
3854 /* end confdefs.h. */
3855 #include <ac_nonexistent.h>
3857 if { (ac_try="$ac_cpp conftest.$ac_ext"
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3865 grep -v '^ *+' conftest.er1 >conftest.err
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } >/dev/null && {
3870 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3873 # Broken: success on invalid input.
3876 echo "$as_me: failed program was:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3879 # Passes both tests.
3884 rm -f conftest.err conftest.$ac_ext
3887 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3888 rm -f conftest.err conftest.$ac_ext
3889 if $ac_preproc_ok; then
3901 { echo "$as_me:$LINENO: result: $CPP" >&5
3902 echo "${ECHO_T}$CPP" >&6; }
3904 for ac_c_preproc_warn_flag in '' yes
3906 # Use a header file that comes with gcc, so configuring glibc
3907 # with a fresh cross-compiler works.
3908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3909 # <limits.h> exists even on freestanding compilers.
3910 # On the NeXT, cc -E runs the code through the compiler's parser,
3911 # not just through cpp. "Syntax error" is here to catch this case.
3912 cat >conftest.$ac_ext <<_ACEOF
3915 cat confdefs.h >>conftest.$ac_ext
3916 cat >>conftest.$ac_ext <<_ACEOF
3917 /* end confdefs.h. */
3919 # include <limits.h>
3921 # include <assert.h>
3925 if { (ac_try="$ac_cpp conftest.$ac_ext"
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3933 grep -v '^ *+' conftest.er1 >conftest.err
3935 cat conftest.err >&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); } >/dev/null && {
3938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3939 test ! -s conftest.err
3943 echo "$as_me: failed program was:" >&5
3944 sed 's/^/| /' conftest.$ac_ext >&5
3946 # Broken: fails on valid input.
3950 rm -f conftest.err conftest.$ac_ext
3952 # OK, works on sane cases. Now check whether nonexistent headers
3953 # can be detected and how.
3954 cat >conftest.$ac_ext <<_ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3960 #include <ac_nonexistent.h>
3962 if { (ac_try="$ac_cpp conftest.$ac_ext"
3964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965 *) ac_try_echo=$ac_try;;
3967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3970 grep -v '^ *+' conftest.er1 >conftest.err
3972 cat conftest.err >&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); } >/dev/null && {
3975 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3976 test ! -s conftest.err
3978 # Broken: success on invalid input.
3981 echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 # Passes both tests.
3989 rm -f conftest.err conftest.$ac_ext
3992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3993 rm -f conftest.err conftest.$ac_ext
3994 if $ac_preproc_ok; then
3997 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3998 See \`config.log' for more details." >&5
3999 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4000 See \`config.log' for more details." >&2;}
4001 { (exit 1); exit 1; }; }
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4011 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4012 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4013 if test "${ac_cv_path_GREP+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4016 # Extract the first word of "grep ggrep" to use in msg output
4017 if test -z "$GREP"; then
4018 set dummy grep ggrep; ac_prog_name=$2
4019 if test "${ac_cv_path_GREP+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4022 ac_path_GREP_found=false
4023 # Loop through the user's path and test for each of PROGNAME-LIST
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4028 test -z "$as_dir" && as_dir=.
4029 for ac_prog in grep ggrep; do
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4032 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4033 # Check for GNU ac_path_GREP and select it if it is found.
4034 # Check for GNU $ac_path_GREP
4035 case `"$ac_path_GREP" --version 2>&1` in
4037 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4040 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4043 cat "conftest.in" "conftest.in" >"conftest.tmp"
4044 mv "conftest.tmp" "conftest.in"
4045 cp "conftest.in" "conftest.nl"
4046 echo 'GREP' >> "conftest.nl"
4047 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4049 ac_count=`expr $ac_count + 1`
4050 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4051 # Best one so far, save it but keep looking for a better one
4052 ac_cv_path_GREP="$ac_path_GREP"
4053 ac_path_GREP_max=$ac_count
4055 # 10*(2^10) chars as input seems more than enough
4056 test $ac_count -gt 10 && break
4058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4062 $ac_path_GREP_found && break 3
4072 GREP="$ac_cv_path_GREP"
4073 if test -z "$GREP"; then
4074 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4075 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4076 { (exit 1); exit 1; }; }
4080 ac_cv_path_GREP=$GREP
4085 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4086 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4087 GREP="$ac_cv_path_GREP"
4090 { echo "$as_me:$LINENO: checking for egrep" >&5
4091 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4092 if test "${ac_cv_path_EGREP+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4096 then ac_cv_path_EGREP="$GREP -E"
4098 # Extract the first word of "egrep" to use in msg output
4099 if test -z "$EGREP"; then
4100 set dummy egrep; ac_prog_name=$2
4101 if test "${ac_cv_path_EGREP+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 ac_path_EGREP_found=false
4105 # Loop through the user's path and test for each of PROGNAME-LIST
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4110 test -z "$as_dir" && as_dir=.
4111 for ac_prog in egrep; do
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4114 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4115 # Check for GNU ac_path_EGREP and select it if it is found.
4116 # Check for GNU $ac_path_EGREP
4117 case `"$ac_path_EGREP" --version 2>&1` in
4119 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4122 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4125 cat "conftest.in" "conftest.in" >"conftest.tmp"
4126 mv "conftest.tmp" "conftest.in"
4127 cp "conftest.in" "conftest.nl"
4128 echo 'EGREP' >> "conftest.nl"
4129 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4130 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4131 ac_count=`expr $ac_count + 1`
4132 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4133 # Best one so far, save it but keep looking for a better one
4134 ac_cv_path_EGREP="$ac_path_EGREP"
4135 ac_path_EGREP_max=$ac_count
4137 # 10*(2^10) chars as input seems more than enough
4138 test $ac_count -gt 10 && break
4140 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4144 $ac_path_EGREP_found && break 3
4154 EGREP="$ac_cv_path_EGREP"
4155 if test -z "$EGREP"; then
4156 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4157 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4158 { (exit 1); exit 1; }; }
4162 ac_cv_path_EGREP=$EGREP
4168 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4169 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4170 EGREP="$ac_cv_path_EGREP"
4173 if test $ac_cv_c_compiler_gnu = yes; then
4174 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4175 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4176 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4177 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 ac_pattern="Autoconf.*'x'"
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4191 ac_cv_prog_gcc_traditional=yes
4193 ac_cv_prog_gcc_traditional=no
4198 if test $ac_cv_prog_gcc_traditional = no; then
4199 cat >conftest.$ac_ext <<_ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4210 ac_cv_prog_gcc_traditional=yes
4216 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4217 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
4218 if test $ac_cv_prog_gcc_traditional = yes; then
4219 CC="$CC -traditional"
4223 BASECC=`basename $CC`
4225 if test "x$BASECC" = xgcc; then
4226 cat >>confdefs.h <<\_ACEOF
4232 # Extract the first word of "$CXX", so it can be a program name with args.
4233 set dummy $CXX; ac_word=$2
4234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4236 if test "${ac_cv_path_CXX+set}" = set; then
4237 echo $ECHO_N "(cached) $ECHO_C" >&6
4241 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir=.
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4251 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4264 if test -n "$CXX"; then
4265 { echo "$as_me:$LINENO: result: $CXX" >&5
4266 echo "${ECHO_T}$CXX" >&6; }
4268 { echo "$as_me:$LINENO: result: no" >&5
4269 echo "${ECHO_T}no" >&6; }
4273 if test ! -e $CXX; then
4274 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4275 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4276 { (exit 1); exit 1; }; }
4279 # Find a good install program. We prefer a C program (faster),
4280 # so one script is as good as another. But avoid the broken or
4281 # incompatible versions:
4282 # SysV /etc/install, /usr/sbin/install
4283 # SunOS /usr/etc/install
4284 # IRIX /sbin/install
4286 # AmigaOS /C/install, which installs bootblocks on floppy discs
4287 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4288 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4289 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4290 # OS/2's system install, which has a completely different semantic
4291 # ./install, which can be erroneously created by make from ./install.sh.
4292 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4293 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4294 if test -z "$INSTALL"; then
4295 if test "${ac_cv_path_install+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 # Account for people who put trailing slashes in PATH elements.
4305 ./ | .// | /cC/* | \
4306 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4307 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4310 # OSF1 and SCO ODT 3.0 have their own names for install.
4311 # Don't use installbsd from OSF since it installs stuff as root
4313 for ac_prog in ginstall scoinst install; do
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4316 if test $ac_prog = install &&
4317 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4318 # AIX install. It has an incompatible calling convention.
4320 elif test $ac_prog = install &&
4321 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4322 # program-specific install script used by HP pwplus--don't use.
4325 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4338 if test "${ac_cv_path_install+set}" = set; then
4339 INSTALL=$ac_cv_path_install
4341 # As a last resort, use the slow shell script. Don't cache a
4342 # value for INSTALL within a source directory, because that will
4343 # break other packages using the cache if that directory is
4344 # removed, or if the value is a relative name.
4345 INSTALL=$ac_install_sh
4348 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4349 echo "${ECHO_T}$INSTALL" >&6; }
4351 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4352 # It thinks the first close brace ends the variable substitution.
4353 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4355 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4357 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4359 # Extract the first word of "mv", so it can be a program name with args.
4360 set dummy mv; ac_word=$2
4361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4363 if test "${ac_cv_path_MV+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4368 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4391 if test -n "$MV"; then
4392 { echo "$as_me:$LINENO: result: $MV" >&5
4393 echo "${ECHO_T}$MV" >&6; }
4395 { echo "$as_me:$LINENO: result: no" >&5
4396 echo "${ECHO_T}no" >&6; }
4400 # Extract the first word of "rm", so it can be a program name with args.
4401 set dummy rm; ac_word=$2
4402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4404 if test "${ac_cv_path_REMOVE+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4409 ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 test -z "$as_dir" && as_dir=.
4417 for ac_exec_ext in '' $ac_executable_extensions; do
4418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4419 ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4431 REMOVE=$ac_cv_path_REMOVE
4432 if test -n "$REMOVE"; then
4433 { echo "$as_me:$LINENO: result: $REMOVE" >&5
4434 echo "${ECHO_T}$REMOVE" >&6; }
4436 { echo "$as_me:$LINENO: result: no" >&5
4437 echo "${ECHO_T}no" >&6; }
4441 # Extract the first word of "cp", so it can be a program name with args.
4442 set dummy cp; ac_word=$2
4443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4445 if test "${ac_cv_path_CP+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 test -z "$as_dir" && as_dir=.
4458 for ac_exec_ext in '' $ac_executable_extensions; do
4459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4460 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4468 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4473 if test -n "$CP"; then
4474 { echo "$as_me:$LINENO: result: $CP" >&5
4475 echo "${ECHO_T}$CP" >&6; }
4477 { echo "$as_me:$LINENO: result: no" >&5
4478 echo "${ECHO_T}no" >&6; }
4482 # Extract the first word of "sed", so it can be a program name with args.
4483 set dummy sed; ac_word=$2
4484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4486 if test "${ac_cv_path_SED+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 test -z "$as_dir" && as_dir=.
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4501 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4514 if test -n "$SED"; then
4515 { echo "$as_me:$LINENO: result: $SED" >&5
4516 echo "${ECHO_T}$SED" >&6; }
4518 { echo "$as_me:$LINENO: result: no" >&5
4519 echo "${ECHO_T}no" >&6; }
4523 # Extract the first word of "echo", so it can be a program name with args.
4524 set dummy echo; ac_word=$2
4525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4527 if test "${ac_cv_path_ECHO+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4550 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4554 ECHO=$ac_cv_path_ECHO
4555 if test -n "$ECHO"; then
4556 { echo "$as_me:$LINENO: result: $ECHO" >&5
4557 echo "${ECHO_T}$ECHO" >&6; }
4559 { echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6; }
4564 # Extract the first word of "cmp", so it can be a program name with args.
4565 set dummy cmp; ac_word=$2
4566 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4568 if test "${ac_cv_path_CMP+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4573 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4591 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4596 if test -n "$CMP"; then
4597 { echo "$as_me:$LINENO: result: $CMP" >&5
4598 echo "${ECHO_T}$CMP" >&6; }
4600 { echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6; }
4605 # Extract the first word of "tbl", so it can be a program name with args.
4606 set dummy tbl; ac_word=$2
4607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4609 if test "${ac_cv_path_TBL+set}" = set; then
4610 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4637 if test -n "$TBL"; then
4638 { echo "$as_me:$LINENO: result: $TBL" >&5
4639 echo "${ECHO_T}$TBL" >&6; }
4641 { echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6; }
4646 # Extract the first word of "ar", so it can be a program name with args.
4647 set dummy ar; ac_word=$2
4648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4650 if test "${ac_cv_path_AR+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662 test -z "$as_dir" && as_dir=.
4663 for ac_exec_ext in '' $ac_executable_extensions; do
4664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4665 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4678 if test -n "$AR"; then
4679 { echo "$as_me:$LINENO: result: $AR" >&5
4680 echo "${ECHO_T}$AR" >&6; }
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4687 # Extract the first word of "openssl", so it can be a program name with args.
4688 set dummy openssl; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_path_OPENSSL+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 test -z "$as_dir" && as_dir=.
4704 for ac_exec_ext in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4718 OPENSSL=$ac_cv_path_OPENSSL
4719 if test -n "$OPENSSL"; then
4720 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4721 echo "${ECHO_T}$OPENSSL" >&6; }
4723 { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4728 # Extract the first word of "mtx", so it can be a program name with args.
4729 set dummy mtx; ac_word=$2
4730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732 if test "${ac_cv_path_MTX+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4760 if test -n "$MTX"; then
4761 { echo "$as_me:$LINENO: result: $MTX" >&5
4762 echo "${ECHO_T}$MTX" >&6; }
4764 { echo "$as_me:$LINENO: result: no" >&5
4765 echo "${ECHO_T}no" >&6; }
4769 # Extract the first word of "dd", so it can be a program name with args.
4770 set dummy dd; ac_word=$2
4771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4773 if test "${ac_cv_path_DD+set}" = set; then
4774 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 test -z "$as_dir" && as_dir=.
4786 for ac_exec_ext in '' $ac_executable_extensions; do
4787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4788 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4801 if test -n "$DD"; then
4802 { echo "$as_me:$LINENO: result: $DD" >&5
4803 echo "${ECHO_T}$DD" >&6; }
4805 { echo "$as_me:$LINENO: result: no" >&5
4806 echo "${ECHO_T}no" >&6; }
4810 # Extract the first word of "mkisofs", so it can be a program name with args.
4811 set dummy mkisofs; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_path_MKISOFS+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4819 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 test -z "$as_dir" && as_dir=.
4827 for ac_exec_ext in '' $ac_executable_extensions; do
4828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4829 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4841 MKISOFS=$ac_cv_path_MKISOFS
4842 if test -n "$MKISOFS"; then
4843 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4844 echo "${ECHO_T}$MKISOFS" >&6; }
4846 { echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6; }
4851 # Extract the first word of "python", so it can be a program name with args.
4852 set dummy python; ac_word=$2
4853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4855 if test "${ac_cv_path_PYTHON+set}" = set; then
4856 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4870 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4882 PYTHON=$ac_cv_path_PYTHON
4883 if test -n "$PYTHON"; then
4884 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4885 echo "${ECHO_T}$PYTHON" >&6; }
4887 { echo "$as_me:$LINENO: result: no" >&5
4888 echo "${ECHO_T}no" >&6; }
4892 # Extract the first word of "growisofs", so it can be a program name with args.
4893 set dummy growisofs; ac_word=$2
4894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4896 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4897 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4923 GROWISOFS=$ac_cv_path_GROWISOFS
4924 if test -n "$GROWISOFS"; then
4925 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4926 echo "${ECHO_T}$GROWISOFS" >&6; }
4928 { echo "$as_me:$LINENO: result: no" >&5
4929 echo "${ECHO_T}no" >&6; }
4933 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4934 set dummy dvd+rw-mediainfo; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 case $DVDRWMEDIAINFO in
4942 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4964 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4965 if test -n "$DVDRWMEDIAINFO"; then
4966 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4967 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4969 { echo "$as_me:$LINENO: result: no" >&5
4970 echo "${ECHO_T}no" >&6; }
4974 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4975 set dummy dvd+rw-format; ac_word=$2
4976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4978 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 case $DVDRWFORMAT in
4983 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5005 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5006 if test -n "$DVDRWFORMAT"; then
5007 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
5008 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
5010 { echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6; }
5015 # Extract the first word of "pkg-config", so it can be a program name with args.
5016 set dummy pkg-config; ac_word=$2
5017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5019 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5034 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5046 PKGCONFIG=$ac_cv_path_PKGCONFIG
5047 if test -n "$PKGCONFIG"; then
5048 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
5049 echo "${ECHO_T}$PKGCONFIG" >&6; }
5051 { echo "$as_me:$LINENO: result: no" >&5
5052 echo "${ECHO_T}no" >&6; }
5056 # Extract the first word of "qmake", so it can be a program name with args.
5057 set dummy qmake; ac_word=$2
5058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060 if test "${ac_cv_path_QMAKE+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5065 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5087 QMAKE=$ac_cv_path_QMAKE
5088 if test -n "$QMAKE"; then
5089 { echo "$as_me:$LINENO: result: $QMAKE" >&5
5090 echo "${ECHO_T}$QMAKE" >&6; }
5092 { echo "$as_me:$LINENO: result: no" >&5
5093 echo "${ECHO_T}no" >&6; }
5097 # Extract the first word of "gmake", so it can be a program name with args.
5098 set dummy gmake; ac_word=$2
5099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5101 if test "${ac_cv_path_GMAKE+set}" = set; then
5102 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5128 GMAKE=$ac_cv_path_GMAKE
5129 if test -n "$GMAKE"; then
5130 { echo "$as_me:$LINENO: result: $GMAKE" >&5
5131 echo "${ECHO_T}$GMAKE" >&6; }
5133 { echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6; }
5139 if test "x$WXCONFIG" = x; then
5142 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5143 set dummy ${WXCONFIG}; ac_word=$2
5144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5146 if test "${ac_cv_path_WXCONFIG+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5173 WXCONFIG=$ac_cv_path_WXCONFIG
5174 if test -n "$WXCONFIG"; then
5175 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5176 echo "${ECHO_T}$WXCONFIG" >&6; }
5178 { echo "$as_me:$LINENO: result: no" >&5
5179 echo "${ECHO_T}no" >&6; }
5184 # Extract the first word of "cdrecord", so it can be a program name with args.
5185 set dummy cdrecord; ac_word=$2
5186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5188 if test "${ac_cv_path_CDRECORD+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5200 test -z "$as_dir" && as_dir=.
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5215 CDRECORD=$ac_cv_path_CDRECORD
5216 if test -n "$CDRECORD"; then
5217 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5218 echo "${ECHO_T}$CDRECORD" >&6; }
5220 { echo "$as_me:$LINENO: result: no" >&5
5221 echo "${ECHO_T}no" >&6; }
5225 # Extract the first word of "pidof", so it can be a program name with args.
5226 set dummy pidof; ac_word=$2
5227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5229 if test "${ac_cv_path_PIDOF+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5234 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 test -z "$as_dir" && as_dir=.
5242 for ac_exec_ext in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5256 PIDOF=$ac_cv_path_PIDOF
5257 if test -n "$PIDOF"; then
5258 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5259 echo "${ECHO_T}$PIDOF" >&6; }
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5266 for ac_prog in gawk mawk nawk awk
5268 # Extract the first word of "$ac_prog", so it can be a program name with args.
5269 set dummy $ac_prog; ac_word=$2
5270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5272 if test "${ac_cv_prog_AWK+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 if test -n "$AWK"; then
5276 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5285 ac_cv_prog_AWK="$ac_prog"
5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5296 if test -n "$AWK"; then
5297 { echo "$as_me:$LINENO: result: $AWK" >&5
5298 echo "${ECHO_T}$AWK" >&6; }
5300 { echo "$as_me:$LINENO: result: no" >&5
5301 echo "${ECHO_T}no" >&6; }
5305 test -n "$AWK" && break
5308 # Some AWK programs fail, so test it and warn the user
5309 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5310 { if ((prog == $2) || (("(" prog ")") == $2) ||
5311 (("" prog "") == $2) ||
5312 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5314 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5315 The regex engine of $AWK is too broken to be used you
5316 might want to install GNU AWK.
5317 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5318 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5319 The regex engine of $AWK is too broken to be used you
5320 might want to install GNU AWK.
5321 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5322 { (exit 1); exit 1; }; }
5325 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5326 set dummy $THE_AWK; ac_word=$2
5327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5329 if test "${ac_cv_path_AWK+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5357 if test -n "$AWK"; then
5358 { echo "$as_me:$LINENO: result: $AWK" >&5
5359 echo "${ECHO_T}$AWK" >&6; }
5361 { echo "$as_me:$LINENO: result: no" >&5
5362 echo "${ECHO_T}no" >&6; }
5368 test -n "$ARFLAG" || ARFLAGS="cr"
5380 # Check whether --enable-libtool was given.
5381 if test "${enable_libtool+set}" = set; then
5382 enableval=$enable_libtool;
5383 if test x$enableval = xno; then
5392 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5393 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5398 macro_version='2.2.6'
5399 macro_revision='1.3012'
5413 ltmain="$ac_aux_dir/ltmain.sh"
5415 # Make sure we can run config.sub.
5416 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5417 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5418 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5419 { (exit 1); exit 1; }; }
5421 { echo "$as_me:$LINENO: checking build system type" >&5
5422 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5423 if test "${ac_cv_build+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 ac_build_alias=$build_alias
5427 test "x$ac_build_alias" = x &&
5428 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5429 test "x$ac_build_alias" = x &&
5430 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5432 { (exit 1); exit 1; }; }
5433 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5434 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5435 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5436 { (exit 1); exit 1; }; }
5439 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5440 echo "${ECHO_T}$ac_cv_build" >&6; }
5441 case $ac_cv_build in
5443 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5444 echo "$as_me: error: invalid value of canonical build" >&2;}
5445 { (exit 1); exit 1; }; };;
5448 ac_save_IFS=$IFS; IFS='-'
5454 # Remember, the first character of IFS is used to create $*,
5455 # except with old shells:
5458 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5461 { echo "$as_me:$LINENO: checking host system type" >&5
5462 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5463 if test "${ac_cv_host+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5466 if test "x$host_alias" = x; then
5467 ac_cv_host=$ac_cv_build
5469 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5470 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5471 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5472 { (exit 1); exit 1; }; }
5476 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5477 echo "${ECHO_T}$ac_cv_host" >&6; }
5480 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5481 echo "$as_me: error: invalid value of canonical host" >&2;}
5482 { (exit 1); exit 1; }; };;
5485 ac_save_IFS=$IFS; IFS='-'
5491 # Remember, the first character of IFS is used to create $*,
5492 # except with old shells:
5495 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5498 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5499 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5500 if test "${ac_cv_path_SED+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5504 for ac_i in 1 2 3 4 5 6 7; do
5505 ac_script="$ac_script$as_nl$ac_script"
5507 echo "$ac_script" | sed 99q >conftest.sed
5508 $as_unset ac_script || ac_script=
5509 # Extract the first word of "sed gsed" to use in msg output
5510 if test -z "$SED"; then
5511 set dummy sed gsed; ac_prog_name=$2
5512 if test "${ac_cv_path_SED+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5515 ac_path_SED_found=false
5516 # Loop through the user's path and test for each of PROGNAME-LIST
5517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 test -z "$as_dir" && as_dir=.
5522 for ac_prog in sed gsed; do
5523 for ac_exec_ext in '' $ac_executable_extensions; do
5524 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5525 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5526 # Check for GNU ac_path_SED and select it if it is found.
5527 # Check for GNU $ac_path_SED
5528 case `"$ac_path_SED" --version 2>&1` in
5530 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5533 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5536 cat "conftest.in" "conftest.in" >"conftest.tmp"
5537 mv "conftest.tmp" "conftest.in"
5538 cp "conftest.in" "conftest.nl"
5539 echo '' >> "conftest.nl"
5540 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5541 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5542 ac_count=`expr $ac_count + 1`
5543 if test $ac_count -gt ${ac_path_SED_max-0}; then
5544 # Best one so far, save it but keep looking for a better one
5545 ac_cv_path_SED="$ac_path_SED"
5546 ac_path_SED_max=$ac_count
5548 # 10*(2^10) chars as input seems more than enough
5549 test $ac_count -gt 10 && break
5551 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5555 $ac_path_SED_found && break 3
5565 SED="$ac_cv_path_SED"
5566 if test -z "$SED"; then
5567 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
5568 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
5569 { (exit 1); exit 1; }; }
5577 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5578 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
5579 SED="$ac_cv_path_SED"
5582 test -z "$SED" && SED=sed
5583 Xsed="$SED -e 1s/^X//"
5595 { echo "$as_me:$LINENO: checking for fgrep" >&5
5596 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
5597 if test "${ac_cv_path_FGREP+set}" = set; then
5598 echo $ECHO_N "(cached) $ECHO_C" >&6
5600 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5601 then ac_cv_path_FGREP="$GREP -F"
5603 # Extract the first word of "fgrep" to use in msg output
5604 if test -z "$FGREP"; then
5605 set dummy fgrep; ac_prog_name=$2
5606 if test "${ac_cv_path_FGREP+set}" = set; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 ac_path_FGREP_found=false
5610 # Loop through the user's path and test for each of PROGNAME-LIST
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5615 test -z "$as_dir" && as_dir=.
5616 for ac_prog in fgrep; do
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5619 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5620 # Check for GNU ac_path_FGREP and select it if it is found.
5621 # Check for GNU $ac_path_FGREP
5622 case `"$ac_path_FGREP" --version 2>&1` in
5624 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5627 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5630 cat "conftest.in" "conftest.in" >"conftest.tmp"
5631 mv "conftest.tmp" "conftest.in"
5632 cp "conftest.in" "conftest.nl"
5633 echo 'FGREP' >> "conftest.nl"
5634 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5636 ac_count=`expr $ac_count + 1`
5637 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5638 # Best one so far, save it but keep looking for a better one
5639 ac_cv_path_FGREP="$ac_path_FGREP"
5640 ac_path_FGREP_max=$ac_count
5642 # 10*(2^10) chars as input seems more than enough
5643 test $ac_count -gt 10 && break
5645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5649 $ac_path_FGREP_found && break 3
5659 FGREP="$ac_cv_path_FGREP"
5660 if test -z "$FGREP"; then
5661 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5662 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5663 { (exit 1); exit 1; }; }
5667 ac_cv_path_FGREP=$FGREP
5673 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5674 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
5675 FGREP="$ac_cv_path_FGREP"
5678 test -z "$GREP" && GREP=grep
5698 # Check whether --with-gnu-ld was given.
5699 if test "${with_gnu_ld+set}" = set; then
5700 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5706 if test "$GCC" = yes; then
5707 # Check if gcc -print-prog-name=ld gives a path.
5708 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5709 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5712 # gcc leaves a trailing carriage return which upsets mingw
5713 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5715 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5718 # Accept absolute paths.
5720 re_direlt='/[^/][^/]*/\.\./'
5721 # Canonicalize the pathname of ld
5722 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5723 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5724 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5726 test -z "$LD" && LD="$ac_prog"
5729 # If it fails, then pretend we aren't using GCC.
5733 # If it is relative, then search for the first ld in PATH.
5737 elif test "$with_gnu_ld" = yes; then
5738 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5739 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5741 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5742 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5744 if test "${lt_cv_path_LD+set}" = set; then
5745 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 if test -z "$LD"; then
5748 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5749 for ac_dir in $PATH; do
5751 test -z "$ac_dir" && ac_dir=.
5752 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5753 lt_cv_path_LD="$ac_dir/$ac_prog"
5754 # Check to see if the program is GNU ld. I'd rather use --version,
5755 # but apparently some variants of GNU ld only accept -v.
5756 # Break only if it was the GNU/non-GNU ld that we prefer.
5757 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5758 *GNU* | *'with BFD'*)
5759 test "$with_gnu_ld" != no && break
5762 test "$with_gnu_ld" != yes && break
5769 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5774 if test -n "$LD"; then
5775 { echo "$as_me:$LINENO: result: $LD" >&5
5776 echo "${ECHO_T}$LD" >&6; }
5778 { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5781 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5782 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5783 { (exit 1); exit 1; }; }
5784 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5785 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5786 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5790 case `$LD -v 2>&1 </dev/null` in
5791 *GNU* | *'with BFD'*)
5792 lt_cv_prog_gnu_ld=yes
5795 lt_cv_prog_gnu_ld=no
5799 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5800 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5801 with_gnu_ld=$lt_cv_prog_gnu_ld
5811 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5812 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
5813 if test "${lt_cv_path_NM+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 if test -n "$NM"; then
5817 # Let the user override the test.
5820 lt_nm_to_check="${ac_tool_prefix}nm"
5821 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5822 lt_nm_to_check="$lt_nm_to_check nm"
5824 for lt_tmp_nm in $lt_nm_to_check; do
5825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5826 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5828 test -z "$ac_dir" && ac_dir=.
5829 tmp_nm="$ac_dir/$lt_tmp_nm"
5830 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5831 # Check to see if the nm accepts a BSD-compat flag.
5832 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5833 # nm: unknown option "B" ignored
5834 # Tru64's nm complains that /dev/null is an invalid object file
5835 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5836 */dev/null* | *'Invalid file or object type'*)
5837 lt_cv_path_NM="$tmp_nm -B"
5841 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5843 lt_cv_path_NM="$tmp_nm -p"
5847 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5848 continue # so that we can try to find one that supports BSD flags
5857 : ${lt_cv_path_NM=no}
5860 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5861 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5862 if test "$lt_cv_path_NM" != "no"; then
5865 # Didn't find any BSD compatible name lister, look for dumpbin.
5866 if test -n "$ac_tool_prefix"; then
5867 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5873 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 if test -n "$DUMPBIN"; then
5877 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 test -z "$as_dir" && as_dir=.
5884 for ac_exec_ext in '' $ac_executable_extensions; do
5885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 DUMPBIN=$ac_cv_prog_DUMPBIN
5897 if test -n "$DUMPBIN"; then
5898 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5899 echo "${ECHO_T}$DUMPBIN" >&6; }
5901 { echo "$as_me:$LINENO: result: no" >&5
5902 echo "${ECHO_T}no" >&6; }
5906 test -n "$DUMPBIN" && break
5909 if test -z "$DUMPBIN"; then
5910 ac_ct_DUMPBIN=$DUMPBIN
5911 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5913 # Extract the first word of "$ac_prog", so it can be a program name with args.
5914 set dummy $ac_prog; ac_word=$2
5915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5917 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 if test -n "$ac_ct_DUMPBIN"; then
5921 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5941 if test -n "$ac_ct_DUMPBIN"; then
5942 { echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5943 echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
5945 { echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6; }
5950 test -n "$ac_ct_DUMPBIN" && break
5953 if test "x$ac_ct_DUMPBIN" = x; then
5956 case $cross_compiling:$ac_tool_warned in
5958 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5959 whose name does not start with the host triplet. If you think this
5960 configuration is useful to you, please write to autoconf@gnu.org." >&5
5961 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5962 whose name does not start with the host triplet. If you think this
5963 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5964 ac_tool_warned=yes ;;
5966 DUMPBIN=$ac_ct_DUMPBIN
5971 if test "$DUMPBIN" != ":"; then
5975 test -z "$NM" && NM=nm
5982 { echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5983 echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
5984 if test "${lt_cv_nm_interface+set}" = set; then
5985 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 lt_cv_nm_interface="BSD nm"
5988 echo "int some_variable = 0;" > conftest.$ac_ext
5989 (eval echo "\"\$as_me:5989: $ac_compile\"" >&5)
5990 (eval "$ac_compile" 2>conftest.err)
5991 cat conftest.err >&5
5992 (eval echo "\"\$as_me:5992: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5993 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5994 cat conftest.err >&5
5995 (eval echo "\"\$as_me:5995: output\"" >&5)
5996 cat conftest.out >&5
5997 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5998 lt_cv_nm_interface="MS dumpbin"
6002 { echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6003 echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
6005 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6006 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6008 if test "$LN_S" = "ln -s"; then
6009 { echo "$as_me:$LINENO: result: yes" >&5
6010 echo "${ECHO_T}yes" >&6; }
6012 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6013 echo "${ECHO_T}no, using $LN_S" >&6; }
6016 # find the maximum length of command line arguments
6017 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6018 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6019 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6020 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 # On DJGPP, this test can blow up pretty badly due to problems in libc
6028 # (any single argument exceeding 2000 bytes causes a buffer overrun
6029 # during glob expansion). Even if it were fixed, the result of this
6030 # check would be larger than it should be.
6031 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6035 # Under GNU Hurd, this test is not required because there is
6036 # no limit to the length of command line arguments.
6037 # Libtool will interpret -1 as no limit whatsoever
6038 lt_cv_sys_max_cmd_len=-1;
6041 cygwin* | mingw* | cegcc*)
6042 # On Win9x/ME, this test blows up -- it succeeds, but takes
6043 # about 5 minutes as the teststring grows exponentially.
6044 # Worse, since 9x/ME are not pre-emptively multitasking,
6045 # you end up with a "frozen" computer, even though with patience
6046 # the test eventually succeeds (with a max line length of 256k).
6047 # Instead, let's just punt: use the minimum linelength reported by
6048 # all of the supported platforms: 8192 (on NT/2K/XP).
6049 lt_cv_sys_max_cmd_len=8192;
6053 # On AmigaOS with pdksh, this test takes hours, literally.
6054 # So we just punt and use a minimum line length of 8192.
6055 lt_cv_sys_max_cmd_len=8192;
6058 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6059 # This has been around since 386BSD, at least. Likely further.
6060 if test -x /sbin/sysctl; then
6061 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6062 elif test -x /usr/sbin/sysctl; then
6063 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6065 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6067 # And add a safety zone
6068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6069 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6073 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6074 lt_cv_sys_max_cmd_len=196608
6078 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6079 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6080 # nice to cause kernel panics so lets avoid the loop below.
6081 # First set a reasonable default.
6082 lt_cv_sys_max_cmd_len=16384
6084 if test -x /sbin/sysconfig; then
6085 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6086 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6091 lt_cv_sys_max_cmd_len=102400
6093 sysv5* | sco5v6* | sysv4.2uw2*)
6094 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6095 if test -n "$kargmax"; then
6096 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6098 lt_cv_sys_max_cmd_len=32768
6102 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6103 if test -n "$lt_cv_sys_max_cmd_len"; then
6104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6105 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6107 # Make teststring a little bigger before we do anything with it.
6108 # a 1K string should be a reasonable start.
6109 for i in 1 2 3 4 5 6 7 8 ; do
6110 teststring=$teststring$teststring
6112 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6113 # If test is not a shell built-in, we'll probably end up computing a
6114 # maximum length that is only half of the actual maximum length, but
6116 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6117 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6118 test $i != 17 # 1/2 MB should be enough
6121 teststring=$teststring$teststring
6123 # Only check the string length outside the loop.
6124 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6126 # Add a significant safety factor because C++ compilers can tack on
6127 # massive amounts of additional arguments before passing them to the
6128 # linker. It appears as though 1/2 is a usable value.
6129 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6136 if test -n $lt_cv_sys_max_cmd_len ; then
6137 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6138 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6140 { echo "$as_me:$LINENO: result: none" >&5
6141 echo "${ECHO_T}none" >&6; }
6143 max_cmd_len=$lt_cv_sys_max_cmd_len
6154 { echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6155 echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
6156 # Try some XSI features
6159 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6161 && eval 'test $(( 1 + 1 )) -eq 2 \
6162 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6164 { echo "$as_me:$LINENO: result: $xsi_shell" >&5
6165 echo "${ECHO_T}$xsi_shell" >&6; }
6168 { echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6169 echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
6171 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6173 && lt_shell_append=yes
6174 { echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6175 echo "${ECHO_T}$lt_shell_append" >&6; }
6178 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6188 # test EBCDIC or ASCII
6189 case `echo X|tr X '\101'` in
6190 A) # ASCII based system
6191 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6192 lt_SP2NL='tr \040 \012'
6193 lt_NL2SP='tr \015\012 \040\040'
6195 *) # EBCDIC based system
6196 lt_SP2NL='tr \100 \n'
6197 lt_NL2SP='tr \r\n \100\100'
6209 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6210 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6211 if test "${lt_cv_ld_reload_flag+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6214 lt_cv_ld_reload_flag='-r'
6216 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6217 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6218 reload_flag=$lt_cv_ld_reload_flag
6219 case $reload_flag in
6221 *) reload_flag=" $reload_flag" ;;
6223 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6226 if test "$GCC" = yes; then
6227 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6229 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6242 if test -n "$ac_tool_prefix"; then
6243 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6247 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6248 echo $ECHO_N "(cached) $ECHO_C" >&6
6250 if test -n "$OBJDUMP"; then
6251 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257 test -z "$as_dir" && as_dir=.
6258 for ac_exec_ext in '' $ac_executable_extensions; do
6259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6270 OBJDUMP=$ac_cv_prog_OBJDUMP
6271 if test -n "$OBJDUMP"; then
6272 { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6273 echo "${ECHO_T}$OBJDUMP" >&6; }
6275 { echo "$as_me:$LINENO: result: no" >&5
6276 echo "${ECHO_T}no" >&6; }
6281 if test -z "$ac_cv_prog_OBJDUMP"; then
6282 ac_ct_OBJDUMP=$OBJDUMP
6283 # Extract the first word of "objdump", so it can be a program name with args.
6284 set dummy objdump; ac_word=$2
6285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6287 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6288 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 if test -n "$ac_ct_OBJDUMP"; then
6291 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6311 if test -n "$ac_ct_OBJDUMP"; then
6312 { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6313 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6319 if test "x$ac_ct_OBJDUMP" = x; then
6322 case $cross_compiling:$ac_tool_warned in
6324 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6325 whose name does not start with the host triplet. If you think this
6326 configuration is useful to you, please write to autoconf@gnu.org." >&5
6327 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6328 whose name does not start with the host triplet. If you think this
6329 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6330 ac_tool_warned=yes ;;
6332 OBJDUMP=$ac_ct_OBJDUMP
6335 OBJDUMP="$ac_cv_prog_OBJDUMP"
6338 test -z "$OBJDUMP" && OBJDUMP=objdump
6348 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6349 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
6350 if test "${lt_cv_deplibs_check_method+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 lt_cv_file_magic_cmd='$MAGIC_CMD'
6354 lt_cv_file_magic_test_file=
6355 lt_cv_deplibs_check_method='unknown'
6356 # Need to set the preceding variable on all platforms that support
6357 # interlibrary dependencies.
6358 # 'none' -- dependencies not supported.
6359 # `unknown' -- same as none, but documents that we really don't know.
6360 # 'pass_all' -- all dependencies passed with no checks.
6361 # 'test_compile' -- check by making test program.
6362 # 'file_magic [[regex]]' -- check by looking for files in library path
6363 # which responds to the $file_magic_cmd with a given extended regex.
6364 # If you have `file' or equivalent on your system and you're not sure
6365 # whether `pass_all' will *always* work, you probably want this one.
6369 lt_cv_deplibs_check_method=pass_all
6373 lt_cv_deplibs_check_method=pass_all
6377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6378 lt_cv_file_magic_cmd='/usr/bin/file -L'
6379 lt_cv_file_magic_test_file=/shlib/libc.so
6383 # func_win32_libid is a shell function defined in ltmain.sh
6384 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6385 lt_cv_file_magic_cmd='func_win32_libid'
6389 # Base MSYS/MinGW do not provide the 'file' command needed by
6390 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6391 # unless we find 'file', for example because we are cross-compiling.
6392 if ( file / ) >/dev/null 2>&1; then
6393 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6394 lt_cv_file_magic_cmd='func_win32_libid'
6396 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6397 lt_cv_file_magic_cmd='$OBJDUMP -f'
6402 # use the weaker test based on 'objdump'. See mingw*.
6403 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6404 lt_cv_file_magic_cmd='$OBJDUMP -f'
6407 darwin* | rhapsody*)
6408 lt_cv_deplibs_check_method=pass_all
6411 freebsd* | dragonfly*)
6412 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6415 # Not sure whether the presence of OpenBSD here was a mistake.
6416 # Let's accept both of them until this is cleared up.
6417 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6418 lt_cv_file_magic_cmd=/usr/bin/file
6419 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6423 lt_cv_deplibs_check_method=pass_all
6428 lt_cv_deplibs_check_method=pass_all
6431 hpux10.20* | hpux11*)
6432 lt_cv_file_magic_cmd=/usr/bin/file
6435 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6436 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6439 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]'
6440 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6443 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6444 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6450 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6454 irix5* | irix6* | nonstopux*)
6456 *-32|*"-32 ") libmagic=32-bit;;
6457 *-n32|*"-n32 ") libmagic=N32;;
6458 *-64|*"-64 ") libmagic=64-bit;;
6459 *) libmagic=never-match;;
6461 lt_cv_deplibs_check_method=pass_all
6464 # This must be Linux ELF.
6465 linux* | k*bsd*-gnu)
6466 lt_cv_deplibs_check_method=pass_all
6470 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6478 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6479 lt_cv_file_magic_cmd=/usr/bin/file
6480 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6484 lt_cv_deplibs_check_method=pass_all
6488 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6489 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6491 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6495 osf3* | osf4* | osf5*)
6496 lt_cv_deplibs_check_method=pass_all
6500 lt_cv_deplibs_check_method=pass_all
6504 lt_cv_deplibs_check_method=pass_all
6507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6508 lt_cv_deplibs_check_method=pass_all
6512 case $host_vendor in
6514 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]'
6515 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6518 lt_cv_deplibs_check_method=pass_all
6521 lt_cv_file_magic_cmd='/bin/file'
6522 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6525 lt_cv_file_magic_cmd='/bin/file'
6526 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6527 lt_cv_file_magic_test_file=/lib/libc.so
6530 lt_cv_deplibs_check_method=pass_all
6533 lt_cv_deplibs_check_method=pass_all
6539 lt_cv_deplibs_check_method=pass_all
6544 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6545 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6546 file_magic_cmd=$lt_cv_file_magic_cmd
6547 deplibs_check_method=$lt_cv_deplibs_check_method
6548 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6561 if test -n "$ac_tool_prefix"; then
6562 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6563 set dummy ${ac_tool_prefix}ar; ac_word=$2
6564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6566 if test "${ac_cv_prog_AR+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 if test -n "$AR"; then
6570 ac_cv_prog_AR="$AR" # Let the user override the test.
6572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6576 test -z "$as_dir" && as_dir=.
6577 for ac_exec_ext in '' $ac_executable_extensions; do
6578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6579 ac_cv_prog_AR="${ac_tool_prefix}ar"
6580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 if test -n "$AR"; then
6591 { echo "$as_me:$LINENO: result: $AR" >&5
6592 echo "${ECHO_T}$AR" >&6; }
6594 { echo "$as_me:$LINENO: result: no" >&5
6595 echo "${ECHO_T}no" >&6; }
6600 if test -z "$ac_cv_prog_AR"; then
6602 # Extract the first word of "ar", so it can be a program name with args.
6603 set dummy ar; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 if test -n "$ac_ct_AR"; then
6610 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_prog_ac_ct_AR="ar"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6630 if test -n "$ac_ct_AR"; then
6631 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6632 echo "${ECHO_T}$ac_ct_AR" >&6; }
6634 { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6638 if test "x$ac_ct_AR" = x; then
6641 case $cross_compiling:$ac_tool_warned in
6643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6644 whose name does not start with the host triplet. If you think this
6645 configuration is useful to you, please write to autoconf@gnu.org." >&5
6646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6647 whose name does not start with the host triplet. If you think this
6648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6649 ac_tool_warned=yes ;;
6657 test -z "$AR" && AR=ar
6658 test -z "$AR_FLAGS" && AR_FLAGS=cru
6670 if test -n "$ac_tool_prefix"; then
6671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6672 set dummy ${ac_tool_prefix}strip; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_prog_STRIP+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 if test -n "$STRIP"; then
6679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 STRIP=$ac_cv_prog_STRIP
6699 if test -n "$STRIP"; then
6700 { echo "$as_me:$LINENO: result: $STRIP" >&5
6701 echo "${ECHO_T}$STRIP" >&6; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6709 if test -z "$ac_cv_prog_STRIP"; then
6711 # Extract the first word of "strip", so it can be a program name with args.
6712 set dummy strip; ac_word=$2
6713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6715 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 if test -n "$ac_ct_STRIP"; then
6719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6728 ac_cv_prog_ac_ct_STRIP="strip"
6729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6738 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6739 if test -n "$ac_ct_STRIP"; then
6740 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6741 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6743 { echo "$as_me:$LINENO: result: no" >&5
6744 echo "${ECHO_T}no" >&6; }
6747 if test "x$ac_ct_STRIP" = x; then
6750 case $cross_compiling:$ac_tool_warned in
6752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6753 whose name does not start with the host triplet. If you think this
6754 configuration is useful to you, please write to autoconf@gnu.org." >&5
6755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6756 whose name does not start with the host triplet. If you think this
6757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6758 ac_tool_warned=yes ;;
6763 STRIP="$ac_cv_prog_STRIP"
6766 test -z "$STRIP" && STRIP=:
6773 if test -n "$ac_tool_prefix"; then
6774 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6775 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6778 if test "${ac_cv_prog_RANLIB+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 if test -n "$RANLIB"; then
6782 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6801 RANLIB=$ac_cv_prog_RANLIB
6802 if test -n "$RANLIB"; then
6803 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6804 echo "${ECHO_T}$RANLIB" >&6; }
6806 { echo "$as_me:$LINENO: result: no" >&5
6807 echo "${ECHO_T}no" >&6; }
6812 if test -z "$ac_cv_prog_RANLIB"; then
6813 ac_ct_RANLIB=$RANLIB
6814 # Extract the first word of "ranlib", so it can be a program name with args.
6815 set dummy ranlib; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 if test -n "$ac_ct_RANLIB"; then
6822 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_ac_ct_RANLIB="ranlib"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6842 if test -n "$ac_ct_RANLIB"; then
6843 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6844 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6850 if test "x$ac_ct_RANLIB" = x; then
6853 case $cross_compiling:$ac_tool_warned in
6855 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet. If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&5
6858 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6859 whose name does not start with the host triplet. If you think this
6860 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6861 ac_tool_warned=yes ;;
6863 RANLIB=$ac_ct_RANLIB
6866 RANLIB="$ac_cv_prog_RANLIB"
6869 test -z "$RANLIB" && RANLIB=:
6876 # Determine commands to create old-style static archives.
6877 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6878 old_postinstall_cmds='chmod 644 $oldlib'
6879 old_postuninstall_cmds=
6881 if test -n "$RANLIB"; then
6884 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6887 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6890 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6926 # If no C compiler was specified, use CC.
6929 # If no C compiler flags were specified, use CFLAGS.
6930 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6932 # Allow CC to be a program name with arguments.
6936 # Check for command to grab the raw symbol name followed by C symbol from nm.
6937 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6938 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6939 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 # These are sane defaults that work on at least a few old systems.
6944 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6946 # Character class describing NM global symbol codes.
6947 symcode='[BCDEGRST]'
6949 # Regexp to match symbols that can be accessed directly from C.
6950 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6952 # Define system-specific variables.
6957 cygwin* | mingw* | pw32* | cegcc*)
6958 symcode='[ABCDGISTW]'
6961 if test "$host_cpu" = ia64; then
6962 symcode='[ABCDEGRST]'
6966 symcode='[BCDEGRST]'
6969 symcode='[BCDEGQRST]'
6980 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6988 # If we're using GNU nm, then use its standard symbol codes.
6989 case `$NM -V 2>&1` in
6990 *GNU* | *'with BFD'*)
6991 symcode='[ABCDGIRSTW]' ;;
6994 # Transform an extracted symbol line into a proper C declaration.
6995 # Some systems (esp. on ia64) link data and code symbols differently,
6996 # so use this general approach.
6997 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6999 # Transform an extracted symbol line into symbol name and symbol address
7000 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7001 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'"
7003 # Handle CRLF in mingw tool chain
7007 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7011 # Try without a prefix underscore, then with it.
7012 for ac_symprfx in "" "_"; do
7014 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7015 symxfrm="\\1 $ac_symprfx\\2 \\2"
7017 # Write the raw and C identifiers.
7018 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7019 # Fake it for dumpbin and say T for any non-static function
7020 # and D for any global variable.
7021 # Also find C++ and __fastcall symbols from MSVC++,
7022 # which start with @ or ?.
7023 lt_cv_sys_global_symbol_pipe="$AWK '"\
7024 " {last_section=section; section=\$ 3};"\
7025 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7026 " \$ 0!~/External *\|/{next};"\
7027 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7028 " {if(hide[section]) next};"\
7029 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7030 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7031 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7032 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7033 " ' prfx=^$ac_symprfx"
7035 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7038 # Check to see that the pipe works correctly.
7042 cat > conftest.$ac_ext <<_LT_EOF
7047 void nm_test_func(void);
7048 void nm_test_func(void){}
7052 int main(){nm_test_var='a';nm_test_func();return(0);}
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); }; then
7060 # Now try to grab the symbols.
7062 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7063 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } && test -s "$nlist"; then
7067 # Try sorting and uniquifying the output.
7068 if sort "$nlist" | uniq > "$nlist"T; then
7069 mv -f "$nlist"T "$nlist"
7074 # Make sure that we snagged all the symbols we need.
7075 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7076 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7077 cat <<_LT_EOF > conftest.$ac_ext
7083 # Now generate the symbol file.
7084 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7086 cat <<_LT_EOF >> conftest.$ac_ext
7088 /* The mapping between symbol names and symbols. */
7093 lt__PROGRAM__LTX_preloaded_symbols[] =
7095 { "@PROGRAM@", (void *) 0 },
7097 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7098 cat <<\_LT_EOF >> conftest.$ac_ext
7102 /* This works around a problem in FreeBSD linker */
7103 #ifdef FREEBSD_WORKAROUND
7104 static const void *lt_preloaded_setup() {
7105 return lt__PROGRAM__LTX_preloaded_symbols;
7113 # Now try linking the two files.
7114 mv conftest.$ac_objext conftstm.$ac_objext
7115 lt_save_LIBS="$LIBS"
7116 lt_save_CFLAGS="$CFLAGS"
7117 LIBS="conftstm.$ac_objext"
7118 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7120 (eval $ac_link) 2>&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7126 LIBS="$lt_save_LIBS"
7127 CFLAGS="$lt_save_CFLAGS"
7129 echo "cannot find nm_test_func in $nlist" >&5
7132 echo "cannot find nm_test_var in $nlist" >&5
7135 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7138 echo "$progname: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7141 rm -rf conftest* conftst*
7143 # Do not use the global_symbol_pipe unless it works.
7144 if test "$pipe_works" = yes; then
7147 lt_cv_sys_global_symbol_pipe=
7153 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7154 lt_cv_sys_global_symbol_to_cdecl=
7156 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7157 { echo "$as_me:$LINENO: result: failed" >&5
7158 echo "${ECHO_T}failed" >&6; }
7160 { echo "$as_me:$LINENO: result: ok" >&5
7161 echo "${ECHO_T}ok" >&6; }
7185 # Check whether --enable-libtool-lock was given.
7186 if test "${enable_libtool_lock+set}" = set; then
7187 enableval=$enable_libtool_lock;
7190 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7192 # Some flags need to be propagated to the compiler or linker for good
7196 # Find out which ABI we are using.
7197 echo 'int i;' > conftest.$ac_ext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7199 (eval $ac_compile) 2>&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; then
7203 case `/usr/bin/file conftest.$ac_objext` in
7215 # Find out which ABI we are using.
7216 echo '#line 7216 "configure"' > conftest.$ac_ext
7217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7218 (eval $ac_compile) 2>&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); }; then
7222 if test "$lt_cv_prog_gnu_ld" = yes; then
7223 case `/usr/bin/file conftest.$ac_objext` in
7225 LD="${LD-ld} -melf32bsmip"
7228 LD="${LD-ld} -melf32bmipn32"
7231 LD="${LD-ld} -melf64bmip"
7235 case `/usr/bin/file conftest.$ac_objext` in
7251 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7252 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7253 # Find out which ABI we are using.
7254 echo 'int i;' > conftest.$ac_ext
7255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7256 (eval $ac_compile) 2>&5
7258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7259 (exit $ac_status); }; then
7260 case `/usr/bin/file conftest.o` in
7263 x86_64-*kfreebsd*-gnu)
7264 LD="${LD-ld} -m elf_i386_fbsd"
7267 LD="${LD-ld} -m elf_i386"
7269 ppc64-*linux*|powerpc64-*linux*)
7270 LD="${LD-ld} -m elf32ppclinux"
7273 LD="${LD-ld} -m elf_s390"
7276 LD="${LD-ld} -m elf32_sparc"
7282 x86_64-*kfreebsd*-gnu)
7283 LD="${LD-ld} -m elf_x86_64_fbsd"
7286 LD="${LD-ld} -m elf_x86_64"
7288 ppc*-*linux*|powerpc*-*linux*)
7289 LD="${LD-ld} -m elf64ppc"
7291 s390*-*linux*|s390*-*tpf*)
7292 LD="${LD-ld} -m elf64_s390"
7295 LD="${LD-ld} -m elf64_sparc"
7305 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7306 SAVE_CFLAGS="$CFLAGS"
7307 CFLAGS="$CFLAGS -belf"
7308 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7309 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
7310 if test "${lt_cv_cc_needs_belf+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 ac_cpp='$CPP $CPPFLAGS'
7315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7319 cat >conftest.$ac_ext <<_ACEOF
7322 cat confdefs.h >>conftest.$ac_ext
7323 cat >>conftest.$ac_ext <<_ACEOF
7324 /* end confdefs.h. */
7334 rm -f conftest.$ac_objext conftest$ac_exeext
7335 if { (ac_try="$ac_link"
7337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7338 *) ac_try_echo=$ac_try;;
7340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7341 (eval "$ac_link") 2>conftest.er1
7343 grep -v '^ *+' conftest.er1 >conftest.err
7345 cat conftest.err >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); } && {
7348 test -z "$ac_c_werror_flag" ||
7349 test ! -s conftest.err
7350 } && test -s conftest$ac_exeext &&
7351 $as_test_x conftest$ac_exeext; then
7352 lt_cv_cc_needs_belf=yes
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 lt_cv_cc_needs_belf=no
7360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7361 conftest$ac_exeext conftest.$ac_ext
7363 ac_cpp='$CPP $CPPFLAGS'
7364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7369 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7370 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
7371 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7372 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7373 CFLAGS="$SAVE_CFLAGS"
7377 # Find out which ABI we are using.
7378 echo 'int i;' > conftest.$ac_ext
7379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7380 (eval $ac_compile) 2>&5
7382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7383 (exit $ac_status); }; then
7384 case `/usr/bin/file conftest.o` in
7386 case $lt_cv_prog_gnu_ld in
7387 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7389 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7401 need_locks="$enable_libtool_lock"
7405 rhapsody* | darwin*)
7406 if test -n "$ac_tool_prefix"; then
7407 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7408 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7411 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 if test -n "$DSYMUTIL"; then
7415 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7434 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7435 if test -n "$DSYMUTIL"; then
7436 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7437 echo "${ECHO_T}$DSYMUTIL" >&6; }
7439 { echo "$as_me:$LINENO: result: no" >&5
7440 echo "${ECHO_T}no" >&6; }
7445 if test -z "$ac_cv_prog_DSYMUTIL"; then
7446 ac_ct_DSYMUTIL=$DSYMUTIL
7447 # Extract the first word of "dsymutil", so it can be a program name with args.
7448 set dummy dsymutil; ac_word=$2
7449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7451 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 if test -n "$ac_ct_DSYMUTIL"; then
7455 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 test -z "$as_dir" && as_dir=.
7462 for ac_exec_ext in '' $ac_executable_extensions; do
7463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7464 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7474 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7475 if test -n "$ac_ct_DSYMUTIL"; then
7476 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7477 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7479 { echo "$as_me:$LINENO: result: no" >&5
7480 echo "${ECHO_T}no" >&6; }
7483 if test "x$ac_ct_DSYMUTIL" = x; then
7486 case $cross_compiling:$ac_tool_warned in
7488 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7489 whose name does not start with the host triplet. If you think this
7490 configuration is useful to you, please write to autoconf@gnu.org." >&5
7491 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7492 whose name does not start with the host triplet. If you think this
7493 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7494 ac_tool_warned=yes ;;
7496 DSYMUTIL=$ac_ct_DSYMUTIL
7499 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7502 if test -n "$ac_tool_prefix"; then
7503 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7504 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7507 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 if test -n "$NMEDIT"; then
7511 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7517 test -z "$as_dir" && as_dir=.
7518 for ac_exec_ext in '' $ac_executable_extensions; do
7519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7520 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 NMEDIT=$ac_cv_prog_NMEDIT
7531 if test -n "$NMEDIT"; then
7532 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7533 echo "${ECHO_T}$NMEDIT" >&6; }
7535 { echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6; }
7541 if test -z "$ac_cv_prog_NMEDIT"; then
7542 ac_ct_NMEDIT=$NMEDIT
7543 # Extract the first word of "nmedit", so it can be a program name with args.
7544 set dummy nmedit; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 if test -n "$ac_ct_NMEDIT"; then
7551 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7571 if test -n "$ac_ct_NMEDIT"; then
7572 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7573 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7575 { echo "$as_me:$LINENO: result: no" >&5
7576 echo "${ECHO_T}no" >&6; }
7579 if test "x$ac_ct_NMEDIT" = x; then
7582 case $cross_compiling:$ac_tool_warned in
7584 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7585 whose name does not start with the host triplet. If you think this
7586 configuration is useful to you, please write to autoconf@gnu.org." >&5
7587 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7588 whose name does not start with the host triplet. If you think this
7589 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7590 ac_tool_warned=yes ;;
7592 NMEDIT=$ac_ct_NMEDIT
7595 NMEDIT="$ac_cv_prog_NMEDIT"
7598 if test -n "$ac_tool_prefix"; then
7599 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7603 if test "${ac_cv_prog_LIPO+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 if test -n "$LIPO"; then
7607 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 LIPO=$ac_cv_prog_LIPO
7627 if test -n "$LIPO"; then
7628 { echo "$as_me:$LINENO: result: $LIPO" >&5
7629 echo "${ECHO_T}$LIPO" >&6; }
7631 { echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6; }
7637 if test -z "$ac_cv_prog_LIPO"; then
7639 # Extract the first word of "lipo", so it can be a program name with args.
7640 set dummy lipo; ac_word=$2
7641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7643 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7644 echo $ECHO_N "(cached) $ECHO_C" >&6
7646 if test -n "$ac_ct_LIPO"; then
7647 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 test -z "$as_dir" && as_dir=.
7654 for ac_exec_ext in '' $ac_executable_extensions; do
7655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7656 ac_cv_prog_ac_ct_LIPO="lipo"
7657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7666 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7667 if test -n "$ac_ct_LIPO"; then
7668 { echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7669 echo "${ECHO_T}$ac_ct_LIPO" >&6; }
7671 { echo "$as_me:$LINENO: result: no" >&5
7672 echo "${ECHO_T}no" >&6; }
7675 if test "x$ac_ct_LIPO" = x; then
7678 case $cross_compiling:$ac_tool_warned in
7680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7681 whose name does not start with the host triplet. If you think this
7682 configuration is useful to you, please write to autoconf@gnu.org." >&5
7683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7684 whose name does not start with the host triplet. If you think this
7685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7686 ac_tool_warned=yes ;;
7691 LIPO="$ac_cv_prog_LIPO"
7694 if test -n "$ac_tool_prefix"; then
7695 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}otool; ac_word=$2
7697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7699 if test "${ac_cv_prog_OTOOL+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 if test -n "$OTOOL"; then
7703 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 test -z "$as_dir" && as_dir=.
7710 for ac_exec_ext in '' $ac_executable_extensions; do
7711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7712 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 OTOOL=$ac_cv_prog_OTOOL
7723 if test -n "$OTOOL"; then
7724 { echo "$as_me:$LINENO: result: $OTOOL" >&5
7725 echo "${ECHO_T}$OTOOL" >&6; }
7727 { echo "$as_me:$LINENO: result: no" >&5
7728 echo "${ECHO_T}no" >&6; }
7733 if test -z "$ac_cv_prog_OTOOL"; then
7735 # Extract the first word of "otool", so it can be a program name with args.
7736 set dummy otool; ac_word=$2
7737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7739 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 if test -n "$ac_ct_OTOOL"; then
7743 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752 ac_cv_prog_ac_ct_OTOOL="otool"
7753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7763 if test -n "$ac_ct_OTOOL"; then
7764 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7765 echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
7767 { echo "$as_me:$LINENO: result: no" >&5
7768 echo "${ECHO_T}no" >&6; }
7771 if test "x$ac_ct_OTOOL" = x; then
7774 case $cross_compiling:$ac_tool_warned in
7776 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7777 whose name does not start with the host triplet. If you think this
7778 configuration is useful to you, please write to autoconf@gnu.org." >&5
7779 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7780 whose name does not start with the host triplet. If you think this
7781 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7782 ac_tool_warned=yes ;;
7787 OTOOL="$ac_cv_prog_OTOOL"
7790 if test -n "$ac_tool_prefix"; then
7791 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7792 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7795 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7796 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 if test -n "$OTOOL64"; then
7799 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 OTOOL64=$ac_cv_prog_OTOOL64
7819 if test -n "$OTOOL64"; then
7820 { echo "$as_me:$LINENO: result: $OTOOL64" >&5
7821 echo "${ECHO_T}$OTOOL64" >&6; }
7823 { echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6; }
7829 if test -z "$ac_cv_prog_OTOOL64"; then
7830 ac_ct_OTOOL64=$OTOOL64
7831 # Extract the first word of "otool64", so it can be a program name with args.
7832 set dummy otool64; ac_word=$2
7833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7835 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 if test -n "$ac_ct_OTOOL64"; then
7839 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_prog_ac_ct_OTOOL64="otool64"
7849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7859 if test -n "$ac_ct_OTOOL64"; then
7860 { echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7861 echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
7863 { echo "$as_me:$LINENO: result: no" >&5
7864 echo "${ECHO_T}no" >&6; }
7867 if test "x$ac_ct_OTOOL64" = x; then
7870 case $cross_compiling:$ac_tool_warned in
7872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7873 whose name does not start with the host triplet. If you think this
7874 configuration is useful to you, please write to autoconf@gnu.org." >&5
7875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7876 whose name does not start with the host triplet. If you think this
7877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7878 ac_tool_warned=yes ;;
7880 OTOOL64=$ac_ct_OTOOL64
7883 OTOOL64="$ac_cv_prog_OTOOL64"
7912 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7913 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7914 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 lt_cv_apple_cc_single_mod=no
7918 if test -z "${LT_MULTI_MODULE}"; then
7919 # By default we will add the -single_module flag. You can override
7920 # by either setting the environment variable LT_MULTI_MODULE
7921 # non-empty at configure time, or by adding -multi_module to the
7923 rm -rf libconftest.dylib*
7924 echo "int foo(void){return 1;}" > conftest.c
7925 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7926 -dynamiclib -Wl,-single_module conftest.c" >&5
7927 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7928 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7930 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7931 lt_cv_apple_cc_single_mod=yes
7933 cat conftest.err >&5
7935 rm -rf libconftest.dylib*
7939 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7940 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7941 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7942 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7943 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 lt_cv_ld_exported_symbols_list=no
7947 save_LDFLAGS=$LDFLAGS
7948 echo "_main" > conftest.sym
7949 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7950 cat >conftest.$ac_ext <<_ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7965 rm -f conftest.$ac_objext conftest$ac_exeext
7966 if { (ac_try="$ac_link"
7968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7969 *) ac_try_echo=$ac_try;;
7971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7972 (eval "$ac_link") 2>conftest.er1
7974 grep -v '^ *+' conftest.er1 >conftest.err
7976 cat conftest.err >&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && {
7979 test -z "$ac_c_werror_flag" ||
7980 test ! -s conftest.err
7981 } && test -s conftest$ac_exeext &&
7982 $as_test_x conftest$ac_exeext; then
7983 lt_cv_ld_exported_symbols_list=yes
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7988 lt_cv_ld_exported_symbols_list=no
7991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7992 conftest$ac_exeext conftest.$ac_ext
7993 LDFLAGS="$save_LDFLAGS"
7996 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7997 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7999 rhapsody* | darwin1.[012])
8000 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8002 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8003 darwin*) # darwin 5.x on
8004 # if running on 10.5 or later, the deployment target defaults
8005 # to the OS version, if on x86, and 10.4, the deployment
8006 # target defaults to 10.4. Don't you love it?
8007 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8008 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8009 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8011 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8013 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8017 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8018 _lt_dar_single_mod='$single_module'
8020 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8021 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8023 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8025 if test "$DSYMUTIL" != ":"; then
8026 _lt_dsymutil='~$DSYMUTIL $lib || :'
8033 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8034 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8035 if test "${ac_cv_header_stdc+set}" = set; then
8036 echo $ECHO_N "(cached) $ECHO_C" >&6
8038 cat >conftest.$ac_ext <<_ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8057 rm -f conftest.$ac_objext
8058 if { (ac_try="$ac_compile"
8060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8061 *) ac_try_echo=$ac_try;;
8063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8064 (eval "$ac_compile") 2>conftest.er1
8066 grep -v '^ *+' conftest.er1 >conftest.err
8068 cat conftest.err >&5
8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8070 (exit $ac_status); } && {
8071 test -z "$ac_c_werror_flag" ||
8072 test ! -s conftest.err
8073 } && test -s conftest.$ac_objext; then
8074 ac_cv_header_stdc=yes
8076 echo "$as_me: failed program was:" >&5
8077 sed 's/^/| /' conftest.$ac_ext >&5
8079 ac_cv_header_stdc=no
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8084 if test $ac_cv_header_stdc = yes; then
8085 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8086 cat >conftest.$ac_ext <<_ACEOF
8089 cat confdefs.h >>conftest.$ac_ext
8090 cat >>conftest.$ac_ext <<_ACEOF
8091 /* end confdefs.h. */
8095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8096 $EGREP "memchr" >/dev/null 2>&1; then
8099 ac_cv_header_stdc=no
8105 if test $ac_cv_header_stdc = yes; then
8106 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8107 cat >conftest.$ac_ext <<_ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8117 $EGREP "free" >/dev/null 2>&1; then
8120 ac_cv_header_stdc=no
8126 if test $ac_cv_header_stdc = yes; then
8127 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8128 if test "$cross_compiling" = yes; then
8131 cat >conftest.$ac_ext <<_ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h. */
8139 #if ((' ' & 0x0FF) == 0x020)
8140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8143 # define ISLOWER(c) \
8144 (('a' <= (c) && (c) <= 'i') \
8145 || ('j' <= (c) && (c) <= 'r') \
8146 || ('s' <= (c) && (c) <= 'z'))
8147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8155 for (i = 0; i < 256; i++)
8156 if (XOR (islower (i), ISLOWER (i))
8157 || toupper (i) != TOUPPER (i))
8162 rm -f conftest$ac_exeext
8163 if { (ac_try="$ac_link"
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_link") 2>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8173 { (case "(($ac_try" in
8174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_try") 2>&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8184 echo "$as_me: program exited with status $ac_status" >&5
8185 echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8189 ac_cv_header_stdc=no
8191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8197 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8198 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8199 if test $ac_cv_header_stdc = yes; then
8201 cat >>confdefs.h <<\_ACEOF
8202 #define STDC_HEADERS 1
8207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8217 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8218 inttypes.h stdint.h unistd.h
8220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8224 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 cat >conftest.$ac_ext <<_ACEOF
8229 cat confdefs.h >>conftest.$ac_ext
8230 cat >>conftest.$ac_ext <<_ACEOF
8231 /* end confdefs.h. */
8232 $ac_includes_default
8234 #include <$ac_header>
8236 rm -f conftest.$ac_objext
8237 if { (ac_try="$ac_compile"
8239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8240 *) ac_try_echo=$ac_try;;
8242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8243 (eval "$ac_compile") 2>conftest.er1
8245 grep -v '^ *+' conftest.er1 >conftest.err
8247 cat conftest.err >&5
8248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8249 (exit $ac_status); } && {
8250 test -z "$ac_c_werror_flag" ||
8251 test ! -s conftest.err
8252 } && test -s conftest.$ac_objext; then
8253 eval "$as_ac_Header=yes"
8255 echo "$as_me: failed program was:" >&5
8256 sed 's/^/| /' conftest.$ac_ext >&5
8258 eval "$as_ac_Header=no"
8261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8263 ac_res=`eval echo '${'$as_ac_Header'}'`
8264 { echo "$as_me:$LINENO: result: $ac_res" >&5
8265 echo "${ECHO_T}$ac_res" >&6; }
8266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8267 cat >>confdefs.h <<_ACEOF
8268 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8277 for ac_header in dlfcn.h
8279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 cat >conftest.$ac_ext <<_ACEOF
8288 cat confdefs.h >>conftest.$ac_ext
8289 cat >>conftest.$ac_ext <<_ACEOF
8290 /* end confdefs.h. */
8291 $ac_includes_default
8293 #include <$ac_header>
8295 rm -f conftest.$ac_objext
8296 if { (ac_try="$ac_compile"
8298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8299 *) ac_try_echo=$ac_try;;
8301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8302 (eval "$ac_compile") 2>conftest.er1
8304 grep -v '^ *+' conftest.er1 >conftest.err
8306 cat conftest.err >&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); } && {
8309 test -z "$ac_c_werror_flag" ||
8310 test ! -s conftest.err
8311 } && test -s conftest.$ac_objext; then
8312 eval "$as_ac_Header=yes"
8314 echo "$as_me: failed program was:" >&5
8315 sed 's/^/| /' conftest.$ac_ext >&5
8317 eval "$as_ac_Header=no"
8320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8322 ac_res=`eval echo '${'$as_ac_Header'}'`
8323 { echo "$as_me:$LINENO: result: $ac_res" >&5
8324 echo "${ECHO_T}$ac_res" >&6; }
8325 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8326 cat >>confdefs.h <<_ACEOF
8327 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8337 ac_cpp='$CXXCPP $CPPFLAGS'
8338 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8339 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8340 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8341 if test -z "$CXX"; then
8342 if test -n "$CCC"; then
8345 if test -n "$ac_tool_prefix"; then
8346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8352 if test "${ac_cv_prog_CXX+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 if test -n "$CXX"; then
8356 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362 test -z "$as_dir" && as_dir=.
8363 for ac_exec_ext in '' $ac_executable_extensions; do
8364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8365 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 if test -n "$CXX"; then
8377 { echo "$as_me:$LINENO: result: $CXX" >&5
8378 echo "${ECHO_T}$CXX" >&6; }
8380 { echo "$as_me:$LINENO: result: no" >&5
8381 echo "${ECHO_T}no" >&6; }
8385 test -n "$CXX" && break
8388 if test -z "$CXX"; then
8390 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8392 # Extract the first word of "$ac_prog", so it can be a program name with args.
8393 set dummy $ac_prog; ac_word=$2
8394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8396 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8397 echo $ECHO_N "(cached) $ECHO_C" >&6
8399 if test -n "$ac_ct_CXX"; then
8400 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409 ac_cv_prog_ac_ct_CXX="$ac_prog"
8410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8420 if test -n "$ac_ct_CXX"; then
8421 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8422 echo "${ECHO_T}$ac_ct_CXX" >&6; }
8424 { echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6; }
8429 test -n "$ac_ct_CXX" && break
8432 if test "x$ac_ct_CXX" = x; then
8435 case $cross_compiling:$ac_tool_warned in
8437 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8438 whose name does not start with the host triplet. If you think this
8439 configuration is useful to you, please write to autoconf@gnu.org." >&5
8440 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8441 whose name does not start with the host triplet. If you think this
8442 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8443 ac_tool_warned=yes ;;
8451 # Provide some information about the compiler.
8452 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8453 ac_compiler=`set X $ac_compile; echo $2`
8454 { (ac_try="$ac_compiler --version >&5"
8456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_compiler --version >&5") 2>&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }
8464 { (ac_try="$ac_compiler -v >&5"
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_compiler -v >&5") 2>&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }
8474 { (ac_try="$ac_compiler -V >&5"
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8480 (eval "$ac_compiler -V >&5") 2>&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }
8485 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8486 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8487 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 cat >conftest.$ac_ext <<_ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8517 grep -v '^ *+' conftest.er1 >conftest.err
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_cxx_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.$ac_objext; then
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8537 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8538 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8539 GXX=`test $ac_compiler_gnu = yes && echo yes`
8540 ac_test_CXXFLAGS=${CXXFLAGS+set}
8541 ac_save_CXXFLAGS=$CXXFLAGS
8542 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8543 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8544 if test "${ac_cv_prog_cxx_g+set}" = set; then
8545 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8548 ac_cxx_werror_flag=yes
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8566 rm -f conftest.$ac_objext
8567 if { (ac_try="$ac_compile"
8569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8570 *) ac_try_echo=$ac_try;;
8572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8573 (eval "$ac_compile") 2>conftest.er1
8575 grep -v '^ *+' conftest.er1 >conftest.err
8577 cat conftest.err >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } && {
8580 test -z "$ac_cxx_werror_flag" ||
8581 test ! -s conftest.err
8582 } && test -s conftest.$ac_objext; then
8583 ac_cv_prog_cxx_g=yes
8585 echo "$as_me: failed program was:" >&5
8586 sed 's/^/| /' conftest.$ac_ext >&5
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8604 rm -f conftest.$ac_objext
8605 if { (ac_try="$ac_compile"
8607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_compile") 2>conftest.er1
8613 grep -v '^ *+' conftest.er1 >conftest.err
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } && {
8618 test -z "$ac_cxx_werror_flag" ||
8619 test ! -s conftest.err
8620 } && test -s conftest.$ac_objext; then
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8628 cat >conftest.$ac_ext <<_ACEOF
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8643 rm -f conftest.$ac_objext
8644 if { (ac_try="$ac_compile"
8646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8647 *) ac_try_echo=$ac_try;;
8649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8650 (eval "$ac_compile") 2>conftest.er1
8652 grep -v '^ *+' conftest.er1 >conftest.err
8654 cat conftest.err >&5
8655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8656 (exit $ac_status); } && {
8657 test -z "$ac_cxx_werror_flag" ||
8658 test ! -s conftest.err
8659 } && test -s conftest.$ac_objext; then
8660 ac_cv_prog_cxx_g=yes
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8675 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8677 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8678 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8679 if test "$ac_test_CXXFLAGS" = set; then
8680 CXXFLAGS=$ac_save_CXXFLAGS
8681 elif test $ac_cv_prog_cxx_g = yes; then
8682 if test "$GXX" = yes; then
8688 if test "$GXX" = yes; then
8695 ac_cpp='$CPP $CPPFLAGS'
8696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8700 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8701 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8702 (test "X$CXX" != "Xg++"))) ; then
8704 ac_cpp='$CXXCPP $CPPFLAGS'
8705 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8706 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8707 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8708 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8709 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
8710 if test -z "$CXXCPP"; then
8711 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8712 echo $ECHO_N "(cached) $ECHO_C" >&6
8714 # Double quotes because CXXCPP needs to be expanded
8715 for CXXCPP in "$CXX -E" "/lib/cpp"
8718 for ac_cxx_preproc_warn_flag in '' yes
8720 # Use a header file that comes with gcc, so configuring glibc
8721 # with a fresh cross-compiler works.
8722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8723 # <limits.h> exists even on freestanding compilers.
8724 # On the NeXT, cc -E runs the code through the compiler's parser,
8725 # not just through cpp. "Syntax error" is here to catch this case.
8726 cat >conftest.$ac_ext <<_ACEOF
8729 cat confdefs.h >>conftest.$ac_ext
8730 cat >>conftest.$ac_ext <<_ACEOF
8731 /* end confdefs.h. */
8733 # include <limits.h>
8735 # include <assert.h>
8739 if { (ac_try="$ac_cpp conftest.$ac_ext"
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8747 grep -v '^ *+' conftest.er1 >conftest.err
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } >/dev/null && {
8752 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8753 test ! -s conftest.err
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 # Broken: fails on valid input.
8764 rm -f conftest.err conftest.$ac_ext
8766 # OK, works on sane cases. Now check whether nonexistent headers
8767 # can be detected and how.
8768 cat >conftest.$ac_ext <<_ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 #include <ac_nonexistent.h>
8776 if { (ac_try="$ac_cpp conftest.$ac_ext"
8778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8779 *) ac_try_echo=$ac_try;;
8781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8784 grep -v '^ *+' conftest.er1 >conftest.err
8786 cat conftest.err >&5
8787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788 (exit $ac_status); } >/dev/null && {
8789 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8790 test ! -s conftest.err
8792 # Broken: success on invalid input.
8795 echo "$as_me: failed program was:" >&5
8796 sed 's/^/| /' conftest.$ac_ext >&5
8798 # Passes both tests.
8803 rm -f conftest.err conftest.$ac_ext
8806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8807 rm -f conftest.err conftest.$ac_ext
8808 if $ac_preproc_ok; then
8813 ac_cv_prog_CXXCPP=$CXXCPP
8816 CXXCPP=$ac_cv_prog_CXXCPP
8818 ac_cv_prog_CXXCPP=$CXXCPP
8820 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
8821 echo "${ECHO_T}$CXXCPP" >&6; }
8823 for ac_cxx_preproc_warn_flag in '' yes
8825 # Use a header file that comes with gcc, so configuring glibc
8826 # with a fresh cross-compiler works.
8827 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8828 # <limits.h> exists even on freestanding compilers.
8829 # On the NeXT, cc -E runs the code through the compiler's parser,
8830 # not just through cpp. "Syntax error" is here to catch this case.
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8838 # include <limits.h>
8840 # include <assert.h>
8844 if { (ac_try="$ac_cpp conftest.$ac_ext"
8846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847 *) ac_try_echo=$ac_try;;
8849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8852 grep -v '^ *+' conftest.er1 >conftest.err
8854 cat conftest.err >&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } >/dev/null && {
8857 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8858 test ! -s conftest.err
8862 echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8865 # Broken: fails on valid input.
8869 rm -f conftest.err conftest.$ac_ext
8871 # OK, works on sane cases. Now check whether nonexistent headers
8872 # can be detected and how.
8873 cat >conftest.$ac_ext <<_ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8879 #include <ac_nonexistent.h>
8881 if { (ac_try="$ac_cpp conftest.$ac_ext"
8883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8884 *) ac_try_echo=$ac_try;;
8886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8889 grep -v '^ *+' conftest.er1 >conftest.err
8891 cat conftest.err >&5
8892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893 (exit $ac_status); } >/dev/null && {
8894 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8895 test ! -s conftest.err
8897 # Broken: success on invalid input.
8900 echo "$as_me: failed program was:" >&5
8901 sed 's/^/| /' conftest.$ac_ext >&5
8903 # Passes both tests.
8908 rm -f conftest.err conftest.$ac_ext
8911 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8912 rm -f conftest.err conftest.$ac_ext
8913 if $ac_preproc_ok; then
8916 _lt_caught_CXX_error=yes
8920 ac_cpp='$CPP $CPPFLAGS'
8921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926 _lt_caught_CXX_error=yes
8934 # Check whether --enable-shared was given.
8935 if test "${enable_shared+set}" = set; then
8936 enableval=$enable_shared; p=${PACKAGE-default}
8938 yes) enable_shared=yes ;;
8939 no) enable_shared=no ;;
8942 # Look at the argument we got. We use all the common list separators.
8943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8944 for pkg in $enableval; do
8946 if test "X$pkg" = "X$p"; then
8963 # Check whether --enable-static was given.
8964 if test "${enable_static+set}" = set; then
8965 enableval=$enable_static; p=${PACKAGE-default}
8967 yes) enable_static=yes ;;
8968 no) enable_static=no ;;
8971 # Look at the argument we got. We use all the common list separators.
8972 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8973 for pkg in $enableval; do
8975 if test "X$pkg" = "X$p"; then
9004 # Check whether --with-pic was given.
9005 if test "${with_pic+set}" = set; then
9006 withval=$with_pic; pic_mode="$withval"
9012 test -z "$pic_mode" && pic_mode=default
9020 # Check whether --enable-fast-install was given.
9021 if test "${enable_fast_install+set}" = set; then
9022 enableval=$enable_fast_install; p=${PACKAGE-default}
9024 yes) enable_fast_install=yes ;;
9025 no) enable_fast_install=no ;;
9027 enable_fast_install=no
9028 # Look at the argument we got. We use all the common list separators.
9029 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9030 for pkg in $enableval; do
9032 if test "X$pkg" = "X$p"; then
9033 enable_fast_install=yes
9040 enable_fast_install=yes
9053 # This can be used to rebuild libtool when needed
9054 LIBTOOL_DEPS="$ltmain"
9056 # Always use our own libtool.
9057 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9083 test -z "$LN_S" && LN_S="ln -s"
9098 if test -n "${ZSH_VERSION+set}" ; then
9099 setopt NO_GLOB_SUBST
9102 { echo "$as_me:$LINENO: checking for objdir" >&5
9103 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9104 if test "${lt_cv_objdir+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 rm -f .libs 2>/dev/null
9108 mkdir .libs 2>/dev/null
9109 if test -d .libs; then
9112 # MS-DOS does not allow filenames that begin with a dot.
9115 rmdir .libs 2>/dev/null
9117 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9118 echo "${ECHO_T}$lt_cv_objdir" >&6; }
9119 objdir=$lt_cv_objdir
9125 cat >>confdefs.h <<_ACEOF
9126 #define LT_OBJDIR "$lt_cv_objdir/"
9147 # AIX sometimes has problems with the GCC collect2 program. For some
9148 # reason, if we set the COLLECT_NAMES environment variable, the problems
9149 # vanish in a puff of smoke.
9150 if test "X${COLLECT_NAMES+set}" != Xset; then
9152 export COLLECT_NAMES
9157 # Sed substitution that helps us do robust quoting. It backslashifies
9158 # metacharacters that are still active within double-quoted strings.
9159 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9161 # Same as above, but do not quote variable references.
9162 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9164 # Sed substitution to delay expansion of an escaped shell variable in a
9165 # double_quote_subst'ed string.
9166 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9168 # Sed substitution to delay expansion of an escaped single quote.
9169 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9171 # Sed substitution to avoid accidental globbing in evaled expressions
9172 no_glob_subst='s/\*/\\\*/g'
9176 can_build_shared=yes
9178 # All known linkers require a `.a' archive for static linking (except MSVC,
9179 # which needs '.lib').
9182 with_gnu_ld="$lt_cv_prog_gnu_ld"
9185 old_CFLAGS="$CFLAGS"
9187 # Set sane defaults for various variables
9188 test -z "$CC" && CC=cc
9189 test -z "$LTCC" && LTCC=$CC
9190 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9191 test -z "$LD" && LD=ld
9192 test -z "$ac_objext" && ac_objext=o
9194 for cc_temp in $compiler""; do
9196 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9197 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9202 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9205 # Only perform the check for file, if the check method requires it
9206 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9207 case $deplibs_check_method in
9209 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9210 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9211 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9212 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9217 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9220 lt_save_MAGIC_CMD="$MAGIC_CMD"
9221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9222 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9223 for ac_dir in $ac_dummy; do
9225 test -z "$ac_dir" && ac_dir=.
9226 if test -f $ac_dir/${ac_tool_prefix}file; then
9227 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9228 if test -n "$file_magic_test_file"; then
9229 case $deplibs_check_method in
9231 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9232 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9233 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9234 $EGREP "$file_magic_regex" > /dev/null; then
9239 *** Warning: the command libtool uses to detect shared libraries,
9240 *** $file_magic_cmd, produces output that libtool cannot recognize.
9241 *** The result is that libtool may fail to recognize shared libraries
9242 *** as such. This will affect the creation of libtool libraries that
9243 *** depend on shared libraries, but programs linked with such libtool
9244 *** libraries will work regardless of this problem. Nevertheless, you
9245 *** may want to report the problem to your system manager and/or to
9246 *** bug-libtool@gnu.org
9256 MAGIC_CMD="$lt_save_MAGIC_CMD"
9261 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9262 if test -n "$MAGIC_CMD"; then
9263 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9264 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9266 { echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6; }
9274 if test -z "$lt_cv_path_MAGIC_CMD"; then
9275 if test -n "$ac_tool_prefix"; then
9276 { echo "$as_me:$LINENO: checking for file" >&5
9277 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9278 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9283 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9286 lt_save_MAGIC_CMD="$MAGIC_CMD"
9287 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9288 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9289 for ac_dir in $ac_dummy; do
9291 test -z "$ac_dir" && ac_dir=.
9292 if test -f $ac_dir/file; then
9293 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9294 if test -n "$file_magic_test_file"; then
9295 case $deplibs_check_method in
9297 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9298 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9299 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9300 $EGREP "$file_magic_regex" > /dev/null; then
9305 *** Warning: the command libtool uses to detect shared libraries,
9306 *** $file_magic_cmd, produces output that libtool cannot recognize.
9307 *** The result is that libtool may fail to recognize shared libraries
9308 *** as such. This will affect the creation of libtool libraries that
9309 *** depend on shared libraries, but programs linked with such libtool
9310 *** libraries will work regardless of this problem. Nevertheless, you
9311 *** may want to report the problem to your system manager and/or to
9312 *** bug-libtool@gnu.org
9322 MAGIC_CMD="$lt_save_MAGIC_CMD"
9327 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9328 if test -n "$MAGIC_CMD"; then
9329 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9330 echo "${ECHO_T}$MAGIC_CMD" >&6; }
9332 { echo "$as_me:$LINENO: result: no" >&5
9333 echo "${ECHO_T}no" >&6; }
9346 # Use C for the default configuration in the libtool script
9350 ac_cpp='$CPP $CPPFLAGS'
9351 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9352 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9353 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9356 # Source file extension for C test sources.
9359 # Object file extension for compiled C test sources.
9363 # Code to be used in simple compile tests
9364 lt_simple_compile_test_code="int some_variable = 0;"
9366 # Code to be used in simple link tests
9367 lt_simple_link_test_code='int main(){return(0);}'
9375 # If no C compiler was specified, use CC.
9378 # If no C compiler flags were specified, use CFLAGS.
9379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9381 # Allow CC to be a program name with arguments.
9384 # Save the default compiler, since it gets overwritten when the other
9385 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9386 compiler_DEFAULT=$CC
9388 # save warnings/boilerplate of simple test code
9389 ac_outfile=conftest.$ac_objext
9390 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9391 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9392 _lt_compiler_boilerplate=`cat conftest.err`
9395 ac_outfile=conftest.$ac_objext
9396 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9397 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9398 _lt_linker_boilerplate=`cat conftest.err`
9403 ## There is no encapsulation within the following macros, do not change
9404 ## the running order or otherwise move them around unless you know exactly
9405 ## what you are doing...
9406 if test -n "$compiler"; then
9408 lt_prog_compiler_no_builtin_flag=
9410 if test "$GCC" = yes; then
9411 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9413 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9414 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
9415 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 lt_cv_prog_compiler_rtti_exceptions=no
9419 ac_outfile=conftest.$ac_objext
9420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9421 lt_compiler_flag="-fno-rtti -fno-exceptions"
9422 # Insert the option either (1) after the last *FLAGS variable, or
9423 # (2) before a word containing "conftest.", or (3) at the end.
9424 # Note that $ac_compile itself does not contain backslashes and begins
9425 # with a dollar sign (not a hyphen), so the echo should work correctly.
9426 # The option is referenced via a variable to avoid confusing sed.
9427 lt_compile=`echo "$ac_compile" | $SED \
9428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9430 -e 's:$: $lt_compiler_flag:'`
9431 (eval echo "\"\$as_me:9431: $lt_compile\"" >&5)
9432 (eval "$lt_compile" 2>conftest.err)
9434 cat conftest.err >&5
9435 echo "$as_me:9435: \$? = $ac_status" >&5
9436 if (exit $ac_status) && test -s "$ac_outfile"; then
9437 # The compiler can only warn and ignore the option if not recognized
9438 # So say no if there are warnings other than the usual output.
9439 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9440 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9441 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9442 lt_cv_prog_compiler_rtti_exceptions=yes
9448 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9449 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9451 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9452 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9464 lt_prog_compiler_wl=
9465 lt_prog_compiler_pic=
9466 lt_prog_compiler_static=
9468 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
9469 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
9471 if test "$GCC" = yes; then
9472 lt_prog_compiler_wl='-Wl,'
9473 lt_prog_compiler_static='-static'
9477 # All AIX code is PIC.
9478 if test "$host_cpu" = ia64; then
9479 # AIX 5 now supports IA64 processor
9480 lt_prog_compiler_static='-Bstatic'
9487 # see comment about AmigaOS4 .so support
9488 lt_prog_compiler_pic='-fPIC'
9491 # FIXME: we need at least 68020 code to build shared libraries, but
9492 # adding the `-m68020' flag to GCC prevents building anything better,
9494 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9499 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9500 # PIC is the default for these OSes.
9503 mingw* | cygwin* | pw32* | os2* | cegcc*)
9504 # This hack is so that the source file can tell whether it is being
9505 # built for inclusion in a dll (and should export symbols for example).
9506 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9507 # (--disable-auto-import) libraries
9508 lt_prog_compiler_pic='-DDLL_EXPORT'
9511 darwin* | rhapsody*)
9512 # PIC is the default on this platform
9513 # Common symbols not allowed in MH_DYLIB files
9514 lt_prog_compiler_pic='-fno-common'
9518 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9519 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9520 # sets the default TLS model and affects inlining.
9526 lt_prog_compiler_pic='-fPIC'
9532 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9533 # Instead, we relocate shared libraries at runtime.
9537 # Just because we use GCC doesn't mean we suddenly get shared libraries
9538 # on systems that don't support them.
9539 lt_prog_compiler_can_build_shared=no
9544 # QNX uses GNU C++, but need to define -shared option too, otherwise
9546 lt_prog_compiler_pic='-fPIC -shared'
9550 if test -d /usr/nec; then
9551 lt_prog_compiler_pic=-Kconform_pic
9556 lt_prog_compiler_pic='-fPIC'
9560 # PORTME Check for flag to pass linker flags through the system compiler.
9563 lt_prog_compiler_wl='-Wl,'
9564 if test "$host_cpu" = ia64; then
9565 # AIX 5 now supports IA64 processor
9566 lt_prog_compiler_static='-Bstatic'
9568 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9572 mingw* | cygwin* | pw32* | os2* | cegcc*)
9573 # This hack is so that the source file can tell whether it is being
9574 # built for inclusion in a dll (and should export symbols for example).
9575 lt_prog_compiler_pic='-DDLL_EXPORT'
9578 hpux9* | hpux10* | hpux11*)
9579 lt_prog_compiler_wl='-Wl,'
9580 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9587 lt_prog_compiler_pic='+Z'
9590 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9591 lt_prog_compiler_static='${wl}-a ${wl}archive'
9594 irix5* | irix6* | nonstopux*)
9595 lt_prog_compiler_wl='-Wl,'
9596 # PIC (with -KPIC) is the default.
9597 lt_prog_compiler_static='-non_shared'
9600 linux* | k*bsd*-gnu)
9601 case $cc_basename in
9602 # old Intel for x86_64 which still supported -KPIC.
9604 lt_prog_compiler_wl='-Wl,'
9605 lt_prog_compiler_pic='-KPIC'
9606 lt_prog_compiler_static='-static'
9608 # icc used to be incompatible with GCC.
9609 # ICC 10 doesn't accept -KPIC any more.
9611 lt_prog_compiler_wl='-Wl,'
9612 lt_prog_compiler_pic='-fPIC'
9613 lt_prog_compiler_static='-static'
9615 # Lahey Fortran 8.1.
9617 lt_prog_compiler_wl='-Wl,'
9618 lt_prog_compiler_pic='--shared'
9619 lt_prog_compiler_static='--static'
9621 pgcc* | pgf77* | pgf90* | pgf95*)
9622 # Portland Group compilers (*not* the Pentium gcc compiler,
9623 # which looks to be a dead project)
9624 lt_prog_compiler_wl='-Wl,'
9625 lt_prog_compiler_pic='-fpic'
9626 lt_prog_compiler_static='-Bstatic'
9629 lt_prog_compiler_wl='-Wl,'
9630 # All Alpha code is PIC.
9631 lt_prog_compiler_static='-non_shared'
9634 # IBM XL C 8.0/Fortran 10.1 on PPC
9635 lt_prog_compiler_wl='-Wl,'
9636 lt_prog_compiler_pic='-qpic'
9637 lt_prog_compiler_static='-qstaticlink'
9640 case `$CC -V 2>&1 | sed 5q` in
9643 lt_prog_compiler_pic='-KPIC'
9644 lt_prog_compiler_static='-Bstatic'
9645 lt_prog_compiler_wl='-Wl,'
9648 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9649 lt_prog_compiler_pic='-KPIC'
9650 lt_prog_compiler_static='-Bstatic'
9651 lt_prog_compiler_wl=''
9659 lt_prog_compiler_pic='-KPIC'
9660 lt_prog_compiler_static='-Bstatic'
9664 # QNX uses GNU C++, but need to define -shared option too, otherwise
9666 lt_prog_compiler_pic='-fPIC -shared'
9669 osf3* | osf4* | osf5*)
9670 lt_prog_compiler_wl='-Wl,'
9671 # All OSF/1 code is PIC.
9672 lt_prog_compiler_static='-non_shared'
9676 lt_prog_compiler_static='-non_shared'
9680 lt_prog_compiler_pic='-KPIC'
9681 lt_prog_compiler_static='-Bstatic'
9682 case $cc_basename in
9684 lt_prog_compiler_wl='-Qoption ld ';;
9686 lt_prog_compiler_wl='-Wl,';;
9691 lt_prog_compiler_wl='-Qoption ld '
9692 lt_prog_compiler_pic='-PIC'
9693 lt_prog_compiler_static='-Bstatic'
9696 sysv4 | sysv4.2uw2* | sysv4.3*)
9697 lt_prog_compiler_wl='-Wl,'
9698 lt_prog_compiler_pic='-KPIC'
9699 lt_prog_compiler_static='-Bstatic'
9703 if test -d /usr/nec ;then
9704 lt_prog_compiler_pic='-Kconform_pic'
9705 lt_prog_compiler_static='-Bstatic'
9709 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9710 lt_prog_compiler_wl='-Wl,'
9711 lt_prog_compiler_pic='-KPIC'
9712 lt_prog_compiler_static='-Bstatic'
9716 lt_prog_compiler_wl='-Wl,'
9717 lt_prog_compiler_can_build_shared=no
9721 lt_prog_compiler_pic='-pic'
9722 lt_prog_compiler_static='-Bstatic'
9726 lt_prog_compiler_can_build_shared=no
9732 # For platforms which do not support PIC, -DPIC is meaningless:
9734 lt_prog_compiler_pic=
9737 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9740 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9741 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
9749 # Check to make sure the PIC flag actually works.
9751 if test -n "$lt_prog_compiler_pic"; then
9752 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9753 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
9754 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 lt_cv_prog_compiler_pic_works=no
9758 ac_outfile=conftest.$ac_objext
9759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9760 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9761 # Insert the option either (1) after the last *FLAGS variable, or
9762 # (2) before a word containing "conftest.", or (3) at the end.
9763 # Note that $ac_compile itself does not contain backslashes and begins
9764 # with a dollar sign (not a hyphen), so the echo should work correctly.
9765 # The option is referenced via a variable to avoid confusing sed.
9766 lt_compile=`echo "$ac_compile" | $SED \
9767 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9768 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9769 -e 's:$: $lt_compiler_flag:'`
9770 (eval echo "\"\$as_me:9770: $lt_compile\"" >&5)
9771 (eval "$lt_compile" 2>conftest.err)
9773 cat conftest.err >&5
9774 echo "$as_me:9774: \$? = $ac_status" >&5
9775 if (exit $ac_status) && test -s "$ac_outfile"; then
9776 # The compiler can only warn and ignore the option if not recognized
9777 # So say no if there are warnings other than the usual output.
9778 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9780 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9781 lt_cv_prog_compiler_pic_works=yes
9787 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9788 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
9790 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9791 case $lt_prog_compiler_pic in
9793 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9796 lt_prog_compiler_pic=
9797 lt_prog_compiler_can_build_shared=no
9808 # Check to make sure the static flag actually works.
9810 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9811 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9812 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
9813 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9816 lt_cv_prog_compiler_static_works=no
9817 save_LDFLAGS="$LDFLAGS"
9818 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9819 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9820 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9821 # The linker can only warn and ignore the option if not recognized
9822 # So say no if there are warnings
9823 if test -s conftest.err; then
9824 # Append any errors to the config.log.
9825 cat conftest.err 1>&5
9826 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9827 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9828 if diff conftest.exp conftest.er2 >/dev/null; then
9829 lt_cv_prog_compiler_static_works=yes
9832 lt_cv_prog_compiler_static_works=yes
9836 LDFLAGS="$save_LDFLAGS"
9839 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9840 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
9842 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9845 lt_prog_compiler_static=
9854 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9855 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9856 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 lt_cv_prog_compiler_c_o=no
9860 $RM -r conftest 2>/dev/null
9864 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9866 lt_compiler_flag="-o out/conftest2.$ac_objext"
9867 # Insert the option either (1) after the last *FLAGS variable, or
9868 # (2) before a word containing "conftest.", or (3) at the end.
9869 # Note that $ac_compile itself does not contain backslashes and begins
9870 # with a dollar sign (not a hyphen), so the echo should work correctly.
9871 lt_compile=`echo "$ac_compile" | $SED \
9872 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9873 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9874 -e 's:$: $lt_compiler_flag:'`
9875 (eval echo "\"\$as_me:9875: $lt_compile\"" >&5)
9876 (eval "$lt_compile" 2>out/conftest.err)
9878 cat out/conftest.err >&5
9879 echo "$as_me:9879: \$? = $ac_status" >&5
9880 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9882 # The compiler can only warn and ignore the option if not recognized
9883 # So say no if there are warnings
9884 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9885 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9886 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9887 lt_cv_prog_compiler_c_o=yes
9892 # SGI C++ compiler will create directory out/ii_files/ for
9893 # template instantiation
9894 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9895 $RM out/* && rmdir out
9901 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9902 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9909 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9910 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
9911 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9914 lt_cv_prog_compiler_c_o=no
9915 $RM -r conftest 2>/dev/null
9919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9921 lt_compiler_flag="-o out/conftest2.$ac_objext"
9922 # Insert the option either (1) after the last *FLAGS variable, or
9923 # (2) before a word containing "conftest.", or (3) at the end.
9924 # Note that $ac_compile itself does not contain backslashes and begins
9925 # with a dollar sign (not a hyphen), so the echo should work correctly.
9926 lt_compile=`echo "$ac_compile" | $SED \
9927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9929 -e 's:$: $lt_compiler_flag:'`
9930 (eval echo "\"\$as_me:9930: $lt_compile\"" >&5)
9931 (eval "$lt_compile" 2>out/conftest.err)
9933 cat out/conftest.err >&5
9934 echo "$as_me:9934: \$? = $ac_status" >&5
9935 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9937 # The compiler can only warn and ignore the option if not recognized
9938 # So say no if there are warnings
9939 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9940 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9941 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9942 lt_cv_prog_compiler_c_o=yes
9947 # SGI C++ compiler will create directory out/ii_files/ for
9948 # template instantiation
9949 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9950 $RM out/* && rmdir out
9956 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9957 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
9962 hard_links="nottested"
9963 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9964 # do not overwrite the value of need_locks provided by the user
9965 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9966 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
9969 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9971 ln conftest.a conftest.b 2>&5 || hard_links=no
9972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9973 { echo "$as_me:$LINENO: result: $hard_links" >&5
9974 echo "${ECHO_T}$hard_links" >&6; }
9975 if test "$hard_links" = no; then
9976 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9977 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9989 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9990 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
9993 allow_undefined_flag=
9994 always_export_symbols=no
9996 archive_expsym_cmds=
9997 compiler_needs_object=no
9998 enable_shared_with_static_runtimes=no
9999 export_dynamic_flag_spec=
10000 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10001 hardcode_automatic=no
10003 hardcode_direct_absolute=no
10004 hardcode_libdir_flag_spec=
10005 hardcode_libdir_flag_spec_ld=
10006 hardcode_libdir_separator=
10007 hardcode_minus_L=no
10008 hardcode_shlibpath_var=unsupported
10010 link_all_deplibs=unknown
10012 module_expsym_cmds=
10013 old_archive_from_new_cmds=
10014 old_archive_from_expsyms_cmds=
10015 thread_safe_flag_spec=
10016 whole_archive_flag_spec=
10017 # include_expsyms should be a list of space-separated symbols to be *always*
10018 # included in the symbol list
10020 # exclude_expsyms can be an extended regexp of symbols to exclude
10021 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10022 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10023 # as well as any symbol that contains `d'.
10024 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10025 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10026 # platforms (ab)use it in PIC code, but their linkers get confused if
10027 # the symbol is explicitly referenced. Since portable code cannot
10028 # rely on this symbol name, it's probably fine to never include it in
10029 # preloaded symbol tables.
10030 # Exclude shared library initialization/finalization symbols.
10031 extract_expsyms_cmds=
10034 cygwin* | mingw* | pw32* | cegcc*)
10035 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10036 # When not using gcc, we currently assume that we are using
10037 # Microsoft Visual C++.
10038 if test "$GCC" != yes; then
10043 # we just hope/assume this is gcc and not c89 (= MSVC++)
10052 if test "$with_gnu_ld" = yes; then
10053 # If archive_cmds runs LD, not CC, wlarc should be empty
10056 # Set some defaults for GNU ld with shared library support. These
10057 # are reset later if shared libraries are not supported. Putting them
10058 # here allows them to be overridden if necessary.
10059 runpath_var=LD_RUN_PATH
10060 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10061 export_dynamic_flag_spec='${wl}--export-dynamic'
10062 # ancient GNU ld didn't support --whole-archive et. al.
10063 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10064 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10066 whole_archive_flag_spec=
10068 supports_anon_versioning=no
10069 case `$LD -v 2>&1` in
10070 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10071 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10072 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10073 *\ 2.11.*) ;; # other 2.11 versions
10074 *) supports_anon_versioning=yes ;;
10077 # See if GNU ld supports shared libraries.
10080 # On AIX/PPC, the GNU linker is very broken
10081 if test "$host_cpu" != ia64; then
10085 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10086 *** to be unable to reliably create shared libraries on AIX.
10087 *** Therefore, libtool is disabling shared libraries support. If you
10088 *** really care for shared libraries, you may want to modify your PATH
10089 *** so that a non-GNU linker is found, and then restart.
10098 # see comment about AmigaOS4 .so support
10099 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10100 archive_expsym_cmds=''
10103 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)'
10104 hardcode_libdir_flag_spec='-L$libdir'
10105 hardcode_minus_L=yes
10111 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10112 allow_undefined_flag=unsupported
10113 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10114 # support --undefined. This deserves some investigation. FIXME
10115 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10121 cygwin* | mingw* | pw32* | cegcc*)
10122 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10123 # as there is no search path for DLLs.
10124 hardcode_libdir_flag_spec='-L$libdir'
10125 allow_undefined_flag=unsupported
10126 always_export_symbols=no
10127 enable_shared_with_static_runtimes=yes
10128 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10130 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10131 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10132 # If the export-symbols file already is a .def file (1st line
10133 # is EXPORTS), use it as is; otherwise, prepend...
10134 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10135 cp $export_symbols $output_objdir/$soname.def;
10137 echo EXPORTS > $output_objdir/$soname.def;
10138 cat $export_symbols >> $output_objdir/$soname.def;
10140 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10148 hardcode_shlibpath_var=no
10149 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10150 export_dynamic_flag_spec='${wl}-E'
10151 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10152 # Instead, shared libraries are loaded at an image base (0x10000000 by
10153 # default) and relocated if they conflict, which is a slow very memory
10154 # consuming and fragmenting process. To avoid this, we pick a random,
10155 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10156 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10157 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10158 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'
10161 gnu* | linux* | tpf* | k*bsd*-gnu)
10163 if test "$host_os" = linux-dietlibc; then
10164 case $cc_basename in
10165 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10168 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10169 && test "$tmp_diet" = no
10172 tmp_sharedflag='-shared'
10173 case $cc_basename,$host_cpu in
10174 pgcc*) # Portland Group C compiler
10175 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'
10176 tmp_addflag=' $pic_flag'
10178 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
10179 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'
10180 tmp_addflag=' $pic_flag -Mnomain' ;;
10181 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10182 tmp_addflag=' -i_dynamic' ;;
10183 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10184 tmp_addflag=' -i_dynamic -nofor_main' ;;
10185 ifc* | ifort*) # Intel Fortran compiler
10186 tmp_addflag=' -nofor_main' ;;
10187 lf95*) # Lahey Fortran 8.1
10188 whole_archive_flag_spec=
10189 tmp_sharedflag='--shared' ;;
10190 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10191 tmp_sharedflag='-qmkshrobj'
10194 case `$CC -V 2>&1 | sed 5q` in
10195 *Sun\ C*) # Sun C 5.9
10196 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'
10197 compiler_needs_object=yes
10198 tmp_sharedflag='-G' ;;
10199 *Sun\ F*) # Sun Fortran 8.3
10200 tmp_sharedflag='-G' ;;
10202 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10204 if test "x$supports_anon_versioning" = xyes; then
10205 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10206 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10207 echo "local: *; };" >> $output_objdir/$libname.ver~
10208 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10211 case $cc_basename in
10213 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10214 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10215 hardcode_libdir_flag_spec=
10216 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10217 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10218 if test "x$supports_anon_versioning" = xyes; then
10219 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10220 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10221 echo "local: *; };" >> $output_objdir/$libname.ver~
10222 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10232 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10233 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10237 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10242 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10246 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10247 *** create shared libraries on Solaris systems. Therefore, libtool
10248 *** is disabling shared libraries support. We urge you to upgrade GNU
10249 *** binutils to release 2.9.1 or newer. Another option is to modify
10250 *** your PATH or compiler configuration so that the native linker is
10251 *** used, and then restart.
10254 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10262 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10263 case `$LD -v 2>&1` in
10264 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10268 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10269 *** reliably create shared libraries on SCO systems. Therefore, libtool
10270 *** is disabling shared libraries support. We urge you to upgrade GNU
10271 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10272 *** your PATH or compiler configuration so that the native linker is
10273 *** used, and then restart.
10278 # For security reasons, it is highly recommended that you always
10279 # use absolute paths for naming shared libraries, and exclude the
10280 # DT_RUNPATH tag from executables and libraries. But doing so
10281 # requires that you compile everything twice, which is a pain.
10282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10294 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10296 hardcode_direct=yes
10297 hardcode_shlibpath_var=no
10301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10310 if test "$ld_shlibs" = no; then
10312 hardcode_libdir_flag_spec=
10313 export_dynamic_flag_spec=
10314 whole_archive_flag_spec=
10317 # PORTME fill in a description of your system's linker (not GNU ld)
10320 allow_undefined_flag=unsupported
10321 always_export_symbols=yes
10322 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'
10323 # Note: this linker hardcodes the directories in LIBPATH if there
10324 # are no directories specified by -L.
10325 hardcode_minus_L=yes
10326 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10327 # Neither direct hardcoding nor static linking is supported with a
10329 hardcode_direct=unsupported
10334 if test "$host_cpu" = ia64; then
10335 # On IA64, the linker does run time linking by default, so we don't
10336 # have to do anything special.
10337 aix_use_runtimelinking=no
10338 exp_sym_flag='-Bexport'
10341 # If we're using GNU nm, then we don't want the "-C" option.
10342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10343 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10344 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'
10346 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'
10348 aix_use_runtimelinking=no
10350 # Test if we are trying to use run time linking or normal
10351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10352 # need to do runtime linking.
10353 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10354 for ld_flag in $LDFLAGS; do
10355 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10356 aix_use_runtimelinking=yes
10363 exp_sym_flag='-bexport'
10364 no_entry_flag='-bnoentry'
10367 # When large executables or shared objects are built, AIX ld can
10368 # have problems creating the table of contents. If linking a library
10369 # or program results in "error TOC overflow" add -mminimal-toc to
10370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10374 hardcode_direct=yes
10375 hardcode_direct_absolute=yes
10376 hardcode_libdir_separator=':'
10377 link_all_deplibs=yes
10378 file_list_spec='${wl}-f,'
10380 if test "$GCC" = yes; then
10381 case $host_os in aix4.[012]|aix4.[012].*)
10382 # We only want to do this on AIX 4.2 and lower, the check
10383 # below for broken collect2 doesn't work under 4.3+
10384 collect2name=`${CC} -print-prog-name=collect2`
10385 if test -f "$collect2name" &&
10386 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10388 # We have reworked collect2
10391 # We have old collect2
10392 hardcode_direct=unsupported
10393 # It fails to find uninstalled libraries when the uninstalled
10394 # path is not listed in the libpath. Setting hardcode_minus_L
10395 # to unsupported forces relinking
10396 hardcode_minus_L=yes
10397 hardcode_libdir_flag_spec='-L$libdir'
10398 hardcode_libdir_separator=
10402 shared_flag='-shared'
10403 if test "$aix_use_runtimelinking" = yes; then
10404 shared_flag="$shared_flag "'${wl}-G'
10408 if test "$host_cpu" = ia64; then
10409 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10410 # chokes on -Wl,-G. The following line is correct:
10413 if test "$aix_use_runtimelinking" = yes; then
10414 shared_flag='${wl}-G'
10416 shared_flag='${wl}-bM:SRE'
10421 export_dynamic_flag_spec='${wl}-bexpall'
10422 # It seems that -bexpall does not export symbols beginning with
10423 # underscore (_), so it is better to generate a list of symbols to export.
10424 always_export_symbols=yes
10425 if test "$aix_use_runtimelinking" = yes; then
10426 # Warning - without using the other runtime loading flags (-brtl),
10427 # -berok will link without error, but may produce a broken library.
10428 allow_undefined_flag='-berok'
10429 # Determine the default libpath from the value encoded in an
10430 # empty executable.
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_link") 2>conftest.er1
10455 grep -v '^ *+' conftest.er1 >conftest.err
10457 cat conftest.err >&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest$ac_exeext &&
10463 $as_test_x conftest$ac_exeext; then
10465 lt_aix_libpath_sed='
10466 /Import File Strings/,/^$/ {
10472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10473 # Check for a 64-bit object if we didn't find anything.
10474 if test -z "$aix_libpath"; then
10475 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10478 echo "$as_me: failed program was:" >&5
10479 sed 's/^/| /' conftest.$ac_ext >&5
10484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10485 conftest$ac_exeext conftest.$ac_ext
10486 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10488 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10489 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"
10491 if test "$host_cpu" = ia64; then
10492 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10493 allow_undefined_flag="-z nodefs"
10494 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"
10496 # Determine the default libpath from the value encoded in an
10497 # empty executable.
10498 cat >conftest.$ac_ext <<_ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10517 *) ac_try_echo=$ac_try;;
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1 >conftest.err
10524 cat conftest.err >&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest$ac_exeext &&
10530 $as_test_x conftest$ac_exeext; then
10532 lt_aix_libpath_sed='
10533 /Import File Strings/,/^$/ {
10539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10540 # Check for a 64-bit object if we didn't find anything.
10541 if test -z "$aix_libpath"; then
10542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10552 conftest$ac_exeext conftest.$ac_ext
10553 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10555 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10556 # Warning - without using the other run time loading flags,
10557 # -berok will link without error, but may produce a broken library.
10558 no_undefined_flag=' ${wl}-bernotok'
10559 allow_undefined_flag=' ${wl}-berok'
10560 # Exported symbols can be pulled into shared objects from archives
10561 whole_archive_flag_spec='$convenience'
10562 archive_cmds_need_lc=yes
10563 # This is similar to how AIX traditionally builds its shared libraries.
10564 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'
10572 # see comment about AmigaOS4 .so support
10573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10574 archive_expsym_cmds=''
10577 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)'
10578 hardcode_libdir_flag_spec='-L$libdir'
10579 hardcode_minus_L=yes
10585 export_dynamic_flag_spec=-rdynamic
10588 cygwin* | mingw* | pw32* | cegcc*)
10589 # When not using gcc, we currently assume that we are using
10590 # Microsoft Visual C++.
10591 # hardcode_libdir_flag_spec is actually meaningless, as there is
10592 # no search path for DLLs.
10593 hardcode_libdir_flag_spec=' '
10594 allow_undefined_flag=unsupported
10595 # Tell ltmain to make .lib files, not .a files.
10597 # Tell ltmain to make .dll files, not .so files.
10599 # FIXME: Setting linknames here is a bad hack.
10600 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10601 # The linker will automatically build a .lib file if we build a DLL.
10602 old_archive_from_new_cmds='true'
10603 # FIXME: Should let the user specify the lib program.
10604 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10605 fix_srcfile_path='`cygpath -w "$srcfile"`'
10606 enable_shared_with_static_runtimes=yes
10609 darwin* | rhapsody*)
10612 archive_cmds_need_lc=no
10614 hardcode_automatic=yes
10615 hardcode_shlibpath_var=unsupported
10616 whole_archive_flag_spec=''
10617 link_all_deplibs=yes
10618 allow_undefined_flag="$_lt_dar_allow_undefined"
10619 case $cc_basename in
10620 ifort*) _lt_dar_can_shared=yes ;;
10621 *) _lt_dar_can_shared=$GCC ;;
10623 if test "$_lt_dar_can_shared" = "yes"; then
10624 output_verbose_link_cmd=echo
10625 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10626 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10627 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}"
10628 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}"
10637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10638 hardcode_libdir_flag_spec='-L$libdir'
10639 hardcode_shlibpath_var=no
10646 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10647 # support. Future versions do this automatically, but an explicit c++rt0.o
10648 # does not break anything, and helps significantly (at the cost of a little
10651 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10652 hardcode_libdir_flag_spec='-R$libdir'
10653 hardcode_direct=yes
10654 hardcode_shlibpath_var=no
10657 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10659 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10660 hardcode_direct=yes
10661 hardcode_minus_L=yes
10662 hardcode_shlibpath_var=no
10665 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10666 freebsd* | dragonfly*)
10667 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10668 hardcode_libdir_flag_spec='-R$libdir'
10669 hardcode_direct=yes
10670 hardcode_shlibpath_var=no
10674 if test "$GCC" = yes; then
10675 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'
10677 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'
10679 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10680 hardcode_libdir_separator=:
10681 hardcode_direct=yes
10683 # hardcode_minus_L: Not really in the search PATH,
10684 # but as the default location of the library.
10685 hardcode_minus_L=yes
10686 export_dynamic_flag_spec='${wl}-E'
10690 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10691 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10693 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10695 if test "$with_gnu_ld" = no; then
10696 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10697 hardcode_libdir_flag_spec_ld='+b $libdir'
10698 hardcode_libdir_separator=:
10699 hardcode_direct=yes
10700 hardcode_direct_absolute=yes
10701 export_dynamic_flag_spec='${wl}-E'
10702 # hardcode_minus_L: Not really in the search PATH,
10703 # but as the default location of the library.
10704 hardcode_minus_L=yes
10709 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10712 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10715 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10718 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10724 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10727 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10734 if test "$with_gnu_ld" = no; then
10735 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10736 hardcode_libdir_separator=:
10741 hardcode_shlibpath_var=no
10744 hardcode_direct=yes
10745 hardcode_direct_absolute=yes
10746 export_dynamic_flag_spec='${wl}-E'
10748 # hardcode_minus_L: Not really in the search PATH,
10749 # but as the default location of the library.
10750 hardcode_minus_L=yes
10756 irix5* | irix6* | nonstopux*)
10757 if test "$GCC" = yes; then
10758 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'
10759 # Try to use the -exported_symbol ld option, if it does not
10760 # work, assume that -exports_file does not work either and
10761 # implicitly export all symbols.
10762 save_LDFLAGS="$LDFLAGS"
10763 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10764 cat >conftest.$ac_ext <<_ACEOF
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (ac_try="$ac_link"
10769 case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_link") 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } && {
10781 test -z "$ac_c_werror_flag" ||
10782 test ! -s conftest.err
10783 } && test -s conftest$ac_exeext &&
10784 $as_test_x conftest$ac_exeext; then
10785 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'
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10795 conftest$ac_exeext conftest.$ac_ext
10796 LDFLAGS="$save_LDFLAGS"
10798 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'
10799 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'
10801 archive_cmds_need_lc='no'
10802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10803 hardcode_libdir_separator=:
10805 link_all_deplibs=yes
10809 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10810 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10812 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10814 hardcode_libdir_flag_spec='-R$libdir'
10815 hardcode_direct=yes
10816 hardcode_shlibpath_var=no
10820 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10821 hardcode_direct=yes
10822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10823 hardcode_libdir_separator=:
10824 hardcode_shlibpath_var=no
10831 if test -f /usr/libexec/ld.so; then
10832 hardcode_direct=yes
10833 hardcode_shlibpath_var=no
10834 hardcode_direct_absolute=yes
10835 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10837 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10838 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10839 export_dynamic_flag_spec='${wl}-E'
10842 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10844 hardcode_libdir_flag_spec='-R$libdir'
10847 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10848 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10858 hardcode_libdir_flag_spec='-L$libdir'
10859 hardcode_minus_L=yes
10860 allow_undefined_flag=unsupported
10861 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'
10862 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10866 if test "$GCC" = yes; then
10867 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10868 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'
10870 allow_undefined_flag=' -expect_unresolved \*'
10871 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'
10873 archive_cmds_need_lc='no'
10874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10875 hardcode_libdir_separator=:
10878 osf4* | osf5*) # as osf3* with the addition of -msym flag
10879 if test "$GCC" = yes; then
10880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10881 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'
10882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10884 allow_undefined_flag=' -expect_unresolved \*'
10885 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'
10886 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~
10887 $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'
10889 # Both c and cxx compiler support -rpath directly
10890 hardcode_libdir_flag_spec='-rpath $libdir'
10892 archive_cmds_need_lc='no'
10893 hardcode_libdir_separator=:
10897 no_undefined_flag=' -z defs'
10898 if test "$GCC" = yes; then
10900 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10901 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10902 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10904 case `$CC -V 2>&1` in
10907 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10908 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10909 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10913 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10914 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10915 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10919 hardcode_libdir_flag_spec='-R$libdir'
10920 hardcode_shlibpath_var=no
10922 solaris2.[0-5] | solaris2.[0-5].*) ;;
10924 # The compiler driver will combine and reorder linker options,
10925 # but understands `-z linker_flag'. GCC discards it without `$wl',
10926 # but is careful enough not to reorder.
10927 # Supported since Solaris 2.6 (maybe 2.5.1?)
10928 if test "$GCC" = yes; then
10929 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10931 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10935 link_all_deplibs=yes
10939 if test "x$host_vendor" = xsequent; then
10940 # Use $CC to link under sequent, because it throws in some extra .o
10941 # files that make .init and .fini sections work.
10942 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10944 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10946 hardcode_libdir_flag_spec='-L$libdir'
10947 hardcode_direct=yes
10948 hardcode_minus_L=yes
10949 hardcode_shlibpath_var=no
10953 case $host_vendor in
10955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10956 hardcode_direct=yes # is this really true???
10959 ## LD is ld it makes a PLAMLIB
10960 ## CC just makes a GrossModule.
10961 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10962 reload_cmds='$CC -r -o $output$reload_objs'
10966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10967 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10970 runpath_var='LD_RUN_PATH'
10971 hardcode_shlibpath_var=no
10975 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10976 hardcode_shlibpath_var=no
10977 export_dynamic_flag_spec='-Bexport'
10981 if test -d /usr/nec; then
10982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10983 hardcode_shlibpath_var=no
10984 runpath_var=LD_RUN_PATH
10985 hardcode_runpath_var=yes
10990 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10991 no_undefined_flag='${wl}-z,text'
10992 archive_cmds_need_lc=no
10993 hardcode_shlibpath_var=no
10994 runpath_var='LD_RUN_PATH'
10996 if test "$GCC" = yes; then
10997 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10998 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11000 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11001 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 sysv5* | sco3.2v5* | sco5v6*)
11006 # Note: We can NOT use -z defs as we might desire, because we do not
11007 # link with -lc, and that would cause any symbols used from libc to
11008 # always be unresolved, which means just about no library would
11009 # ever link correctly. If we're not using GNU ld we use -z text
11010 # though, which does catch some bad symbols but isn't as heavy-handed
11012 no_undefined_flag='${wl}-z,text'
11013 allow_undefined_flag='${wl}-z,nodefs'
11014 archive_cmds_need_lc=no
11015 hardcode_shlibpath_var=no
11016 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11017 hardcode_libdir_separator=':'
11018 link_all_deplibs=yes
11019 export_dynamic_flag_spec='${wl}-Bexport'
11020 runpath_var='LD_RUN_PATH'
11022 if test "$GCC" = yes; then
11023 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11024 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11026 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11027 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11033 hardcode_libdir_flag_spec='-L$libdir'
11034 hardcode_shlibpath_var=no
11042 if test x$host_vendor = xsni; then
11044 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11045 export_dynamic_flag_spec='${wl}-Blargedynsym'
11051 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11052 echo "${ECHO_T}$ld_shlibs" >&6; }
11053 test "$ld_shlibs" = no && can_build_shared=no
11055 with_gnu_ld=$with_gnu_ld
11072 # Do we need to explicitly link libc?
11074 case "x$archive_cmds_need_lc" in
11076 # Assume -lc should be added
11077 archive_cmds_need_lc=yes
11079 if test "$enable_shared" = yes && test "$GCC" = yes; then
11080 case $archive_cmds in
11082 # FIXME: we may have to deal with multi-command sequences.
11085 # Test whether the compiler implicitly links with -lc since on some
11086 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11087 # to ld, don't add -lc before -lgcc.
11088 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11089 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11091 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11094 (eval $ac_compile) 2>&5
11096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097 (exit $ac_status); } 2>conftest.err; then
11100 libobjs=conftest.$ac_objext
11102 wl=$lt_prog_compiler_wl
11103 pic_flag=$lt_prog_compiler_pic
11109 lt_save_allow_undefined_flag=$allow_undefined_flag
11110 allow_undefined_flag=
11111 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
11112 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); }
11117 archive_cmds_need_lc=no
11119 archive_cmds_need_lc=yes
11121 allow_undefined_flag=$lt_save_allow_undefined_flag
11123 cat conftest.err 1>&5
11126 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11127 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11290 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11291 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11293 if test "$GCC" = yes; then
11295 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11296 *) lt_awk_arg="/^libraries:/" ;;
11298 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11299 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11300 # if the path contains ";" then we assume it to be the separator
11301 # otherwise default to the standard path separator (i.e. ":") - it is
11302 # assumed that no part of a normal pathname contains ";" but that should
11303 # okay in the real world where ";" in dirpaths is itself problematic.
11304 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11306 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11308 # Ok, now we have the path, separated by spaces, we can step through it
11309 # and add multilib dir if necessary.
11310 lt_tmp_lt_search_path_spec=
11311 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11312 for lt_sys_path in $lt_search_path_spec; do
11313 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11314 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11316 test -d "$lt_sys_path" && \
11317 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11320 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11321 BEGIN {RS=" "; FS="/|\n";} {
11324 for (lt_i = NF; lt_i > 0; lt_i--) {
11325 if ($lt_i != "" && $lt_i != ".") {
11326 if ($lt_i == "..") {
11329 if (lt_count == 0) {
11330 lt_foo="/" $lt_i lt_foo;
11337 if (lt_foo != "") { lt_freq[lt_foo]++; }
11338 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11340 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11342 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11344 library_names_spec=
11345 libname_spec='lib$name'
11349 postuninstall_cmds=
11353 shlibpath_overrides_runpath=unknown
11355 dynamic_linker="$host_os ld.so"
11356 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11357 need_lib_prefix=unknown
11358 hardcode_into_libs=no
11360 # when you set need_version to no, make sure it does not cause -set_version
11361 # flags to be left without arguments
11362 need_version=unknown
11367 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11368 shlibpath_var=LIBPATH
11370 # AIX 3 has no versioning support, so we append a major version to the name.
11371 soname_spec='${libname}${release}${shared_ext}$major'
11378 hardcode_into_libs=yes
11379 if test "$host_cpu" = ia64; then
11380 # AIX 5 supports IA64
11381 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11382 shlibpath_var=LD_LIBRARY_PATH
11384 # With GCC up to 2.95.x, collect2 would create an import file
11385 # for dependence libraries. The import file would start with
11386 # the line `#! .'. This would cause the generated library to
11387 # depend on `.', always an invalid library. This was fixed in
11388 # development snapshots of GCC prior to 3.0.
11390 aix4 | aix4.[01] | aix4.[01].*)
11391 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11393 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11396 can_build_shared=no
11400 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11401 # soname into executable. Probably we can add versioning support to
11402 # collect2, so additional links can be useful in future.
11403 if test "$aix_use_runtimelinking" = yes; then
11404 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11405 # instead of lib<name>.a to let people know that these are not
11406 # typical AIX shared libraries.
11407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11409 # We preserve .a as extension for shared libraries through AIX4.2
11410 # and later when we are not doing run time linking.
11411 library_names_spec='${libname}${release}.a $libname.a'
11412 soname_spec='${libname}${release}${shared_ext}$major'
11414 shlibpath_var=LIBPATH
11421 # Since July 2007 AmigaOS4 officially supports .so libraries.
11422 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11426 library_names_spec='$libname.ixlibrary $libname.a'
11427 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11428 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'
11434 library_names_spec='${libname}${shared_ext}'
11435 dynamic_linker="$host_os ld.so"
11436 shlibpath_var=LIBRARY_PATH
11442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11443 soname_spec='${libname}${release}${shared_ext}$major'
11444 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11445 shlibpath_var=LD_LIBRARY_PATH
11446 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11447 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11448 # the default ld.so.conf also contains /usr/contrib/lib and
11449 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11450 # libtool to hard-code these into programs
11453 cygwin* | mingw* | pw32* | cegcc*)
11454 version_type=windows
11459 case $GCC,$host_os in
11460 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11461 library_names_spec='$libname.dll.a'
11462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11463 postinstall_cmds='base_file=`basename \${file}`~
11464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11465 dldir=$destdir/`dirname \$dlpath`~
11466 test -d \$dldir || mkdir -p \$dldir~
11467 $install_prog $dir/$dlname \$dldir/$dlname~
11468 chmod a+x \$dldir/$dlname~
11469 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11470 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11472 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11473 dlpath=$dir/\$dldll~
11475 shlibpath_overrides_runpath=yes
11479 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11480 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11481 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11484 # MinGW DLLs use traditional 'lib' prefix
11485 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11486 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11487 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11488 # It is most probably a Windows format PATH printed by
11489 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11490 # path with ; separators, and with drive letters. We can handle the
11491 # drive letters (cygwin fileutils understands them), so leave them,
11492 # especially as we might pass files found there to a mingw objdump,
11493 # which wouldn't understand a cygwinified path. Ahh.
11494 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11496 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11500 # pw32 DLLs use 'pw' prefix rather than 'lib'
11501 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11507 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11510 dynamic_linker='Win32 ld.exe'
11511 # FIXME: first we should search . and the directory the executable is in
11515 darwin* | rhapsody*)
11516 dynamic_linker="$host_os dyld"
11517 version_type=darwin
11520 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11521 soname_spec='${libname}${release}${major}$shared_ext'
11522 shlibpath_overrides_runpath=yes
11523 shlibpath_var=DYLD_LIBRARY_PATH
11524 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11526 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11527 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11535 soname_spec='${libname}${release}${shared_ext}$major'
11536 shlibpath_var=LD_LIBRARY_PATH
11543 freebsd* | dragonfly*)
11544 # DragonFly does not have aout. When/if they implement a new
11545 # versioning mechanism, adjust this.
11546 if test -x /usr/bin/objformat; then
11547 objformat=`/usr/bin/objformat`
11550 freebsd[123]*) objformat=aout ;;
11551 *) objformat=elf ;;
11554 version_type=freebsd-$objformat
11555 case $version_type in
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11566 shlibpath_var=LD_LIBRARY_PATH
11569 shlibpath_overrides_runpath=yes
11571 freebsd3.[01]* | freebsdelf3.[01]*)
11572 shlibpath_overrides_runpath=yes
11573 hardcode_into_libs=yes
11575 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11576 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11577 shlibpath_overrides_runpath=no
11578 hardcode_into_libs=yes
11580 *) # from 4.6 on, and DragonFly
11581 shlibpath_overrides_runpath=yes
11582 hardcode_into_libs=yes
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11592 soname_spec='${libname}${release}${shared_ext}$major'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 hardcode_into_libs=yes
11597 hpux9* | hpux10* | hpux11*)
11598 # Give a soname corresponding to the major version so that dld.sl refuses to
11599 # link against other versions.
11606 hardcode_into_libs=yes
11607 dynamic_linker="$host_os dld.so"
11608 shlibpath_var=LD_LIBRARY_PATH
11609 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11611 soname_spec='${libname}${release}${shared_ext}$major'
11612 if test "X$HPUX_IA64_MODE" = X32; then
11613 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11615 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11621 hardcode_into_libs=yes
11622 dynamic_linker="$host_os dld.sl"
11623 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11624 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626 soname_spec='${libname}${release}${shared_ext}$major'
11627 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11628 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11632 dynamic_linker="$host_os dld.sl"
11633 shlibpath_var=SHLIB_PATH
11634 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 soname_spec='${libname}${release}${shared_ext}$major'
11639 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11640 postinstall_cmds='chmod 555 $lib'
11647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11648 soname_spec='${libname}${release}${shared_ext}$major'
11649 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11650 shlibpath_var=LD_LIBRARY_PATH
11651 shlibpath_overrides_runpath=no
11652 hardcode_into_libs=yes
11655 irix5* | irix6* | nonstopux*)
11657 nonstopux*) version_type=nonstopux ;;
11659 if test "$lt_cv_prog_gnu_ld" = yes; then
11667 soname_spec='${libname}${release}${shared_ext}$major'
11668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11670 irix5* | nonstopux*)
11671 libsuff= shlibsuff=
11674 case $LD in # libtool.m4 will add one of these switches to LD
11675 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11676 libsuff= shlibsuff= libmagic=32-bit;;
11677 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11678 libsuff=32 shlibsuff=N32 libmagic=N32;;
11679 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11680 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11681 *) libsuff= shlibsuff= libmagic=never-match;;
11685 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11686 shlibpath_overrides_runpath=no
11687 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11688 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11689 hardcode_into_libs=yes
11692 # No shared lib support for Linux oldld, aout, or coff.
11693 linux*oldld* | linux*aout* | linux*coff*)
11697 # This must be Linux ELF.
11698 linux* | k*bsd*-gnu)
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703 soname_spec='${libname}${release}${shared_ext}$major'
11704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 shlibpath_overrides_runpath=no
11707 # Some binutils ld are patched to set DT_RUNPATH
11708 save_LDFLAGS=$LDFLAGS
11709 save_libdir=$libdir
11710 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11711 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11712 cat >conftest.$ac_ext <<_ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11727 rm -f conftest.$ac_objext conftest$ac_exeext
11728 if { (ac_try="$ac_link"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_link") 2>conftest.er1
11736 grep -v '^ *+' conftest.er1 >conftest.err
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } && {
11741 test -z "$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 } && test -s conftest$ac_exeext &&
11744 $as_test_x conftest$ac_exeext; then
11745 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11746 shlibpath_overrides_runpath=yes
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.$ac_ext >&5
11756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11757 conftest$ac_exeext conftest.$ac_ext
11758 LDFLAGS=$save_LDFLAGS
11759 libdir=$save_libdir
11761 # This implies no fast_install, which is unacceptable.
11762 # Some rework will be needed to allow for fast_install
11763 # before this can be enabled.
11764 hardcode_into_libs=yes
11766 # Append ld.so.conf contents to the search path
11767 if test -f /etc/ld.so.conf; then
11768 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' ' '`
11769 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11772 # We used to test for /lib/ld.so.1 and disable shared libraries on
11773 # powerpc, because MkLinux only supported shared libraries with the
11774 # GNU dynamic linker. Since this was broken with cross compilers,
11775 # most powerpc-linux boxes support dynamic linking these days and
11776 # people can always --disable-shared, the test was removed, and we
11777 # assume the GNU/Linux dynamic linker is in use.
11778 dynamic_linker='GNU/Linux ld.so'
11785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11788 dynamic_linker='NetBSD (a.out) ld.so'
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11791 soname_spec='${libname}${release}${shared_ext}$major'
11792 dynamic_linker='NetBSD ld.elf_so'
11794 shlibpath_var=LD_LIBRARY_PATH
11795 shlibpath_overrides_runpath=yes
11796 hardcode_into_libs=yes
11801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11802 shlibpath_var=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath=yes
11810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11811 soname_spec='${libname}${release}${shared_ext}$major'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 shlibpath_overrides_runpath=no
11814 hardcode_into_libs=yes
11815 dynamic_linker='ldqnx.so'
11820 sys_lib_dlsearch_path_spec="/usr/lib"
11822 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11824 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11825 *) need_version=no ;;
11827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11829 shlibpath_var=LD_LIBRARY_PATH
11830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11832 openbsd2.[89] | openbsd2.[89].*)
11833 shlibpath_overrides_runpath=no
11836 shlibpath_overrides_runpath=yes
11840 shlibpath_overrides_runpath=yes
11845 libname_spec='$name'
11848 library_names_spec='$libname${shared_ext} $libname.a'
11849 dynamic_linker='OS/2 ld.exe'
11850 shlibpath_var=LIBPATH
11853 osf3* | osf4* | osf5*)
11857 soname_spec='${libname}${release}${shared_ext}$major'
11858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11859 shlibpath_var=LD_LIBRARY_PATH
11860 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11861 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11873 soname_spec='${libname}${release}${shared_ext}$major'
11874 shlibpath_var=LD_LIBRARY_PATH
11875 shlibpath_overrides_runpath=yes
11876 hardcode_into_libs=yes
11877 # ldd complains unless libraries are executable
11878 postinstall_cmds='chmod +x $lib'
11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11885 shlibpath_var=LD_LIBRARY_PATH
11886 shlibpath_overrides_runpath=yes
11887 if test "$with_gnu_ld" = yes; then
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11896 soname_spec='${libname}${release}${shared_ext}$major'
11897 shlibpath_var=LD_LIBRARY_PATH
11898 case $host_vendor in
11900 shlibpath_overrides_runpath=no
11902 runpath_var=LD_RUN_PATH
11910 shlibpath_overrides_runpath=no
11911 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11917 if test -d /usr/nec ;then
11919 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11920 soname_spec='$libname${shared_ext}.$major'
11921 shlibpath_var=LD_LIBRARY_PATH
11925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11926 version_type=freebsd-elf
11929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11930 soname_spec='${libname}${release}${shared_ext}$major'
11931 shlibpath_var=LD_LIBRARY_PATH
11932 shlibpath_overrides_runpath=yes
11933 hardcode_into_libs=yes
11934 if test "$with_gnu_ld" = yes; then
11935 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11937 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11940 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11944 sys_lib_dlsearch_path_spec='/usr/lib'
11948 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953 shlibpath_var=LD_LIBRARY_PATH
11954 shlibpath_overrides_runpath=no
11955 hardcode_into_libs=yes
11960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11961 soname_spec='${libname}${release}${shared_ext}$major'
11962 shlibpath_var=LD_LIBRARY_PATH
11969 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11970 echo "${ECHO_T}$dynamic_linker" >&6; }
11971 test "$dynamic_linker" = no && can_build_shared=no
11973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11974 if test "$GCC" = yes; then
11975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11978 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11979 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11981 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11982 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12071 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12072 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12074 if test -n "$hardcode_libdir_flag_spec" ||
12075 test -n "$runpath_var" ||
12076 test "X$hardcode_automatic" = "Xyes" ; then
12078 # We can hardcode non-existent directories.
12079 if test "$hardcode_direct" != no &&
12080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12081 # have to relink, otherwise we might link with an installed library
12082 # when we should be linking with a yet-to-be-installed one
12083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12084 test "$hardcode_minus_L" != no; then
12085 # Linking always hardcodes the temporary library directory.
12086 hardcode_action=relink
12088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12089 hardcode_action=immediate
12092 # We cannot hardcode anything, or else we can only hardcode existing
12094 hardcode_action=unsupported
12096 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
12097 echo "${ECHO_T}$hardcode_action" >&6; }
12099 if test "$hardcode_action" = relink ||
12100 test "$inherit_rpath" = yes; then
12101 # Fast installation is not supported
12102 enable_fast_install=no
12103 elif test "$shlibpath_overrides_runpath" = yes ||
12104 test "$enable_shared" = no; then
12105 # Fast installation is not necessary
12106 enable_fast_install=needless
12114 if test "x$enable_dlopen" != xyes; then
12115 enable_dlopen=unknown
12116 enable_dlopen_self=unknown
12117 enable_dlopen_self_static=unknown
12124 lt_cv_dlopen="load_add_on"
12126 lt_cv_dlopen_self=yes
12129 mingw* | pw32* | cegcc*)
12130 lt_cv_dlopen="LoadLibrary"
12135 lt_cv_dlopen="dlopen"
12140 # if libdl is installed we need to link against it
12141 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12142 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12143 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12144 echo $ECHO_N "(cached) $ECHO_C" >&6
12146 ac_check_lib_save_LIBS=$LIBS
12148 cat >conftest.$ac_ext <<_ACEOF
12151 cat confdefs.h >>conftest.$ac_ext
12152 cat >>conftest.$ac_ext <<_ACEOF
12153 /* end confdefs.h. */
12155 /* Override any GCC internal prototype to avoid an error.
12156 Use char because int might match the return type of a GCC
12157 builtin and then its argument prototype would still apply. */
12170 rm -f conftest.$ac_objext conftest$ac_exeext
12171 if { (ac_try="$ac_link"
12172 case "(($ac_try" in
12173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12174 *) ac_try_echo=$ac_try;;
12176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12177 (eval "$ac_link") 2>conftest.er1
12179 grep -v '^ *+' conftest.er1 >conftest.err
12181 cat conftest.err >&5
12182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12183 (exit $ac_status); } && {
12184 test -z "$ac_c_werror_flag" ||
12185 test ! -s conftest.err
12186 } && test -s conftest$ac_exeext &&
12187 $as_test_x conftest$ac_exeext; then
12188 ac_cv_lib_dl_dlopen=yes
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 ac_cv_lib_dl_dlopen=no
12196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12197 conftest$ac_exeext conftest.$ac_ext
12198 LIBS=$ac_check_lib_save_LIBS
12200 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12201 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12202 if test $ac_cv_lib_dl_dlopen = yes; then
12203 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12206 lt_cv_dlopen="dyld"
12208 lt_cv_dlopen_self=yes
12215 { echo "$as_me:$LINENO: checking for shl_load" >&5
12216 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12217 if test "${ac_cv_func_shl_load+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 cat >conftest.$ac_ext <<_ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12228 #define shl_load innocuous_shl_load
12230 /* System header to define __stub macros and hopefully few prototypes,
12231 which can conflict with char shl_load (); below.
12232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12233 <limits.h> exists even on freestanding compilers. */
12236 # include <limits.h>
12238 # include <assert.h>
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12250 /* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253 #if defined __stub_shl_load || defined __stub___shl_load
12260 return shl_load ();
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest$ac_exeext &&
12282 $as_test_x conftest$ac_exeext; then
12283 ac_cv_func_shl_load=yes
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.$ac_ext >&5
12288 ac_cv_func_shl_load=no
12291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12292 conftest$ac_exeext conftest.$ac_ext
12294 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12295 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12296 if test $ac_cv_func_shl_load = yes; then
12297 lt_cv_dlopen="shl_load"
12299 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12300 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12301 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12302 echo $ECHO_N "(cached) $ECHO_C" >&6
12304 ac_check_lib_save_LIBS=$LIBS
12306 cat >conftest.$ac_ext <<_ACEOF
12309 cat confdefs.h >>conftest.$ac_ext
12310 cat >>conftest.$ac_ext <<_ACEOF
12311 /* end confdefs.h. */
12313 /* Override any GCC internal prototype to avoid an error.
12314 Use char because int might match the return type of a GCC
12315 builtin and then its argument prototype would still apply. */
12323 return shl_load ();
12328 rm -f conftest.$ac_objext conftest$ac_exeext
12329 if { (ac_try="$ac_link"
12330 case "(($ac_try" in
12331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12332 *) ac_try_echo=$ac_try;;
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_link") 2>conftest.er1
12337 grep -v '^ *+' conftest.er1 >conftest.err
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } && {
12342 test -z "$ac_c_werror_flag" ||
12343 test ! -s conftest.err
12344 } && test -s conftest$ac_exeext &&
12345 $as_test_x conftest$ac_exeext; then
12346 ac_cv_lib_dld_shl_load=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 ac_cv_lib_dld_shl_load=no
12354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12355 conftest$ac_exeext conftest.$ac_ext
12356 LIBS=$ac_check_lib_save_LIBS
12358 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12359 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12360 if test $ac_cv_lib_dld_shl_load = yes; then
12361 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12363 { echo "$as_me:$LINENO: checking for dlopen" >&5
12364 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12365 if test "${ac_cv_func_dlopen+set}" = set; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 cat >conftest.$ac_ext <<_ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12374 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12376 #define dlopen innocuous_dlopen
12378 /* System header to define __stub macros and hopefully few prototypes,
12379 which can conflict with char dlopen (); below.
12380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12381 <limits.h> exists even on freestanding compilers. */
12384 # include <limits.h>
12386 # include <assert.h>
12391 /* Override any GCC internal prototype to avoid an error.
12392 Use char because int might match the return type of a GCC
12393 builtin and then its argument prototype would still apply. */
12398 /* The GNU C library defines this for functions which it implements
12399 to always fail with ENOSYS. Some functions are actually named
12400 something starting with __ and the normal name is an alias. */
12401 #if defined __stub_dlopen || defined __stub___dlopen
12413 rm -f conftest.$ac_objext conftest$ac_exeext
12414 if { (ac_try="$ac_link"
12415 case "(($ac_try" in
12416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_link") 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest$ac_exeext &&
12430 $as_test_x conftest$ac_exeext; then
12431 ac_cv_func_dlopen=yes
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_cv_func_dlopen=no
12439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12440 conftest$ac_exeext conftest.$ac_ext
12442 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12443 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12444 if test $ac_cv_func_dlopen = yes; then
12445 lt_cv_dlopen="dlopen"
12447 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12448 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12449 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12450 echo $ECHO_N "(cached) $ECHO_C" >&6
12452 ac_check_lib_save_LIBS=$LIBS
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12461 /* Override any GCC internal prototype to avoid an error.
12462 Use char because int might match the return type of a GCC
12463 builtin and then its argument prototype would still apply. */
12476 rm -f conftest.$ac_objext conftest$ac_exeext
12477 if { (ac_try="$ac_link"
12478 case "(($ac_try" in
12479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12480 *) ac_try_echo=$ac_try;;
12482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12483 (eval "$ac_link") 2>conftest.er1
12485 grep -v '^ *+' conftest.er1 >conftest.err
12487 cat conftest.err >&5
12488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12489 (exit $ac_status); } && {
12490 test -z "$ac_c_werror_flag" ||
12491 test ! -s conftest.err
12492 } && test -s conftest$ac_exeext &&
12493 $as_test_x conftest$ac_exeext; then
12494 ac_cv_lib_dl_dlopen=yes
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_cv_lib_dl_dlopen=no
12502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12503 conftest$ac_exeext conftest.$ac_ext
12504 LIBS=$ac_check_lib_save_LIBS
12506 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12507 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12508 if test $ac_cv_lib_dl_dlopen = yes; then
12509 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12511 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12512 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12513 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12514 echo $ECHO_N "(cached) $ECHO_C" >&6
12516 ac_check_lib_save_LIBS=$LIBS
12517 LIBS="-lsvld $LIBS"
12518 cat >conftest.$ac_ext <<_ACEOF
12521 cat confdefs.h >>conftest.$ac_ext
12522 cat >>conftest.$ac_ext <<_ACEOF
12523 /* end confdefs.h. */
12525 /* Override any GCC internal prototype to avoid an error.
12526 Use char because int might match the return type of a GCC
12527 builtin and then its argument prototype would still apply. */
12540 rm -f conftest.$ac_objext conftest$ac_exeext
12541 if { (ac_try="$ac_link"
12542 case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_link") 2>conftest.er1
12549 grep -v '^ *+' conftest.er1 >conftest.err
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } && {
12554 test -z "$ac_c_werror_flag" ||
12555 test ! -s conftest.err
12556 } && test -s conftest$ac_exeext &&
12557 $as_test_x conftest$ac_exeext; then
12558 ac_cv_lib_svld_dlopen=yes
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ac_cv_lib_svld_dlopen=no
12566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12567 conftest$ac_exeext conftest.$ac_ext
12568 LIBS=$ac_check_lib_save_LIBS
12570 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12571 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12572 if test $ac_cv_lib_svld_dlopen = yes; then
12573 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12575 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12576 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12577 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12580 ac_check_lib_save_LIBS=$LIBS
12582 cat >conftest.$ac_ext <<_ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12589 /* Override any GCC internal prototype to avoid an error.
12590 Use char because int might match the return type of a GCC
12591 builtin and then its argument prototype would still apply. */
12599 return dld_link ();
12604 rm -f conftest.$ac_objext conftest$ac_exeext
12605 if { (ac_try="$ac_link"
12606 case "(($ac_try" in
12607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12608 *) ac_try_echo=$ac_try;;
12610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12611 (eval "$ac_link") 2>conftest.er1
12613 grep -v '^ *+' conftest.er1 >conftest.err
12615 cat conftest.err >&5
12616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12617 (exit $ac_status); } && {
12618 test -z "$ac_c_werror_flag" ||
12619 test ! -s conftest.err
12620 } && test -s conftest$ac_exeext &&
12621 $as_test_x conftest$ac_exeext; then
12622 ac_cv_lib_dld_dld_link=yes
12624 echo "$as_me: failed program was:" >&5
12625 sed 's/^/| /' conftest.$ac_ext >&5
12627 ac_cv_lib_dld_dld_link=no
12630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12631 conftest$ac_exeext conftest.$ac_ext
12632 LIBS=$ac_check_lib_save_LIBS
12634 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12635 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12636 if test $ac_cv_lib_dld_dld_link = yes; then
12637 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12658 if test "x$lt_cv_dlopen" != xno; then
12664 case $lt_cv_dlopen in
12666 save_CPPFLAGS="$CPPFLAGS"
12667 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12669 save_LDFLAGS="$LDFLAGS"
12670 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12673 LIBS="$lt_cv_dlopen_libs $LIBS"
12675 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12676 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12677 if test "${lt_cv_dlopen_self+set}" = set; then
12678 echo $ECHO_N "(cached) $ECHO_C" >&6
12680 if test "$cross_compiling" = yes; then :
12681 lt_cv_dlopen_self=cross
12683 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12684 lt_status=$lt_dlunknown
12685 cat > conftest.$ac_ext <<_LT_EOF
12686 #line 12686 "configure"
12687 #include "confdefs.h"
12696 # define LT_DLGLOBAL RTLD_GLOBAL
12699 # define LT_DLGLOBAL DL_GLOBAL
12701 # define LT_DLGLOBAL 0
12705 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12706 find out it does not work in some platform. */
12707 #ifndef LT_DLLAZY_OR_NOW
12709 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12712 # define LT_DLLAZY_OR_NOW DL_LAZY
12715 # define LT_DLLAZY_OR_NOW RTLD_NOW
12718 # define LT_DLLAZY_OR_NOW DL_NOW
12720 # define LT_DLLAZY_OR_NOW 0
12727 void fnord() { int i=42;}
12730 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12731 int status = $lt_dlunknown;
12735 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12736 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12737 /* dlclose (self); */
12745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12746 (eval $ac_link) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12750 (./conftest; exit; ) >&5 2>/dev/null
12752 case x$lt_status in
12753 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12754 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12755 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12758 # compilation failed
12759 lt_cv_dlopen_self=no
12766 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12767 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12769 if test "x$lt_cv_dlopen_self" = xyes; then
12770 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12771 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12772 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12773 if test "${lt_cv_dlopen_self_static+set}" = set; then
12774 echo $ECHO_N "(cached) $ECHO_C" >&6
12776 if test "$cross_compiling" = yes; then :
12777 lt_cv_dlopen_self_static=cross
12779 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12780 lt_status=$lt_dlunknown
12781 cat > conftest.$ac_ext <<_LT_EOF
12782 #line 12782 "configure"
12783 #include "confdefs.h"
12792 # define LT_DLGLOBAL RTLD_GLOBAL
12795 # define LT_DLGLOBAL DL_GLOBAL
12797 # define LT_DLGLOBAL 0
12801 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12802 find out it does not work in some platform. */
12803 #ifndef LT_DLLAZY_OR_NOW
12805 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12808 # define LT_DLLAZY_OR_NOW DL_LAZY
12811 # define LT_DLLAZY_OR_NOW RTLD_NOW
12814 # define LT_DLLAZY_OR_NOW DL_NOW
12816 # define LT_DLLAZY_OR_NOW 0
12823 void fnord() { int i=42;}
12826 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12827 int status = $lt_dlunknown;
12831 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12832 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12833 /* dlclose (self); */
12841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12842 (eval $ac_link) 2>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12846 (./conftest; exit; ) >&5 2>/dev/null
12848 case x$lt_status in
12849 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12850 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12851 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12854 # compilation failed
12855 lt_cv_dlopen_self_static=no
12862 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12863 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12866 CPPFLAGS="$save_CPPFLAGS"
12867 LDFLAGS="$save_LDFLAGS"
12872 case $lt_cv_dlopen_self in
12873 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12874 *) enable_dlopen_self=unknown ;;
12877 case $lt_cv_dlopen_self_static in
12878 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12879 *) enable_dlopen_self_static=unknown ;;
12901 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12902 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12903 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12904 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12905 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12906 { echo "$as_me:$LINENO: result: yes" >&5
12907 echo "${ECHO_T}yes" >&6; }
12909 # FIXME - insert some real tests, host_os isn't really good enough
12912 if test -n "$STRIP" ; then
12913 striplib="$STRIP -x"
12914 old_striplib="$STRIP -S"
12915 { echo "$as_me:$LINENO: result: yes" >&5
12916 echo "${ECHO_T}yes" >&6; }
12918 { echo "$as_me:$LINENO: result: no" >&5
12919 echo "${ECHO_T}no" >&6; }
12923 { echo "$as_me:$LINENO: result: no" >&5
12924 echo "${ECHO_T}no" >&6; }
12940 # Report which library types will actually be built
12941 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12942 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12943 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
12944 echo "${ECHO_T}$can_build_shared" >&6; }
12946 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12947 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12948 test "$can_build_shared" = "no" && enable_shared=no
12950 # On AIX, shared libraries and static libraries use the same namespace, and
12951 # are all built from PIC.
12954 test "$enable_shared" = yes && enable_static=no
12955 if test -n "$RANLIB"; then
12956 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12957 postinstall_cmds='$RANLIB $lib'
12962 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12963 test "$enable_shared" = yes && enable_static=no
12967 { echo "$as_me:$LINENO: result: $enable_shared" >&5
12968 echo "${ECHO_T}$enable_shared" >&6; }
12970 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12971 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12972 # Make sure either enable_shared or enable_static is yes.
12973 test "$enable_shared" = yes || enable_static=yes
12974 { echo "$as_me:$LINENO: result: $enable_static" >&5
12975 echo "${ECHO_T}$enable_static" >&6; }
12982 ac_cpp='$CPP $CPPFLAGS'
12983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12991 ac_cpp='$CXXCPP $CPPFLAGS'
12992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12996 archive_cmds_need_lc_CXX=no
12997 allow_undefined_flag_CXX=
12998 always_export_symbols_CXX=no
12999 archive_expsym_cmds_CXX=
13000 compiler_needs_object_CXX=no
13001 export_dynamic_flag_spec_CXX=
13002 hardcode_direct_CXX=no
13003 hardcode_direct_absolute_CXX=no
13004 hardcode_libdir_flag_spec_CXX=
13005 hardcode_libdir_flag_spec_ld_CXX=
13006 hardcode_libdir_separator_CXX=
13007 hardcode_minus_L_CXX=no
13008 hardcode_shlibpath_var_CXX=unsupported
13009 hardcode_automatic_CXX=no
13010 inherit_rpath_CXX=no
13012 module_expsym_cmds_CXX=
13013 link_all_deplibs_CXX=unknown
13014 old_archive_cmds_CXX=$old_archive_cmds
13015 no_undefined_flag_CXX=
13016 whole_archive_flag_spec_CXX=
13017 enable_shared_with_static_runtimes_CXX=no
13019 # Source file extension for C++ test sources.
13022 # Object file extension for compiled C++ test sources.
13026 # No sense in running all these tests if we already determined that
13027 # the CXX compiler isn't working. Some variables (like enable_shared)
13028 # are currently assumed to apply to all compilers on this platform,
13029 # and will be corrupted by setting them based on a non-working compiler.
13030 if test "$_lt_caught_CXX_error" != yes; then
13031 # Code to be used in simple compile tests
13032 lt_simple_compile_test_code="int some_variable = 0;"
13034 # Code to be used in simple link tests
13035 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13037 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13044 # If no C compiler was specified, use CC.
13047 # If no C compiler flags were specified, use CFLAGS.
13048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13050 # Allow CC to be a program name with arguments.
13054 # save warnings/boilerplate of simple test code
13055 ac_outfile=conftest.$ac_objext
13056 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13057 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13058 _lt_compiler_boilerplate=`cat conftest.err`
13061 ac_outfile=conftest.$ac_objext
13062 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13063 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13064 _lt_linker_boilerplate=`cat conftest.err`
13068 # Allow CC to be a program name with arguments.
13073 lt_save_with_gnu_ld=$with_gnu_ld
13074 lt_save_path_LD=$lt_cv_path_LD
13075 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13076 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13078 $as_unset lt_cv_prog_gnu_ld
13080 if test -n "${lt_cv_path_LDCXX+set}"; then
13081 lt_cv_path_LD=$lt_cv_path_LDCXX
13083 $as_unset lt_cv_path_LD
13085 test -z "${LDCXX+set}" || LD=$LDCXX
13089 for cc_temp in $compiler""; do
13091 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13092 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13097 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13100 if test -n "$compiler"; then
13101 # We don't want -fno-exception when compiling C++ code, so set the
13102 # no_builtin_flag separately
13103 if test "$GXX" = yes; then
13104 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13106 lt_prog_compiler_no_builtin_flag_CXX=
13109 if test "$GXX" = yes; then
13110 # Set up default GNU C++ configuration
13114 # Check whether --with-gnu-ld was given.
13115 if test "${with_gnu_ld+set}" = set; then
13116 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13122 if test "$GCC" = yes; then
13123 # Check if gcc -print-prog-name=ld gives a path.
13124 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13125 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13128 # gcc leaves a trailing carriage return which upsets mingw
13129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13134 # Accept absolute paths.
13136 re_direlt='/[^/][^/]*/\.\./'
13137 # Canonicalize the pathname of ld
13138 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13139 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13140 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13142 test -z "$LD" && LD="$ac_prog"
13145 # If it fails, then pretend we aren't using GCC.
13149 # If it is relative, then search for the first ld in PATH.
13150 with_gnu_ld=unknown
13153 elif test "$with_gnu_ld" = yes; then
13154 { echo "$as_me:$LINENO: checking for GNU ld" >&5
13155 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13157 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13158 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13160 if test "${lt_cv_path_LD+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 if test -z "$LD"; then
13164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13165 for ac_dir in $PATH; do
13167 test -z "$ac_dir" && ac_dir=.
13168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13169 lt_cv_path_LD="$ac_dir/$ac_prog"
13170 # Check to see if the program is GNU ld. I'd rather use --version,
13171 # but apparently some variants of GNU ld only accept -v.
13172 # Break only if it was the GNU/non-GNU ld that we prefer.
13173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13174 *GNU* | *'with BFD'*)
13175 test "$with_gnu_ld" != no && break
13178 test "$with_gnu_ld" != yes && break
13185 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13189 LD="$lt_cv_path_LD"
13190 if test -n "$LD"; then
13191 { echo "$as_me:$LINENO: result: $LD" >&5
13192 echo "${ECHO_T}$LD" >&6; }
13194 { echo "$as_me:$LINENO: result: no" >&5
13195 echo "${ECHO_T}no" >&6; }
13197 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13198 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13199 { (exit 1); exit 1; }; }
13200 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13201 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13202 if test "${lt_cv_prog_gnu_ld+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13206 case `$LD -v 2>&1 </dev/null` in
13207 *GNU* | *'with BFD'*)
13208 lt_cv_prog_gnu_ld=yes
13211 lt_cv_prog_gnu_ld=no
13215 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13216 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13217 with_gnu_ld=$lt_cv_prog_gnu_ld
13225 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13226 # archiving commands below assume that GNU ld is being used.
13227 if test "$with_gnu_ld" = yes; then
13228 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13229 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'
13231 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13232 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13234 # If archive_cmds runs LD, not CC, wlarc should be empty
13235 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13236 # investigate it a little bit more. (MM)
13239 # ancient GNU ld didn't support --whole-archive et. al.
13240 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13241 $GREP 'no-whole-archive' > /dev/null; then
13242 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13244 whole_archive_flag_spec_CXX=
13250 # A generic and very simple default shared library creation
13251 # command for GNU C++ for the case where it uses the native
13252 # linker, instead of GNU ld. If possible, this setting should
13253 # overridden to take advantage of the native linker features on
13254 # the platform it is being used on.
13255 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13258 # Commands to make compiler produce verbose output that lists
13259 # what "hidden" libraries, object files and flags are used when
13260 # linking a shared library.
13261 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13269 # PORTME: fill in a description of your system's C++ link characteristics
13270 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13271 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13275 # FIXME: insert proper C++ library support
13279 if test "$host_cpu" = ia64; then
13280 # On IA64, the linker does run time linking by default, so we don't
13281 # have to do anything special.
13282 aix_use_runtimelinking=no
13283 exp_sym_flag='-Bexport'
13286 aix_use_runtimelinking=no
13288 # Test if we are trying to use run time linking or normal
13289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13290 # need to do runtime linking.
13291 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13292 for ld_flag in $LDFLAGS; do
13295 aix_use_runtimelinking=yes
13303 exp_sym_flag='-bexport'
13304 no_entry_flag='-bnoentry'
13307 # When large executables or shared objects are built, AIX ld can
13308 # have problems creating the table of contents. If linking a library
13309 # or program results in "error TOC overflow" add -mminimal-toc to
13310 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13311 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13313 archive_cmds_CXX=''
13314 hardcode_direct_CXX=yes
13315 hardcode_direct_absolute_CXX=yes
13316 hardcode_libdir_separator_CXX=':'
13317 link_all_deplibs_CXX=yes
13318 file_list_spec_CXX='${wl}-f,'
13320 if test "$GXX" = yes; then
13321 case $host_os in aix4.[012]|aix4.[012].*)
13322 # We only want to do this on AIX 4.2 and lower, the check
13323 # below for broken collect2 doesn't work under 4.3+
13324 collect2name=`${CC} -print-prog-name=collect2`
13325 if test -f "$collect2name" &&
13326 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13328 # We have reworked collect2
13331 # We have old collect2
13332 hardcode_direct_CXX=unsupported
13333 # It fails to find uninstalled libraries when the uninstalled
13334 # path is not listed in the libpath. Setting hardcode_minus_L
13335 # to unsupported forces relinking
13336 hardcode_minus_L_CXX=yes
13337 hardcode_libdir_flag_spec_CXX='-L$libdir'
13338 hardcode_libdir_separator_CXX=
13341 shared_flag='-shared'
13342 if test "$aix_use_runtimelinking" = yes; then
13343 shared_flag="$shared_flag "'${wl}-G'
13347 if test "$host_cpu" = ia64; then
13348 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13349 # chokes on -Wl,-G. The following line is correct:
13352 if test "$aix_use_runtimelinking" = yes; then
13353 shared_flag='${wl}-G'
13355 shared_flag='${wl}-bM:SRE'
13360 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13361 # It seems that -bexpall does not export symbols beginning with
13362 # underscore (_), so it is better to generate a list of symbols to
13364 always_export_symbols_CXX=yes
13365 if test "$aix_use_runtimelinking" = yes; then
13366 # Warning - without using the other runtime loading flags (-brtl),
13367 # -berok will link without error, but may produce a broken library.
13368 allow_undefined_flag_CXX='-berok'
13369 # Determine the default libpath from the value encoded in an empty
13371 cat >conftest.$ac_ext <<_ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (ac_try="$ac_link"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_link") 2>conftest.er1
13395 grep -v '^ *+' conftest.er1 >conftest.err
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } && {
13400 test -z "$ac_cxx_werror_flag" ||
13401 test ! -s conftest.err
13402 } && test -s conftest$ac_exeext &&
13403 $as_test_x conftest$ac_exeext; then
13405 lt_aix_libpath_sed='
13406 /Import File Strings/,/^$/ {
13412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13413 # Check for a 64-bit object if we didn't find anything.
13414 if test -z "$aix_libpath"; then
13415 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13425 conftest$ac_exeext conftest.$ac_ext
13426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13428 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13430 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"
13432 if test "$host_cpu" = ia64; then
13433 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13434 allow_undefined_flag_CXX="-z nodefs"
13435 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"
13437 # Determine the default libpath from the value encoded in an
13438 # empty executable.
13439 cat >conftest.$ac_ext <<_ACEOF
13442 cat confdefs.h >>conftest.$ac_ext
13443 cat >>conftest.$ac_ext <<_ACEOF
13444 /* end confdefs.h. */
13454 rm -f conftest.$ac_objext conftest$ac_exeext
13455 if { (ac_try="$ac_link"
13456 case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_link") 2>conftest.er1
13463 grep -v '^ *+' conftest.er1 >conftest.err
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && {
13468 test -z "$ac_cxx_werror_flag" ||
13469 test ! -s conftest.err
13470 } && test -s conftest$ac_exeext &&
13471 $as_test_x conftest$ac_exeext; then
13473 lt_aix_libpath_sed='
13474 /Import File Strings/,/^$/ {
13480 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13481 # Check for a 64-bit object if we didn't find anything.
13482 if test -z "$aix_libpath"; then
13483 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13493 conftest$ac_exeext conftest.$ac_ext
13494 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13496 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13497 # Warning - without using the other run time loading flags,
13498 # -berok will link without error, but may produce a broken library.
13499 no_undefined_flag_CXX=' ${wl}-bernotok'
13500 allow_undefined_flag_CXX=' ${wl}-berok'
13501 # Exported symbols can be pulled into shared objects from archives
13502 whole_archive_flag_spec_CXX='$convenience'
13503 archive_cmds_need_lc_CXX=yes
13504 # This is similar to how AIX traditionally builds its shared
13506 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'
13512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13513 allow_undefined_flag_CXX=unsupported
13514 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13515 # support --undefined. This deserves some investigation. FIXME
13516 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13523 case $cc_basename in
13525 # FIXME: insert proper C++ library support
13531 cygwin* | mingw* | pw32* | cegcc*)
13532 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13533 # as there is no search path for DLLs.
13534 hardcode_libdir_flag_spec_CXX='-L$libdir'
13535 allow_undefined_flag_CXX=unsupported
13536 always_export_symbols_CXX=no
13537 enable_shared_with_static_runtimes_CXX=yes
13539 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13540 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'
13541 # If the export-symbols file already is a .def file (1st line
13542 # is EXPORTS), use it as is; otherwise, prepend...
13543 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13544 cp $export_symbols $output_objdir/$soname.def;
13546 echo EXPORTS > $output_objdir/$soname.def;
13547 cat $export_symbols >> $output_objdir/$soname.def;
13549 $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'
13554 darwin* | rhapsody*)
13557 archive_cmds_need_lc_CXX=no
13558 hardcode_direct_CXX=no
13559 hardcode_automatic_CXX=yes
13560 hardcode_shlibpath_var_CXX=unsupported
13561 whole_archive_flag_spec_CXX=''
13562 link_all_deplibs_CXX=yes
13563 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13564 case $cc_basename in
13565 ifort*) _lt_dar_can_shared=yes ;;
13566 *) _lt_dar_can_shared=$GCC ;;
13568 if test "$_lt_dar_can_shared" = "yes"; then
13569 output_verbose_link_cmd=echo
13570 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}"
13571 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13572 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}"
13573 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}"
13574 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13575 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}"
13576 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}"
13586 case $cc_basename in
13588 # FIXME: insert proper C++ library support
13592 # Green Hills C++ Compiler
13593 # FIXME: insert proper C++ library support
13597 # FIXME: insert proper C++ library support
13604 # C++ shared libraries reported to be fairly broken before
13610 archive_cmds_need_lc_CXX=no
13613 freebsd* | dragonfly*)
13614 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13624 hardcode_libdir_separator_CXX=:
13625 export_dynamic_flag_spec_CXX='${wl}-E'
13626 hardcode_direct_CXX=yes
13627 hardcode_minus_L_CXX=yes # Not in the search PATH,
13628 # but as the default
13629 # location of the library.
13631 case $cc_basename in
13633 # FIXME: insert proper C++ library support
13637 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'
13638 # Commands to make compiler produce verbose output that lists
13639 # what "hidden" libraries, object files and flags are used when
13640 # linking a shared library.
13642 # There doesn't appear to be a way to prevent this compiler from
13643 # explicitly linking system object files so we need to strip them
13644 # from the output so that they don't get included in the library
13646 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'
13649 if test "$GXX" = yes; then
13650 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'
13652 # FIXME: insert proper C++ library support
13660 if test $with_gnu_ld = no; then
13661 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13662 hardcode_libdir_separator_CXX=:
13668 export_dynamic_flag_spec_CXX='${wl}-E'
13674 hardcode_direct_CXX=no
13675 hardcode_shlibpath_var_CXX=no
13678 hardcode_direct_CXX=yes
13679 hardcode_direct_absolute_CXX=yes
13680 hardcode_minus_L_CXX=yes # Not in the search PATH,
13681 # but as the default
13682 # location of the library.
13686 case $cc_basename in
13688 # FIXME: insert proper C++ library support
13694 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13697 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13700 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13703 # Commands to make compiler produce verbose output that lists
13704 # what "hidden" libraries, object files and flags are used when
13705 # linking a shared library.
13707 # There doesn't appear to be a way to prevent this compiler from
13708 # explicitly linking system object files so we need to strip them
13709 # from the output so that they don't get included in the library
13711 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'
13714 if test "$GXX" = yes; then
13715 if test $with_gnu_ld = no; then
13718 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13721 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13724 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'
13729 # FIXME: insert proper C++ library support
13737 hardcode_direct_CXX=no
13738 hardcode_shlibpath_var_CXX=no
13739 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13740 export_dynamic_flag_spec_CXX='${wl}-E'
13741 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13742 # Instead, shared libraries are loaded at an image base (0x10000000 by
13743 # default) and relocated if they conflict, which is a slow very memory
13744 # consuming and fragmenting process. To avoid this, we pick a random,
13745 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13746 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13747 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'
13748 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'
13751 case $cc_basename in
13754 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'
13756 # Archives containing C++ object files must be created using
13757 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13758 # necessary to make sure instantiated templates are included
13760 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13763 if test "$GXX" = yes; then
13764 if test "$with_gnu_ld" = no; then
13765 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'
13767 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'
13770 link_all_deplibs_CXX=yes
13773 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13774 hardcode_libdir_separator_CXX=:
13775 inherit_rpath_CXX=yes
13778 linux* | k*bsd*-gnu)
13779 case $cc_basename in
13781 # Kuck and Associates, Inc. (KAI) C++ Compiler
13783 # KCC will only create a shared library if the output file
13784 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13785 # to its proper name (with version) after linking.
13786 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'
13787 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'
13788 # Commands to make compiler produce verbose output that lists
13789 # what "hidden" libraries, object files and flags are used when
13790 # linking a shared library.
13792 # There doesn't appear to be a way to prevent this compiler from
13793 # explicitly linking system object files so we need to strip them
13794 # from the output so that they don't get included in the library
13796 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'
13798 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13799 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13801 # Archives containing C++ object files must be created using
13802 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13803 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13808 # version 8.0 and above of icpc choke on multiply defined symbols
13809 # if we add $predep_objects and $postdep_objects, however 7.1 and
13810 # earlier do not add the objects themselves.
13811 case `$CC -V 2>&1` in
13813 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13814 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'
13816 *) # Version 8.0 or newer
13819 ia64*) tmp_idyn=' -i_dynamic';;
13821 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 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'
13825 archive_cmds_need_lc_CXX=no
13826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13827 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13828 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13831 # Portland Group C++ compiler
13833 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13834 prelink_cmds_CXX='tpldir=Template.dir~
13836 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13837 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13838 old_archive_cmds_CXX='tpldir=Template.dir~
13840 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13841 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13843 archive_cmds_CXX='tpldir=Template.dir~
13845 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13846 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13847 archive_expsym_cmds_CXX='tpldir=Template.dir~
13849 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13850 $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'
13852 *) # Version 6 will use weak symbols
13853 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13854 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'
13858 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13859 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13860 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'
13864 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13865 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'
13867 runpath_var=LD_RUN_PATH
13868 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13869 hardcode_libdir_separator_CXX=:
13871 # Commands to make compiler produce verbose output that lists
13872 # what "hidden" libraries, object files and flags are used when
13873 # linking a shared library.
13875 # There doesn't appear to be a way to prevent this compiler from
13876 # explicitly linking system object files so we need to strip them
13877 # from the output so that they don't get included in the library
13879 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'
13882 # IBM XL 8.0 on PPC, with GNU ld
13883 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13884 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13885 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13886 if test "x$supports_anon_versioning" = xyes; then
13887 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13888 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13889 echo "local: *; };" >> $output_objdir/$libname.ver~
13890 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13894 case `$CC -V 2>&1 | sed 5q` in
13897 no_undefined_flag_CXX=' -zdefs'
13898 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13899 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'
13900 hardcode_libdir_flag_spec_CXX='-R$libdir'
13901 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'
13902 compiler_needs_object_CXX=yes
13904 # Not sure whether something based on
13905 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13907 output_verbose_link_cmd='echo'
13909 # Archives containing C++ object files must be created using
13910 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13911 # necessary to make sure instantiated templates are included
13913 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13921 # FIXME: insert proper C++ library support
13926 # FIXME: insert proper C++ library support
13931 case $cc_basename in
13933 # FIXME: insert proper C++ library support
13937 # FIXME: insert proper C++ library support
13944 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13945 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13947 hardcode_libdir_flag_spec_CXX='-R$libdir'
13948 hardcode_direct_CXX=yes
13949 hardcode_shlibpath_var_CXX=no
13951 # Workaround some broken pre-1.5 toolchains
13952 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13960 # C++ shared libraries are fairly broken
13965 if test -f /usr/libexec/ld.so; then
13966 hardcode_direct_CXX=yes
13967 hardcode_shlibpath_var_CXX=no
13968 hardcode_direct_absolute_CXX=yes
13969 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13970 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13971 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13972 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13973 export_dynamic_flag_spec_CXX='${wl}-E'
13974 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13976 output_verbose_link_cmd=echo
13982 osf3* | osf4* | osf5*)
13983 case $cc_basename in
13985 # Kuck and Associates, Inc. (KAI) C++ Compiler
13987 # KCC will only create a shared library if the output file
13988 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13989 # to its proper name (with version) after linking.
13990 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'
13992 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13993 hardcode_libdir_separator_CXX=:
13995 # Archives containing C++ object files must be created using
13996 # the KAI C++ compiler.
13998 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13999 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14003 # Rational C++ 2.4.1
14004 # FIXME: insert proper C++ library support
14010 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14011 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'
14012 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14015 allow_undefined_flag_CXX=' -expect_unresolved \*'
14016 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'
14017 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14018 echo "-hidden">> $lib.exp~
14019 $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~
14021 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14025 hardcode_libdir_separator_CXX=:
14027 # Commands to make compiler produce verbose output that lists
14028 # what "hidden" libraries, object files and flags are used when
14029 # linking a shared library.
14031 # There doesn't appear to be a way to prevent this compiler from
14032 # explicitly linking system object files so we need to strip them
14033 # from the output so that they don't get included in the library
14035 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'
14038 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14039 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14042 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'
14045 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'
14049 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14050 hardcode_libdir_separator_CXX=:
14052 # Commands to make compiler produce verbose output that lists
14053 # what "hidden" libraries, object files and flags are used when
14054 # linking a shared library.
14055 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14058 # FIXME: insert proper C++ library support
14066 # FIXME: insert proper C++ library support
14071 case $cc_basename in
14074 # FIXME: insert proper C++ library support
14079 # FIXME: insert proper C++ library support
14083 # FIXME: insert proper C++ library support
14090 case $cc_basename in
14092 # Sun C++ 4.2, 5.x and Centerline C++
14093 archive_cmds_need_lc_CXX=yes
14094 no_undefined_flag_CXX=' -zdefs'
14095 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14096 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14097 $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'
14099 hardcode_libdir_flag_spec_CXX='-R$libdir'
14100 hardcode_shlibpath_var_CXX=no
14102 solaris2.[0-5] | solaris2.[0-5].*) ;;
14104 # The compiler driver will combine and reorder linker options,
14105 # but understands `-z linker_flag'.
14106 # Supported since Solaris 2.6 (maybe 2.5.1?)
14107 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14110 link_all_deplibs_CXX=yes
14112 output_verbose_link_cmd='echo'
14114 # Archives containing C++ object files must be created using
14115 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14116 # necessary to make sure instantiated templates are included
14118 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14121 # Green Hills C++ Compiler
14122 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14124 # The C++ compiler must be used to create the archive.
14125 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14128 # GNU C++ compiler with Solaris linker
14129 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14130 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14131 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14132 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14133 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14134 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14136 # Commands to make compiler produce verbose output that lists
14137 # what "hidden" libraries, object files and flags are used when
14138 # linking a shared library.
14139 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14141 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14143 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14144 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14145 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14147 # Commands to make compiler produce verbose output that lists
14148 # what "hidden" libraries, object files and flags are used when
14149 # linking a shared library.
14150 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14153 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14155 solaris2.[0-5] | solaris2.[0-5].*) ;;
14157 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14165 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14166 no_undefined_flag_CXX='${wl}-z,text'
14167 archive_cmds_need_lc_CXX=no
14168 hardcode_shlibpath_var_CXX=no
14169 runpath_var='LD_RUN_PATH'
14171 case $cc_basename in
14173 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14174 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14177 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14178 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14183 sysv5* | sco3.2v5* | sco5v6*)
14184 # Note: We can NOT use -z defs as we might desire, because we do not
14185 # link with -lc, and that would cause any symbols used from libc to
14186 # always be unresolved, which means just about no library would
14187 # ever link correctly. If we're not using GNU ld we use -z text
14188 # though, which does catch some bad symbols but isn't as heavy-handed
14190 no_undefined_flag_CXX='${wl}-z,text'
14191 allow_undefined_flag_CXX='${wl}-z,nodefs'
14192 archive_cmds_need_lc_CXX=no
14193 hardcode_shlibpath_var_CXX=no
14194 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14195 hardcode_libdir_separator_CXX=':'
14196 link_all_deplibs_CXX=yes
14197 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14198 runpath_var='LD_RUN_PATH'
14200 case $cc_basename in
14202 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14203 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14206 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14207 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14213 case $cc_basename in
14215 # NonStop-UX NCC 3.20
14216 # FIXME: insert proper C++ library support
14220 # FIXME: insert proper C++ library support
14227 # FIXME: insert proper C++ library support
14232 # FIXME: insert proper C++ library support
14237 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14238 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14239 test "$ld_shlibs_CXX" = no && can_build_shared=no
14245 ## There is no encapsulation within the following macros, do not change
14246 ## the running order or otherwise move them around unless you know exactly
14247 ## what you are doing...
14248 # Dependencies to place before and after the object being linked:
14249 predep_objects_CXX=
14250 postdep_objects_CXX=
14253 compiler_lib_search_path_CXX=
14255 cat > conftest.$ac_ext <<_LT_EOF
14259 Foo (void) { a = 0; }
14265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14266 (eval $ac_compile) 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); }; then
14270 # Parse the compiler output and extract the necessary
14271 # objects, libraries and library flags.
14273 # Sentinel used to keep track of whether or not we are before
14274 # the conftest object file.
14275 pre_test_object_deps_done=no
14277 for p in `eval "$output_verbose_link_cmd"`; do
14281 # Some compilers place space between "-{L,R}" and the path.
14282 # Remove the space.
14283 if test $p = "-L" ||
14284 test $p = "-R"; then
14291 if test "$pre_test_object_deps_done" = no; then
14294 # Internal compiler library paths should come after those
14295 # provided the user. The postdeps already come after the
14296 # user supplied libs so there is no need to process them.
14297 if test -z "$compiler_lib_search_path_CXX"; then
14298 compiler_lib_search_path_CXX="${prev}${p}"
14300 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14303 # The "-l" case would never come before the object being
14304 # linked, so don't bother handling this case.
14307 if test -z "$postdeps_CXX"; then
14308 postdeps_CXX="${prev}${p}"
14310 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14316 # This assumes that the test object file only shows up
14317 # once in the compiler output.
14318 if test "$p" = "conftest.$objext"; then
14319 pre_test_object_deps_done=yes
14323 if test "$pre_test_object_deps_done" = no; then
14324 if test -z "$predep_objects_CXX"; then
14325 predep_objects_CXX="$p"
14327 predep_objects_CXX="$predep_objects_CXX $p"
14330 if test -z "$postdep_objects_CXX"; then
14331 postdep_objects_CXX="$p"
14333 postdep_objects_CXX="$postdep_objects_CXX $p"
14338 *) ;; # Ignore the rest.
14346 echo "libtool.m4: error: problem compiling CXX test program"
14349 $RM -f confest.$objext
14351 # PORTME: override above test on systems where it is broken
14354 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14355 # hack all around it, let's just trust "g++" to DTRT.
14356 predep_objects_CXX=
14357 postdep_objects_CXX=
14362 case `$CC -V 2>&1 | sed 5q` in
14366 # The more standards-conforming stlport4 library is
14367 # incompatible with the Cstd library. Avoid specifying
14368 # it if it's in CXXFLAGS. Ignore libCrun as
14369 # -library=stlport4 depends on it.
14370 case " $CXX $CXXFLAGS " in
14371 *" -library=stlport4 "*)
14372 solaris_use_stlport4=yes
14376 if test "$solaris_use_stlport4" != yes; then
14377 postdeps_CXX='-library=Cstd -library=Crun'
14384 case $cc_basename in
14386 # The more standards-conforming stlport4 library is
14387 # incompatible with the Cstd library. Avoid specifying
14388 # it if it's in CXXFLAGS. Ignore libCrun as
14389 # -library=stlport4 depends on it.
14390 case " $CXX $CXXFLAGS " in
14391 *" -library=stlport4 "*)
14392 solaris_use_stlport4=yes
14396 # Adding this requires a known-good setup of shared libraries for
14397 # Sun compiler versions before 5.6, else PIC objects from an old
14398 # archive will be linked into the output, leading to subtle bugs.
14399 if test "$solaris_use_stlport4" != yes; then
14400 postdeps_CXX='-library=Cstd -library=Crun'
14408 case " $postdeps_CXX " in
14409 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14411 compiler_lib_search_dirs_CXX=
14412 if test -n "${compiler_lib_search_path_CXX}"; then
14413 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14446 lt_prog_compiler_wl_CXX=
14447 lt_prog_compiler_pic_CXX=
14448 lt_prog_compiler_static_CXX=
14450 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14451 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14453 # C++ specific cases for pic, static, wl, etc.
14454 if test "$GXX" = yes; then
14455 lt_prog_compiler_wl_CXX='-Wl,'
14456 lt_prog_compiler_static_CXX='-static'
14460 # All AIX code is PIC.
14461 if test "$host_cpu" = ia64; then
14462 # AIX 5 now supports IA64 processor
14463 lt_prog_compiler_static_CXX='-Bstatic'
14470 # see comment about AmigaOS4 .so support
14471 lt_prog_compiler_pic_CXX='-fPIC'
14474 # FIXME: we need at least 68020 code to build shared libraries, but
14475 # adding the `-m68020' flag to GCC prevents building anything better,
14477 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14482 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14483 # PIC is the default for these OSes.
14485 mingw* | cygwin* | os2* | pw32* | cegcc*)
14486 # This hack is so that the source file can tell whether it is being
14487 # built for inclusion in a dll (and should export symbols for example).
14488 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14489 # (--disable-auto-import) libraries
14490 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14492 darwin* | rhapsody*)
14493 # PIC is the default on this platform
14494 # Common symbols not allowed in MH_DYLIB files
14495 lt_prog_compiler_pic_CXX='-fno-common'
14498 # DJGPP does not support shared libraries at all
14499 lt_prog_compiler_pic_CXX=
14502 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14503 # Instead, we relocate shared libraries at runtime.
14506 if test -d /usr/nec; then
14507 lt_prog_compiler_pic_CXX=-Kconform_pic
14511 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14512 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14513 # sets the default TLS model and affects inlining.
14518 lt_prog_compiler_pic_CXX='-fPIC'
14523 # QNX uses GNU C++, but need to define -shared option too, otherwise
14524 # it will coredump.
14525 lt_prog_compiler_pic_CXX='-fPIC -shared'
14528 lt_prog_compiler_pic_CXX='-fPIC'
14534 # All AIX code is PIC.
14535 if test "$host_cpu" = ia64; then
14536 # AIX 5 now supports IA64 processor
14537 lt_prog_compiler_static_CXX='-Bstatic'
14539 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14543 case $cc_basename in
14545 # Green Hills C++ Compiler
14546 # _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"
14551 case $cc_basename in
14553 lt_prog_compiler_pic_CXX='-KPIC'
14556 # Green Hills C++ Compiler
14557 lt_prog_compiler_pic_CXX='-pic'
14563 freebsd* | dragonfly*)
14564 # FreeBSD uses GNU C++
14566 hpux9* | hpux10* | hpux11*)
14567 case $cc_basename in
14569 lt_prog_compiler_wl_CXX='-Wl,'
14570 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14571 if test "$host_cpu" != ia64; then
14572 lt_prog_compiler_pic_CXX='+Z'
14576 lt_prog_compiler_wl_CXX='-Wl,'
14577 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14583 lt_prog_compiler_pic_CXX='+Z'
14592 # This is c89, which is MS Visual C++ (no shared libs)
14593 # Anyone wants to do a port?
14595 irix5* | irix6* | nonstopux*)
14596 case $cc_basename in
14598 lt_prog_compiler_wl_CXX='-Wl,'
14599 lt_prog_compiler_static_CXX='-non_shared'
14600 # CC pic flag -KPIC is the default.
14606 linux* | k*bsd*-gnu)
14607 case $cc_basename in
14610 lt_prog_compiler_wl_CXX='--backend -Wl,'
14611 lt_prog_compiler_pic_CXX='-fPIC'
14614 # old Intel C++ for x86_64 which still supported -KPIC.
14615 lt_prog_compiler_wl_CXX='-Wl,'
14616 lt_prog_compiler_pic_CXX='-KPIC'
14617 lt_prog_compiler_static_CXX='-static'
14620 # Intel C++, used to be incompatible with GCC.
14621 # ICC 10 doesn't accept -KPIC any more.
14622 lt_prog_compiler_wl_CXX='-Wl,'
14623 lt_prog_compiler_pic_CXX='-fPIC'
14624 lt_prog_compiler_static_CXX='-static'
14627 # Portland Group C++ compiler
14628 lt_prog_compiler_wl_CXX='-Wl,'
14629 lt_prog_compiler_pic_CXX='-fpic'
14630 lt_prog_compiler_static_CXX='-Bstatic'
14634 # Make sure the PIC flag is empty. It appears that all Alpha
14635 # Linux and Compaq Tru64 Unix objects are PIC.
14636 lt_prog_compiler_pic_CXX=
14637 lt_prog_compiler_static_CXX='-non_shared'
14640 # IBM XL 8.0 on PPC
14641 lt_prog_compiler_wl_CXX='-Wl,'
14642 lt_prog_compiler_pic_CXX='-qpic'
14643 lt_prog_compiler_static_CXX='-qstaticlink'
14646 case `$CC -V 2>&1 | sed 5q` in
14649 lt_prog_compiler_pic_CXX='-KPIC'
14650 lt_prog_compiler_static_CXX='-Bstatic'
14651 lt_prog_compiler_wl_CXX='-Qoption ld '
14662 case $cc_basename in
14664 lt_prog_compiler_pic_CXX='-W c,exportall'
14673 # QNX uses GNU C++, but need to define -shared option too, otherwise
14674 # it will coredump.
14675 lt_prog_compiler_pic_CXX='-fPIC -shared'
14677 osf3* | osf4* | osf5*)
14678 case $cc_basename in
14680 lt_prog_compiler_wl_CXX='--backend -Wl,'
14683 # Rational C++ 2.4.1
14684 lt_prog_compiler_pic_CXX='-pic'
14687 # Digital/Compaq C++
14688 lt_prog_compiler_wl_CXX='-Wl,'
14689 # Make sure the PIC flag is empty. It appears that all Alpha
14690 # Linux and Compaq Tru64 Unix objects are PIC.
14691 lt_prog_compiler_pic_CXX=
14692 lt_prog_compiler_static_CXX='-non_shared'
14701 case $cc_basename in
14703 # Sun C++ 4.2, 5.x and Centerline C++
14704 lt_prog_compiler_pic_CXX='-KPIC'
14705 lt_prog_compiler_static_CXX='-Bstatic'
14706 lt_prog_compiler_wl_CXX='-Qoption ld '
14709 # Green Hills C++ Compiler
14710 lt_prog_compiler_pic_CXX='-PIC'
14717 case $cc_basename in
14720 lt_prog_compiler_pic_CXX='-pic'
14721 lt_prog_compiler_static_CXX='-Bstatic'
14725 lt_prog_compiler_pic_CXX='-pic'
14731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14732 case $cc_basename in
14734 lt_prog_compiler_wl_CXX='-Wl,'
14735 lt_prog_compiler_pic_CXX='-KPIC'
14736 lt_prog_compiler_static_CXX='-Bstatic'
14741 case $cc_basename in
14743 # NonStop-UX NCC 3.20
14744 lt_prog_compiler_pic_CXX='-KPIC'
14753 lt_prog_compiler_can_build_shared_CXX=no
14759 # For platforms which do not support PIC, -DPIC is meaningless:
14761 lt_prog_compiler_pic_CXX=
14764 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14767 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14768 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14773 # Check to make sure the PIC flag actually works.
14775 if test -n "$lt_prog_compiler_pic_CXX"; then
14776 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14777 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14778 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
14779 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 lt_cv_prog_compiler_pic_works_CXX=no
14782 ac_outfile=conftest.$ac_objext
14783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14784 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14785 # Insert the option either (1) after the last *FLAGS variable, or
14786 # (2) before a word containing "conftest.", or (3) at the end.
14787 # Note that $ac_compile itself does not contain backslashes and begins
14788 # with a dollar sign (not a hyphen), so the echo should work correctly.
14789 # The option is referenced via a variable to avoid confusing sed.
14790 lt_compile=`echo "$ac_compile" | $SED \
14791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14793 -e 's:$: $lt_compiler_flag:'`
14794 (eval echo "\"\$as_me:14794: $lt_compile\"" >&5)
14795 (eval "$lt_compile" 2>conftest.err)
14797 cat conftest.err >&5
14798 echo "$as_me:14798: \$? = $ac_status" >&5
14799 if (exit $ac_status) && test -s "$ac_outfile"; then
14800 # The compiler can only warn and ignore the option if not recognized
14801 # So say no if there are warnings other than the usual output.
14802 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14804 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14805 lt_cv_prog_compiler_pic_works_CXX=yes
14811 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14812 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14814 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14815 case $lt_prog_compiler_pic_CXX in
14817 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14820 lt_prog_compiler_pic_CXX=
14821 lt_prog_compiler_can_build_shared_CXX=no
14829 # Check to make sure the static flag actually works.
14831 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14832 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14833 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14834 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14837 lt_cv_prog_compiler_static_works_CXX=no
14838 save_LDFLAGS="$LDFLAGS"
14839 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14840 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14841 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14842 # The linker can only warn and ignore the option if not recognized
14843 # So say no if there are warnings
14844 if test -s conftest.err; then
14845 # Append any errors to the config.log.
14846 cat conftest.err 1>&5
14847 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14849 if diff conftest.exp conftest.er2 >/dev/null; then
14850 lt_cv_prog_compiler_static_works_CXX=yes
14853 lt_cv_prog_compiler_static_works_CXX=yes
14857 LDFLAGS="$save_LDFLAGS"
14860 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14861 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
14863 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14866 lt_prog_compiler_static_CXX=
14872 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14873 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14874 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14877 lt_cv_prog_compiler_c_o_CXX=no
14878 $RM -r conftest 2>/dev/null
14882 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14884 lt_compiler_flag="-o out/conftest2.$ac_objext"
14885 # Insert the option either (1) after the last *FLAGS variable, or
14886 # (2) before a word containing "conftest.", or (3) at the end.
14887 # Note that $ac_compile itself does not contain backslashes and begins
14888 # with a dollar sign (not a hyphen), so the echo should work correctly.
14889 lt_compile=`echo "$ac_compile" | $SED \
14890 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14891 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14892 -e 's:$: $lt_compiler_flag:'`
14893 (eval echo "\"\$as_me:14893: $lt_compile\"" >&5)
14894 (eval "$lt_compile" 2>out/conftest.err)
14896 cat out/conftest.err >&5
14897 echo "$as_me:14897: \$? = $ac_status" >&5
14898 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14900 # The compiler can only warn and ignore the option if not recognized
14901 # So say no if there are warnings
14902 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14903 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14904 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14905 lt_cv_prog_compiler_c_o_CXX=yes
14910 # SGI C++ compiler will create directory out/ii_files/ for
14911 # template instantiation
14912 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14913 $RM out/* && rmdir out
14919 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14920 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14924 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14925 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14926 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 lt_cv_prog_compiler_c_o_CXX=no
14930 $RM -r conftest 2>/dev/null
14934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14936 lt_compiler_flag="-o out/conftest2.$ac_objext"
14937 # Insert the option either (1) after the last *FLAGS variable, or
14938 # (2) before a word containing "conftest.", or (3) at the end.
14939 # Note that $ac_compile itself does not contain backslashes and begins
14940 # with a dollar sign (not a hyphen), so the echo should work correctly.
14941 lt_compile=`echo "$ac_compile" | $SED \
14942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14944 -e 's:$: $lt_compiler_flag:'`
14945 (eval echo "\"\$as_me:14945: $lt_compile\"" >&5)
14946 (eval "$lt_compile" 2>out/conftest.err)
14948 cat out/conftest.err >&5
14949 echo "$as_me:14949: \$? = $ac_status" >&5
14950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14952 # The compiler can only warn and ignore the option if not recognized
14953 # So say no if there are warnings
14954 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14957 lt_cv_prog_compiler_c_o_CXX=yes
14962 # SGI C++ compiler will create directory out/ii_files/ for
14963 # template instantiation
14964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14965 $RM out/* && rmdir out
14971 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14972 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14977 hard_links="nottested"
14978 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14979 # do not overwrite the value of need_locks provided by the user
14980 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14981 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14986 ln conftest.a conftest.b 2>&5 || hard_links=no
14987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14988 { echo "$as_me:$LINENO: result: $hard_links" >&5
14989 echo "${ECHO_T}$hard_links" >&6; }
14990 if test "$hard_links" = no; then
14991 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14992 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15001 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15002 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
15004 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15007 # If we're using GNU nm, then we don't want the "-C" option.
15008 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15009 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15010 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'
15012 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'
15016 export_symbols_cmds_CXX="$ltdll_cmds"
15018 cygwin* | mingw* | cegcc*)
15019 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'
15022 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15025 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15027 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15028 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
15029 test "$ld_shlibs_CXX" = no && can_build_shared=no
15031 with_gnu_ld_CXX=$with_gnu_ld
15039 # Do we need to explicitly link libc?
15041 case "x$archive_cmds_need_lc_CXX" in
15043 # Assume -lc should be added
15044 archive_cmds_need_lc_CXX=yes
15046 if test "$enable_shared" = yes && test "$GCC" = yes; then
15047 case $archive_cmds_CXX in
15049 # FIXME: we may have to deal with multi-command sequences.
15052 # Test whether the compiler implicitly links with -lc since on some
15053 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15054 # to ld, don't add -lc before -lgcc.
15055 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15056 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15058 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15061 (eval $ac_compile) 2>&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } 2>conftest.err; then
15067 libobjs=conftest.$ac_objext
15069 wl=$lt_prog_compiler_wl_CXX
15070 pic_flag=$lt_prog_compiler_pic_CXX
15076 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15077 allow_undefined_flag_CXX=
15078 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
15079 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); }
15084 archive_cmds_need_lc_CXX=no
15086 archive_cmds_need_lc_CXX=yes
15088 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15090 cat conftest.err 1>&5
15093 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15094 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
15164 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15165 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15167 library_names_spec=
15168 libname_spec='lib$name'
15172 postuninstall_cmds=
15176 shlibpath_overrides_runpath=unknown
15178 dynamic_linker="$host_os ld.so"
15179 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15180 need_lib_prefix=unknown
15181 hardcode_into_libs=no
15183 # when you set need_version to no, make sure it does not cause -set_version
15184 # flags to be left without arguments
15185 need_version=unknown
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15191 shlibpath_var=LIBPATH
15193 # AIX 3 has no versioning support, so we append a major version to the name.
15194 soname_spec='${libname}${release}${shared_ext}$major'
15201 hardcode_into_libs=yes
15202 if test "$host_cpu" = ia64; then
15203 # AIX 5 supports IA64
15204 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15205 shlibpath_var=LD_LIBRARY_PATH
15207 # With GCC up to 2.95.x, collect2 would create an import file
15208 # for dependence libraries. The import file would start with
15209 # the line `#! .'. This would cause the generated library to
15210 # depend on `.', always an invalid library. This was fixed in
15211 # development snapshots of GCC prior to 3.0.
15213 aix4 | aix4.[01] | aix4.[01].*)
15214 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15216 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15219 can_build_shared=no
15223 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15224 # soname into executable. Probably we can add versioning support to
15225 # collect2, so additional links can be useful in future.
15226 if test "$aix_use_runtimelinking" = yes; then
15227 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15228 # instead of lib<name>.a to let people know that these are not
15229 # typical AIX shared libraries.
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 # We preserve .a as extension for shared libraries through AIX4.2
15233 # and later when we are not doing run time linking.
15234 library_names_spec='${libname}${release}.a $libname.a'
15235 soname_spec='${libname}${release}${shared_ext}$major'
15237 shlibpath_var=LIBPATH
15244 # Since July 2007 AmigaOS4 officially supports .so libraries.
15245 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249 library_names_spec='$libname.ixlibrary $libname.a'
15250 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15251 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'
15257 library_names_spec='${libname}${shared_ext}'
15258 dynamic_linker="$host_os ld.so"
15259 shlibpath_var=LIBRARY_PATH
15265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15266 soname_spec='${libname}${release}${shared_ext}$major'
15267 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15268 shlibpath_var=LD_LIBRARY_PATH
15269 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15270 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15271 # the default ld.so.conf also contains /usr/contrib/lib and
15272 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15273 # libtool to hard-code these into programs
15276 cygwin* | mingw* | pw32* | cegcc*)
15277 version_type=windows
15282 case $GCC,$host_os in
15283 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15284 library_names_spec='$libname.dll.a'
15285 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15286 postinstall_cmds='base_file=`basename \${file}`~
15287 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15288 dldir=$destdir/`dirname \$dlpath`~
15289 test -d \$dldir || mkdir -p \$dldir~
15290 $install_prog $dir/$dlname \$dldir/$dlname~
15291 chmod a+x \$dldir/$dlname~
15292 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15293 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15295 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15296 dlpath=$dir/\$dldll~
15298 shlibpath_overrides_runpath=yes
15302 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15303 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15304 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15307 # MinGW DLLs use traditional 'lib' prefix
15308 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15309 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15310 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15311 # It is most probably a Windows format PATH printed by
15312 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15313 # path with ; separators, and with drive letters. We can handle the
15314 # drive letters (cygwin fileutils understands them), so leave them,
15315 # especially as we might pass files found there to a mingw objdump,
15316 # which wouldn't understand a cygwinified path. Ahh.
15317 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15319 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15323 # pw32 DLLs use 'pw' prefix rather than 'lib'
15324 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15330 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15333 dynamic_linker='Win32 ld.exe'
15334 # FIXME: first we should search . and the directory the executable is in
15338 darwin* | rhapsody*)
15339 dynamic_linker="$host_os dyld"
15340 version_type=darwin
15343 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15344 soname_spec='${libname}${release}${major}$shared_ext'
15345 shlibpath_overrides_runpath=yes
15346 shlibpath_var=DYLD_LIBRARY_PATH
15347 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15349 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15357 soname_spec='${libname}${release}${shared_ext}$major'
15358 shlibpath_var=LD_LIBRARY_PATH
15365 freebsd* | dragonfly*)
15366 # DragonFly does not have aout. When/if they implement a new
15367 # versioning mechanism, adjust this.
15368 if test -x /usr/bin/objformat; then
15369 objformat=`/usr/bin/objformat`
15372 freebsd[123]*) objformat=aout ;;
15373 *) objformat=elf ;;
15376 version_type=freebsd-$objformat
15377 case $version_type in
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15388 shlibpath_var=LD_LIBRARY_PATH
15391 shlibpath_overrides_runpath=yes
15393 freebsd3.[01]* | freebsdelf3.[01]*)
15394 shlibpath_overrides_runpath=yes
15395 hardcode_into_libs=yes
15397 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15398 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15399 shlibpath_overrides_runpath=no
15400 hardcode_into_libs=yes
15402 *) # from 4.6 on, and DragonFly
15403 shlibpath_overrides_runpath=yes
15404 hardcode_into_libs=yes
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 shlibpath_var=LD_LIBRARY_PATH
15416 hardcode_into_libs=yes
15419 hpux9* | hpux10* | hpux11*)
15420 # Give a soname corresponding to the major version so that dld.sl refuses to
15421 # link against other versions.
15428 hardcode_into_libs=yes
15429 dynamic_linker="$host_os dld.so"
15430 shlibpath_var=LD_LIBRARY_PATH
15431 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 soname_spec='${libname}${release}${shared_ext}$major'
15434 if test "X$HPUX_IA64_MODE" = X32; then
15435 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15437 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15439 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15443 hardcode_into_libs=yes
15444 dynamic_linker="$host_os dld.sl"
15445 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15446 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448 soname_spec='${libname}${release}${shared_ext}$major'
15449 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15454 dynamic_linker="$host_os dld.sl"
15455 shlibpath_var=SHLIB_PATH
15456 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15458 soname_spec='${libname}${release}${shared_ext}$major'
15461 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15462 postinstall_cmds='chmod 555 $lib'
15469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15470 soname_spec='${libname}${release}${shared_ext}$major'
15471 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15472 shlibpath_var=LD_LIBRARY_PATH
15473 shlibpath_overrides_runpath=no
15474 hardcode_into_libs=yes
15477 irix5* | irix6* | nonstopux*)
15479 nonstopux*) version_type=nonstopux ;;
15481 if test "$lt_cv_prog_gnu_ld" = yes; then
15489 soname_spec='${libname}${release}${shared_ext}$major'
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15492 irix5* | nonstopux*)
15493 libsuff= shlibsuff=
15496 case $LD in # libtool.m4 will add one of these switches to LD
15497 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15498 libsuff= shlibsuff= libmagic=32-bit;;
15499 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15500 libsuff=32 shlibsuff=N32 libmagic=N32;;
15501 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15502 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15503 *) libsuff= shlibsuff= libmagic=never-match;;
15507 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15508 shlibpath_overrides_runpath=no
15509 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15510 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15511 hardcode_into_libs=yes
15514 # No shared lib support for Linux oldld, aout, or coff.
15515 linux*oldld* | linux*aout* | linux*coff*)
15519 # This must be Linux ELF.
15520 linux* | k*bsd*-gnu)
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15527 shlibpath_var=LD_LIBRARY_PATH
15528 shlibpath_overrides_runpath=no
15529 # Some binutils ld are patched to set DT_RUNPATH
15530 save_LDFLAGS=$LDFLAGS
15531 save_libdir=$libdir
15532 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15533 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15534 cat >conftest.$ac_ext <<_ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15549 rm -f conftest.$ac_objext conftest$ac_exeext
15550 if { (ac_try="$ac_link"
15551 case "(($ac_try" in
15552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15553 *) ac_try_echo=$ac_try;;
15555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15556 (eval "$ac_link") 2>conftest.er1
15558 grep -v '^ *+' conftest.er1 >conftest.err
15560 cat conftest.err >&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); } && {
15563 test -z "$ac_cxx_werror_flag" ||
15564 test ! -s conftest.err
15565 } && test -s conftest$ac_exeext &&
15566 $as_test_x conftest$ac_exeext; then
15567 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15568 shlibpath_overrides_runpath=yes
15572 echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579 conftest$ac_exeext conftest.$ac_ext
15580 LDFLAGS=$save_LDFLAGS
15581 libdir=$save_libdir
15583 # This implies no fast_install, which is unacceptable.
15584 # Some rework will be needed to allow for fast_install
15585 # before this can be enabled.
15586 hardcode_into_libs=yes
15588 # Append ld.so.conf contents to the search path
15589 if test -f /etc/ld.so.conf; then
15590 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' ' '`
15591 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15594 # We used to test for /lib/ld.so.1 and disable shared libraries on
15595 # powerpc, because MkLinux only supported shared libraries with the
15596 # GNU dynamic linker. Since this was broken with cross compilers,
15597 # most powerpc-linux boxes support dynamic linking these days and
15598 # people can always --disable-shared, the test was removed, and we
15599 # assume the GNU/Linux dynamic linker is in use.
15600 dynamic_linker='GNU/Linux ld.so'
15607 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15610 dynamic_linker='NetBSD (a.out) ld.so'
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15613 soname_spec='${libname}${release}${shared_ext}$major'
15614 dynamic_linker='NetBSD ld.elf_so'
15616 shlibpath_var=LD_LIBRARY_PATH
15617 shlibpath_overrides_runpath=yes
15618 hardcode_into_libs=yes
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624 shlibpath_var=LD_LIBRARY_PATH
15625 shlibpath_overrides_runpath=yes
15632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15633 soname_spec='${libname}${release}${shared_ext}$major'
15634 shlibpath_var=LD_LIBRARY_PATH
15635 shlibpath_overrides_runpath=no
15636 hardcode_into_libs=yes
15637 dynamic_linker='ldqnx.so'
15642 sys_lib_dlsearch_path_spec="/usr/lib"
15644 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15646 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15647 *) need_version=no ;;
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15650 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15651 shlibpath_var=LD_LIBRARY_PATH
15652 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15654 openbsd2.[89] | openbsd2.[89].*)
15655 shlibpath_overrides_runpath=no
15658 shlibpath_overrides_runpath=yes
15662 shlibpath_overrides_runpath=yes
15667 libname_spec='$name'
15670 library_names_spec='$libname${shared_ext} $libname.a'
15671 dynamic_linker='OS/2 ld.exe'
15672 shlibpath_var=LIBPATH
15675 osf3* | osf4* | osf5*)
15679 soname_spec='${libname}${release}${shared_ext}$major'
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681 shlibpath_var=LD_LIBRARY_PATH
15682 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15683 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15695 soname_spec='${libname}${release}${shared_ext}$major'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=yes
15698 hardcode_into_libs=yes
15699 # ldd complains unless libraries are executable
15700 postinstall_cmds='chmod +x $lib'
15705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15706 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 shlibpath_overrides_runpath=yes
15709 if test "$with_gnu_ld" = yes; then
15717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15718 soname_spec='${libname}${release}${shared_ext}$major'
15719 shlibpath_var=LD_LIBRARY_PATH
15720 case $host_vendor in
15722 shlibpath_overrides_runpath=no
15724 runpath_var=LD_RUN_PATH
15732 shlibpath_overrides_runpath=no
15733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15739 if test -d /usr/nec ;then
15741 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15742 soname_spec='$libname${shared_ext}.$major'
15743 shlibpath_var=LD_LIBRARY_PATH
15747 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15748 version_type=freebsd-elf
15751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15752 soname_spec='${libname}${release}${shared_ext}$major'
15753 shlibpath_var=LD_LIBRARY_PATH
15754 shlibpath_overrides_runpath=yes
15755 hardcode_into_libs=yes
15756 if test "$with_gnu_ld" = yes; then
15757 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15759 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15762 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15766 sys_lib_dlsearch_path_spec='/usr/lib'
15770 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775 shlibpath_var=LD_LIBRARY_PATH
15776 shlibpath_overrides_runpath=no
15777 hardcode_into_libs=yes
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783 soname_spec='${libname}${release}${shared_ext}$major'
15784 shlibpath_var=LD_LIBRARY_PATH
15791 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15792 echo "${ECHO_T}$dynamic_linker" >&6; }
15793 test "$dynamic_linker" = no && can_build_shared=no
15795 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15796 if test "$GCC" = yes; then
15797 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15800 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15801 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15803 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15804 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15842 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15843 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15844 hardcode_action_CXX=
15845 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15846 test -n "$runpath_var_CXX" ||
15847 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15849 # We can hardcode non-existent directories.
15850 if test "$hardcode_direct_CXX" != no &&
15851 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15852 # have to relink, otherwise we might link with an installed library
15853 # when we should be linking with a yet-to-be-installed one
15854 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15855 test "$hardcode_minus_L_CXX" != no; then
15856 # Linking always hardcodes the temporary library directory.
15857 hardcode_action_CXX=relink
15859 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15860 hardcode_action_CXX=immediate
15863 # We cannot hardcode anything, or else we can only hardcode existing
15865 hardcode_action_CXX=unsupported
15867 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15868 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15870 if test "$hardcode_action_CXX" = relink ||
15871 test "$inherit_rpath_CXX" = yes; then
15872 # Fast installation is not supported
15873 enable_fast_install=no
15874 elif test "$shlibpath_overrides_runpath" = yes ||
15875 test "$enable_shared" = no; then
15876 # Fast installation is not necessary
15877 enable_fast_install=needless
15886 fi # test -n "$compiler"
15892 with_gnu_ld=$lt_save_with_gnu_ld
15893 lt_cv_path_LDCXX=$lt_cv_path_LD
15894 lt_cv_path_LD=$lt_save_path_LD
15895 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15896 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15897 fi # test "$_lt_caught_CXX_error" != yes
15900 ac_cpp='$CPP $CPPFLAGS'
15901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15917 ac_config_commands="$ac_config_commands libtool"
15922 # Only expand once:
15927 if test x$use_libtool != xno; then
15928 DEFAULT_OBJECT_TYPE=".lo"
15929 DEFAULT_ARCHIVE_TYPE=".la"
15930 DEFAULT_SHARED_OBJECT_TYPE=".la"
15931 LIBTOOL="\$(LIBTOOL)"
15932 LIBTOOL_INSTALL_TARGET="libtool-install"
15933 LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15934 LIBTOOL_CLEAN_TARGET="libtool-clean"
15935 QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15936 FD_PLUGIN_DIR="src/plugins/fd"
15939 DEFAULT_OBJECT_TYPE=".o"
15940 DEFAULT_ARCHIVE_TYPE=".a"
15941 DEFAULT_SHARED_OBJECT_TYPE=".so"
15942 LIBTOOL="# \$(LIBTOOL)"
15943 LIBTOOL_INSTALL_TARGET=""
15944 LIBTOOL_UNINSTALL_TARGET=""
15945 LIBTOOL_CLEAN_TARGET=""
15946 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
24022 support_smartalloc=yes
24023 support_readline=yes
24027 support_wx_console=no
24028 support_tray_monitor=no
24033 support_static_tools=no
24034 support_static_fd=no
24035 support_static_sd=no
24036 support_static_dir=no
24037 support_static_cons=no
24039 build_client_only=no
24048 # Check whether --enable-gnome was given.
24049 if test "${enable_gnome+set}" = set; then
24050 enableval=$enable_gnome;
24051 if test x$enableval = xyes; then
24060 if test x$support_gnome = xyes; then
24061 { { echo "$as_me:$LINENO: error: bgnome-console no longer supported" >&5
24062 echo "$as_me: error: bgnome-console no longer supported" >&2;}
24063 { (exit 1); exit 1; }; }
24064 { { echo "$as_me:$LINENO: error: --enable-gnome option no longer supported" >&5
24065 echo "$as_me: error: --enable-gnome option no longer supported" >&2;}
24066 { (exit 1); exit 1; }; }
24068 # AC_SUBST(GNOME_DIR)
24070 # Check whether --enable-bat was given.
24071 if test "${enable_bat+set}" = set; then
24072 enableval=$enable_bat;
24073 if test x$enableval = xyes; then
24075 cat >>confdefs.h <<\_ACEOF
24087 if test x$support_bat = xyes; then
24088 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
24090 if test $pkg = 0; then
24091 BAT_DIR=src/qt-console
24093 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
24094 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
24095 { (exit 1); exit 1; }; }
24113 # Check whether --enable-bwx-console was given.
24114 if test "${enable_bwx_console+set}" = set; then
24115 enableval=$enable_bwx_console;
24116 if test x$enableval = xyes; then
24117 support_wx_console=yes
24125 if test x$support_wx_console = xyes; then
24126 abc=`$WXCONFIG $WXFLAGS --cppflags`
24128 if test $pkg = 0; then
24129 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
24130 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
24131 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
24135 WX_DIR="src/wx-console"
24138 echo "wx-config program not found. bwx-console disabled."
24140 support_wx_console=no
24145 # Check whether --enable-tray-monitor was given.
24146 if test "${enable_tray_monitor+set}" = set; then
24147 enableval=$enable_tray_monitor;
24148 if test x$enableval = xyes; then
24149 support_tray_monitor=yes
24157 if test x$support_tray_monitor = xyes; then
24158 abc=`$PKGCONFIG --exists gtk+-2.0`
24160 if test $pkg = 0; then
24161 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
24162 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
24165 TRAY_MONITOR_DIR=src/tray-monitor
24166 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
24168 if test $pkg = 0; then
24170 cat >>confdefs.h <<\_ACEOF
24171 #define HAVE_GTK_2_4 1
24179 # Check whether --enable-smartalloc was given.
24180 if test "${enable_smartalloc+set}" = set; then
24181 enableval=$enable_smartalloc;
24182 if test x$enableval = xno; then
24183 support_smartalloc=no
24190 if test x$support_smartalloc = xyes; then
24192 cat >>confdefs.h <<\_ACEOF
24193 #define SMARTALLOC 1
24198 # Check whether --enable-lockmgr was given.
24199 if test "${enable_lockmgr+set}" = set; then
24200 enableval=$enable_lockmgr;
24201 if test x$enableval = xyes; then
24202 support_lockmgr=yes
24209 if test x$support_lockmgr = xyes; then
24211 cat >>confdefs.h <<\_ACEOF
24212 #define _USE_LOCKMGR 1
24218 # Check whether --enable-static-tools was given.
24219 if test "${enable_static_tools+set}" = set; then
24220 enableval=$enable_static_tools;
24221 if test x$enableval = xyes; then
24222 if test x$use_libtool = xyes; then
24223 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24224 please rerun configure with --disable-libtool" >&5
24225 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24226 please rerun configure with --disable-libtool" >&2;}
24227 { (exit 1); exit 1; }; }
24229 support_static_tools=yes
24237 if test x$support_static_tools = xyes; then
24238 TTOOL_LDFLAGS="-static"
24242 # Check whether --enable-static-fd was given.
24243 if test "${enable_static_fd+set}" = set; then
24244 enableval=$enable_static_fd;
24245 if test x$enableval = xyes; then
24246 if test x$use_libtool = xyes; then
24247 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24248 please rerun configure with --disable-libtool" >&5
24249 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24250 please rerun configure with --disable-libtool" >&2;}
24251 { (exit 1); exit 1; }; }
24253 support_static_fd=yes
24261 if test x$support_static_fd = xyes; then
24262 STATIC_FD="static-bacula-fd"
24266 # Check whether --enable-static-sd was given.
24267 if test "${enable_static_sd+set}" = set; then
24268 enableval=$enable_static_sd;
24269 if test x$enableval = xyes; then
24270 if test x$use_libtool = xyes; then
24271 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24272 please rerun configure with --disable-libtool" >&5
24273 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24274 please rerun configure with --disable-libtool" >&2;}
24275 { (exit 1); exit 1; }; }
24277 support_static_sd=yes
24285 if test x$support_static_sd = xyes; then
24286 STATIC_SD="static-bacula-sd"
24290 # Check whether --enable-static-dir was given.
24291 if test "${enable_static_dir+set}" = set; then
24292 enableval=$enable_static_dir;
24293 if test x$enableval = xyes; then
24294 if test x$use_libtool = xyes; then
24295 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24296 please rerun configure with --disable-libtool" >&5
24297 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24298 please rerun configure with --disable-libtool" >&2;}
24299 { (exit 1); exit 1; }; }
24301 support_static_dir=yes
24309 if test x$support_static_dir = xyes; then
24310 STATIC_DIR="static-bacula-dir"
24314 # Check whether --enable-static-cons was given.
24315 if test "${enable_static_cons+set}" = set; then
24316 enableval=$enable_static_cons;
24317 if test x$enableval = xyes; then
24318 if test x$use_libtool = xyes; then
24319 { { echo "$as_me:$LINENO: error: Libtool is enabled, not compatible with static tools,
24320 please rerun configure with --disable-libtool" >&5
24321 echo "$as_me: error: Libtool is enabled, not compatible with static tools,
24322 please rerun configure with --disable-libtool" >&2;}
24323 { (exit 1); exit 1; }; }
24325 support_static_cons=yes
24335 if test x$support_static_cons = xyes; then
24336 STATIC_CONS="static-bconsole"
24337 STATIC_GNOME_CONS="static-bgnome-console"
24338 STATIC_WX_CONS="static-bwx-console"
24344 # Check whether --enable-client-only was given.
24345 if test "${enable_client_only+set}" = set; then
24346 enableval=$enable_client_only;
24347 if test x$enableval = xyes; then
24348 build_client_only=yes
24356 if test x$build_client_only = xno; then
24363 # Check whether --enable-build-dird was given.
24364 if test "${enable_build_dird+set}" = set; then
24365 enableval=$enable_build_dird;
24366 if test x$enableval = xno; then
24373 if test x$build_dird = xyes; then
24374 DIRD_DIR="src/dird"
24375 DIR_TOOLS="DIRTOOLS"
24378 DIR_TOOLS="NODIRTOOLS"
24383 # Check whether --enable-build-stored was given.
24384 if test "${enable_build_stored+set}" = set; then
24385 enableval=$enable_build_stored;
24386 if test x$enableval = xno; then
24393 if test x$build_stored = xyes; then
24394 STORED_DIR="src/stored"
24400 # Check whether --enable-conio was given.
24401 if test "${enable_conio+set}" = set; then
24402 enableval=$enable_conio;
24403 if test x$enableval = xno; then
24413 # Check whether --enable-ipv6 was given.
24414 if test "${enable_ipv6+set}" = set; then
24415 enableval=$enable_ipv6;
24416 if test x$enableval = xno; then
24424 if test x$support_ipv6 = xyes; then
24425 cat >conftest.$ac_ext <<_ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h. */
24431 #include <sys/types.h>
24432 #include <sys/socket.h>
24433 #include <netinet/in.h>
24437 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
24442 rm -f conftest.$ac_objext conftest$ac_exeext
24443 if { (ac_try="$ac_link"
24444 case "(($ac_try" in
24445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24446 *) ac_try_echo=$ac_try;;
24448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24449 (eval "$ac_link") 2>conftest.er1
24451 grep -v '^ *+' conftest.er1 >conftest.err
24453 cat conftest.err >&5
24454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24455 (exit $ac_status); } && {
24456 test -z "$ac_c_werror_flag" ||
24457 test ! -s conftest.err
24458 } && test -s conftest$ac_exeext &&
24459 $as_test_x conftest$ac_exeext; then
24462 echo "$as_me: failed program was:" >&5
24463 sed 's/^/| /' conftest.$ac_ext >&5
24468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24469 conftest$ac_exeext conftest.$ac_ext
24472 if test x$support_ipv6 = xyes; then
24474 cat >>confdefs.h <<\_ACEOF
24475 #define HAVE_IPV6 1
24481 if test x$support_conio = xyes; then
24482 if test "${ac_cv_header_termcap_h+set}" = set; then
24483 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24484 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24485 if test "${ac_cv_header_termcap_h+set}" = set; then
24486 echo $ECHO_N "(cached) $ECHO_C" >&6
24488 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24489 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24491 # Is the header compilable?
24492 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
24493 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
24494 cat >conftest.$ac_ext <<_ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 $ac_includes_default
24501 #include <termcap.h>
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_compile") 2>conftest.er1
24512 grep -v '^ *+' conftest.er1 >conftest.err
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } && {
24517 test -z "$ac_c_werror_flag" ||
24518 test ! -s conftest.err
24519 } && test -s conftest.$ac_objext; then
24520 ac_header_compiler=yes
24522 echo "$as_me: failed program was:" >&5
24523 sed 's/^/| /' conftest.$ac_ext >&5
24525 ac_header_compiler=no
24528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24529 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24530 echo "${ECHO_T}$ac_header_compiler" >&6; }
24532 # Is the header present?
24533 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
24534 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
24535 cat >conftest.$ac_ext <<_ACEOF
24538 cat confdefs.h >>conftest.$ac_ext
24539 cat >>conftest.$ac_ext <<_ACEOF
24540 /* end confdefs.h. */
24541 #include <termcap.h>
24543 if { (ac_try="$ac_cpp conftest.$ac_ext"
24544 case "(($ac_try" in
24545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24546 *) ac_try_echo=$ac_try;;
24548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24551 grep -v '^ *+' conftest.er1 >conftest.err
24553 cat conftest.err >&5
24554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24555 (exit $ac_status); } >/dev/null && {
24556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24557 test ! -s conftest.err
24559 ac_header_preproc=yes
24561 echo "$as_me: failed program was:" >&5
24562 sed 's/^/| /' conftest.$ac_ext >&5
24564 ac_header_preproc=no
24567 rm -f conftest.err conftest.$ac_ext
24568 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24569 echo "${ECHO_T}$ac_header_preproc" >&6; }
24571 # So? What about this header?
24572 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24574 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
24575 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24576 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
24577 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
24578 ac_header_preproc=yes
24581 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
24582 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
24583 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
24584 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
24585 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
24586 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
24587 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
24588 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
24589 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
24590 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
24591 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
24592 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
24596 { echo "$as_me:$LINENO: checking for termcap.h" >&5
24597 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
24598 if test "${ac_cv_header_termcap_h+set}" = set; then
24599 echo $ECHO_N "(cached) $ECHO_C" >&6
24601 ac_cv_header_termcap_h=$ac_header_preproc
24603 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
24604 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
24607 if test $ac_cv_header_termcap_h = yes; then
24608 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
24609 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
24610 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
24611 echo $ECHO_N "(cached) $ECHO_C" >&6
24613 ac_check_lib_save_LIBS=$LIBS
24614 LIBS="-ltermcap $LIBS"
24615 cat >conftest.$ac_ext <<_ACEOF
24618 cat confdefs.h >>conftest.$ac_ext
24619 cat >>conftest.$ac_ext <<_ACEOF
24620 /* end confdefs.h. */
24622 /* Override any GCC internal prototype to avoid an error.
24623 Use char because int might match the return type of a GCC
24624 builtin and then its argument prototype would still apply. */
24637 rm -f conftest.$ac_objext conftest$ac_exeext
24638 if { (ac_try="$ac_link"
24639 case "(($ac_try" in
24640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24641 *) ac_try_echo=$ac_try;;
24643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24644 (eval "$ac_link") 2>conftest.er1
24646 grep -v '^ *+' conftest.er1 >conftest.err
24648 cat conftest.err >&5
24649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24650 (exit $ac_status); } && {
24651 test -z "$ac_c_werror_flag" ||
24652 test ! -s conftest.err
24653 } && test -s conftest$ac_exeext &&
24654 $as_test_x conftest$ac_exeext; then
24655 ac_cv_lib_termcap_tgetent=yes
24657 echo "$as_me: failed program was:" >&5
24658 sed 's/^/| /' conftest.$ac_ext >&5
24660 ac_cv_lib_termcap_tgetent=no
24663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24664 conftest$ac_exeext conftest.$ac_ext
24665 LIBS=$ac_check_lib_save_LIBS
24667 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
24668 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
24669 if test $ac_cv_lib_termcap_tgetent = yes; then
24670 CONS_LIBS="-ltermcap"
24674 support_readline=no
24676 cat >>confdefs.h <<\_ACEOF
24677 #define HAVE_CONIO 1
24682 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
24683 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
24684 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
24685 echo $ECHO_N "(cached) $ECHO_C" >&6
24687 ac_check_lib_save_LIBS=$LIBS
24688 LIBS="-lncurses $LIBS"
24689 cat >conftest.$ac_ext <<_ACEOF
24692 cat confdefs.h >>conftest.$ac_ext
24693 cat >>conftest.$ac_ext <<_ACEOF
24694 /* end confdefs.h. */
24696 /* Override any GCC internal prototype to avoid an error.
24697 Use char because int might match the return type of a GCC
24698 builtin and then its argument prototype would still apply. */
24711 rm -f conftest.$ac_objext conftest$ac_exeext
24712 if { (ac_try="$ac_link"
24713 case "(($ac_try" in
24714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715 *) ac_try_echo=$ac_try;;
24717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718 (eval "$ac_link") 2>conftest.er1
24720 grep -v '^ *+' conftest.er1 >conftest.err
24722 cat conftest.err >&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } && {
24725 test -z "$ac_c_werror_flag" ||
24726 test ! -s conftest.err
24727 } && test -s conftest$ac_exeext &&
24728 $as_test_x conftest$ac_exeext; then
24729 ac_cv_lib_ncurses_tgetent=yes
24731 echo "$as_me: failed program was:" >&5
24732 sed 's/^/| /' conftest.$ac_ext >&5
24734 ac_cv_lib_ncurses_tgetent=no
24737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24738 conftest$ac_exeext conftest.$ac_ext
24739 LIBS=$ac_check_lib_save_LIBS
24741 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
24742 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
24743 if test $ac_cv_lib_ncurses_tgetent = yes; then
24744 CONS_LIBS="-lncurses"
24748 support_readline=no
24750 cat >>confdefs.h <<\_ACEOF
24751 #define HAVE_CONIO 1
24764 for ac_header in curses.h
24766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
24773 ac_res=`eval echo '${'$as_ac_Header'}'`
24774 { echo "$as_me:$LINENO: result: $ac_res" >&5
24775 echo "${ECHO_T}$ac_res" >&6; }
24777 # Is the header compilable?
24778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24780 cat >conftest.$ac_ext <<_ACEOF
24783 cat confdefs.h >>conftest.$ac_ext
24784 cat >>conftest.$ac_ext <<_ACEOF
24785 /* end confdefs.h. */
24786 $ac_includes_default
24787 #include <$ac_header>
24789 rm -f conftest.$ac_objext
24790 if { (ac_try="$ac_compile"
24791 case "(($ac_try" in
24792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24793 *) ac_try_echo=$ac_try;;
24795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24796 (eval "$ac_compile") 2>conftest.er1
24798 grep -v '^ *+' conftest.er1 >conftest.err
24800 cat conftest.err >&5
24801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24802 (exit $ac_status); } && {
24803 test -z "$ac_c_werror_flag" ||
24804 test ! -s conftest.err
24805 } && test -s conftest.$ac_objext; then
24806 ac_header_compiler=yes
24808 echo "$as_me: failed program was:" >&5
24809 sed 's/^/| /' conftest.$ac_ext >&5
24811 ac_header_compiler=no
24814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24816 echo "${ECHO_T}$ac_header_compiler" >&6; }
24818 # Is the header present?
24819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24821 cat >conftest.$ac_ext <<_ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h. */
24827 #include <$ac_header>
24829 if { (ac_try="$ac_cpp conftest.$ac_ext"
24830 case "(($ac_try" in
24831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24832 *) ac_try_echo=$ac_try;;
24834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24837 grep -v '^ *+' conftest.er1 >conftest.err
24839 cat conftest.err >&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); } >/dev/null && {
24842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24843 test ! -s conftest.err
24845 ac_header_preproc=yes
24847 echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.$ac_ext >&5
24850 ac_header_preproc=no
24853 rm -f conftest.err conftest.$ac_ext
24854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24855 echo "${ECHO_T}$ac_header_preproc" >&6; }
24857 # So? What about this header?
24858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24864 ac_header_preproc=yes
24867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24885 echo $ECHO_N "(cached) $ECHO_C" >&6
24887 eval "$as_ac_Header=\$ac_header_preproc"
24889 ac_res=`eval echo '${'$as_ac_Header'}'`
24890 { echo "$as_me:$LINENO: result: $ac_res" >&5
24891 echo "${ECHO_T}$ac_res" >&6; }
24894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24895 cat >>confdefs.h <<_ACEOF
24896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24903 { echo "$as_me:$LINENO: checking for term.h" >&5
24904 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
24905 if test "${ac_cv_header_term_h+set}" = set; then
24906 echo $ECHO_N "(cached) $ECHO_C" >&6
24908 cat >conftest.$ac_ext <<_ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h. */
24915 #include <curses.h>
24921 rm -f conftest.$ac_objext
24922 if { (ac_try="$ac_compile"
24923 case "(($ac_try" in
24924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24925 *) ac_try_echo=$ac_try;;
24927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24928 (eval "$ac_compile") 2>conftest.er1
24930 grep -v '^ *+' conftest.er1 >conftest.err
24932 cat conftest.err >&5
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); } && {
24935 test -z "$ac_c_werror_flag" ||
24936 test ! -s conftest.err
24937 } && test -s conftest.$ac_objext; then
24938 ac_cv_header_term_h=yes
24940 echo "$as_me: failed program was:" >&5
24941 sed 's/^/| /' conftest.$ac_ext >&5
24943 ac_cv_header_term_h=no
24946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24948 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
24949 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
24950 if test $ac_cv_header_term_h = yes; then
24951 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
24952 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
24953 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
24954 echo $ECHO_N "(cached) $ECHO_C" >&6
24956 ac_check_lib_save_LIBS=$LIBS
24957 LIBS="-lcurses $LIBS"
24958 cat >conftest.$ac_ext <<_ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24965 /* Override any GCC internal prototype to avoid an error.
24966 Use char because int might match the return type of a GCC
24967 builtin and then its argument prototype would still apply. */
24980 rm -f conftest.$ac_objext conftest$ac_exeext
24981 if { (ac_try="$ac_link"
24982 case "(($ac_try" in
24983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984 *) ac_try_echo=$ac_try;;
24986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24987 (eval "$ac_link") 2>conftest.er1
24989 grep -v '^ *+' conftest.er1 >conftest.err
24991 cat conftest.err >&5
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); } && {
24994 test -z "$ac_c_werror_flag" ||
24995 test ! -s conftest.err
24996 } && test -s conftest$ac_exeext &&
24997 $as_test_x conftest$ac_exeext; then
24998 ac_cv_lib_curses_tgetent=yes
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25003 ac_cv_lib_curses_tgetent=no
25006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25007 conftest$ac_exeext conftest.$ac_ext
25008 LIBS=$ac_check_lib_save_LIBS
25010 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
25011 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
25012 if test $ac_cv_lib_curses_tgetent = yes; then
25013 CONS_LIBS="-lcurses"
25017 support_readline=no
25019 cat >>confdefs.h <<\_ACEOF
25020 #define HAVE_CONIO 1
25028 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
25039 # Check whether --enable-readline was given.
25040 if test "${enable_readline+set}" = set; then
25041 enableval=$enable_readline;
25042 if test x$enableval = xno; then
25043 support_readline=no
25052 if test x$support_readline = xyes; then
25054 # Check whether --with-readline was given.
25055 if test "${with_readline+set}" = set; then
25056 withval=$with_readline;
25057 case "$with_readline" in
25062 if test -f ${with_readline}/readline.h; then
25063 CONS_INC="-I${with_readline}"
25064 CONS_LDFLAGS="-L$with_readline"
25065 elif test -f ${with_readline}/include/readline/readline.h; then
25066 CONS_INC="-I${with_readline}/include/readline"
25067 CONS_LDFLAGS="-L${with_readline}/lib"
25068 with_readline="${with_readline}/include/readline"
25070 with_readline="/usr/include/readline"
25073 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
25074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25075 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25076 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25078 echo $ECHO_N "(cached) $ECHO_C" >&6
25080 ac_res=`eval echo '${'$as_ac_Header'}'`
25081 { echo "$as_me:$LINENO: result: $ac_res" >&5
25082 echo "${ECHO_T}$ac_res" >&6; }
25084 # Is the header compilable?
25085 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
25086 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
25087 cat >conftest.$ac_ext <<_ACEOF
25090 cat confdefs.h >>conftest.$ac_ext
25091 cat >>conftest.$ac_ext <<_ACEOF
25092 /* end confdefs.h. */
25093 $ac_includes_default
25094 #include <${with_readline}/readline.h>
25096 rm -f conftest.$ac_objext
25097 if { (ac_try="$ac_compile"
25098 case "(($ac_try" in
25099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100 *) ac_try_echo=$ac_try;;
25102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103 (eval "$ac_compile") 2>conftest.er1
25105 grep -v '^ *+' conftest.er1 >conftest.err
25107 cat conftest.err >&5
25108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109 (exit $ac_status); } && {
25110 test -z "$ac_c_werror_flag" ||
25111 test ! -s conftest.err
25112 } && test -s conftest.$ac_objext; then
25113 ac_header_compiler=yes
25115 echo "$as_me: failed program was:" >&5
25116 sed 's/^/| /' conftest.$ac_ext >&5
25118 ac_header_compiler=no
25121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25123 echo "${ECHO_T}$ac_header_compiler" >&6; }
25125 # Is the header present?
25126 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
25127 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
25128 cat >conftest.$ac_ext <<_ACEOF
25131 cat confdefs.h >>conftest.$ac_ext
25132 cat >>conftest.$ac_ext <<_ACEOF
25133 /* end confdefs.h. */
25134 #include <${with_readline}/readline.h>
25136 if { (ac_try="$ac_cpp conftest.$ac_ext"
25137 case "(($ac_try" in
25138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25139 *) ac_try_echo=$ac_try;;
25141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25144 grep -v '^ *+' conftest.er1 >conftest.err
25146 cat conftest.err >&5
25147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25148 (exit $ac_status); } >/dev/null && {
25149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25150 test ! -s conftest.err
25152 ac_header_preproc=yes
25154 echo "$as_me: failed program was:" >&5
25155 sed 's/^/| /' conftest.$ac_ext >&5
25157 ac_header_preproc=no
25160 rm -f conftest.err conftest.$ac_ext
25161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25162 echo "${ECHO_T}$ac_header_preproc" >&6; }
25164 # So? What about this header?
25165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25167 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25168 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25169 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
25170 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
25171 ac_header_preproc=yes
25174 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
25175 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
25176 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
25177 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
25178 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
25179 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
25180 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25181 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25182 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
25183 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
25184 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
25185 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
25189 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
25190 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
25191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25192 echo $ECHO_N "(cached) $ECHO_C" >&6
25194 eval "$as_ac_Header=\$ac_header_preproc"
25196 ac_res=`eval echo '${'$as_ac_Header'}'`
25197 { echo "$as_me:$LINENO: result: $ac_res" >&5
25198 echo "${ECHO_T}$ac_res" >&6; }
25201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25204 cat >>confdefs.h <<\_ACEOF
25205 #define HAVE_READLINE 1
25208 CONS_LIBS="-lreadline -lhistory -ltermcap"
25214 echo "readline.h not found. readline turned off ..."
25226 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25227 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25228 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25229 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25230 echo $ECHO_N "(cached) $ECHO_C" >&6
25232 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25233 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25235 # Is the header compilable?
25236 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
25237 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
25238 cat >conftest.$ac_ext <<_ACEOF
25241 cat confdefs.h >>conftest.$ac_ext
25242 cat >>conftest.$ac_ext <<_ACEOF
25243 /* end confdefs.h. */
25244 $ac_includes_default
25245 #include </usr/include/readline/readline.h>
25247 rm -f conftest.$ac_objext
25248 if { (ac_try="$ac_compile"
25249 case "(($ac_try" in
25250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251 *) ac_try_echo=$ac_try;;
25253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25254 (eval "$ac_compile") 2>conftest.er1
25256 grep -v '^ *+' conftest.er1 >conftest.err
25258 cat conftest.err >&5
25259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25260 (exit $ac_status); } && {
25261 test -z "$ac_c_werror_flag" ||
25262 test ! -s conftest.err
25263 } && test -s conftest.$ac_objext; then
25264 ac_header_compiler=yes
25266 echo "$as_me: failed program was:" >&5
25267 sed 's/^/| /' conftest.$ac_ext >&5
25269 ac_header_compiler=no
25272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25274 echo "${ECHO_T}$ac_header_compiler" >&6; }
25276 # Is the header present?
25277 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
25278 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
25279 cat >conftest.$ac_ext <<_ACEOF
25282 cat confdefs.h >>conftest.$ac_ext
25283 cat >>conftest.$ac_ext <<_ACEOF
25284 /* end confdefs.h. */
25285 #include </usr/include/readline/readline.h>
25287 if { (ac_try="$ac_cpp conftest.$ac_ext"
25288 case "(($ac_try" in
25289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25290 *) ac_try_echo=$ac_try;;
25292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25295 grep -v '^ *+' conftest.er1 >conftest.err
25297 cat conftest.err >&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); } >/dev/null && {
25300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25301 test ! -s conftest.err
25303 ac_header_preproc=yes
25305 echo "$as_me: failed program was:" >&5
25306 sed 's/^/| /' conftest.$ac_ext >&5
25308 ac_header_preproc=no
25311 rm -f conftest.err conftest.$ac_ext
25312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25313 echo "${ECHO_T}$ac_header_preproc" >&6; }
25315 # So? What about this header?
25316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25318 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25319 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25320 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
25321 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
25322 ac_header_preproc=yes
25325 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
25326 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
25327 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
25328 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
25329 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
25330 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
25331 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25332 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25333 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
25334 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25335 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
25336 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25340 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
25341 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
25342 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
25343 echo $ECHO_N "(cached) $ECHO_C" >&6
25345 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
25347 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
25348 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
25351 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
25354 cat >>confdefs.h <<\_ACEOF
25355 #define HAVE_READLINE 1
25359 CONS_INC="-I/usr/include/readline"
25360 CONS_LIBS="-lreadline -ltermcap"
25364 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
25365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25366 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25367 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25369 echo $ECHO_N "(cached) $ECHO_C" >&6
25371 ac_res=`eval echo '${'$as_ac_Header'}'`
25372 { echo "$as_me:$LINENO: result: $ac_res" >&5
25373 echo "${ECHO_T}$ac_res" >&6; }
25375 # Is the header compilable?
25376 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
25377 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
25378 cat >conftest.$ac_ext <<_ACEOF
25381 cat confdefs.h >>conftest.$ac_ext
25382 cat >>conftest.$ac_ext <<_ACEOF
25383 /* end confdefs.h. */
25384 $ac_includes_default
25385 #include <${TOP_DIR}/depkgs/readline/readline.h>
25387 rm -f conftest.$ac_objext
25388 if { (ac_try="$ac_compile"
25389 case "(($ac_try" in
25390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25391 *) ac_try_echo=$ac_try;;
25393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25394 (eval "$ac_compile") 2>conftest.er1
25396 grep -v '^ *+' conftest.er1 >conftest.err
25398 cat conftest.err >&5
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); } && {
25401 test -z "$ac_c_werror_flag" ||
25402 test ! -s conftest.err
25403 } && test -s conftest.$ac_objext; then
25404 ac_header_compiler=yes
25406 echo "$as_me: failed program was:" >&5
25407 sed 's/^/| /' conftest.$ac_ext >&5
25409 ac_header_compiler=no
25412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25414 echo "${ECHO_T}$ac_header_compiler" >&6; }
25416 # Is the header present?
25417 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
25418 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
25419 cat >conftest.$ac_ext <<_ACEOF
25422 cat confdefs.h >>conftest.$ac_ext
25423 cat >>conftest.$ac_ext <<_ACEOF
25424 /* end confdefs.h. */
25425 #include <${TOP_DIR}/depkgs/readline/readline.h>
25427 if { (ac_try="$ac_cpp conftest.$ac_ext"
25428 case "(($ac_try" in
25429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25430 *) ac_try_echo=$ac_try;;
25432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25435 grep -v '^ *+' conftest.er1 >conftest.err
25437 cat conftest.err >&5
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); } >/dev/null && {
25440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25441 test ! -s conftest.err
25443 ac_header_preproc=yes
25445 echo "$as_me: failed program was:" >&5
25446 sed 's/^/| /' conftest.$ac_ext >&5
25448 ac_header_preproc=no
25451 rm -f conftest.err conftest.$ac_ext
25452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25453 echo "${ECHO_T}$ac_header_preproc" >&6; }
25455 # So? What about this header?
25456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25458 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
25459 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25460 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
25461 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
25462 ac_header_preproc=yes
25465 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
25466 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
25467 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
25468 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
25469 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
25470 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
25471 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
25472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
25473 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
25474 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
25475 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
25476 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
25480 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
25481 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
25482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25483 echo $ECHO_N "(cached) $ECHO_C" >&6
25485 eval "$as_ac_Header=\$ac_header_preproc"
25487 ac_res=`eval echo '${'$as_ac_Header'}'`
25488 { echo "$as_me:$LINENO: result: $ac_res" >&5
25489 echo "${ECHO_T}$ac_res" >&6; }
25492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25495 cat >>confdefs.h <<\_ACEOF
25496 #define HAVE_READLINE 1
25500 CONS_INC="-I${TOP_DIR}/depkgs/readline"
25501 CONS_LIBS="-lreadline -lhistory -ltermcap"
25502 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
25503 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
25508 echo "readline.h not found. readline turned off ..."
25535 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
25536 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
25537 if test "${ac_cv_header_stat_broken+set}" = set; then
25538 echo $ECHO_N "(cached) $ECHO_C" >&6
25540 cat >conftest.$ac_ext <<_ACEOF
25543 cat confdefs.h >>conftest.$ac_ext
25544 cat >>conftest.$ac_ext <<_ACEOF
25545 /* end confdefs.h. */
25546 #include <sys/types.h>
25547 #include <sys/stat.h>
25549 #if defined S_ISBLK && defined S_IFDIR
25550 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25553 #if defined S_ISBLK && defined S_IFCHR
25554 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25557 #if defined S_ISLNK && defined S_IFREG
25558 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25561 #if defined S_ISSOCK && defined S_IFREG
25562 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25566 rm -f conftest.$ac_objext
25567 if { (ac_try="$ac_compile"
25568 case "(($ac_try" in
25569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570 *) ac_try_echo=$ac_try;;
25572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25573 (eval "$ac_compile") 2>conftest.er1
25575 grep -v '^ *+' conftest.er1 >conftest.err
25577 cat conftest.err >&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } && {
25580 test -z "$ac_c_werror_flag" ||
25581 test ! -s conftest.err
25582 } && test -s conftest.$ac_objext; then
25583 ac_cv_header_stat_broken=no
25585 echo "$as_me: failed program was:" >&5
25586 sed 's/^/| /' conftest.$ac_ext >&5
25588 ac_cv_header_stat_broken=yes
25591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25593 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
25594 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
25595 if test $ac_cv_header_stat_broken = yes; then
25597 cat >>confdefs.h <<\_ACEOF
25598 #define STAT_MACROS_BROKEN 1
25608 ac_header_dirent=no
25609 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25610 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25611 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
25612 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
25613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25614 echo $ECHO_N "(cached) $ECHO_C" >&6
25616 cat >conftest.$ac_ext <<_ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25622 #include <sys/types.h>
25634 rm -f conftest.$ac_objext
25635 if { (ac_try="$ac_compile"
25636 case "(($ac_try" in
25637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25638 *) ac_try_echo=$ac_try;;
25640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25641 (eval "$ac_compile") 2>conftest.er1
25643 grep -v '^ *+' conftest.er1 >conftest.err
25645 cat conftest.err >&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } && {
25648 test -z "$ac_c_werror_flag" ||
25649 test ! -s conftest.err
25650 } && test -s conftest.$ac_objext; then
25651 eval "$as_ac_Header=yes"
25653 echo "$as_me: failed program was:" >&5
25654 sed 's/^/| /' conftest.$ac_ext >&5
25656 eval "$as_ac_Header=no"
25659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 ac_res=`eval echo '${'$as_ac_Header'}'`
25662 { echo "$as_me:$LINENO: result: $ac_res" >&5
25663 echo "${ECHO_T}$ac_res" >&6; }
25664 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25665 cat >>confdefs.h <<_ACEOF
25666 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25669 ac_header_dirent=$ac_hdr; break
25673 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25674 if test $ac_header_dirent = dirent.h; then
25675 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25676 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25677 if test "${ac_cv_search_opendir+set}" = set; then
25678 echo $ECHO_N "(cached) $ECHO_C" >&6
25680 ac_func_search_save_LIBS=$LIBS
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25688 /* Override any GCC internal prototype to avoid an error.
25689 Use char because int might match the return type of a GCC
25690 builtin and then its argument prototype would still apply. */
25703 for ac_lib in '' dir; do
25704 if test -z "$ac_lib"; then
25705 ac_res="none required"
25708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25710 rm -f conftest.$ac_objext conftest$ac_exeext
25711 if { (ac_try="$ac_link"
25712 case "(($ac_try" in
25713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25714 *) ac_try_echo=$ac_try;;
25716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25717 (eval "$ac_link") 2>conftest.er1
25719 grep -v '^ *+' conftest.er1 >conftest.err
25721 cat conftest.err >&5
25722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25723 (exit $ac_status); } && {
25724 test -z "$ac_c_werror_flag" ||
25725 test ! -s conftest.err
25726 } && test -s conftest$ac_exeext &&
25727 $as_test_x conftest$ac_exeext; then
25728 ac_cv_search_opendir=$ac_res
25730 echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25738 if test "${ac_cv_search_opendir+set}" = set; then
25742 if test "${ac_cv_search_opendir+set}" = set; then
25745 ac_cv_search_opendir=no
25747 rm conftest.$ac_ext
25748 LIBS=$ac_func_search_save_LIBS
25750 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25751 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25752 ac_res=$ac_cv_search_opendir
25753 if test "$ac_res" != no; then
25754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25759 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
25760 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
25761 if test "${ac_cv_search_opendir+set}" = set; then
25762 echo $ECHO_N "(cached) $ECHO_C" >&6
25764 ac_func_search_save_LIBS=$LIBS
25765 cat >conftest.$ac_ext <<_ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h. */
25772 /* Override any GCC internal prototype to avoid an error.
25773 Use char because int might match the return type of a GCC
25774 builtin and then its argument prototype would still apply. */
25787 for ac_lib in '' x; do
25788 if test -z "$ac_lib"; then
25789 ac_res="none required"
25792 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25794 rm -f conftest.$ac_objext conftest$ac_exeext
25795 if { (ac_try="$ac_link"
25796 case "(($ac_try" in
25797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25798 *) ac_try_echo=$ac_try;;
25800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25801 (eval "$ac_link") 2>conftest.er1
25803 grep -v '^ *+' conftest.er1 >conftest.err
25805 cat conftest.err >&5
25806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25807 (exit $ac_status); } && {
25808 test -z "$ac_c_werror_flag" ||
25809 test ! -s conftest.err
25810 } && test -s conftest$ac_exeext &&
25811 $as_test_x conftest$ac_exeext; then
25812 ac_cv_search_opendir=$ac_res
25814 echo "$as_me: failed program was:" >&5
25815 sed 's/^/| /' conftest.$ac_ext >&5
25820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25822 if test "${ac_cv_search_opendir+set}" = set; then
25826 if test "${ac_cv_search_opendir+set}" = set; then
25829 ac_cv_search_opendir=no
25831 rm conftest.$ac_ext
25832 LIBS=$ac_func_search_save_LIBS
25834 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
25835 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
25836 ac_res=$ac_cv_search_opendir
25837 if test "$ac_res" != no; then
25838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25851 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
25853 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25854 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25855 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25856 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25857 echo $ECHO_N "(cached) $ECHO_C" >&6
25859 cat >conftest.$ac_ext <<_ACEOF
25862 cat confdefs.h >>conftest.$ac_ext
25863 cat >>conftest.$ac_ext <<_ACEOF
25864 /* end confdefs.h. */
25865 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25867 #define $ac_func innocuous_$ac_func
25869 /* System header to define __stub macros and hopefully few prototypes,
25870 which can conflict with char $ac_func (); below.
25871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25872 <limits.h> exists even on freestanding compilers. */
25875 # include <limits.h>
25877 # include <assert.h>
25882 /* Override any GCC internal prototype to avoid an error.
25883 Use char because int might match the return type of a GCC
25884 builtin and then its argument prototype would still apply. */
25889 /* The GNU C library defines this for functions which it implements
25890 to always fail with ENOSYS. Some functions are actually named
25891 something starting with __ and the normal name is an alias. */
25892 #if defined __stub_$ac_func || defined __stub___$ac_func
25899 return $ac_func ();
25904 rm -f conftest.$ac_objext conftest$ac_exeext
25905 if { (ac_try="$ac_link"
25906 case "(($ac_try" in
25907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25908 *) ac_try_echo=$ac_try;;
25910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25911 (eval "$ac_link") 2>conftest.er1
25913 grep -v '^ *+' conftest.er1 >conftest.err
25915 cat conftest.err >&5
25916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25917 (exit $ac_status); } && {
25918 test -z "$ac_c_werror_flag" ||
25919 test ! -s conftest.err
25920 } && test -s conftest$ac_exeext &&
25921 $as_test_x conftest$ac_exeext; then
25922 eval "$as_ac_var=yes"
25924 echo "$as_me: failed program was:" >&5
25925 sed 's/^/| /' conftest.$ac_ext >&5
25927 eval "$as_ac_var=no"
25930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25931 conftest$ac_exeext conftest.$ac_ext
25933 ac_res=`eval echo '${'$as_ac_var'}'`
25934 { echo "$as_me:$LINENO: result: $ac_res" >&5
25935 echo "${ECHO_T}$ac_res" >&6; }
25936 if test `eval echo '${'$as_ac_var'}'` = yes; then
25937 cat >>confdefs.h <<_ACEOF
25938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25946 for ac_func in nanosleep nl_langinfo
25948 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25949 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25950 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25951 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25952 echo $ECHO_N "(cached) $ECHO_C" >&6
25954 cat >conftest.$ac_ext <<_ACEOF
25957 cat confdefs.h >>conftest.$ac_ext
25958 cat >>conftest.$ac_ext <<_ACEOF
25959 /* end confdefs.h. */
25960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25962 #define $ac_func innocuous_$ac_func
25964 /* System header to define __stub macros and hopefully few prototypes,
25965 which can conflict with char $ac_func (); below.
25966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25967 <limits.h> exists even on freestanding compilers. */
25970 # include <limits.h>
25972 # include <assert.h>
25977 /* Override any GCC internal prototype to avoid an error.
25978 Use char because int might match the return type of a GCC
25979 builtin and then its argument prototype would still apply. */
25984 /* The GNU C library defines this for functions which it implements
25985 to always fail with ENOSYS. Some functions are actually named
25986 something starting with __ and the normal name is an alias. */
25987 #if defined __stub_$ac_func || defined __stub___$ac_func
25994 return $ac_func ();
25999 rm -f conftest.$ac_objext conftest$ac_exeext
26000 if { (ac_try="$ac_link"
26001 case "(($ac_try" in
26002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26003 *) ac_try_echo=$ac_try;;
26005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26006 (eval "$ac_link") 2>conftest.er1
26008 grep -v '^ *+' conftest.er1 >conftest.err
26010 cat conftest.err >&5
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); } && {
26013 test -z "$ac_c_werror_flag" ||
26014 test ! -s conftest.err
26015 } && test -s conftest$ac_exeext &&
26016 $as_test_x conftest$ac_exeext; then
26017 eval "$as_ac_var=yes"
26019 echo "$as_me: failed program was:" >&5
26020 sed 's/^/| /' conftest.$ac_ext >&5
26022 eval "$as_ac_var=no"
26025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26026 conftest$ac_exeext conftest.$ac_ext
26028 ac_res=`eval echo '${'$as_ac_var'}'`
26029 { echo "$as_me:$LINENO: result: $ac_res" >&5
26030 echo "${ECHO_T}$ac_res" >&6; }
26031 if test `eval echo '${'$as_ac_var'}'` = yes; then
26032 cat >>confdefs.h <<_ACEOF
26033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26040 for ac_header in varargs.h
26042 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26043 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26047 echo $ECHO_N "(cached) $ECHO_C" >&6
26049 ac_res=`eval echo '${'$as_ac_Header'}'`
26050 { echo "$as_me:$LINENO: result: $ac_res" >&5
26051 echo "${ECHO_T}$ac_res" >&6; }
26053 # Is the header compilable?
26054 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26055 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26056 cat >conftest.$ac_ext <<_ACEOF
26059 cat confdefs.h >>conftest.$ac_ext
26060 cat >>conftest.$ac_ext <<_ACEOF
26061 /* end confdefs.h. */
26062 $ac_includes_default
26063 #include <$ac_header>
26065 rm -f conftest.$ac_objext
26066 if { (ac_try="$ac_compile"
26067 case "(($ac_try" in
26068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26069 *) ac_try_echo=$ac_try;;
26071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26072 (eval "$ac_compile") 2>conftest.er1
26074 grep -v '^ *+' conftest.er1 >conftest.err
26076 cat conftest.err >&5
26077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); } && {
26079 test -z "$ac_c_werror_flag" ||
26080 test ! -s conftest.err
26081 } && test -s conftest.$ac_objext; then
26082 ac_header_compiler=yes
26084 echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26087 ac_header_compiler=no
26090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26091 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26092 echo "${ECHO_T}$ac_header_compiler" >&6; }
26094 # Is the header present?
26095 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26096 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26097 cat >conftest.$ac_ext <<_ACEOF
26100 cat confdefs.h >>conftest.$ac_ext
26101 cat >>conftest.$ac_ext <<_ACEOF
26102 /* end confdefs.h. */
26103 #include <$ac_header>
26105 if { (ac_try="$ac_cpp conftest.$ac_ext"
26106 case "(($ac_try" in
26107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26108 *) ac_try_echo=$ac_try;;
26110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26113 grep -v '^ *+' conftest.er1 >conftest.err
26115 cat conftest.err >&5
26116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117 (exit $ac_status); } >/dev/null && {
26118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26119 test ! -s conftest.err
26121 ac_header_preproc=yes
26123 echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26126 ac_header_preproc=no
26129 rm -f conftest.err conftest.$ac_ext
26130 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26131 echo "${ECHO_T}$ac_header_preproc" >&6; }
26133 # So? What about this header?
26134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26140 ac_header_preproc=yes
26143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26144 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26146 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26148 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26150 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26154 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26161 echo $ECHO_N "(cached) $ECHO_C" >&6
26163 eval "$as_ac_Header=\$ac_header_preproc"
26165 ac_res=`eval echo '${'$as_ac_Header'}'`
26166 { echo "$as_me:$LINENO: result: $ac_res" >&5
26167 echo "${ECHO_T}$ac_res" >&6; }
26170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26171 cat >>confdefs.h <<_ACEOF
26172 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26181 { echo "$as_me:$LINENO: checking for Python support" >&5
26182 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
26184 # Check whether --with-python was given.
26185 if test "${with_python+set}" = set; then
26186 withval=$with_python;
26189 if test "$withval" != "no"; then
26190 if test "$withval" = "yes"; then
26191 if test -e /usr/bin/python-config ; then
26192 PYTHON_INCDIR=`/usr/bin/python-config --includes`
26193 PYTHON_LIBS=`/usr/bin/python-config --libs`
26195 for python_root in /usr /usr/local /usr/sfw; do
26196 for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
26197 if test -f $python_root/include/${ver}/Python.h; then
26198 PYTHON_INCDIR=-I$python_root/include/${ver}
26199 if test -d $python_root/lib64/${ver}/config; then
26200 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
26202 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
26209 if test x$PYTHON_INCDIR = x; then
26210 if test -f $prefix/include/Python.h; then
26211 PYTHON_INCDIR=-I$prefix/include
26212 if test -d $prefix/lib64/config; then
26213 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
26215 PYTHON_LIBS="-L$prefix/lib/config -lpython"
26218 { echo "$as_me:$LINENO: result: no" >&5
26219 echo "${ECHO_T}no" >&6; }
26220 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
26221 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
26222 { (exit 1); exit 1; }; }
26227 if test -e $withval/bin/python-config ; then
26228 PYTHON_INCDIR=`$withval/bin/python-config --includes`
26229 PYTHON_LIBS=`$withval/bin/python-config --libs`
26230 elif test -f $withval/Python.h; then
26231 PYTHON_INCDIR=-I$withval
26232 PYTHON_LIBS="-L$withval/config -lpython"
26233 elif test -f $withval/include/Python.h; then
26234 PYTHON_INCDIR=-I$withval/include
26235 if test -d $withval/lib64/config; then
26236 PYTHON_LIBS="-L$withval/lib64/config -lpython"
26238 PYTHON_LIBS="-L$withval/lib/config -lpython"
26240 elif test -f $withval/include/python/Python.h; then
26241 PYTHON_INCDIR=-I$withval/include/python
26242 if test -d $withval/lib64/python/config; then
26243 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
26245 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
26248 { echo "$as_me:$LINENO: result: no" >&5
26249 echo "${ECHO_T}no" >&6; }
26250 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
26251 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
26252 { (exit 1); exit 1; }; }
26256 cat >>confdefs.h <<\_ACEOF
26257 #define HAVE_PYTHON 1
26260 { echo "$as_me:$LINENO: result: yes" >&5
26261 echo "${ECHO_T}yes" >&6; }
26263 { echo "$as_me:$LINENO: checking for more Python libs" >&5
26264 echo "$as_me: checking for more Python libs" >&6;}
26265 saved_LIBS="$LIBS"; LIBS=
26266 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
26267 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
26268 if test "${ac_cv_search_shm_open+set}" = set; then
26269 echo $ECHO_N "(cached) $ECHO_C" >&6
26271 ac_func_search_save_LIBS=$LIBS
26272 cat >conftest.$ac_ext <<_ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h. */
26279 /* Override any GCC internal prototype to avoid an error.
26280 Use char because int might match the return type of a GCC
26281 builtin and then its argument prototype would still apply. */
26289 return shm_open ();
26294 for ac_lib in '' rt; do
26295 if test -z "$ac_lib"; then
26296 ac_res="none required"
26299 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26301 rm -f conftest.$ac_objext conftest$ac_exeext
26302 if { (ac_try="$ac_link"
26303 case "(($ac_try" in
26304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26305 *) ac_try_echo=$ac_try;;
26307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26308 (eval "$ac_link") 2>conftest.er1
26310 grep -v '^ *+' conftest.er1 >conftest.err
26312 cat conftest.err >&5
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); } && {
26315 test -z "$ac_c_werror_flag" ||
26316 test ! -s conftest.err
26317 } && test -s conftest$ac_exeext &&
26318 $as_test_x conftest$ac_exeext; then
26319 ac_cv_search_shm_open=$ac_res
26321 echo "$as_me: failed program was:" >&5
26322 sed 's/^/| /' conftest.$ac_ext >&5
26327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26329 if test "${ac_cv_search_shm_open+set}" = set; then
26333 if test "${ac_cv_search_shm_open+set}" = set; then
26336 ac_cv_search_shm_open=no
26338 rm conftest.$ac_ext
26339 LIBS=$ac_func_search_save_LIBS
26341 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
26342 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
26343 ac_res=$ac_cv_search_shm_open
26344 if test "$ac_res" != no; then
26345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26350 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
26351 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
26352 if test "${ac_cv_lib_util_openpty+set}" = set; then
26353 echo $ECHO_N "(cached) $ECHO_C" >&6
26355 ac_check_lib_save_LIBS=$LIBS
26356 LIBS="-lutil $LIBS"
26357 cat >conftest.$ac_ext <<_ACEOF
26360 cat confdefs.h >>conftest.$ac_ext
26361 cat >>conftest.$ac_ext <<_ACEOF
26362 /* end confdefs.h. */
26364 /* Override any GCC internal prototype to avoid an error.
26365 Use char because int might match the return type of a GCC
26366 builtin and then its argument prototype would still apply. */
26379 rm -f conftest.$ac_objext conftest$ac_exeext
26380 if { (ac_try="$ac_link"
26381 case "(($ac_try" in
26382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26383 *) ac_try_echo=$ac_try;;
26385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26386 (eval "$ac_link") 2>conftest.er1
26388 grep -v '^ *+' conftest.er1 >conftest.err
26390 cat conftest.err >&5
26391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); } && {
26393 test -z "$ac_c_werror_flag" ||
26394 test ! -s conftest.err
26395 } && test -s conftest$ac_exeext &&
26396 $as_test_x conftest$ac_exeext; then
26397 ac_cv_lib_util_openpty=yes
26399 echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26402 ac_cv_lib_util_openpty=no
26405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26406 conftest$ac_exeext conftest.$ac_ext
26407 LIBS=$ac_check_lib_save_LIBS
26409 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
26410 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
26411 if test $ac_cv_lib_util_openpty = yes; then
26412 cat >>confdefs.h <<_ACEOF
26413 #define HAVE_LIBUTIL 1
26416 LIBS="-lutil $LIBS"
26420 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
26423 { echo "$as_me:$LINENO: result: no" >&5
26424 echo "${ECHO_T}no" >&6; }
26429 { echo "$as_me:$LINENO: result: no" >&5
26430 echo "${ECHO_T}no" >&6; }
26438 { echo "$as_me:$LINENO: checking for socket" >&5
26439 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
26440 if test "${ac_cv_func_socket+set}" = set; then
26441 echo $ECHO_N "(cached) $ECHO_C" >&6
26443 cat >conftest.$ac_ext <<_ACEOF
26446 cat confdefs.h >>conftest.$ac_ext
26447 cat >>conftest.$ac_ext <<_ACEOF
26448 /* end confdefs.h. */
26449 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
26450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26451 #define socket innocuous_socket
26453 /* System header to define __stub macros and hopefully few prototypes,
26454 which can conflict with char socket (); below.
26455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26456 <limits.h> exists even on freestanding compilers. */
26459 # include <limits.h>
26461 # include <assert.h>
26466 /* Override any GCC internal prototype to avoid an error.
26467 Use char because int might match the return type of a GCC
26468 builtin and then its argument prototype would still apply. */
26473 /* The GNU C library defines this for functions which it implements
26474 to always fail with ENOSYS. Some functions are actually named
26475 something starting with __ and the normal name is an alias. */
26476 #if defined __stub_socket || defined __stub___socket
26488 rm -f conftest.$ac_objext conftest$ac_exeext
26489 if { (ac_try="$ac_link"
26490 case "(($ac_try" in
26491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492 *) ac_try_echo=$ac_try;;
26494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26495 (eval "$ac_link") 2>conftest.er1
26497 grep -v '^ *+' conftest.er1 >conftest.err
26499 cat conftest.err >&5
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); } && {
26502 test -z "$ac_c_werror_flag" ||
26503 test ! -s conftest.err
26504 } && test -s conftest$ac_exeext &&
26505 $as_test_x conftest$ac_exeext; then
26506 ac_cv_func_socket=yes
26508 echo "$as_me: failed program was:" >&5
26509 sed 's/^/| /' conftest.$ac_ext >&5
26511 ac_cv_func_socket=no
26514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26515 conftest$ac_exeext conftest.$ac_ext
26517 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
26518 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
26519 if test $ac_cv_func_socket = yes; then
26520 { echo "$as_me:$LINENO: result: using libc's socket" >&5
26521 echo "${ECHO_T}using libc's socket" >&6; }
26524 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
26525 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
26526 if test "${ac_cv_lib_xnet_socket+set}" = set; then
26527 echo $ECHO_N "(cached) $ECHO_C" >&6
26529 ac_check_lib_save_LIBS=$LIBS
26530 LIBS="-lxnet $LIBS"
26531 cat >conftest.$ac_ext <<_ACEOF
26534 cat confdefs.h >>conftest.$ac_ext
26535 cat >>conftest.$ac_ext <<_ACEOF
26536 /* end confdefs.h. */
26538 /* Override any GCC internal prototype to avoid an error.
26539 Use char because int might match the return type of a GCC
26540 builtin and then its argument prototype would still apply. */
26553 rm -f conftest.$ac_objext conftest$ac_exeext
26554 if { (ac_try="$ac_link"
26555 case "(($ac_try" in
26556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26557 *) ac_try_echo=$ac_try;;
26559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26560 (eval "$ac_link") 2>conftest.er1
26562 grep -v '^ *+' conftest.er1 >conftest.err
26564 cat conftest.err >&5
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); } && {
26567 test -z "$ac_c_werror_flag" ||
26568 test ! -s conftest.err
26569 } && test -s conftest$ac_exeext &&
26570 $as_test_x conftest$ac_exeext; then
26571 ac_cv_lib_xnet_socket=yes
26573 echo "$as_me: failed program was:" >&5
26574 sed 's/^/| /' conftest.$ac_ext >&5
26576 ac_cv_lib_xnet_socket=no
26579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26580 conftest$ac_exeext conftest.$ac_ext
26581 LIBS=$ac_check_lib_save_LIBS
26583 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
26584 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
26585 if test $ac_cv_lib_xnet_socket = yes; then
26586 cat >>confdefs.h <<_ACEOF
26587 #define HAVE_LIBXNET 1
26590 LIBS="-lxnet $LIBS"
26595 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
26596 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
26597 if test "${ac_cv_lib_socket_socket+set}" = set; then
26598 echo $ECHO_N "(cached) $ECHO_C" >&6
26600 ac_check_lib_save_LIBS=$LIBS
26601 LIBS="-lsocket $LIBS"
26602 cat >conftest.$ac_ext <<_ACEOF
26605 cat confdefs.h >>conftest.$ac_ext
26606 cat >>conftest.$ac_ext <<_ACEOF
26607 /* end confdefs.h. */
26609 /* Override any GCC internal prototype to avoid an error.
26610 Use char because int might match the return type of a GCC
26611 builtin and then its argument prototype would still apply. */
26624 rm -f conftest.$ac_objext conftest$ac_exeext
26625 if { (ac_try="$ac_link"
26626 case "(($ac_try" in
26627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26628 *) ac_try_echo=$ac_try;;
26630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26631 (eval "$ac_link") 2>conftest.er1
26633 grep -v '^ *+' conftest.er1 >conftest.err
26635 cat conftest.err >&5
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } && {
26638 test -z "$ac_c_werror_flag" ||
26639 test ! -s conftest.err
26640 } && test -s conftest$ac_exeext &&
26641 $as_test_x conftest$ac_exeext; then
26642 ac_cv_lib_socket_socket=yes
26644 echo "$as_me: failed program was:" >&5
26645 sed 's/^/| /' conftest.$ac_ext >&5
26647 ac_cv_lib_socket_socket=no
26650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26651 conftest$ac_exeext conftest.$ac_ext
26652 LIBS=$ac_check_lib_save_LIBS
26654 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
26655 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
26656 if test $ac_cv_lib_socket_socket = yes; then
26657 cat >>confdefs.h <<_ACEOF
26658 #define HAVE_LIBSOCKET 1
26661 LIBS="-lsocket $LIBS"
26666 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
26667 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
26668 if test "${ac_cv_lib_inet_socket+set}" = set; then
26669 echo $ECHO_N "(cached) $ECHO_C" >&6
26671 ac_check_lib_save_LIBS=$LIBS
26672 LIBS="-linet $LIBS"
26673 cat >conftest.$ac_ext <<_ACEOF
26676 cat confdefs.h >>conftest.$ac_ext
26677 cat >>conftest.$ac_ext <<_ACEOF
26678 /* end confdefs.h. */
26680 /* Override any GCC internal prototype to avoid an error.
26681 Use char because int might match the return type of a GCC
26682 builtin and then its argument prototype would still apply. */
26695 rm -f conftest.$ac_objext conftest$ac_exeext
26696 if { (ac_try="$ac_link"
26697 case "(($ac_try" in
26698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26699 *) ac_try_echo=$ac_try;;
26701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26702 (eval "$ac_link") 2>conftest.er1
26704 grep -v '^ *+' conftest.er1 >conftest.err
26706 cat conftest.err >&5
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); } && {
26709 test -z "$ac_c_werror_flag" ||
26710 test ! -s conftest.err
26711 } && test -s conftest$ac_exeext &&
26712 $as_test_x conftest$ac_exeext; then
26713 ac_cv_lib_inet_socket=yes
26715 echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26718 ac_cv_lib_inet_socket=no
26721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26722 conftest$ac_exeext conftest.$ac_ext
26723 LIBS=$ac_check_lib_save_LIBS
26725 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
26726 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
26727 if test $ac_cv_lib_inet_socket = yes; then
26728 cat >>confdefs.h <<_ACEOF
26729 #define HAVE_LIBINET 1
26732 LIBS="-linet $LIBS"
26742 # Check whether --with-tcp-wrappers was given.
26743 if test "${with_tcp_wrappers+set}" = set; then
26744 withval=$with_tcp_wrappers;
26745 if test "x$withval" != "xno" ; then
26747 LIBS="$saved_LIBS -lwrap"
26748 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
26749 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
26750 if test "${ac_cv_search_nanosleep+set}" = set; then
26751 echo $ECHO_N "(cached) $ECHO_C" >&6
26753 ac_func_search_save_LIBS=$LIBS
26754 cat >conftest.$ac_ext <<_ACEOF
26757 cat confdefs.h >>conftest.$ac_ext
26758 cat >>conftest.$ac_ext <<_ACEOF
26759 /* end confdefs.h. */
26761 /* Override any GCC internal prototype to avoid an error.
26762 Use char because int might match the return type of a GCC
26763 builtin and then its argument prototype would still apply. */
26771 return nanosleep ();
26776 for ac_lib in '' rt; do
26777 if test -z "$ac_lib"; then
26778 ac_res="none required"
26781 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26783 rm -f conftest.$ac_objext conftest$ac_exeext
26784 if { (ac_try="$ac_link"
26785 case "(($ac_try" in
26786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26787 *) ac_try_echo=$ac_try;;
26789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26790 (eval "$ac_link") 2>conftest.er1
26792 grep -v '^ *+' conftest.er1 >conftest.err
26794 cat conftest.err >&5
26795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26796 (exit $ac_status); } && {
26797 test -z "$ac_c_werror_flag" ||
26798 test ! -s conftest.err
26799 } && test -s conftest$ac_exeext &&
26800 $as_test_x conftest$ac_exeext; then
26801 ac_cv_search_nanosleep=$ac_res
26803 echo "$as_me: failed program was:" >&5
26804 sed 's/^/| /' conftest.$ac_ext >&5
26809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26811 if test "${ac_cv_search_nanosleep+set}" = set; then
26815 if test "${ac_cv_search_nanosleep+set}" = set; then
26818 ac_cv_search_nanosleep=no
26820 rm conftest.$ac_ext
26821 LIBS=$ac_func_search_save_LIBS
26823 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
26824 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
26825 ac_res=$ac_cv_search_nanosleep
26826 if test "$ac_res" != no; then
26827 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26831 { echo "$as_me:$LINENO: checking for libwrap" >&5
26832 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
26833 cat >conftest.$ac_ext <<_ACEOF
26836 cat confdefs.h >>conftest.$ac_ext
26837 cat >>conftest.$ac_ext <<_ACEOF
26838 /* end confdefs.h. */
26840 #include <sys/types.h>
26842 int deny_severity = 0;
26843 int allow_severity = 0;
26844 struct request_info *req;
26856 rm -f conftest.$ac_objext conftest$ac_exeext
26857 if { (ac_try="$ac_link"
26858 case "(($ac_try" in
26859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860 *) ac_try_echo=$ac_try;;
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863 (eval "$ac_link") 2>conftest.er1
26865 grep -v '^ *+' conftest.er1 >conftest.err
26867 cat conftest.err >&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); } && {
26870 test -z "$ac_c_werror_flag" ||
26871 test ! -s conftest.err
26872 } && test -s conftest$ac_exeext &&
26873 $as_test_x conftest$ac_exeext; then
26875 { echo "$as_me:$LINENO: result: yes" >&5
26876 echo "${ECHO_T}yes" >&6; }
26878 cat >>confdefs.h <<\_ACEOF
26879 #define HAVE_LIBWRAP 1
26887 echo "$as_me: failed program was:" >&5
26888 sed 's/^/| /' conftest.$ac_ext >&5
26891 LIBS="$saved_LIBS -lwrap -lnsl"
26892 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
26893 cat >conftest.$ac_ext <<_ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26900 #include <sys/types.h>
26902 int deny_severity = 0;
26903 int allow_severity = 0;
26904 struct request_info *req;
26916 rm -f conftest.$ac_objext conftest$ac_exeext
26917 if { (ac_try="$ac_link"
26918 case "(($ac_try" in
26919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26920 *) ac_try_echo=$ac_try;;
26922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26923 (eval "$ac_link") 2>conftest.er1
26925 grep -v '^ *+' conftest.er1 >conftest.err
26927 cat conftest.err >&5
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); } && {
26930 test -z "$ac_c_werror_flag" ||
26931 test ! -s conftest.err
26932 } && test -s conftest$ac_exeext &&
26933 $as_test_x conftest$ac_exeext; then
26935 { echo "$as_me:$LINENO: result: yes" >&5
26936 echo "${ECHO_T}yes" >&6; }
26938 cat >>confdefs.h <<\_ACEOF
26939 #define HAVE_LIBWRAP 1
26947 echo "$as_me: failed program was:" >&5
26948 sed 's/^/| /' conftest.$ac_ext >&5
26951 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
26952 echo "$as_me: error: *** libwrap missing" >&2;}
26953 { (exit 1); exit 1; }; }
26958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26959 conftest$ac_exeext conftest.$ac_ext
26964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26965 conftest$ac_exeext conftest.$ac_ext
26972 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
26973 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
26975 # Check whether --with-openssl was given.
26976 if test "${with_openssl+set}" = set; then
26977 withval=$with_openssl;
26978 with_openssl_directory=${withval}
26984 if test "x$with_openssl_directory" != "xno"; then
26985 OPENSSL_LIBS="-lssl -lcrypto"
26988 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
26990 # Make sure the $with_openssl_directory also makes sense
26992 if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
26993 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
26994 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
26998 saved_LIBS="${LIBS}"
26999 saved_CFLAGS="${CFLAGS}"
27000 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
27001 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
27003 cat >conftest.$ac_ext <<_ACEOF
27006 cat confdefs.h >>conftest.$ac_ext
27007 cat >>conftest.$ac_ext <<_ACEOF
27008 /* end confdefs.h. */
27010 #include <openssl/ssl.h>
27016 CRYPTO_set_id_callback(NULL);
27022 rm -f conftest.$ac_objext conftest$ac_exeext
27023 if { (ac_try="$ac_link"
27024 case "(($ac_try" in
27025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27026 *) ac_try_echo=$ac_try;;
27028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27029 (eval "$ac_link") 2>conftest.er1
27031 grep -v '^ *+' conftest.er1 >conftest.err
27033 cat conftest.err >&5
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); } && {
27036 test -z "$ac_c_werror_flag" ||
27037 test ! -s conftest.err
27038 } && test -s conftest$ac_exeext &&
27039 $as_test_x conftest$ac_exeext; then
27042 support_crypto="yes"
27045 echo "$as_me: failed program was:" >&5
27046 sed 's/^/| /' conftest.$ac_ext >&5
27050 support_crypto="no"
27055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27056 conftest$ac_exeext conftest.$ac_ext
27058 cat >conftest.$ac_ext <<_ACEOF
27061 cat confdefs.h >>conftest.$ac_ext
27062 cat >>conftest.$ac_ext <<_ACEOF
27063 /* end confdefs.h. */
27065 #include <openssl/evp.h>
27077 rm -f conftest.$ac_objext conftest$ac_exeext
27078 if { (ac_try="$ac_link"
27079 case "(($ac_try" in
27080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27081 *) ac_try_echo=$ac_try;;
27083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27084 (eval "$ac_link") 2>conftest.er1
27086 grep -v '^ *+' conftest.er1 >conftest.err
27088 cat conftest.err >&5
27089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27090 (exit $ac_status); } && {
27091 test -z "$ac_c_werror_flag" ||
27092 test ! -s conftest.err
27093 } && test -s conftest$ac_exeext &&
27094 $as_test_x conftest$ac_exeext; then
27096 ac_cv_openssl_sha2="yes"
27099 echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27103 ac_cv_openssl_sha2="no"
27108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27109 conftest$ac_exeext conftest.$ac_ext
27111 cat >conftest.$ac_ext <<_ACEOF
27114 cat confdefs.h >>conftest.$ac_ext
27115 cat >>conftest.$ac_ext <<_ACEOF
27116 /* end confdefs.h. */
27118 #include <openssl/evp.h>
27130 rm -f conftest.$ac_objext conftest$ac_exeext
27131 if { (ac_try="$ac_link"
27132 case "(($ac_try" in
27133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27134 *) ac_try_echo=$ac_try;;
27136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27137 (eval "$ac_link") 2>conftest.er1
27139 grep -v '^ *+' conftest.er1 >conftest.err
27141 cat conftest.err >&5
27142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27143 (exit $ac_status); } && {
27144 test -z "$ac_c_werror_flag" ||
27145 test ! -s conftest.err
27146 } && test -s conftest$ac_exeext &&
27147 $as_test_x conftest$ac_exeext; then
27149 ac_cv_openssl_export="no"
27152 echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27156 ac_cv_openssl_export="yes"
27161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27162 conftest$ac_exeext conftest.$ac_ext
27164 LIBS="${saved_LIBS}"
27165 CFLAGS="${saved_CFLAGS}"
27167 if test "$support_tls" = "yes"; then
27169 cat >>confdefs.h <<\_ACEOF
27170 #define HAVE_OPENSSL 1
27174 cat >>confdefs.h <<\_ACEOF
27179 cat >>confdefs.h <<\_ACEOF
27180 #define HAVE_CRYPTO 1
27185 if test "$ac_cv_openssl_sha2" = "yes"; then
27187 cat >>confdefs.h <<\_ACEOF
27188 #define HAVE_SHA2 1
27193 if test "$ac_cv_openssl_export" = "yes"; then
27195 cat >>confdefs.h <<\_ACEOF
27196 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
27202 support_crypto="no"
27207 if test "$support_tls" = "no"; then
27211 if test "$support_crypto" = "no"; then
27216 { echo "$as_me:$LINENO: result: $support_tls" >&5
27217 echo "${ECHO_T}$support_tls" >&6; }
27221 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
27222 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
27223 if test "${ac_cv_search_dlopen+set}" = set; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
27226 ac_func_search_save_LIBS=$LIBS
27227 cat >conftest.$ac_ext <<_ACEOF
27230 cat confdefs.h >>conftest.$ac_ext
27231 cat >>conftest.$ac_ext <<_ACEOF
27232 /* end confdefs.h. */
27234 /* Override any GCC internal prototype to avoid an error.
27235 Use char because int might match the return type of a GCC
27236 builtin and then its argument prototype would still apply. */
27249 for ac_lib in '' dl; do
27250 if test -z "$ac_lib"; then
27251 ac_res="none required"
27254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27256 rm -f conftest.$ac_objext conftest$ac_exeext
27257 if { (ac_try="$ac_link"
27258 case "(($ac_try" in
27259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27260 *) ac_try_echo=$ac_try;;
27262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27263 (eval "$ac_link") 2>conftest.er1
27265 grep -v '^ *+' conftest.er1 >conftest.err
27267 cat conftest.err >&5
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); } && {
27270 test -z "$ac_c_werror_flag" ||
27271 test ! -s conftest.err
27272 } && test -s conftest$ac_exeext &&
27273 $as_test_x conftest$ac_exeext; then
27274 ac_cv_search_dlopen=$ac_res
27276 echo "$as_me: failed program was:" >&5
27277 sed 's/^/| /' conftest.$ac_ext >&5
27282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27284 if test "${ac_cv_search_dlopen+set}" = set; then
27288 if test "${ac_cv_search_dlopen+set}" = set; then
27291 ac_cv_search_dlopen=no
27293 rm conftest.$ac_ext
27294 LIBS=$ac_func_search_save_LIBS
27296 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
27297 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
27298 ac_res=$ac_cv_search_dlopen
27299 if test "$ac_res" != no; then
27300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27305 working_dir=`eval echo ${prefix}/var/bacula/working`
27307 # Check whether --with-working-dir was given.
27308 if test "${with_working_dir+set}" = set; then
27309 withval=$with_working_dir;
27310 if test "x$withval" != "xno" ; then
27311 working_dir=$withval
27322 # Check whether --with-archivedir was given.
27323 if test "${with_archivedir+set}" = set; then
27324 withval=$with_archivedir;
27325 if test "x$withval" != "xno" ; then
27326 archivedir=$withval
27335 basename=`hostname`
27337 # Check whether --with-basename was given.
27338 if test "${with_basename+set}" = set; then
27339 withval=$with_basename;
27340 if test "x$withval" != "xno" ; then
27350 hostname=`uname -n | cut -d '.' -f 1`
27351 if test x${hostname} = x ; then
27352 hostname="localhost"
27355 # Check whether --with-hostname was given.
27356 if test "${with_hostname+set}" = set; then
27357 withval=$with_hostname;
27358 if test "x$withval" != "xno" ; then
27369 scriptdir=`eval echo ${sysconfdir}`
27371 # Check whether --with-scriptdir was given.
27372 if test "${with_scriptdir+set}" = set; then
27373 withval=$with_scriptdir;
27374 if test "x$withval" != "xno" ; then
27387 # Check whether --with-bsrdir was given.
27388 if test "${with_bsrdir+set}" = set; then
27389 withval=$with_bsrdir;
27390 if test "x$withval" != "xno" ; then
27402 # Check whether --with-logdir was given.
27403 if test "${with_logdir+set}" = set; then
27404 withval=$with_logdir;
27405 if test "x$withval" != "xno" ; then
27416 # ------------------------------------------
27417 # Where to place plugindir (plugin files)
27418 # ------------------------------------------
27419 plugindir=`eval echo ${libdir}`
27421 # Check whether --with-plugindir was given.
27422 if test "${with_plugindir+set}" = set; then
27423 withval=$with_plugindir;
27424 if test "x$withval" != "xno" ; then
27434 dump_email=root@localhost
27436 # Check whether --with-dump-email was given.
27437 if test "${with_dump_email+set}" = set; then
27438 withval=$with_dump_email;
27439 if test "x$withval" != "xno" ; then
27440 dump_email=$withval
27449 job_email=root@localhost
27451 # Check whether --with-job-email was given.
27452 if test "${with_job_email+set}" = set; then
27453 withval=$with_job_email;
27454 if test "x$withval" != "xno" ; then
27464 smtp_host=localhost
27466 # Check whether --with-smtp_host was given.
27467 if test "${with_smtp_host+set}" = set; then
27468 withval=$with_smtp_host;
27469 if test "x$withval" != "xno" ; then
27481 # Check whether --with-pid-dir was given.
27482 if test "${with_pid_dir+set}" = set; then
27483 withval=$with_pid_dir;
27484 if test "x$withval" != "xno" ; then
27492 cat >>confdefs.h <<_ACEOF
27493 #define _PATH_BACULA_PIDDIR "$piddir"
27498 subsysdir=/var/run/subsys
27499 if test -d /var/run/subsys; then
27500 subsysdir=/var/run/subsys
27501 elif test -d /var/lock/subsys; then
27502 subsysdir=/var/lock/subsys
27504 subsysdir=/var/run/subsys
27507 # Check whether --with-subsys-dir was given.
27508 if test "${with_subsys_dir+set}" = set; then
27509 withval=$with_subsys_dir;
27510 if test "x$withval" != "xno" ; then
27522 # Check whether --with-baseport was given.
27523 if test "${with_baseport+set}" = set; then
27524 withval=$with_baseport;
27525 if test "x$withval" != "xno" ; then
27534 dir_port=`expr $baseport`
27535 fd_port=`expr $baseport + 1`
27536 sd_port=`expr $fd_port + 1`
27544 # Check whether --with-dir-password was given.
27545 if test "${with_dir_password+set}" = set; then
27546 withval=$with_dir_password;
27547 if test "x$withval" != "xno" ; then
27548 dir_password=$withval
27555 if test "x$dir_password" = "x" ; then
27556 if test "x$OPENSSL" = "xnone" ; then
27557 key=`autoconf/randpass 33`
27559 key=`openssl rand -base64 33`
27566 # Check whether --with-fd-password was given.
27567 if test "${with_fd_password+set}" = set; then
27568 withval=$with_fd_password;
27569 if test "x$withval" != "xno" ; then
27570 fd_password=$withval
27577 if test "x$fd_password" = "x" ; then
27578 if test "x$OPENSSL" = "xnone" ; then
27579 key=`autoconf/randpass 37`
27581 key=`openssl rand -base64 33`
27588 # Check whether --with-sd-password was given.
27589 if test "${with_sd_password+set}" = set; then
27590 withval=$with_sd_password;
27591 if test "x$withval" != "xno" ; then
27592 sd_password=$withval
27599 if test "x$sd_password" = "x" ; then
27600 if test "x$OPENSSL" = "xnone" ; then
27601 key=`autoconf/randpass 41`
27603 key=`openssl rand -base64 33`
27610 # Check whether --with-mon-dir-password was given.
27611 if test "${with_mon_dir_password+set}" = set; then
27612 withval=$with_mon_dir_password;
27613 if test "x$withval" != "xno" ; then
27614 mon_dir_password=$withval
27621 if test "x$mon_dir_password" = "x" ; then
27622 if test "x$OPENSSL" = "xnone" ; then
27623 key=`autoconf/randpass 33`
27625 key=`openssl rand -base64 33`
27627 mon_dir_password=$key
27632 # Check whether --with-mon-fd-password was given.
27633 if test "${with_mon_fd_password+set}" = set; then
27634 withval=$with_mon_fd_password;
27635 if test "x$withval" != "xno" ; then
27636 mon_fd_password=$withval
27643 if test "x$mon_fd_password" = "x" ; then
27644 if test "x$OPENSSL" = "xnone" ; then
27645 key=`autoconf/randpass 37`
27647 key=`openssl rand -base64 33`
27649 mon_fd_password=$key
27654 # Check whether --with-mon-sd-password was given.
27655 if test "${with_mon_sd_password+set}" = set; then
27656 withval=$with_mon_sd_password;
27657 if test "x$withval" != "xno" ; then
27658 mon_sd_password=$withval
27665 if test "x$mon_sd_password" = "x" ; then
27666 if test "x$OPENSSL" = "xnone" ; then
27667 key=`autoconf/randpass 41`
27669 key=`openssl rand -base64 33`
27671 mon_sd_password=$key
27683 # Check whether --with-db_name was given.
27684 if test "${with_db_name+set}" = set; then
27685 withval=$with_db_name;
27686 if test "x$withval" != "x" ; then
27697 # Check whether --with-db_user was given.
27698 if test "${with_db_user+set}" = set; then
27699 withval=$with_db_user;
27700 if test "x$withval" != "x" ; then
27711 # Check whether --with-db_password was given.
27712 if test "${with_db_password+set}" = set; then
27713 withval=$with_db_password;
27714 if test "x$withval" != "x" ; then
27715 db_password=$withval
27725 # Check whether --with-db_port was given.
27726 if test "${with_db_port+set}" = set; then
27727 withval=$with_db_port;
27728 if test "x$withval" != "x" ; then
27738 # Handle users and groups for each daemon
27742 # Check whether --with-dir_user was given.
27743 if test "${with_dir_user+set}" = set; then
27744 withval=$with_dir_user;
27745 if test "x$withval" != "x" ; then
27755 # Check whether --with-dir_group was given.
27756 if test "${with_dir_group+set}" = set; then
27757 withval=$with_dir_group;
27758 if test "x$withval" != "x" ; then
27768 # Check whether --with-sd_user was given.
27769 if test "${with_sd_user+set}" = set; then
27770 withval=$with_sd_user;
27771 if test "x$withval" != "x" ; then
27781 # Check whether --with-sd_group was given.
27782 if test "${with_sd_group+set}" = set; then
27783 withval=$with_sd_group;
27784 if test "x$withval" != "x" ; then
27794 # Check whether --with-fd_user was given.
27795 if test "${with_fd_user+set}" = set; then
27796 withval=$with_fd_user;
27797 if test "x$withval" != "x" ; then
27807 # Check whether --with-fd_group was given.
27808 if test "${with_fd_group+set}" = set; then
27809 withval=$with_fd_group;
27810 if test "x$withval" != "x" ; then
27827 # Check whether --with-sbin-perm was given.
27828 if test "${with_sbin_perm+set}" = set; then
27829 withval=$with_sbin_perm;
27830 if test "x$withval" != "x" ; then
27843 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
27844 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
27846 # Check whether --with-postgresql was given.
27847 if test "${with_postgresql+set}" = set; then
27848 withval=$with_postgresql;
27849 if test "$withval" != "no"; then
27850 if test "$db_found" = "yes"; then
27851 { echo "$as_me:$LINENO: result: error" >&5
27852 echo "${ECHO_T}error" >&6; }
27853 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
27854 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
27855 { (exit 1); exit 1; }; };
27857 if test "$withval" = "yes"; then
27858 PG_CONFIG=`which pg_config`
27859 if test -n "$PG_CONFIG";then
27860 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
27861 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
27862 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
27863 elif test -f /usr/local/include/libpq-fe.h; then
27864 POSTGRESQL_INCDIR=/usr/local/include
27865 if test -d /usr/local/lib64; then
27866 POSTGRESQL_LIBDIR=/usr/local/lib64
27868 POSTGRESQL_LIBDIR=/usr/local/lib
27870 POSTGRESQL_BINDIR=/usr/local/bin
27871 elif test -f /usr/include/libpq-fe.h; then
27872 POSTGRESQL_INCDIR=/usr/include
27873 if test -d /usr/lib64; then
27874 POSTGRESQL_LIBDIR=/usr/lib64
27876 POSTGRESQL_LIBDIR=/usr/lib
27878 POSTGRESQL_BINDIR=/usr/bin
27879 elif test -f /usr/include/pgsql/libpq-fe.h; then
27880 POSTGRESQL_INCDIR=/usr/include/pgsql
27881 if test -d /usr/lib64/pgsql; then
27882 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
27884 POSTGRESQL_LIBDIR=/usr/lib/pgsql
27886 POSTGRESQL_BINDIR=/usr/bin
27887 elif test -f /usr/include/postgresql/libpq-fe.h; then
27888 POSTGRESQL_INCDIR=/usr/include/postgresql
27889 if test -d /usr/lib64/postgresql; then
27890 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
27892 POSTGRESQL_LIBDIR=/usr/lib/postgresql
27894 POSTGRESQL_BINDIR=/usr/bin
27896 { echo "$as_me:$LINENO: result: no" >&5
27897 echo "${ECHO_T}no" >&6; }
27898 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
27899 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
27900 { (exit 1); exit 1; }; }
27902 elif test -f $withval/include/libpq-fe.h; then
27903 POSTGRESQL_INCDIR=$withval/include
27904 POSTGRESQL_LIBDIR=$withval/lib
27905 POSTGRESQL_BINDIR=$withval/bin
27906 elif test -f $withval/include/postgresql/libpq-fe.h; then
27907 POSTGRESQL_INCDIR=$withval/include/postgresql
27908 if test -d $withval/lib64; then
27909 POSTGRESQL_LIBDIR=$withval/lib64
27911 POSTGRESQL_LIBDIR=$withval/lib
27913 POSTGRESQL_BINDIR=$withval/bin
27915 { echo "$as_me:$LINENO: result: no" >&5
27916 echo "${ECHO_T}no" >&6; }
27917 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
27918 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
27919 { (exit 1); exit 1; }; }
27921 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
27922 { echo "$as_me:$LINENO: checking for crypt" >&5
27923 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
27924 if test "${ac_cv_func_crypt+set}" = set; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27927 cat >conftest.$ac_ext <<_ACEOF
27930 cat confdefs.h >>conftest.$ac_ext
27931 cat >>conftest.$ac_ext <<_ACEOF
27932 /* end confdefs.h. */
27933 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
27934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27935 #define crypt innocuous_crypt
27937 /* System header to define __stub macros and hopefully few prototypes,
27938 which can conflict with char crypt (); below.
27939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27940 <limits.h> exists even on freestanding compilers. */
27943 # include <limits.h>
27945 # include <assert.h>
27950 /* Override any GCC internal prototype to avoid an error.
27951 Use char because int might match the return type of a GCC
27952 builtin and then its argument prototype would still apply. */
27957 /* The GNU C library defines this for functions which it implements
27958 to always fail with ENOSYS. Some functions are actually named
27959 something starting with __ and the normal name is an alias. */
27960 #if defined __stub_crypt || defined __stub___crypt
27972 rm -f conftest.$ac_objext conftest$ac_exeext
27973 if { (ac_try="$ac_link"
27974 case "(($ac_try" in
27975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976 *) ac_try_echo=$ac_try;;
27978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979 (eval "$ac_link") 2>conftest.er1
27981 grep -v '^ *+' conftest.er1 >conftest.err
27983 cat conftest.err >&5
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); } && {
27986 test -z "$ac_c_werror_flag" ||
27987 test ! -s conftest.err
27988 } && test -s conftest$ac_exeext &&
27989 $as_test_x conftest$ac_exeext; then
27990 ac_cv_func_crypt=yes
27992 echo "$as_me: failed program was:" >&5
27993 sed 's/^/| /' conftest.$ac_ext >&5
27995 ac_cv_func_crypt=no
27998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27999 conftest$ac_exeext conftest.$ac_ext
28001 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
28002 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
28003 if test $ac_cv_func_crypt = yes; then
28006 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
28007 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
28008 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
28009 echo $ECHO_N "(cached) $ECHO_C" >&6
28011 ac_check_lib_save_LIBS=$LIBS
28012 LIBS="-lcrypt $LIBS"
28013 cat >conftest.$ac_ext <<_ACEOF
28016 cat confdefs.h >>conftest.$ac_ext
28017 cat >>conftest.$ac_ext <<_ACEOF
28018 /* end confdefs.h. */
28020 /* Override any GCC internal prototype to avoid an error.
28021 Use char because int might match the return type of a GCC
28022 builtin and then its argument prototype would still apply. */
28035 rm -f conftest.$ac_objext conftest$ac_exeext
28036 if { (ac_try="$ac_link"
28037 case "(($ac_try" in
28038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28039 *) ac_try_echo=$ac_try;;
28041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28042 (eval "$ac_link") 2>conftest.er1
28044 grep -v '^ *+' conftest.er1 >conftest.err
28046 cat conftest.err >&5
28047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28048 (exit $ac_status); } && {
28049 test -z "$ac_c_werror_flag" ||
28050 test ! -s conftest.err
28051 } && test -s conftest$ac_exeext &&
28052 $as_test_x conftest$ac_exeext; then
28053 ac_cv_lib_crypt_crypt=yes
28055 echo "$as_me: failed program was:" >&5
28056 sed 's/^/| /' conftest.$ac_ext >&5
28058 ac_cv_lib_crypt_crypt=no
28061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28062 conftest$ac_exeext conftest.$ac_ext
28063 LIBS=$ac_check_lib_save_LIBS
28065 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
28066 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
28067 if test $ac_cv_lib_crypt_crypt = yes; then
28068 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
28073 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
28074 SQL_LFLAGS=$POSTGRESQL_LFLAGS
28075 SQL_BINDIR=$POSTGRESQL_BINDIR
28076 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
28078 cat >>confdefs.h <<\_ACEOF
28079 #define HAVE_POSTGRESQL 1
28082 { echo "$as_me:$LINENO: result: yes" >&5
28083 echo "${ECHO_T}yes" >&6; }
28085 support_postgresql=yes
28089 { echo "$as_me:$LINENO: result: no" >&5
28090 echo "${ECHO_T}no" >&6; }
28095 { echo "$as_me:$LINENO: result: no" >&5
28096 echo "${ECHO_T}no" >&6; }
28108 { echo "$as_me:$LINENO: checking for MySQL support" >&5
28109 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
28111 # Check whether --with-mysql was given.
28112 if test "${with_mysql+set}" = set; then
28113 withval=$with_mysql;
28114 if test "$withval" != "no"; then
28115 if test "$withval" = "yes"; then
28116 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28117 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28118 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28119 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28120 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28122 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28124 MYSQL_BINDIR=/usr/local/mysql/bin
28125 elif test -f /usr/include/mysql/mysql.h; then
28126 MYSQL_INCDIR=/usr/include/mysql
28127 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28128 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28129 MYSQL_LIBDIR=/usr/lib64/mysql
28130 elif test -f /usr/lib64/libmysqlclient_r.a \
28131 -o -f /usr/lib64/libmysqlclient_r.so; then
28132 MYSQL_LIBDIR=/usr/lib64
28133 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28134 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28135 MYSQL_LIBDIR=/usr/lib/mysql
28137 MYSQL_LIBDIR=/usr/lib
28139 MYSQL_BINDIR=/usr/bin
28140 elif test -f /usr/include/mysql.h; then
28141 MYSQL_INCDIR=/usr/include
28142 if test -f /usr/lib64/libmysqlclient_r.a \
28143 -o -f /usr/lib64/libmysqlclient_r.so; then
28144 MYSQL_LIBDIR=/usr/lib64
28146 MYSQL_LIBDIR=/usr/lib
28148 MYSQL_BINDIR=/usr/bin
28149 elif test -f /usr/local/include/mysql/mysql.h; then
28150 MYSQL_INCDIR=/usr/local/include/mysql
28151 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28152 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28153 MYSQL_LIBDIR=/usr/local/lib64/mysql
28155 MYSQL_LIBDIR=/usr/local/lib/mysql
28157 MYSQL_BINDIR=/usr/local/bin
28158 elif test -f /usr/local/include/mysql.h; then
28159 MYSQL_INCDIR=/usr/local/include
28160 if test -f /usr/local/lib64/libmysqlclient_r.a \
28161 -o -f /usr/local/lib64/libmysqlclient_r.so; then
28162 MYSQL_LIBDIR=/usr/local/lib64
28164 MYSQL_LIBDIR=/usr/local/lib
28166 MYSQL_BINDIR=/usr/local/bin
28168 { echo "$as_me:$LINENO: result: no" >&5
28169 echo "${ECHO_T}no" >&6; }
28170 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28171 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28172 { (exit 1); exit 1; }; }
28175 if test -f $withval/include/mysql/mysql.h; then
28176 MYSQL_INCDIR=$withval/include/mysql
28177 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28178 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28179 MYSQL_LIBDIR=$withval/lib64/mysql
28180 elif test -f $withval/lib64/libmysqlclient_r.a \
28181 -o -f $withval/lib64/libmysqlclient_r.so; then
28182 MYSQL_LIBDIR=$withval/lib64
28183 elif test -f $withval/lib/libmysqlclient_r.a \
28184 -o -f $withval/lib/libmysqlclient_r.so; then
28185 MYSQL_LIBDIR=$withval/lib
28187 MYSQL_LIBDIR=$withval/lib/mysql
28189 MYSQL_BINDIR=$withval/bin
28190 elif test -f $withval/include/mysql.h; then
28191 MYSQL_INCDIR=$withval/include
28192 if test -f $withval/lib64/libmysqlclient_r.a \
28193 -o -f $withval/lib64/libmysqlclient_r.so; then
28194 MYSQL_LIBDIR=$withval/lib64
28196 MYSQL_LIBDIR=$withval/lib
28198 MYSQL_BINDIR=$withval/bin
28200 { echo "$as_me:$LINENO: result: no" >&5
28201 echo "${ECHO_T}no" >&6; }
28202 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28203 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28204 { (exit 1); exit 1; }; }
28207 SQL_INCLUDE=-I$MYSQL_INCDIR
28208 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
28209 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
28210 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
28211 cat >>confdefs.h <<\_ACEOF
28212 #define HAVE_THREAD_SAFE_MYSQL 1
28216 SQL_BINDIR=$MYSQL_BINDIR
28217 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
28220 cat >>confdefs.h <<\_ACEOF
28221 #define HAVE_MYSQL 1
28224 { echo "$as_me:$LINENO: result: yes" >&5
28225 echo "${ECHO_T}yes" >&6; }
28232 { echo "$as_me:$LINENO: result: no" >&5
28233 echo "${ECHO_T}no" >&6; }
28241 # Check whether --with-embedded-mysql was given.
28242 if test "${with_embedded_mysql+set}" = set; then
28243 withval=$with_embedded_mysql;
28244 if test "$withval" != "no"; then
28245 if test "$withval" = "yes"; then
28246 if test -f /usr/local/mysql/include/mysql/mysql.h; then
28247 MYSQL_INCDIR=/usr/local/mysql/include/mysql
28248 if test -d /usr/local/mysql/lib64/mysql; then
28249 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
28251 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
28253 MYSQL_BINDIR=/usr/local/mysql/bin
28254 elif test -f /usr/include/mysql/mysql.h; then
28255 MYSQL_INCDIR=/usr/include/mysql
28256 if test -d /usr/lib64/mysql; then
28257 MYSQL_LIBDIR=/usr/lib64/mysql
28259 MYSQL_LIBDIR=/usr/lib/mysql
28261 MYSQL_BINDIR=/usr/bin
28262 elif test -f /usr/include/mysql.h; then
28263 MYSQL_INCDIR=/usr/include
28264 if test -d /usr/lib64; then
28265 MYSQL_LIBDIR=/usr/lib64
28267 MYSQL_LIBDIR=/usr/lib
28269 MYSQL_BINDIR=/usr/bin
28270 elif test -f /usr/local/include/mysql/mysql.h; then
28271 MYSQL_INCDIR=/usr/local/include/mysql
28272 if test -d /usr/local/lib64/mysql; then
28273 MYSQL_LIBDIR=/usr/local/lib64/mysql
28275 MYSQL_LIBDIR=/usr/local/lib/mysql
28277 MYSQL_BINDIR=/usr/local/bin
28278 elif test -f /usr/local/include/mysql.h; then
28279 MYSQL_INCDIR=/usr/local/include
28280 if test -d /usr/local/lib64; then
28281 MYSQL_LIBDIR=/usr/local/lib64
28283 MYSQL_LIBDIR=/usr/local/lib
28285 MYSQL_BINDIR=/usr/local/bin
28287 { echo "$as_me:$LINENO: result: no" >&5
28288 echo "${ECHO_T}no" >&6; }
28289 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
28290 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
28291 { (exit 1); exit 1; }; }
28294 if test -f $withval/include/mysql/mysql.h; then
28295 MYSQL_INCDIR=$withval/include/mysql
28296 if test -d $withval/lib64/mysql; then
28297 MYSQL_LIBDIR=$withval/lib64/mysql
28299 MYSQL_LIBDIR=$withval/lib/mysql
28301 MYSQL_BINDIR=$withval/bin
28302 elif test -f $withval/include/mysql.h; then
28303 MYSQL_INCDIR=$withval/include
28304 if test -d $withval/lib64; then
28305 MYSQL_LIBDIR=$withval/lib64
28307 MYSQL_LIBDIR=$withval/lib
28309 MYSQL_BINDIR=$withval/bin
28311 { echo "$as_me:$LINENO: result: no" >&5
28312 echo "${ECHO_T}no" >&6; }
28313 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
28314 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
28315 { (exit 1); exit 1; }; }
28318 SQL_INCLUDE=-I$MYSQL_INCDIR
28319 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
28320 SQL_BINDIR=$MYSQL_BINDIR
28321 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
28323 cat >>confdefs.h <<\_ACEOF
28324 #define HAVE_MYSQL 1
28327 cat >>confdefs.h <<\_ACEOF
28328 #define HAVE_EMBEDDED_MYSQL 1
28331 { echo "$as_me:$LINENO: result: yes" >&5
28332 echo "${ECHO_T}yes" >&6; }
28339 { echo "$as_me:$LINENO: result: no" >&5
28340 echo "${ECHO_T}no" >&6; }
28356 { echo "$as_me:$LINENO: checking for Ingres support" >&5
28357 echo $ECHO_N "checking for Ingres support... $ECHO_C" >&6; }
28359 # Check whether --with-ingres was given.
28360 if test "${with_ingres+set}" = set; then
28361 withval=$with_ingres;
28362 if test "$withval" != "no"; then
28363 if test "$withval" = "yes"; then
28364 if test -f ${II_SYSTEM}/files/eqdefc.h; then
28365 INGRES_INCDIR=${II_SYSTEM}/files
28366 INGRES_LIBDIR=${II_SYSTEM}/lib
28367 INGRES_BINDIR=${II_SYSTEM}/bin
28368 elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
28369 INGRES_INCDIR=${II_SYSTEM}/ingres/files
28370 INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
28371 INGRES_BINDIR=${II_SYSTEM}/bin
28373 { echo "$as_me:$LINENO: result: no" >&5
28374 echo "${ECHO_T}no" >&6; }
28375 { { echo "$as_me:$LINENO: error: Unable to find eqdefc.h in standard locations" >&5
28376 echo "$as_me: error: Unable to find eqdefc.h in standard locations" >&2;}
28377 { (exit 1); exit 1; }; }
28380 if test -f $withval/files/eqdefc.h; then
28381 INGRES_INCDIR=$withval/files
28382 INGRES_LIBDIR=$withval/lib
28383 INGRES_BINDIR=$withval/bin
28385 { echo "$as_me:$LINENO: result: no" >&5
28386 echo "${ECHO_T}no" >&6; }
28387 { { echo "$as_me:$LINENO: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&5
28388 echo "$as_me: error: Invalid Ingres directory $withval - unable to find sqlite3.h under $withval" >&2;}
28389 { (exit 1); exit 1; }; }
28392 SQL_INCLUDE=-I$INGRES_INCDIR
28393 SQL_LFLAGS="-L$INGRES_LIBDIR -lingres"
28394 SQL_BINDIR=$INGRES_BINDIR
28395 SQL_LIB=$INGRES_LIBDIR/libingres.a
28397 cat >>confdefs.h <<\_ACEOF
28398 #define HAVE_INGRES 1
28401 { echo "$as_me:$LINENO: result: yes" >&5
28402 echo "${ECHO_T}yes" >&6; }
28409 { echo "$as_me:$LINENO: result: no" >&5
28410 echo "${ECHO_T}no" >&6; }
28415 { echo "$as_me:$LINENO: result: no" >&5
28416 echo "${ECHO_T}no" >&6; }
28428 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
28429 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
28431 # Check whether --with-sqlite3 was given.
28432 if test "${with_sqlite3+set}" = set; then
28433 withval=$with_sqlite3;
28434 if test "$withval" != "no"; then
28435 if test "$withval" = "yes"; then
28436 if test -f /usr/local/include/sqlite3.h; then
28437 SQLITE_INCDIR=/usr/local/include
28438 if test -d /usr/local/lib64; then
28439 SQLITE_LIBDIR=/usr/local/lib64
28441 SQLITE_LIBDIR=/usr/local/lib
28443 SQLITE_BINDIR=/usr/local/bin
28444 elif test -f /usr/include/sqlite3.h; then
28445 SQLITE_INCDIR=/usr/include
28446 if test -d /usr/lib64; then
28447 SQLITE_LIBDIR=/usr/lib64
28449 SQLITE_LIBDIR=/usr/lib
28451 SQLITE_BINDIR=/usr/bin
28452 elif test -f $prefix/include/sqlite3.h; then
28453 SQLITE_INCDIR=$prefix/include
28454 if test -d $prefix/lib64; then
28455 SQLITE_LIBDIR=$prefix/lib64
28457 SQLITE_LIBDIR=$prefix/lib
28459 SQLITE_BINDIR=$prefix/bin
28461 { echo "$as_me:$LINENO: result: no" >&5
28462 echo "${ECHO_T}no" >&6; }
28463 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
28464 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
28465 { (exit 1); exit 1; }; }
28468 if test -f $withval/sqlite3.h; then
28469 SQLITE_INCDIR=$withval
28470 SQLITE_LIBDIR=$withval
28471 SQLITE_BINDIR=$withval
28472 elif test -f $withval/include/sqlite3.h; then
28473 SQLITE_INCDIR=$withval/include
28474 if test -d $withval/lib64; then
28475 SQLITE_LIBDIR=$withval/lib64
28477 SQLITE_LIBDIR=$withval/lib
28479 SQLITE_BINDIR=$withval/bin
28481 { echo "$as_me:$LINENO: result: no" >&5
28482 echo "${ECHO_T}no" >&6; }
28483 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
28484 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
28485 { (exit 1); exit 1; }; }
28488 SQL_INCLUDE=-I$SQLITE_INCDIR
28489 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
28490 SQL_BINDIR=$SQLITE_BINDIR
28491 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
28493 cat >>confdefs.h <<\_ACEOF
28494 #define HAVE_SQLITE3 1
28497 { echo "$as_me:$LINENO: result: yes" >&5
28498 echo "${ECHO_T}yes" >&6; }
28500 support_sqlite3=yes
28505 { echo "$as_me:$LINENO: result: no" >&5
28506 echo "${ECHO_T}no" >&6; }
28511 { echo "$as_me:$LINENO: result: no" >&5
28512 echo "${ECHO_T}no" >&6; }
28522 # BA_CHECK_SQLITE_DB
28526 { echo "$as_me:$LINENO: checking for DBI support" >&5
28527 echo $ECHO_N "checking for DBI support... $ECHO_C" >&6; }
28529 # Check whether --with-dbi was given.
28530 if test "${with_dbi+set}" = set; then
28532 if test "$withval" != "no"; then
28533 if test "$withval" = "yes"; then
28534 if test -f /usr/local/include/dbi/dbi.h; then
28535 DBI_INCDIR=/usr/local/dbi/include
28536 if test -d /usr/local/lib64; then
28537 DBI_LIBDIR=/usr/local/lib64
28539 DBI_LIBDIR=/usr/local/lib
28541 DBI_BINDIR=/usr/local/bin
28542 elif test -f /usr/include/dbi/dbi.h; then
28543 DBI_INCDIR=/usr/include
28544 if test -d /usr/lib64; then
28545 DBI_LIBDIR=/usr/lib64
28547 DBI_LIBDIR=/usr/lib
28549 DBI_BINDIR=/usr/bin
28550 elif test -f $prefix/include/dbi/dbi.h; then
28551 DBI_INCDIR=$prefix/include
28552 if test -d $prefix/lib64; then
28553 DBI_LIBDIR=$prefix/lib64
28555 DBI_LIBDIR=$prefix/lib
28557 DBI_BINDIR=$prefix/bin
28559 { echo "$as_me:$LINENO: result: no" >&5
28560 echo "${ECHO_T}no" >&6; }
28561 { { echo "$as_me:$LINENO: error: Unable to find dbi.h in standard locations" >&5
28562 echo "$as_me: error: Unable to find dbi.h in standard locations" >&2;}
28563 { (exit 1); exit 1; }; }
28565 if test -d /usr/local/lib/dbd; then
28566 DRIVERDIR=/usr/local/lib/dbd
28567 if test -d /usr/local/lib64/dbd; then
28568 DRIVERDIR=/usr/local/lib64/dbd
28570 DRIVERDIR=/usr/local/lib/dbd
28572 elif test -d /usr/lib/dbd; then
28573 DRIVERDIR=/usr/lib/dbd
28574 if test -d /usr/lib64/dbd; then
28575 DRIVERDIR=/usr/lib64/dbd
28577 DRIVERDIR=/usr/lib/dbd
28579 elif test -d $prefix/lib/dbd; then
28580 if test -d $prefix/lib64/dbd; then
28581 DRIVERDIR=$prefix/lib64/dbd
28583 DRIVERDIR=$prefix/lib/dbd
28585 elif test -d /usr/local/lib64/dbd; then
28586 DRIVERDIR=/usr/local/lib64/dbd
28587 elif test -d /usr/lib64/dbd; then
28588 DRIVERDIR=/usr/lib64/dbd
28589 elif test -d $prefix/lib64/dbd; then
28590 DRIVERDIR=$prefix/lib64/dbd
28592 { echo "$as_me:$LINENO: result: no" >&5
28593 echo "${ECHO_T}no" >&6; }
28594 { { echo "$as_me:$LINENO: error: Unable to find DBD drivers in standard locations" >&5
28595 echo "$as_me: error: Unable to find DBD drivers in standard locations" >&2;}
28596 { (exit 1); exit 1; }; }
28599 if test -f $withval/dbi.h; then
28600 DBI_INCDIR=$withval
28601 DBI_LIBDIR=$withval
28602 DBI_BINDIR=$withval
28603 elif test -f $withval/include/dbi/dbi.h; then
28604 DBI_INCDIR=$withval/include
28605 if test -d $withval/lib64; then
28606 DBI_LIBDIR=$withval/lib64
28608 DBI_LIBDIR=$withval/lib
28610 DBI_BINDIR=$withval/bin
28612 { echo "$as_me:$LINENO: result: no" >&5
28613 echo "${ECHO_T}no" >&6; }
28614 { { echo "$as_me:$LINENO: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&5
28615 echo "$as_me: error: Invalid DBI directory $withval - unable to find dbi.h under $withval" >&2;}
28616 { (exit 1); exit 1; }; }
28618 if test -d $withval/dbd; then
28619 DRIVERDIR=$withval/dbd
28620 elif test -d $withval/lib/; then
28621 if test -d $withval/lib64/dbd; then
28622 DRIVERDIR=$withval/lib64/dbd
28624 DRIVERDIR=$withval/lib/dbd
28626 elif test -d $withval/lib64/dbd; then
28627 DRIVERDIR=$withval/lib64/dbd
28629 { echo "$as_me:$LINENO: result: no" >&5
28630 echo "${ECHO_T}no" >&6; }
28631 { { echo "$as_me:$LINENO: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&5
28632 echo "$as_me: error: Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" >&2;}
28633 { (exit 1); exit 1; }; }
28636 SQL_INCLUDE=-I$DBI_INCDIR
28637 SQL_LFLAGS="-L$DBI_LIBDIR -ldbi"
28638 SQL_BINDIR=$DBI_BINDIR
28639 SQL_LIB=$DBI_LIBDIR/libdbi.a
28640 DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
28643 cat >>confdefs.h <<\_ACEOF
28647 { echo "$as_me:$LINENO: result: yes" >&5
28648 echo "${ECHO_T}yes" >&6; }
28656 { echo "$as_me:$LINENO: result: no" >&5
28657 echo "${ECHO_T}no" >&6; }
28662 { echo "$as_me:$LINENO: result: no" >&5
28663 echo "${ECHO_T}no" >&6; }
28678 { echo "$as_me:$LINENO: checking for DBI drivers support" >&5
28679 echo $ECHO_N "checking for DBI drivers support... $ECHO_C" >&6; }
28681 # Check whether --with-dbi-driver was given.
28682 if test "${with_dbi_driver+set}" = set; then
28683 withval=$with_dbi_driver;
28684 if test "$withval" != "no"; then
28688 if test -f /usr/local/mysql/bin/mysql; then
28689 SQL_BINDIR=/usr/local/mysql/bin
28690 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
28691 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
28692 SQL_LIBDIR=/usr/local/mysql/lib64/mysql
28694 SQL_LIBDIR=/usr/local/mysql/lib/mysql
28696 elif test -f /usr/bin/mysql; then
28697 SQL_BINDIR=/usr/bin
28698 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
28699 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
28700 SQL_LIBDIR=/usr/lib64/mysql
28701 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
28702 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
28703 SQL_LIBDIR=/usr/lib/mysql
28705 SQL_LIBDIR=/usr/lib
28707 elif test -f /usr/local/bin/mysql; then
28708 SQL_BINDIR=/usr/local/bin
28709 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
28710 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
28711 SQL_LIBDIR=/usr/local/lib64/mysql
28712 elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
28713 -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
28714 SQL_LIBDIR=/usr/local/lib/mysql
28716 SQL_LIBDIR=/usr/local/lib
28718 elif test -f $withval/bin/mysql; then
28719 SQL_BINDIR=$withval/bin
28720 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
28721 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
28722 SQL_LIBDIR=$withval/lib64/mysql
28723 elif test -f $withval/lib64/libmysqlclient_r.a \
28724 -o -f $withval/lib64/libmysqlclient_r.so; then
28725 SQL_LIBDIR=$withval/lib64
28726 elif test -f $withval/lib/libmysqlclient_r.a \
28727 -o -f $withval/lib/libmysqlclient_r.so; then
28728 SQL_LIBDIR=$withval/lib/
28730 SQL_LIBDIR=$withval/lib/mysql
28733 { echo "$as_me:$LINENO: result: no" >&5
28734 echo "${ECHO_T}no" >&6; }
28735 { { echo "$as_me:$LINENO: error: Unable to find mysql in standard locations" >&5
28736 echo "$as_me: error: Unable to find mysql in standard locations" >&2;}
28737 { (exit 1); exit 1; }; }
28739 if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
28740 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
28742 DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
28746 db_prog="postgresql"
28747 PG_CONFIG=`which pg_config`
28748 if test -n "$PG_CONFIG"; then
28749 SQL_BINDIR=`"$PG_CONFIG" --bindir`
28750 SQL_LIBDIR=`"$PG_CONFIG" --libdir`
28751 elif test -f /usr/local/bin/psql; then
28752 SQL_BINDIR=/usr/local/bin
28753 if test -d /usr/local/lib64; then
28754 SQL_LIBDIR=/usr/local/lib64
28756 SQL_LIBDIR=/usr/local/lib
28758 elif test -f /usr/bin/psql; then
28759 SQL_BINDIR=/usr/local/bin
28760 if test -d /usr/lib64/postgresql; then
28761 SQL_LIBDIR=/usr/lib64/postgresql
28762 elif test -d /usr/lib/postgresql; then
28763 SQL_LIBDIR=/usr/lib/postgresql
28764 elif test -d /usr/lib64; then
28765 SQL_LIBDIR=/usr/lib64
28767 SQL_LIBDIR=/usr/lib
28769 elif test -f $withval/bin/psql; then
28770 SQL_BINDIR=$withval/bin
28771 if test -d $withval/lib64; then
28772 SQL_LIBDIR=$withval/lib64
28774 SQL_LIBDIR=$withval/lib
28777 { echo "$as_me:$LINENO: result: no" >&5
28778 echo "${ECHO_T}no" >&6; }
28779 { { echo "$as_me:$LINENO: error: Unable to find psql in standard locations" >&5
28780 echo "$as_me: error: Unable to find psql in standard locations" >&2;}
28781 { (exit 1); exit 1; }; }
28783 if test -f $SQL_LIBDIR/libpq.so; then
28784 DB_PROG_LIB=$SQL_LIBDIR/libpq.so
28786 DB_PROG_LIB=$SQL_LIBDIR/libpq.a
28791 if test -f /usr/local/bin/sqlite; then
28792 SQL_BINDIR=/usr/local/bin
28793 if test -d /usr/local/lib64; then
28794 SQL_LIBDIR=/usr/local/lib64
28796 SQL_LIBDIR=/usr/local/lib
28798 elif test -f /usr/bin/sqlite; then
28799 SQL_BINDIR=/usr/bin
28800 if test -d /usr/lib64; then
28801 SQL_LIBDIR=/usr/lib64
28803 SQL_LIBDIR=/usr/lib
28805 elif test -f $withval/bin/sqlite; then
28806 SQL_BINDIR=$withval/bin
28807 if test -d $withval/lib64; then
28808 SQL_LIBDIR=$withval/lib64
28810 SQL_LIBDIR=$withval/lib
28813 { echo "$as_me:$LINENO: result: no" >&5
28814 echo "${ECHO_T}no" >&6; }
28815 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28816 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28817 { (exit 1); exit 1; }; }
28819 if test -f $SQL_LIBDIR/libsqlite.so; then
28820 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.so
28822 DB_PROG_LIB=$SQL_LIBDIR/libsqlite.a
28827 if test -f /usr/local/bin/sqlite3; then
28828 SQL_BINDIR=/usr/local/bin
28829 if test -d /usr/local/lib64; then
28830 SQL_LIBDIR=/usr/local/lib64
28832 SQL_LIBDIR=/usr/local/lib
28834 elif test -f /usr/bin/sqlite3; then
28835 SQL_BINDIR=/usr/bin
28836 if test -d /usr/lib64; then
28837 SQL_LIBDIR=/usr/lib64
28839 SQL_LIBDIR=/usr/lib
28841 elif test -f $withval/bin/sqlite3; then
28842 SQL_BINDIR=$withval/bin
28843 if test -d $withval/lib64; then
28844 SQL_LIBDIR=$withval/lib64
28846 SQL_LIBDIR=$withval/lib
28849 { echo "$as_me:$LINENO: result: no" >&5
28850 echo "${ECHO_T}no" >&6; }
28851 { { echo "$as_me:$LINENO: error: Unable to find sqlite in standard locations" >&5
28852 echo "$as_me: error: Unable to find sqlite in standard locations" >&2;}
28853 { (exit 1); exit 1; }; }
28855 if test -f $SQL_LIBDIR/libsqlite3.so; then
28856 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.so
28858 DB_PROG_LIB=$SQL_LIBDIR/libsqlite3.a
28862 { echo "$as_me:$LINENO: result: no" >&5
28863 echo "${ECHO_T}no" >&6; }
28864 { { echo "$as_me:$LINENO: error: Unable to set DBI driver. $withval is not supported" >&5
28865 echo "$as_me: error: Unable to set DBI driver. $withval is not supported" >&2;}
28866 { (exit 1); exit 1; }; }
28870 { echo "$as_me:$LINENO: result: yes" >&5
28871 echo "${ECHO_T}yes" >&6; }
28874 { echo "$as_me:$LINENO: result: no" >&5
28875 echo "${ECHO_T}no" >&6; }
28880 { echo "$as_me:$LINENO: result: no" >&5
28881 echo "${ECHO_T}no" >&6; }
28894 support_batch_insert=no
28895 A=`test -f $SQL_LIB && nm $SQL_LIB | grep pthread_mutex_lock`
28897 if test $pkg = 0; then
28898 support_batch_insert=yes
28899 # Check whether --enable-batch-insert was given.
28900 if test "${enable_batch_insert+set}" = set; then
28901 enableval=$enable_batch_insert;
28902 if test x$enableval = xno; then
28903 support_batch_insert=no
28905 support_batch_insert=yes
28913 if test x$DB_TYPE = xpostgresql; then
28914 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
28915 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
28916 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
28917 echo $ECHO_N "(cached) $ECHO_C" >&6
28919 ac_check_lib_save_LIBS=$LIBS
28921 cat >conftest.$ac_ext <<_ACEOF
28924 cat confdefs.h >>conftest.$ac_ext
28925 cat >>conftest.$ac_ext <<_ACEOF
28926 /* end confdefs.h. */
28928 /* Override any GCC internal prototype to avoid an error.
28929 Use char because int might match the return type of a GCC
28930 builtin and then its argument prototype would still apply. */
28934 char PQisthreadsafe ();
28938 return PQisthreadsafe ();
28943 rm -f conftest.$ac_objext conftest$ac_exeext
28944 if { (ac_try="$ac_link"
28945 case "(($ac_try" in
28946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28947 *) ac_try_echo=$ac_try;;
28949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28950 (eval "$ac_link") 2>conftest.er1
28952 grep -v '^ *+' conftest.er1 >conftest.err
28954 cat conftest.err >&5
28955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28956 (exit $ac_status); } && {
28957 test -z "$ac_c_werror_flag" ||
28958 test ! -s conftest.err
28959 } && test -s conftest$ac_exeext &&
28960 $as_test_x conftest$ac_exeext; then
28961 ac_cv_lib_pq_PQisthreadsafe=yes
28963 echo "$as_me: failed program was:" >&5
28964 sed 's/^/| /' conftest.$ac_ext >&5
28966 ac_cv_lib_pq_PQisthreadsafe=no
28969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28970 conftest$ac_exeext conftest.$ac_ext
28971 LIBS=$ac_check_lib_save_LIBS
28973 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
28974 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
28975 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
28977 cat >>confdefs.h <<\_ACEOF
28978 #define HAVE_PQISTHREADSAFE 1
28983 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
28984 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
28985 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
28986 echo $ECHO_N "(cached) $ECHO_C" >&6
28988 ac_check_lib_save_LIBS=$LIBS
28990 cat >conftest.$ac_ext <<_ACEOF
28993 cat confdefs.h >>conftest.$ac_ext
28994 cat >>conftest.$ac_ext <<_ACEOF
28995 /* end confdefs.h. */
28997 /* Override any GCC internal prototype to avoid an error.
28998 Use char because int might match the return type of a GCC
28999 builtin and then its argument prototype would still apply. */
29003 char PQputCopyData ();
29007 return PQputCopyData ();
29012 rm -f conftest.$ac_objext conftest$ac_exeext
29013 if { (ac_try="$ac_link"
29014 case "(($ac_try" in
29015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29016 *) ac_try_echo=$ac_try;;
29018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29019 (eval "$ac_link") 2>conftest.er1
29021 grep -v '^ *+' conftest.er1 >conftest.err
29023 cat conftest.err >&5
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); } && {
29026 test -z "$ac_c_werror_flag" ||
29027 test ! -s conftest.err
29028 } && test -s conftest$ac_exeext &&
29029 $as_test_x conftest$ac_exeext; then
29030 ac_cv_lib_pq_PQputCopyData=yes
29032 echo "$as_me: failed program was:" >&5
29033 sed 's/^/| /' conftest.$ac_ext >&5
29035 ac_cv_lib_pq_PQputCopyData=no
29038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29039 conftest$ac_exeext conftest.$ac_ext
29040 LIBS=$ac_check_lib_save_LIBS
29042 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29043 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29044 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29046 cat >>confdefs.h <<\_ACEOF
29047 #define HAVE_PQ_COPY 1
29052 if test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29054 support_batch_insert=no
29058 if test x$DB_TYPE = xdbi; then
29062 if test $DB_PROG = postgresql; then
29063 { echo "$as_me:$LINENO: checking for PQisthreadsafe in -lpq" >&5
29064 echo $ECHO_N "checking for PQisthreadsafe in -lpq... $ECHO_C" >&6; }
29065 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then
29066 echo $ECHO_N "(cached) $ECHO_C" >&6
29068 ac_check_lib_save_LIBS=$LIBS
29070 cat >conftest.$ac_ext <<_ACEOF
29073 cat confdefs.h >>conftest.$ac_ext
29074 cat >>conftest.$ac_ext <<_ACEOF
29075 /* end confdefs.h. */
29077 /* Override any GCC internal prototype to avoid an error.
29078 Use char because int might match the return type of a GCC
29079 builtin and then its argument prototype would still apply. */
29083 char PQisthreadsafe ();
29087 return PQisthreadsafe ();
29092 rm -f conftest.$ac_objext conftest$ac_exeext
29093 if { (ac_try="$ac_link"
29094 case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29099 (eval "$ac_link") 2>conftest.er1
29101 grep -v '^ *+' conftest.er1 >conftest.err
29103 cat conftest.err >&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); } && {
29106 test -z "$ac_c_werror_flag" ||
29107 test ! -s conftest.err
29108 } && test -s conftest$ac_exeext &&
29109 $as_test_x conftest$ac_exeext; then
29110 ac_cv_lib_pq_PQisthreadsafe=yes
29112 echo "$as_me: failed program was:" >&5
29113 sed 's/^/| /' conftest.$ac_ext >&5
29115 ac_cv_lib_pq_PQisthreadsafe=no
29118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29119 conftest$ac_exeext conftest.$ac_ext
29120 LIBS=$ac_check_lib_save_LIBS
29122 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
29123 echo "${ECHO_T}$ac_cv_lib_pq_PQisthreadsafe" >&6; }
29124 if test $ac_cv_lib_pq_PQisthreadsafe = yes; then
29125 cat >>confdefs.h <<\_ACEOF
29126 #define HAVE_PQISTHREADSAFE 1
29131 { echo "$as_me:$LINENO: checking for PQputCopyData in -lpq" >&5
29132 echo $ECHO_N "checking for PQputCopyData in -lpq... $ECHO_C" >&6; }
29133 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then
29134 echo $ECHO_N "(cached) $ECHO_C" >&6
29136 ac_check_lib_save_LIBS=$LIBS
29138 cat >conftest.$ac_ext <<_ACEOF
29141 cat confdefs.h >>conftest.$ac_ext
29142 cat >>conftest.$ac_ext <<_ACEOF
29143 /* end confdefs.h. */
29145 /* Override any GCC internal prototype to avoid an error.
29146 Use char because int might match the return type of a GCC
29147 builtin and then its argument prototype would still apply. */
29151 char PQputCopyData ();
29155 return PQputCopyData ();
29160 rm -f conftest.$ac_objext conftest$ac_exeext
29161 if { (ac_try="$ac_link"
29162 case "(($ac_try" in
29163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29164 *) ac_try_echo=$ac_try;;
29166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29167 (eval "$ac_link") 2>conftest.er1
29169 grep -v '^ *+' conftest.er1 >conftest.err
29171 cat conftest.err >&5
29172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173 (exit $ac_status); } && {
29174 test -z "$ac_c_werror_flag" ||
29175 test ! -s conftest.err
29176 } && test -s conftest$ac_exeext &&
29177 $as_test_x conftest$ac_exeext; then
29178 ac_cv_lib_pq_PQputCopyData=yes
29180 echo "$as_me: failed program was:" >&5
29181 sed 's/^/| /' conftest.$ac_ext >&5
29183 ac_cv_lib_pq_PQputCopyData=no
29186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29187 conftest$ac_exeext conftest.$ac_ext
29188 LIBS=$ac_check_lib_save_LIBS
29190 { echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQputCopyData" >&5
29191 echo "${ECHO_T}$ac_cv_lib_pq_PQputCopyData" >&6; }
29192 if test $ac_cv_lib_pq_PQputCopyData = yes; then
29193 cat >>confdefs.h <<\_ACEOF
29194 #define HAVE_PQ_COPY 1
29199 test "x$ac_cv_lib_pq_PQputCopyData" != "xyes"
29203 if test $DB_PROG = mysql; then
29204 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29208 if test $DB_PROG = sqlite3; then
29209 A=`test -f $SQL_LIB && nm $DB_PROG_LIB | grep pthread_mutex_lock`
29211 { echo "$as_me:$LINENO: checking for sqlite3_threadsafe in -lsqlite3" >&5
29212 echo $ECHO_N "checking for sqlite3_threadsafe in -lsqlite3... $ECHO_C" >&6; }
29213 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then
29214 echo $ECHO_N "(cached) $ECHO_C" >&6
29216 ac_check_lib_save_LIBS=$LIBS
29217 LIBS="-lsqlite3 $LIBS"
29218 cat >conftest.$ac_ext <<_ACEOF
29221 cat confdefs.h >>conftest.$ac_ext
29222 cat >>conftest.$ac_ext <<_ACEOF
29223 /* end confdefs.h. */
29225 /* Override any GCC internal prototype to avoid an error.
29226 Use char because int might match the return type of a GCC
29227 builtin and then its argument prototype would still apply. */
29231 char sqlite3_threadsafe ();
29235 return sqlite3_threadsafe ();
29240 rm -f conftest.$ac_objext conftest$ac_exeext
29241 if { (ac_try="$ac_link"
29242 case "(($ac_try" in
29243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29244 *) ac_try_echo=$ac_try;;
29246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29247 (eval "$ac_link") 2>conftest.er1
29249 grep -v '^ *+' conftest.er1 >conftest.err
29251 cat conftest.err >&5
29252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29253 (exit $ac_status); } && {
29254 test -z "$ac_c_werror_flag" ||
29255 test ! -s conftest.err
29256 } && test -s conftest$ac_exeext &&
29257 $as_test_x conftest$ac_exeext; then
29258 ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
29260 echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.$ac_ext >&5
29263 ac_cv_lib_sqlite3_sqlite3_threadsafe=no
29266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29267 conftest$ac_exeext conftest.$ac_ext
29268 LIBS=$ac_check_lib_save_LIBS
29270 { echo "$as_me:$LINENO: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
29271 echo "${ECHO_T}$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
29272 if test $ac_cv_lib_sqlite3_sqlite3_threadsafe = yes; then
29274 cat >>confdefs.h <<\_ACEOF
29275 #define HAVE_SQLITE3_THREADSAFE 1
29282 if test $pkg = 0; then
29283 # Check whether --enable-batch-insert was given.
29284 if test "${enable_batch_insert+set}" = set; then
29285 enableval=$enable_batch_insert;
29286 if test x$enableval = xno; then
29287 support_batch_insert=no
29289 support_batch_insert=yes
29302 if test $support_batch_insert = yes ; then
29304 cat >>confdefs.h <<\_ACEOF
29305 #define HAVE_BATCH_FILE_INSERT 1
29310 cat >>confdefs.h <<\_ACEOF
29311 #define PROTOTYPES 1
29315 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
29316 if test -z "$CCOPTS"; then
29317 CCOPTS='-g -O2 -Wall'
29324 largefile_support="no"
29326 # Check whether --enable-largefile was given.
29327 if test "${enable_largefile+set}" = set; then
29328 enableval=$enable_largefile;
29331 if test "$enable_largefile" != no; then
29332 if test -n "$ac_tool_prefix"; then
29333 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
29334 set dummy ${ac_tool_prefix}getconf; ac_word=$2
29335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29337 if test "${ac_cv_prog_GETCONF+set}" = set; then
29338 echo $ECHO_N "(cached) $ECHO_C" >&6
29340 if test -n "$GETCONF"; then
29341 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
29343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29344 for as_dir in $PATH
29347 test -z "$as_dir" && as_dir=.
29348 for ac_exec_ext in '' $ac_executable_extensions; do
29349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29350 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
29351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29360 GETCONF=$ac_cv_prog_GETCONF
29361 if test -n "$GETCONF"; then
29362 { echo "$as_me:$LINENO: result: $GETCONF" >&5
29363 echo "${ECHO_T}$GETCONF" >&6; }
29365 { echo "$as_me:$LINENO: result: no" >&5
29366 echo "${ECHO_T}no" >&6; }
29371 if test -z "$ac_cv_prog_GETCONF"; then
29372 ac_ct_GETCONF=$GETCONF
29373 # Extract the first word of "getconf", so it can be a program name with args.
29374 set dummy getconf; ac_word=$2
29375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29377 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
29378 echo $ECHO_N "(cached) $ECHO_C" >&6
29380 if test -n "$ac_ct_GETCONF"; then
29381 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
29383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29384 for as_dir in $PATH
29387 test -z "$as_dir" && as_dir=.
29388 for ac_exec_ext in '' $ac_executable_extensions; do
29389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29390 ac_cv_prog_ac_ct_GETCONF="getconf"
29391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29400 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
29401 if test -n "$ac_ct_GETCONF"; then
29402 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
29403 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
29405 { echo "$as_me:$LINENO: result: no" >&5
29406 echo "${ECHO_T}no" >&6; }
29409 if test "x$ac_ct_GETCONF" = x; then
29412 case $cross_compiling:$ac_tool_warned in
29414 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
29415 whose name does not start with the host triplet. If you think this
29416 configuration is useful to you, please write to autoconf@gnu.org." >&5
29417 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
29418 whose name does not start with the host triplet. If you think this
29419 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
29420 ac_tool_warned=yes ;;
29422 GETCONF=$ac_ct_GETCONF
29425 GETCONF="$ac_cv_prog_GETCONF"
29428 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
29429 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
29430 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
29431 echo $ECHO_N "(cached) $ECHO_C" >&6
29433 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
29434 ac_cv_sys_largefile_CFLAGS=no
29436 # IRIX 6.2 and later require cc -n32.
29437 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
29438 if test "$GCC" != yes; then
29439 ac_cv_sys_largefile_CFLAGS=-n32
29442 CC="$CC $ac_cv_sys_largefile_CFLAGS"
29443 cat >conftest.$ac_ext <<_ACEOF
29446 cat confdefs.h >>conftest.$ac_ext
29447 cat >>conftest.$ac_ext <<_ACEOF
29448 /* end confdefs.h. */
29458 rm -f conftest.$ac_objext conftest$ac_exeext
29459 if { (ac_try="$ac_link"
29460 case "(($ac_try" in
29461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29462 *) ac_try_echo=$ac_try;;
29464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29465 (eval "$ac_link") 2>conftest.er1
29467 grep -v '^ *+' conftest.er1 >conftest.err
29469 cat conftest.err >&5
29470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29471 (exit $ac_status); } && {
29472 test -z "$ac_c_werror_flag" ||
29473 test ! -s conftest.err
29474 } && test -s conftest$ac_exeext &&
29475 $as_test_x conftest$ac_exeext; then
29478 echo "$as_me: failed program was:" >&5
29479 sed 's/^/| /' conftest.$ac_ext >&5
29481 ac_cv_sys_largefile_CFLAGS=no
29484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29485 conftest$ac_exeext conftest.$ac_ext
29490 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
29491 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
29492 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
29493 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
29494 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
29495 echo $ECHO_N "(cached) $ECHO_C" >&6
29497 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
29498 ac_cv_sys_largefile_LDFLAGS=no
29502 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
29503 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
29504 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
29505 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
29506 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
29507 echo $ECHO_N "(cached) $ECHO_C" >&6
29509 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
29510 ac_cv_sys_largefile_LIBS=no
29514 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
29515 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
29517 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29520 -D_FILE_OFFSET_BITS=*) ;;
29521 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
29522 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
29527 case "$CPPFLAGS" in
29528 '') CPPFLAGS="$ac_flag" ;;
29529 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
29537 '') CFLAGS="$ac_flag" ;;
29538 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
29543 case "$ac_cv_sys_largefile_LDFLAGS" in
29547 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
29548 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
29551 case "$ac_cv_sys_largefile_LIBS" in
29555 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
29556 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
29559 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
29560 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
29561 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
29562 echo $ECHO_N "(cached) $ECHO_C" >&6
29564 ac_cv_sys_file_offset_bits=no
29565 ac_cv_sys_file_offset_bits=64
29566 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29568 -D_FILE_OFFSET_BITS)
29569 ac_cv_sys_file_offset_bits=1 ;;
29570 -D_FILE_OFFSET_BITS=*)
29571 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29576 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
29577 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
29578 if test "$ac_cv_sys_file_offset_bits" != no; then
29580 cat >>confdefs.h <<_ACEOF
29581 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
29585 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
29586 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
29587 if test "${ac_cv_sys_largefile_source+set}" = set; then
29588 echo $ECHO_N "(cached) $ECHO_C" >&6
29590 ac_cv_sys_largefile_source=no
29591 ac_cv_sys_largefile_source=1
29592 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29594 -D_LARGEFILE_SOURCE)
29595 ac_cv_sys_largefile_source=1 ;;
29596 -D_LARGEFILE_SOURCE=*)
29597 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29602 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
29603 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
29604 if test "$ac_cv_sys_largefile_source" != no; then
29606 cat >>confdefs.h <<_ACEOF
29607 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
29611 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
29612 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
29613 if test "${ac_cv_sys_large_files+set}" = set; then
29614 echo $ECHO_N "(cached) $ECHO_C" >&6
29616 ac_cv_sys_large_files=no
29617 ac_cv_sys_large_files=1
29618 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
29621 ac_cv_sys_large_files=1 ;;
29623 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
29628 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
29629 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
29630 if test "$ac_cv_sys_large_files" != no; then
29632 cat >>confdefs.h <<_ACEOF
29633 #define _LARGE_FILES $ac_cv_sys_large_files
29640 { echo "$as_me:$LINENO: checking for X" >&5
29641 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
29644 # Check whether --with-x was given.
29645 if test "${with_x+set}" = set; then
29649 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29650 if test "x$with_x" = xno; then
29651 # The user explicitly disabled X.
29654 case $x_includes,$x_libraries in #(
29655 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
29656 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
29657 { (exit 1); exit 1; }; };; #(
29658 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
29659 echo $ECHO_N "(cached) $ECHO_C" >&6
29661 # One or both of the vars are not set, and there is no cached value.
29662 ac_x_includes=no ac_x_libraries=no
29663 rm -f -r conftest.dir
29664 if mkdir conftest.dir; then
29666 cat >Imakefile <<'_ACEOF'
29668 @echo incroot='${INCROOT}'
29670 @echo usrlibdir='${USRLIBDIR}'
29672 @echo libdir='${LIBDIR}'
29674 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29675 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29676 for ac_var in incroot usrlibdir libdir; do
29677 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29679 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29680 for ac_extension in a so sl; do
29681 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29682 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29683 ac_im_usrlibdir=$ac_im_libdir; break
29686 # Screen out bogus values from the imake configuration. They are
29687 # bogus both because they are the default anyway, and because
29688 # using them would break gcc on systems where it needs fixed includes.
29689 case $ac_im_incroot in
29690 /usr/include) ac_x_includes= ;;
29691 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29693 case $ac_im_usrlibdir in
29694 /usr/lib | /lib) ;;
29695 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29699 rm -f -r conftest.dir
29702 # Standard set of common directories for X headers.
29703 # Check X11 before X11Rn because it is often a symlink to the current release.
29715 /usr/local/X11/include
29716 /usr/local/X11R6/include
29717 /usr/local/X11R5/include
29718 /usr/local/X11R4/include
29720 /usr/local/include/X11
29721 /usr/local/include/X11R6
29722 /usr/local/include/X11R5
29723 /usr/local/include/X11R4
29727 /usr/XFree86/include/X11
29731 /usr/unsupported/include
29732 /usr/athena/include
29733 /usr/local/x11r5/include
29734 /usr/lpp/Xamples/include
29736 /usr/openwin/include
29737 /usr/openwin/share/include'
29739 if test "$ac_x_includes" = no; then
29740 # Guess where to find include files, by looking for Xlib.h.
29741 # First, try using that file with no special directory specified.
29742 cat >conftest.$ac_ext <<_ACEOF
29745 cat confdefs.h >>conftest.$ac_ext
29746 cat >>conftest.$ac_ext <<_ACEOF
29747 /* end confdefs.h. */
29748 #include <X11/Xlib.h>
29750 if { (ac_try="$ac_cpp conftest.$ac_ext"
29751 case "(($ac_try" in
29752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29753 *) ac_try_echo=$ac_try;;
29755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29758 grep -v '^ *+' conftest.er1 >conftest.err
29760 cat conftest.err >&5
29761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29762 (exit $ac_status); } >/dev/null && {
29763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29764 test ! -s conftest.err
29766 # We can compile using X headers with no special include directory.
29769 echo "$as_me: failed program was:" >&5
29770 sed 's/^/| /' conftest.$ac_ext >&5
29772 for ac_dir in $ac_x_header_dirs; do
29773 if test -r "$ac_dir/X11/Xlib.h"; then
29774 ac_x_includes=$ac_dir
29780 rm -f conftest.err conftest.$ac_ext
29781 fi # $ac_x_includes = no
29783 if test "$ac_x_libraries" = no; then
29784 # Check for the libraries.
29785 # See if we find them without any special options.
29786 # Don't add to $LIBS permanently.
29789 cat >conftest.$ac_ext <<_ACEOF
29792 cat confdefs.h >>conftest.$ac_ext
29793 cat >>conftest.$ac_ext <<_ACEOF
29794 /* end confdefs.h. */
29795 #include <X11/Xlib.h>
29804 rm -f conftest.$ac_objext conftest$ac_exeext
29805 if { (ac_try="$ac_link"
29806 case "(($ac_try" in
29807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29808 *) ac_try_echo=$ac_try;;
29810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29811 (eval "$ac_link") 2>conftest.er1
29813 grep -v '^ *+' conftest.er1 >conftest.err
29815 cat conftest.err >&5
29816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817 (exit $ac_status); } && {
29818 test -z "$ac_c_werror_flag" ||
29819 test ! -s conftest.err
29820 } && test -s conftest$ac_exeext &&
29821 $as_test_x conftest$ac_exeext; then
29823 # We can link X programs with no special library path.
29826 echo "$as_me: failed program was:" >&5
29827 sed 's/^/| /' conftest.$ac_ext >&5
29830 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29832 # Don't even attempt the hair of trying to link an X program!
29833 for ac_extension in a so sl; do
29834 if test -r "$ac_dir/libX11.$ac_extension"; then
29835 ac_x_libraries=$ac_dir
29842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29843 conftest$ac_exeext conftest.$ac_ext
29844 fi # $ac_x_libraries = no
29846 case $ac_x_includes,$ac_x_libraries in #(
29847 no,* | *,no | *\'*)
29848 # Didn't find X, or a directory has "'" in its name.
29849 ac_cv_have_x="have_x=no";; #(
29851 # Record where we found X for the cache.
29852 ac_cv_have_x="have_x=yes\
29853 ac_x_includes='$ac_x_includes'\
29854 ac_x_libraries='$ac_x_libraries'"
29860 eval "$ac_cv_have_x"
29863 if test "$have_x" != yes; then
29864 { echo "$as_me:$LINENO: result: $have_x" >&5
29865 echo "${ECHO_T}$have_x" >&6; }
29868 # If each of the values was on the command line, it overrides each guess.
29869 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29870 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29871 # Update the cache value to reflect the command line values.
29872 ac_cv_have_x="have_x=yes\
29873 ac_x_includes='$x_includes'\
29874 ac_x_libraries='$x_libraries'"
29875 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
29876 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
29879 if test "$no_x" = yes; then
29880 # Not all programs may use this symbol, but it does not hurt to define it.
29882 cat >>confdefs.h <<\_ACEOF
29883 #define X_DISPLAY_MISSING 1
29886 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29888 if test -n "$x_includes"; then
29889 X_CFLAGS="$X_CFLAGS -I$x_includes"
29892 # It would also be nice to do this for all -L options, not just this one.
29893 if test -n "$x_libraries"; then
29894 X_LIBS="$X_LIBS -L$x_libraries"
29895 # For Solaris; some versions of Sun CC require a space after -R and
29896 # others require no space. Words are not sufficient . . . .
29897 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
29898 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
29899 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29900 ac_xsave_c_werror_flag=$ac_c_werror_flag
29901 ac_c_werror_flag=yes
29902 cat >conftest.$ac_ext <<_ACEOF
29905 cat confdefs.h >>conftest.$ac_ext
29906 cat >>conftest.$ac_ext <<_ACEOF
29907 /* end confdefs.h. */
29917 rm -f conftest.$ac_objext conftest$ac_exeext
29918 if { (ac_try="$ac_link"
29919 case "(($ac_try" in
29920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29921 *) ac_try_echo=$ac_try;;
29923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29924 (eval "$ac_link") 2>conftest.er1
29926 grep -v '^ *+' conftest.er1 >conftest.err
29928 cat conftest.err >&5
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } && {
29931 test -z "$ac_c_werror_flag" ||
29932 test ! -s conftest.err
29933 } && test -s conftest$ac_exeext &&
29934 $as_test_x conftest$ac_exeext; then
29935 { echo "$as_me:$LINENO: result: no" >&5
29936 echo "${ECHO_T}no" >&6; }
29937 X_LIBS="$X_LIBS -R$x_libraries"
29939 echo "$as_me: failed program was:" >&5
29940 sed 's/^/| /' conftest.$ac_ext >&5
29942 LIBS="$ac_xsave_LIBS -R $x_libraries"
29943 cat >conftest.$ac_ext <<_ACEOF
29946 cat confdefs.h >>conftest.$ac_ext
29947 cat >>conftest.$ac_ext <<_ACEOF
29948 /* end confdefs.h. */
29958 rm -f conftest.$ac_objext conftest$ac_exeext
29959 if { (ac_try="$ac_link"
29960 case "(($ac_try" in
29961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29962 *) ac_try_echo=$ac_try;;
29964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29965 (eval "$ac_link") 2>conftest.er1
29967 grep -v '^ *+' conftest.er1 >conftest.err
29969 cat conftest.err >&5
29970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29971 (exit $ac_status); } && {
29972 test -z "$ac_c_werror_flag" ||
29973 test ! -s conftest.err
29974 } && test -s conftest$ac_exeext &&
29975 $as_test_x conftest$ac_exeext; then
29976 { echo "$as_me:$LINENO: result: yes" >&5
29977 echo "${ECHO_T}yes" >&6; }
29978 X_LIBS="$X_LIBS -R $x_libraries"
29980 echo "$as_me: failed program was:" >&5
29981 sed 's/^/| /' conftest.$ac_ext >&5
29983 { echo "$as_me:$LINENO: result: neither works" >&5
29984 echo "${ECHO_T}neither works" >&6; }
29987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29988 conftest$ac_exeext conftest.$ac_ext
29991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29992 conftest$ac_exeext conftest.$ac_ext
29993 ac_c_werror_flag=$ac_xsave_c_werror_flag
29994 LIBS=$ac_xsave_LIBS
29997 # Check for system-dependent libraries X programs must link with.
29998 # Do this before checking for the system-independent R6 libraries
29999 # (-lICE), since we may need -lsocket or whatever for X linking.
30001 if test "$ISC" = yes; then
30002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
30004 # Martyn Johnson says this is needed for Ultrix, if the X
30005 # libraries were built with DECnet support. And Karl Berry says
30006 # the Alpha needs dnet_stub (dnet does not exist).
30007 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
30008 cat >conftest.$ac_ext <<_ACEOF
30011 cat confdefs.h >>conftest.$ac_ext
30012 cat >>conftest.$ac_ext <<_ACEOF
30013 /* end confdefs.h. */
30015 /* Override any GCC internal prototype to avoid an error.
30016 Use char because int might match the return type of a GCC
30017 builtin and then its argument prototype would still apply. */
30021 char XOpenDisplay ();
30025 return XOpenDisplay ();
30030 rm -f conftest.$ac_objext conftest$ac_exeext
30031 if { (ac_try="$ac_link"
30032 case "(($ac_try" in
30033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30034 *) ac_try_echo=$ac_try;;
30036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30037 (eval "$ac_link") 2>conftest.er1
30039 grep -v '^ *+' conftest.er1 >conftest.err
30041 cat conftest.err >&5
30042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30043 (exit $ac_status); } && {
30044 test -z "$ac_c_werror_flag" ||
30045 test ! -s conftest.err
30046 } && test -s conftest$ac_exeext &&
30047 $as_test_x conftest$ac_exeext; then
30050 echo "$as_me: failed program was:" >&5
30051 sed 's/^/| /' conftest.$ac_ext >&5
30053 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
30054 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
30055 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
30056 echo $ECHO_N "(cached) $ECHO_C" >&6
30058 ac_check_lib_save_LIBS=$LIBS
30059 LIBS="-ldnet $LIBS"
30060 cat >conftest.$ac_ext <<_ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h. */
30067 /* Override any GCC internal prototype to avoid an error.
30068 Use char because int might match the return type of a GCC
30069 builtin and then its argument prototype would still apply. */
30077 return dnet_ntoa ();
30082 rm -f conftest.$ac_objext conftest$ac_exeext
30083 if { (ac_try="$ac_link"
30084 case "(($ac_try" in
30085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30086 *) ac_try_echo=$ac_try;;
30088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30089 (eval "$ac_link") 2>conftest.er1
30091 grep -v '^ *+' conftest.er1 >conftest.err
30093 cat conftest.err >&5
30094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30095 (exit $ac_status); } && {
30096 test -z "$ac_c_werror_flag" ||
30097 test ! -s conftest.err
30098 } && test -s conftest$ac_exeext &&
30099 $as_test_x conftest$ac_exeext; then
30100 ac_cv_lib_dnet_dnet_ntoa=yes
30102 echo "$as_me: failed program was:" >&5
30103 sed 's/^/| /' conftest.$ac_ext >&5
30105 ac_cv_lib_dnet_dnet_ntoa=no
30108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30109 conftest$ac_exeext conftest.$ac_ext
30110 LIBS=$ac_check_lib_save_LIBS
30112 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
30113 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
30114 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
30115 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
30118 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
30119 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
30120 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
30121 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
30122 echo $ECHO_N "(cached) $ECHO_C" >&6
30124 ac_check_lib_save_LIBS=$LIBS
30125 LIBS="-ldnet_stub $LIBS"
30126 cat >conftest.$ac_ext <<_ACEOF
30129 cat confdefs.h >>conftest.$ac_ext
30130 cat >>conftest.$ac_ext <<_ACEOF
30131 /* end confdefs.h. */
30133 /* Override any GCC internal prototype to avoid an error.
30134 Use char because int might match the return type of a GCC
30135 builtin and then its argument prototype would still apply. */
30143 return dnet_ntoa ();
30148 rm -f conftest.$ac_objext conftest$ac_exeext
30149 if { (ac_try="$ac_link"
30150 case "(($ac_try" in
30151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30152 *) ac_try_echo=$ac_try;;
30154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30155 (eval "$ac_link") 2>conftest.er1
30157 grep -v '^ *+' conftest.er1 >conftest.err
30159 cat conftest.err >&5
30160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30161 (exit $ac_status); } && {
30162 test -z "$ac_c_werror_flag" ||
30163 test ! -s conftest.err
30164 } && test -s conftest$ac_exeext &&
30165 $as_test_x conftest$ac_exeext; then
30166 ac_cv_lib_dnet_stub_dnet_ntoa=yes
30168 echo "$as_me: failed program was:" >&5
30169 sed 's/^/| /' conftest.$ac_ext >&5
30171 ac_cv_lib_dnet_stub_dnet_ntoa=no
30174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30175 conftest$ac_exeext conftest.$ac_ext
30176 LIBS=$ac_check_lib_save_LIBS
30178 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
30179 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
30180 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
30181 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
30187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30188 conftest$ac_exeext conftest.$ac_ext
30189 LIBS="$ac_xsave_LIBS"
30191 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
30192 # to get the SysV transport functions.
30193 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
30195 # The nsl library prevents programs from opening the X display
30196 # on Irix 5.2, according to T.E. Dickey.
30197 # The functions gethostbyname, getservbyname, and inet_addr are
30198 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
30199 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
30200 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
30201 if test "${ac_cv_func_gethostbyname+set}" = set; then
30202 echo $ECHO_N "(cached) $ECHO_C" >&6
30204 cat >conftest.$ac_ext <<_ACEOF
30207 cat confdefs.h >>conftest.$ac_ext
30208 cat >>conftest.$ac_ext <<_ACEOF
30209 /* end confdefs.h. */
30210 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
30211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30212 #define gethostbyname innocuous_gethostbyname
30214 /* System header to define __stub macros and hopefully few prototypes,
30215 which can conflict with char gethostbyname (); below.
30216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30217 <limits.h> exists even on freestanding compilers. */
30220 # include <limits.h>
30222 # include <assert.h>
30225 #undef gethostbyname
30227 /* Override any GCC internal prototype to avoid an error.
30228 Use char because int might match the return type of a GCC
30229 builtin and then its argument prototype would still apply. */
30233 char gethostbyname ();
30234 /* The GNU C library defines this for functions which it implements
30235 to always fail with ENOSYS. Some functions are actually named
30236 something starting with __ and the normal name is an alias. */
30237 #if defined __stub_gethostbyname || defined __stub___gethostbyname
30244 return gethostbyname ();
30249 rm -f conftest.$ac_objext conftest$ac_exeext
30250 if { (ac_try="$ac_link"
30251 case "(($ac_try" in
30252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30253 *) ac_try_echo=$ac_try;;
30255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30256 (eval "$ac_link") 2>conftest.er1
30258 grep -v '^ *+' conftest.er1 >conftest.err
30260 cat conftest.err >&5
30261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262 (exit $ac_status); } && {
30263 test -z "$ac_c_werror_flag" ||
30264 test ! -s conftest.err
30265 } && test -s conftest$ac_exeext &&
30266 $as_test_x conftest$ac_exeext; then
30267 ac_cv_func_gethostbyname=yes
30269 echo "$as_me: failed program was:" >&5
30270 sed 's/^/| /' conftest.$ac_ext >&5
30272 ac_cv_func_gethostbyname=no
30275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30276 conftest$ac_exeext conftest.$ac_ext
30278 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
30279 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
30281 if test $ac_cv_func_gethostbyname = no; then
30282 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
30283 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
30284 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
30285 echo $ECHO_N "(cached) $ECHO_C" >&6
30287 ac_check_lib_save_LIBS=$LIBS
30289 cat >conftest.$ac_ext <<_ACEOF
30292 cat confdefs.h >>conftest.$ac_ext
30293 cat >>conftest.$ac_ext <<_ACEOF
30294 /* end confdefs.h. */
30296 /* Override any GCC internal prototype to avoid an error.
30297 Use char because int might match the return type of a GCC
30298 builtin and then its argument prototype would still apply. */
30302 char gethostbyname ();
30306 return gethostbyname ();
30311 rm -f conftest.$ac_objext conftest$ac_exeext
30312 if { (ac_try="$ac_link"
30313 case "(($ac_try" in
30314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30315 *) ac_try_echo=$ac_try;;
30317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30318 (eval "$ac_link") 2>conftest.er1
30320 grep -v '^ *+' conftest.er1 >conftest.err
30322 cat conftest.err >&5
30323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30324 (exit $ac_status); } && {
30325 test -z "$ac_c_werror_flag" ||
30326 test ! -s conftest.err
30327 } && test -s conftest$ac_exeext &&
30328 $as_test_x conftest$ac_exeext; then
30329 ac_cv_lib_nsl_gethostbyname=yes
30331 echo "$as_me: failed program was:" >&5
30332 sed 's/^/| /' conftest.$ac_ext >&5
30334 ac_cv_lib_nsl_gethostbyname=no
30337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30338 conftest$ac_exeext conftest.$ac_ext
30339 LIBS=$ac_check_lib_save_LIBS
30341 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
30342 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
30343 if test $ac_cv_lib_nsl_gethostbyname = yes; then
30344 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30347 if test $ac_cv_lib_nsl_gethostbyname = no; then
30348 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
30349 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
30350 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
30351 echo $ECHO_N "(cached) $ECHO_C" >&6
30353 ac_check_lib_save_LIBS=$LIBS
30355 cat >conftest.$ac_ext <<_ACEOF
30358 cat confdefs.h >>conftest.$ac_ext
30359 cat >>conftest.$ac_ext <<_ACEOF
30360 /* end confdefs.h. */
30362 /* Override any GCC internal prototype to avoid an error.
30363 Use char because int might match the return type of a GCC
30364 builtin and then its argument prototype would still apply. */
30368 char gethostbyname ();
30372 return gethostbyname ();
30377 rm -f conftest.$ac_objext conftest$ac_exeext
30378 if { (ac_try="$ac_link"
30379 case "(($ac_try" in
30380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30381 *) ac_try_echo=$ac_try;;
30383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30384 (eval "$ac_link") 2>conftest.er1
30386 grep -v '^ *+' conftest.er1 >conftest.err
30388 cat conftest.err >&5
30389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30390 (exit $ac_status); } && {
30391 test -z "$ac_c_werror_flag" ||
30392 test ! -s conftest.err
30393 } && test -s conftest$ac_exeext &&
30394 $as_test_x conftest$ac_exeext; then
30395 ac_cv_lib_bsd_gethostbyname=yes
30397 echo "$as_me: failed program was:" >&5
30398 sed 's/^/| /' conftest.$ac_ext >&5
30400 ac_cv_lib_bsd_gethostbyname=no
30403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30404 conftest$ac_exeext conftest.$ac_ext
30405 LIBS=$ac_check_lib_save_LIBS
30407 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
30408 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
30409 if test $ac_cv_lib_bsd_gethostbyname = yes; then
30410 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30416 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30417 # socket/setsockopt and other routines are undefined under SCO ODT
30418 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30419 # on later versions), says Simon Leinen: it contains gethostby*
30420 # variants that don't use the name server (or something). -lsocket
30421 # must be given before -lnsl if both are needed. We assume that
30422 # if connect needs -lnsl, so does gethostbyname.
30423 { echo "$as_me:$LINENO: checking for connect" >&5
30424 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
30425 if test "${ac_cv_func_connect+set}" = set; then
30426 echo $ECHO_N "(cached) $ECHO_C" >&6
30428 cat >conftest.$ac_ext <<_ACEOF
30431 cat confdefs.h >>conftest.$ac_ext
30432 cat >>conftest.$ac_ext <<_ACEOF
30433 /* end confdefs.h. */
30434 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
30435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30436 #define connect innocuous_connect
30438 /* System header to define __stub macros and hopefully few prototypes,
30439 which can conflict with char connect (); below.
30440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30441 <limits.h> exists even on freestanding compilers. */
30444 # include <limits.h>
30446 # include <assert.h>
30451 /* Override any GCC internal prototype to avoid an error.
30452 Use char because int might match the return type of a GCC
30453 builtin and then its argument prototype would still apply. */
30458 /* The GNU C library defines this for functions which it implements
30459 to always fail with ENOSYS. Some functions are actually named
30460 something starting with __ and the normal name is an alias. */
30461 #if defined __stub_connect || defined __stub___connect
30473 rm -f conftest.$ac_objext conftest$ac_exeext
30474 if { (ac_try="$ac_link"
30475 case "(($ac_try" in
30476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30477 *) ac_try_echo=$ac_try;;
30479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30480 (eval "$ac_link") 2>conftest.er1
30482 grep -v '^ *+' conftest.er1 >conftest.err
30484 cat conftest.err >&5
30485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30486 (exit $ac_status); } && {
30487 test -z "$ac_c_werror_flag" ||
30488 test ! -s conftest.err
30489 } && test -s conftest$ac_exeext &&
30490 $as_test_x conftest$ac_exeext; then
30491 ac_cv_func_connect=yes
30493 echo "$as_me: failed program was:" >&5
30494 sed 's/^/| /' conftest.$ac_ext >&5
30496 ac_cv_func_connect=no
30499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30500 conftest$ac_exeext conftest.$ac_ext
30502 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
30503 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
30505 if test $ac_cv_func_connect = no; then
30506 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
30507 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
30508 if test "${ac_cv_lib_socket_connect+set}" = set; then
30509 echo $ECHO_N "(cached) $ECHO_C" >&6
30511 ac_check_lib_save_LIBS=$LIBS
30512 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30513 cat >conftest.$ac_ext <<_ACEOF
30516 cat confdefs.h >>conftest.$ac_ext
30517 cat >>conftest.$ac_ext <<_ACEOF
30518 /* end confdefs.h. */
30520 /* Override any GCC internal prototype to avoid an error.
30521 Use char because int might match the return type of a GCC
30522 builtin and then its argument prototype would still apply. */
30535 rm -f conftest.$ac_objext conftest$ac_exeext
30536 if { (ac_try="$ac_link"
30537 case "(($ac_try" in
30538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30539 *) ac_try_echo=$ac_try;;
30541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30542 (eval "$ac_link") 2>conftest.er1
30544 grep -v '^ *+' conftest.er1 >conftest.err
30546 cat conftest.err >&5
30547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30548 (exit $ac_status); } && {
30549 test -z "$ac_c_werror_flag" ||
30550 test ! -s conftest.err
30551 } && test -s conftest$ac_exeext &&
30552 $as_test_x conftest$ac_exeext; then
30553 ac_cv_lib_socket_connect=yes
30555 echo "$as_me: failed program was:" >&5
30556 sed 's/^/| /' conftest.$ac_ext >&5
30558 ac_cv_lib_socket_connect=no
30561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30562 conftest$ac_exeext conftest.$ac_ext
30563 LIBS=$ac_check_lib_save_LIBS
30565 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
30566 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
30567 if test $ac_cv_lib_socket_connect = yes; then
30568 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30573 # Guillermo Gomez says -lposix is necessary on A/UX.
30574 { echo "$as_me:$LINENO: checking for remove" >&5
30575 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
30576 if test "${ac_cv_func_remove+set}" = set; then
30577 echo $ECHO_N "(cached) $ECHO_C" >&6
30579 cat >conftest.$ac_ext <<_ACEOF
30582 cat confdefs.h >>conftest.$ac_ext
30583 cat >>conftest.$ac_ext <<_ACEOF
30584 /* end confdefs.h. */
30585 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
30586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30587 #define remove innocuous_remove
30589 /* System header to define __stub macros and hopefully few prototypes,
30590 which can conflict with char remove (); below.
30591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30592 <limits.h> exists even on freestanding compilers. */
30595 # include <limits.h>
30597 # include <assert.h>
30602 /* Override any GCC internal prototype to avoid an error.
30603 Use char because int might match the return type of a GCC
30604 builtin and then its argument prototype would still apply. */
30609 /* The GNU C library defines this for functions which it implements
30610 to always fail with ENOSYS. Some functions are actually named
30611 something starting with __ and the normal name is an alias. */
30612 #if defined __stub_remove || defined __stub___remove
30624 rm -f conftest.$ac_objext conftest$ac_exeext
30625 if { (ac_try="$ac_link"
30626 case "(($ac_try" in
30627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30628 *) ac_try_echo=$ac_try;;
30630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30631 (eval "$ac_link") 2>conftest.er1
30633 grep -v '^ *+' conftest.er1 >conftest.err
30635 cat conftest.err >&5
30636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30637 (exit $ac_status); } && {
30638 test -z "$ac_c_werror_flag" ||
30639 test ! -s conftest.err
30640 } && test -s conftest$ac_exeext &&
30641 $as_test_x conftest$ac_exeext; then
30642 ac_cv_func_remove=yes
30644 echo "$as_me: failed program was:" >&5
30645 sed 's/^/| /' conftest.$ac_ext >&5
30647 ac_cv_func_remove=no
30650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30651 conftest$ac_exeext conftest.$ac_ext
30653 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
30654 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
30656 if test $ac_cv_func_remove = no; then
30657 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
30658 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
30659 if test "${ac_cv_lib_posix_remove+set}" = set; then
30660 echo $ECHO_N "(cached) $ECHO_C" >&6
30662 ac_check_lib_save_LIBS=$LIBS
30663 LIBS="-lposix $LIBS"
30664 cat >conftest.$ac_ext <<_ACEOF
30667 cat confdefs.h >>conftest.$ac_ext
30668 cat >>conftest.$ac_ext <<_ACEOF
30669 /* end confdefs.h. */
30671 /* Override any GCC internal prototype to avoid an error.
30672 Use char because int might match the return type of a GCC
30673 builtin and then its argument prototype would still apply. */
30686 rm -f conftest.$ac_objext conftest$ac_exeext
30687 if { (ac_try="$ac_link"
30688 case "(($ac_try" in
30689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30690 *) ac_try_echo=$ac_try;;
30692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30693 (eval "$ac_link") 2>conftest.er1
30695 grep -v '^ *+' conftest.er1 >conftest.err
30697 cat conftest.err >&5
30698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30699 (exit $ac_status); } && {
30700 test -z "$ac_c_werror_flag" ||
30701 test ! -s conftest.err
30702 } && test -s conftest$ac_exeext &&
30703 $as_test_x conftest$ac_exeext; then
30704 ac_cv_lib_posix_remove=yes
30706 echo "$as_me: failed program was:" >&5
30707 sed 's/^/| /' conftest.$ac_ext >&5
30709 ac_cv_lib_posix_remove=no
30712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30713 conftest$ac_exeext conftest.$ac_ext
30714 LIBS=$ac_check_lib_save_LIBS
30716 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
30717 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
30718 if test $ac_cv_lib_posix_remove = yes; then
30719 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30724 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30725 { echo "$as_me:$LINENO: checking for shmat" >&5
30726 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
30727 if test "${ac_cv_func_shmat+set}" = set; then
30728 echo $ECHO_N "(cached) $ECHO_C" >&6
30730 cat >conftest.$ac_ext <<_ACEOF
30733 cat confdefs.h >>conftest.$ac_ext
30734 cat >>conftest.$ac_ext <<_ACEOF
30735 /* end confdefs.h. */
30736 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
30737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30738 #define shmat innocuous_shmat
30740 /* System header to define __stub macros and hopefully few prototypes,
30741 which can conflict with char shmat (); below.
30742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30743 <limits.h> exists even on freestanding compilers. */
30746 # include <limits.h>
30748 # include <assert.h>
30753 /* Override any GCC internal prototype to avoid an error.
30754 Use char because int might match the return type of a GCC
30755 builtin and then its argument prototype would still apply. */
30760 /* The GNU C library defines this for functions which it implements
30761 to always fail with ENOSYS. Some functions are actually named
30762 something starting with __ and the normal name is an alias. */
30763 #if defined __stub_shmat || defined __stub___shmat
30775 rm -f conftest.$ac_objext conftest$ac_exeext
30776 if { (ac_try="$ac_link"
30777 case "(($ac_try" in
30778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30779 *) ac_try_echo=$ac_try;;
30781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30782 (eval "$ac_link") 2>conftest.er1
30784 grep -v '^ *+' conftest.er1 >conftest.err
30786 cat conftest.err >&5
30787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30788 (exit $ac_status); } && {
30789 test -z "$ac_c_werror_flag" ||
30790 test ! -s conftest.err
30791 } && test -s conftest$ac_exeext &&
30792 $as_test_x conftest$ac_exeext; then
30793 ac_cv_func_shmat=yes
30795 echo "$as_me: failed program was:" >&5
30796 sed 's/^/| /' conftest.$ac_ext >&5
30798 ac_cv_func_shmat=no
30801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30802 conftest$ac_exeext conftest.$ac_ext
30804 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
30805 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
30807 if test $ac_cv_func_shmat = no; then
30808 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
30809 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
30810 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
30811 echo $ECHO_N "(cached) $ECHO_C" >&6
30813 ac_check_lib_save_LIBS=$LIBS
30815 cat >conftest.$ac_ext <<_ACEOF
30818 cat confdefs.h >>conftest.$ac_ext
30819 cat >>conftest.$ac_ext <<_ACEOF
30820 /* end confdefs.h. */
30822 /* Override any GCC internal prototype to avoid an error.
30823 Use char because int might match the return type of a GCC
30824 builtin and then its argument prototype would still apply. */
30837 rm -f conftest.$ac_objext conftest$ac_exeext
30838 if { (ac_try="$ac_link"
30839 case "(($ac_try" in
30840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30841 *) ac_try_echo=$ac_try;;
30843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30844 (eval "$ac_link") 2>conftest.er1
30846 grep -v '^ *+' conftest.er1 >conftest.err
30848 cat conftest.err >&5
30849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30850 (exit $ac_status); } && {
30851 test -z "$ac_c_werror_flag" ||
30852 test ! -s conftest.err
30853 } && test -s conftest$ac_exeext &&
30854 $as_test_x conftest$ac_exeext; then
30855 ac_cv_lib_ipc_shmat=yes
30857 echo "$as_me: failed program was:" >&5
30858 sed 's/^/| /' conftest.$ac_ext >&5
30860 ac_cv_lib_ipc_shmat=no
30863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30864 conftest$ac_exeext conftest.$ac_ext
30865 LIBS=$ac_check_lib_save_LIBS
30867 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
30868 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
30869 if test $ac_cv_lib_ipc_shmat = yes; then
30870 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30876 # Check for libraries that X11R6 Xt/Xaw programs need.
30877 ac_save_LDFLAGS=$LDFLAGS
30878 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30879 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30880 # check for ICE first), but we must link in the order -lSM -lICE or
30881 # we get undefined symbols. So assume we have SM if we have ICE.
30882 # These have to be linked with before -lX11, unlike the other
30883 # libraries we check for below, so use a different variable.
30884 # John Interrante, Karl Berry
30885 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
30886 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
30887 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
30888 echo $ECHO_N "(cached) $ECHO_C" >&6
30890 ac_check_lib_save_LIBS=$LIBS
30891 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30892 cat >conftest.$ac_ext <<_ACEOF
30895 cat confdefs.h >>conftest.$ac_ext
30896 cat >>conftest.$ac_ext <<_ACEOF
30897 /* end confdefs.h. */
30899 /* Override any GCC internal prototype to avoid an error.
30900 Use char because int might match the return type of a GCC
30901 builtin and then its argument prototype would still apply. */
30905 char IceConnectionNumber ();
30909 return IceConnectionNumber ();
30914 rm -f conftest.$ac_objext conftest$ac_exeext
30915 if { (ac_try="$ac_link"
30916 case "(($ac_try" in
30917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30918 *) ac_try_echo=$ac_try;;
30920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30921 (eval "$ac_link") 2>conftest.er1
30923 grep -v '^ *+' conftest.er1 >conftest.err
30925 cat conftest.err >&5
30926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30927 (exit $ac_status); } && {
30928 test -z "$ac_c_werror_flag" ||
30929 test ! -s conftest.err
30930 } && test -s conftest$ac_exeext &&
30931 $as_test_x conftest$ac_exeext; then
30932 ac_cv_lib_ICE_IceConnectionNumber=yes
30934 echo "$as_me: failed program was:" >&5
30935 sed 's/^/| /' conftest.$ac_ext >&5
30937 ac_cv_lib_ICE_IceConnectionNumber=no
30940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30941 conftest$ac_exeext conftest.$ac_ext
30942 LIBS=$ac_check_lib_save_LIBS
30944 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30945 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30946 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
30947 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30950 LDFLAGS=$ac_save_LDFLAGS
31016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31021 echo $ECHO_N "(cached) $ECHO_C" >&6
31023 ac_res=`eval echo '${'$as_ac_Header'}'`
31024 { echo "$as_me:$LINENO: result: $ac_res" >&5
31025 echo "${ECHO_T}$ac_res" >&6; }
31027 # Is the header compilable?
31028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31030 cat >conftest.$ac_ext <<_ACEOF
31033 cat confdefs.h >>conftest.$ac_ext
31034 cat >>conftest.$ac_ext <<_ACEOF
31035 /* end confdefs.h. */
31036 $ac_includes_default
31037 #include <$ac_header>
31039 rm -f conftest.$ac_objext
31040 if { (ac_try="$ac_compile"
31041 case "(($ac_try" in
31042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31043 *) ac_try_echo=$ac_try;;
31045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31046 (eval "$ac_compile") 2>conftest.er1
31048 grep -v '^ *+' conftest.er1 >conftest.err
31050 cat conftest.err >&5
31051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); } && {
31053 test -z "$ac_c_werror_flag" ||
31054 test ! -s conftest.err
31055 } && test -s conftest.$ac_objext; then
31056 ac_header_compiler=yes
31058 echo "$as_me: failed program was:" >&5
31059 sed 's/^/| /' conftest.$ac_ext >&5
31061 ac_header_compiler=no
31064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31066 echo "${ECHO_T}$ac_header_compiler" >&6; }
31068 # Is the header present?
31069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31071 cat >conftest.$ac_ext <<_ACEOF
31074 cat confdefs.h >>conftest.$ac_ext
31075 cat >>conftest.$ac_ext <<_ACEOF
31076 /* end confdefs.h. */
31077 #include <$ac_header>
31079 if { (ac_try="$ac_cpp conftest.$ac_ext"
31080 case "(($ac_try" in
31081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31082 *) ac_try_echo=$ac_try;;
31084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31087 grep -v '^ *+' conftest.er1 >conftest.err
31089 cat conftest.err >&5
31090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31091 (exit $ac_status); } >/dev/null && {
31092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31093 test ! -s conftest.err
31095 ac_header_preproc=yes
31097 echo "$as_me: failed program was:" >&5
31098 sed 's/^/| /' conftest.$ac_ext >&5
31100 ac_header_preproc=no
31103 rm -f conftest.err conftest.$ac_ext
31104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31105 echo "${ECHO_T}$ac_header_preproc" >&6; }
31107 # So? What about this header?
31108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31114 ac_header_preproc=yes
31117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31135 echo $ECHO_N "(cached) $ECHO_C" >&6
31137 eval "$as_ac_Header=\$ac_header_preproc"
31139 ac_res=`eval echo '${'$as_ac_Header'}'`
31140 { echo "$as_me:$LINENO: result: $ac_res" >&5
31141 echo "${ECHO_T}$ac_res" >&6; }
31144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31145 cat >>confdefs.h <<_ACEOF
31146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31153 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
31154 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
31155 if test "${ac_cv_header_stdc+set}" = set; then
31156 echo $ECHO_N "(cached) $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 <stdlib.h>
31165 #include <stdarg.h>
31166 #include <string.h>
31177 rm -f conftest.$ac_objext
31178 if { (ac_try="$ac_compile"
31179 case "(($ac_try" in
31180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31181 *) ac_try_echo=$ac_try;;
31183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31184 (eval "$ac_compile") 2>conftest.er1
31186 grep -v '^ *+' conftest.er1 >conftest.err
31188 cat conftest.err >&5
31189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31190 (exit $ac_status); } && {
31191 test -z "$ac_c_werror_flag" ||
31192 test ! -s conftest.err
31193 } && test -s conftest.$ac_objext; then
31194 ac_cv_header_stdc=yes
31196 echo "$as_me: failed program was:" >&5
31197 sed 's/^/| /' conftest.$ac_ext >&5
31199 ac_cv_header_stdc=no
31202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31204 if test $ac_cv_header_stdc = yes; then
31205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
31206 cat >conftest.$ac_ext <<_ACEOF
31209 cat confdefs.h >>conftest.$ac_ext
31210 cat >>conftest.$ac_ext <<_ACEOF
31211 /* end confdefs.h. */
31212 #include <string.h>
31215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31216 $EGREP "memchr" >/dev/null 2>&1; then
31219 ac_cv_header_stdc=no
31225 if test $ac_cv_header_stdc = yes; then
31226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
31227 cat >conftest.$ac_ext <<_ACEOF
31230 cat confdefs.h >>conftest.$ac_ext
31231 cat >>conftest.$ac_ext <<_ACEOF
31232 /* end confdefs.h. */
31233 #include <stdlib.h>
31236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31237 $EGREP "free" >/dev/null 2>&1; then
31240 ac_cv_header_stdc=no
31246 if test $ac_cv_header_stdc = yes; then
31247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
31248 if test "$cross_compiling" = yes; then
31251 cat >conftest.$ac_ext <<_ACEOF
31254 cat confdefs.h >>conftest.$ac_ext
31255 cat >>conftest.$ac_ext <<_ACEOF
31256 /* end confdefs.h. */
31258 #include <stdlib.h>
31259 #if ((' ' & 0x0FF) == 0x020)
31260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
31261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
31263 # define ISLOWER(c) \
31264 (('a' <= (c) && (c) <= 'i') \
31265 || ('j' <= (c) && (c) <= 'r') \
31266 || ('s' <= (c) && (c) <= 'z'))
31267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
31270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
31275 for (i = 0; i < 256; i++)
31276 if (XOR (islower (i), ISLOWER (i))
31277 || toupper (i) != TOUPPER (i))
31282 rm -f conftest$ac_exeext
31283 if { (ac_try="$ac_link"
31284 case "(($ac_try" in
31285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31286 *) ac_try_echo=$ac_try;;
31288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31289 (eval "$ac_link") 2>&5
31291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31293 { (case "(($ac_try" in
31294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31295 *) ac_try_echo=$ac_try;;
31297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31298 (eval "$ac_try") 2>&5
31300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31301 (exit $ac_status); }; }; then
31304 echo "$as_me: program exited with status $ac_status" >&5
31305 echo "$as_me: failed program was:" >&5
31306 sed 's/^/| /' conftest.$ac_ext >&5
31308 ( exit $ac_status )
31309 ac_cv_header_stdc=no
31311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31317 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
31318 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
31319 if test $ac_cv_header_stdc = yes; then
31321 cat >>confdefs.h <<\_ACEOF
31322 #define STDC_HEADERS 1
31327 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
31328 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
31329 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
31330 echo $ECHO_N "(cached) $ECHO_C" >&6
31332 cat >conftest.$ac_ext <<_ACEOF
31335 cat confdefs.h >>conftest.$ac_ext
31336 cat >>conftest.$ac_ext <<_ACEOF
31337 /* end confdefs.h. */
31338 #include <sys/types.h>
31342 return makedev(0, 0);
31347 rm -f conftest.$ac_objext conftest$ac_exeext
31348 if { (ac_try="$ac_link"
31349 case "(($ac_try" in
31350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31351 *) ac_try_echo=$ac_try;;
31353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31354 (eval "$ac_link") 2>conftest.er1
31356 grep -v '^ *+' conftest.er1 >conftest.err
31358 cat conftest.err >&5
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); } && {
31361 test -z "$ac_c_werror_flag" ||
31362 test ! -s conftest.err
31363 } && test -s conftest$ac_exeext &&
31364 $as_test_x conftest$ac_exeext; then
31365 ac_cv_header_sys_types_h_makedev=yes
31367 echo "$as_me: failed program was:" >&5
31368 sed 's/^/| /' conftest.$ac_ext >&5
31370 ac_cv_header_sys_types_h_makedev=no
31373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31374 conftest$ac_exeext conftest.$ac_ext
31377 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
31378 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
31380 if test $ac_cv_header_sys_types_h_makedev = no; then
31381 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31382 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31383 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31384 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31385 echo $ECHO_N "(cached) $ECHO_C" >&6
31387 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31388 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31390 # Is the header compilable?
31391 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
31392 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
31393 cat >conftest.$ac_ext <<_ACEOF
31396 cat confdefs.h >>conftest.$ac_ext
31397 cat >>conftest.$ac_ext <<_ACEOF
31398 /* end confdefs.h. */
31399 $ac_includes_default
31400 #include <sys/mkdev.h>
31402 rm -f conftest.$ac_objext
31403 if { (ac_try="$ac_compile"
31404 case "(($ac_try" in
31405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31406 *) ac_try_echo=$ac_try;;
31408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31409 (eval "$ac_compile") 2>conftest.er1
31411 grep -v '^ *+' conftest.er1 >conftest.err
31413 cat conftest.err >&5
31414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31415 (exit $ac_status); } && {
31416 test -z "$ac_c_werror_flag" ||
31417 test ! -s conftest.err
31418 } && test -s conftest.$ac_objext; then
31419 ac_header_compiler=yes
31421 echo "$as_me: failed program was:" >&5
31422 sed 's/^/| /' conftest.$ac_ext >&5
31424 ac_header_compiler=no
31427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31428 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31429 echo "${ECHO_T}$ac_header_compiler" >&6; }
31431 # Is the header present?
31432 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
31433 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
31434 cat >conftest.$ac_ext <<_ACEOF
31437 cat confdefs.h >>conftest.$ac_ext
31438 cat >>conftest.$ac_ext <<_ACEOF
31439 /* end confdefs.h. */
31440 #include <sys/mkdev.h>
31442 if { (ac_try="$ac_cpp conftest.$ac_ext"
31443 case "(($ac_try" in
31444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31445 *) ac_try_echo=$ac_try;;
31447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31450 grep -v '^ *+' conftest.er1 >conftest.err
31452 cat conftest.err >&5
31453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31454 (exit $ac_status); } >/dev/null && {
31455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31456 test ! -s conftest.err
31458 ac_header_preproc=yes
31460 echo "$as_me: failed program was:" >&5
31461 sed 's/^/| /' conftest.$ac_ext >&5
31463 ac_header_preproc=no
31466 rm -f conftest.err conftest.$ac_ext
31467 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31468 echo "${ECHO_T}$ac_header_preproc" >&6; }
31470 # So? What about this header?
31471 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31473 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
31474 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31475 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
31476 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
31477 ac_header_preproc=yes
31480 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
31481 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
31482 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
31483 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
31484 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
31485 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
31486 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
31487 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
31488 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
31489 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
31490 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
31491 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
31495 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
31496 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
31497 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
31498 echo $ECHO_N "(cached) $ECHO_C" >&6
31500 ac_cv_header_sys_mkdev_h=$ac_header_preproc
31502 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
31503 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
31506 if test $ac_cv_header_sys_mkdev_h = yes; then
31508 cat >>confdefs.h <<\_ACEOF
31509 #define MAJOR_IN_MKDEV 1
31516 if test $ac_cv_header_sys_mkdev_h = no; then
31517 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31518 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31519 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31520 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31521 echo $ECHO_N "(cached) $ECHO_C" >&6
31523 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31524 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31526 # Is the header compilable?
31527 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
31528 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
31529 cat >conftest.$ac_ext <<_ACEOF
31532 cat confdefs.h >>conftest.$ac_ext
31533 cat >>conftest.$ac_ext <<_ACEOF
31534 /* end confdefs.h. */
31535 $ac_includes_default
31536 #include <sys/sysmacros.h>
31538 rm -f conftest.$ac_objext
31539 if { (ac_try="$ac_compile"
31540 case "(($ac_try" in
31541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31542 *) ac_try_echo=$ac_try;;
31544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31545 (eval "$ac_compile") 2>conftest.er1
31547 grep -v '^ *+' conftest.er1 >conftest.err
31549 cat conftest.err >&5
31550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31551 (exit $ac_status); } && {
31552 test -z "$ac_c_werror_flag" ||
31553 test ! -s conftest.err
31554 } && test -s conftest.$ac_objext; then
31555 ac_header_compiler=yes
31557 echo "$as_me: failed program was:" >&5
31558 sed 's/^/| /' conftest.$ac_ext >&5
31560 ac_header_compiler=no
31563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31564 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31565 echo "${ECHO_T}$ac_header_compiler" >&6; }
31567 # Is the header present?
31568 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
31569 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
31570 cat >conftest.$ac_ext <<_ACEOF
31573 cat confdefs.h >>conftest.$ac_ext
31574 cat >>conftest.$ac_ext <<_ACEOF
31575 /* end confdefs.h. */
31576 #include <sys/sysmacros.h>
31578 if { (ac_try="$ac_cpp conftest.$ac_ext"
31579 case "(($ac_try" in
31580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31581 *) ac_try_echo=$ac_try;;
31583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31586 grep -v '^ *+' conftest.er1 >conftest.err
31588 cat conftest.err >&5
31589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31590 (exit $ac_status); } >/dev/null && {
31591 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31592 test ! -s conftest.err
31594 ac_header_preproc=yes
31596 echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31599 ac_header_preproc=no
31602 rm -f conftest.err conftest.$ac_ext
31603 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31604 echo "${ECHO_T}$ac_header_preproc" >&6; }
31606 # So? What about this header?
31607 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31609 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
31610 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
31611 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
31612 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
31613 ac_header_preproc=yes
31616 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
31617 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
31618 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
31619 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
31620 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
31621 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
31622 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
31623 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
31624 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
31625 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
31626 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
31627 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
31631 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
31632 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
31633 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
31634 echo $ECHO_N "(cached) $ECHO_C" >&6
31636 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
31638 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
31639 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
31642 if test $ac_cv_header_sys_sysmacros_h = yes; then
31644 cat >>confdefs.h <<\_ACEOF
31645 #define MAJOR_IN_SYSMACROS 1
31659 ac_header_dirent=no
31660 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
31661 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
31662 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
31663 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
31664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31665 echo $ECHO_N "(cached) $ECHO_C" >&6
31667 cat >conftest.$ac_ext <<_ACEOF
31670 cat confdefs.h >>conftest.$ac_ext
31671 cat >>conftest.$ac_ext <<_ACEOF
31672 /* end confdefs.h. */
31673 #include <sys/types.h>
31685 rm -f conftest.$ac_objext
31686 if { (ac_try="$ac_compile"
31687 case "(($ac_try" in
31688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31689 *) ac_try_echo=$ac_try;;
31691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31692 (eval "$ac_compile") 2>conftest.er1
31694 grep -v '^ *+' conftest.er1 >conftest.err
31696 cat conftest.err >&5
31697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); } && {
31699 test -z "$ac_c_werror_flag" ||
31700 test ! -s conftest.err
31701 } && test -s conftest.$ac_objext; then
31702 eval "$as_ac_Header=yes"
31704 echo "$as_me: failed program was:" >&5
31705 sed 's/^/| /' conftest.$ac_ext >&5
31707 eval "$as_ac_Header=no"
31710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31712 ac_res=`eval echo '${'$as_ac_Header'}'`
31713 { echo "$as_me:$LINENO: result: $ac_res" >&5
31714 echo "${ECHO_T}$ac_res" >&6; }
31715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31716 cat >>confdefs.h <<_ACEOF
31717 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
31720 ac_header_dirent=$ac_hdr; break
31724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
31725 if test $ac_header_dirent = dirent.h; then
31726 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31727 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31728 if test "${ac_cv_search_opendir+set}" = set; then
31729 echo $ECHO_N "(cached) $ECHO_C" >&6
31731 ac_func_search_save_LIBS=$LIBS
31732 cat >conftest.$ac_ext <<_ACEOF
31735 cat confdefs.h >>conftest.$ac_ext
31736 cat >>conftest.$ac_ext <<_ACEOF
31737 /* end confdefs.h. */
31739 /* Override any GCC internal prototype to avoid an error.
31740 Use char because int might match the return type of a GCC
31741 builtin and then its argument prototype would still apply. */
31754 for ac_lib in '' dir; do
31755 if test -z "$ac_lib"; then
31756 ac_res="none required"
31759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31761 rm -f conftest.$ac_objext conftest$ac_exeext
31762 if { (ac_try="$ac_link"
31763 case "(($ac_try" in
31764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765 *) ac_try_echo=$ac_try;;
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768 (eval "$ac_link") 2>conftest.er1
31770 grep -v '^ *+' conftest.er1 >conftest.err
31772 cat conftest.err >&5
31773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774 (exit $ac_status); } && {
31775 test -z "$ac_c_werror_flag" ||
31776 test ! -s conftest.err
31777 } && test -s conftest$ac_exeext &&
31778 $as_test_x conftest$ac_exeext; then
31779 ac_cv_search_opendir=$ac_res
31781 echo "$as_me: failed program was:" >&5
31782 sed 's/^/| /' conftest.$ac_ext >&5
31787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31789 if test "${ac_cv_search_opendir+set}" = set; then
31793 if test "${ac_cv_search_opendir+set}" = set; then
31796 ac_cv_search_opendir=no
31798 rm conftest.$ac_ext
31799 LIBS=$ac_func_search_save_LIBS
31801 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31802 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31803 ac_res=$ac_cv_search_opendir
31804 if test "$ac_res" != no; then
31805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31810 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
31811 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
31812 if test "${ac_cv_search_opendir+set}" = set; then
31813 echo $ECHO_N "(cached) $ECHO_C" >&6
31815 ac_func_search_save_LIBS=$LIBS
31816 cat >conftest.$ac_ext <<_ACEOF
31819 cat confdefs.h >>conftest.$ac_ext
31820 cat >>conftest.$ac_ext <<_ACEOF
31821 /* end confdefs.h. */
31823 /* Override any GCC internal prototype to avoid an error.
31824 Use char because int might match the return type of a GCC
31825 builtin and then its argument prototype would still apply. */
31838 for ac_lib in '' x; do
31839 if test -z "$ac_lib"; then
31840 ac_res="none required"
31843 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31845 rm -f conftest.$ac_objext conftest$ac_exeext
31846 if { (ac_try="$ac_link"
31847 case "(($ac_try" in
31848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31849 *) ac_try_echo=$ac_try;;
31851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31852 (eval "$ac_link") 2>conftest.er1
31854 grep -v '^ *+' conftest.er1 >conftest.err
31856 cat conftest.err >&5
31857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858 (exit $ac_status); } && {
31859 test -z "$ac_c_werror_flag" ||
31860 test ! -s conftest.err
31861 } && test -s conftest$ac_exeext &&
31862 $as_test_x conftest$ac_exeext; then
31863 ac_cv_search_opendir=$ac_res
31865 echo "$as_me: failed program was:" >&5
31866 sed 's/^/| /' conftest.$ac_ext >&5
31871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31873 if test "${ac_cv_search_opendir+set}" = set; then
31877 if test "${ac_cv_search_opendir+set}" = set; then
31880 ac_cv_search_opendir=no
31882 rm conftest.$ac_ext
31883 LIBS=$ac_func_search_save_LIBS
31885 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
31886 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
31887 ac_res=$ac_cv_search_opendir
31888 if test "$ac_res" != no; then
31889 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31895 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
31896 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
31897 if test "${ac_cv_header_stat_broken+set}" = set; then
31898 echo $ECHO_N "(cached) $ECHO_C" >&6
31900 cat >conftest.$ac_ext <<_ACEOF
31903 cat confdefs.h >>conftest.$ac_ext
31904 cat >>conftest.$ac_ext <<_ACEOF
31905 /* end confdefs.h. */
31906 #include <sys/types.h>
31907 #include <sys/stat.h>
31909 #if defined S_ISBLK && defined S_IFDIR
31910 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
31913 #if defined S_ISBLK && defined S_IFCHR
31914 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
31917 #if defined S_ISLNK && defined S_IFREG
31918 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
31921 #if defined S_ISSOCK && defined S_IFREG
31922 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
31926 rm -f conftest.$ac_objext
31927 if { (ac_try="$ac_compile"
31928 case "(($ac_try" in
31929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31930 *) ac_try_echo=$ac_try;;
31932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31933 (eval "$ac_compile") 2>conftest.er1
31935 grep -v '^ *+' conftest.er1 >conftest.err
31937 cat conftest.err >&5
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); } && {
31940 test -z "$ac_c_werror_flag" ||
31941 test ! -s conftest.err
31942 } && test -s conftest.$ac_objext; then
31943 ac_cv_header_stat_broken=no
31945 echo "$as_me: failed program was:" >&5
31946 sed 's/^/| /' conftest.$ac_ext >&5
31948 ac_cv_header_stat_broken=yes
31951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31953 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
31954 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
31955 if test $ac_cv_header_stat_broken = yes; then
31957 cat >>confdefs.h <<\_ACEOF
31958 #define STAT_MACROS_BROKEN 1
31963 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
31964 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
31965 if test "${ac_cv_header_sys_wait_h+set}" = set; then
31966 echo $ECHO_N "(cached) $ECHO_C" >&6
31968 cat >conftest.$ac_ext <<_ACEOF
31971 cat confdefs.h >>conftest.$ac_ext
31972 cat >>conftest.$ac_ext <<_ACEOF
31973 /* end confdefs.h. */
31974 #include <sys/types.h>
31975 #include <sys/wait.h>
31976 #ifndef WEXITSTATUS
31977 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
31980 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
31988 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
31993 rm -f conftest.$ac_objext
31994 if { (ac_try="$ac_compile"
31995 case "(($ac_try" in
31996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31997 *) ac_try_echo=$ac_try;;
31999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32000 (eval "$ac_compile") 2>conftest.er1
32002 grep -v '^ *+' conftest.er1 >conftest.err
32004 cat conftest.err >&5
32005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); } && {
32007 test -z "$ac_c_werror_flag" ||
32008 test ! -s conftest.err
32009 } && test -s conftest.$ac_objext; then
32010 ac_cv_header_sys_wait_h=yes
32012 echo "$as_me: failed program was:" >&5
32013 sed 's/^/| /' conftest.$ac_ext >&5
32015 ac_cv_header_sys_wait_h=no
32018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32020 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
32021 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
32022 if test $ac_cv_header_sys_wait_h = yes; then
32024 cat >>confdefs.h <<\_ACEOF
32025 #define HAVE_SYS_WAIT_H 1
32030 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32031 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32032 if test "${ac_cv_header_time+set}" = set; then
32033 echo $ECHO_N "(cached) $ECHO_C" >&6
32035 cat >conftest.$ac_ext <<_ACEOF
32038 cat confdefs.h >>conftest.$ac_ext
32039 cat >>conftest.$ac_ext <<_ACEOF
32040 /* end confdefs.h. */
32041 #include <sys/types.h>
32042 #include <sys/time.h>
32048 if ((struct tm *) 0)
32054 rm -f conftest.$ac_objext
32055 if { (ac_try="$ac_compile"
32056 case "(($ac_try" in
32057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32058 *) ac_try_echo=$ac_try;;
32060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32061 (eval "$ac_compile") 2>conftest.er1
32063 grep -v '^ *+' conftest.er1 >conftest.err
32065 cat conftest.err >&5
32066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067 (exit $ac_status); } && {
32068 test -z "$ac_c_werror_flag" ||
32069 test ! -s conftest.err
32070 } && test -s conftest.$ac_objext; then
32071 ac_cv_header_time=yes
32073 echo "$as_me: failed program was:" >&5
32074 sed 's/^/| /' conftest.$ac_ext >&5
32076 ac_cv_header_time=no
32079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32081 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32082 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32083 if test $ac_cv_header_time = yes; then
32085 cat >>confdefs.h <<\_ACEOF
32086 #define TIME_WITH_SYS_TIME 1
32091 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32092 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32093 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32094 echo $ECHO_N "(cached) $ECHO_C" >&6
32096 cat >conftest.$ac_ext <<_ACEOF
32099 cat confdefs.h >>conftest.$ac_ext
32100 cat >>conftest.$ac_ext <<_ACEOF
32101 /* end confdefs.h. */
32102 $ac_includes_default
32106 static struct stat ac_aggr;
32107 if (ac_aggr.st_blksize)
32113 rm -f conftest.$ac_objext
32114 if { (ac_try="$ac_compile"
32115 case "(($ac_try" in
32116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32117 *) ac_try_echo=$ac_try;;
32119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32120 (eval "$ac_compile") 2>conftest.er1
32122 grep -v '^ *+' conftest.er1 >conftest.err
32124 cat conftest.err >&5
32125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32126 (exit $ac_status); } && {
32127 test -z "$ac_c_werror_flag" ||
32128 test ! -s conftest.err
32129 } && test -s conftest.$ac_objext; then
32130 ac_cv_member_struct_stat_st_blksize=yes
32132 echo "$as_me: failed program was:" >&5
32133 sed 's/^/| /' conftest.$ac_ext >&5
32135 cat >conftest.$ac_ext <<_ACEOF
32138 cat confdefs.h >>conftest.$ac_ext
32139 cat >>conftest.$ac_ext <<_ACEOF
32140 /* end confdefs.h. */
32141 $ac_includes_default
32145 static struct stat ac_aggr;
32146 if (sizeof ac_aggr.st_blksize)
32152 rm -f conftest.$ac_objext
32153 if { (ac_try="$ac_compile"
32154 case "(($ac_try" in
32155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32156 *) ac_try_echo=$ac_try;;
32158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32159 (eval "$ac_compile") 2>conftest.er1
32161 grep -v '^ *+' conftest.er1 >conftest.err
32163 cat conftest.err >&5
32164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32165 (exit $ac_status); } && {
32166 test -z "$ac_c_werror_flag" ||
32167 test ! -s conftest.err
32168 } && test -s conftest.$ac_objext; then
32169 ac_cv_member_struct_stat_st_blksize=yes
32171 echo "$as_me: failed program was:" >&5
32172 sed 's/^/| /' conftest.$ac_ext >&5
32174 ac_cv_member_struct_stat_st_blksize=no
32177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32182 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32183 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32184 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32186 cat >>confdefs.h <<_ACEOF
32187 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32191 cat >>confdefs.h <<\_ACEOF
32192 #define HAVE_ST_BLKSIZE 1
32198 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
32199 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
32200 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
32201 echo $ECHO_N "(cached) $ECHO_C" >&6
32203 cat >conftest.$ac_ext <<_ACEOF
32206 cat confdefs.h >>conftest.$ac_ext
32207 cat >>conftest.$ac_ext <<_ACEOF
32208 /* end confdefs.h. */
32209 $ac_includes_default
32213 static struct stat ac_aggr;
32214 if (ac_aggr.st_blocks)
32220 rm -f conftest.$ac_objext
32221 if { (ac_try="$ac_compile"
32222 case "(($ac_try" in
32223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32224 *) ac_try_echo=$ac_try;;
32226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32227 (eval "$ac_compile") 2>conftest.er1
32229 grep -v '^ *+' conftest.er1 >conftest.err
32231 cat conftest.err >&5
32232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32233 (exit $ac_status); } && {
32234 test -z "$ac_c_werror_flag" ||
32235 test ! -s conftest.err
32236 } && test -s conftest.$ac_objext; then
32237 ac_cv_member_struct_stat_st_blocks=yes
32239 echo "$as_me: failed program was:" >&5
32240 sed 's/^/| /' conftest.$ac_ext >&5
32242 cat >conftest.$ac_ext <<_ACEOF
32245 cat confdefs.h >>conftest.$ac_ext
32246 cat >>conftest.$ac_ext <<_ACEOF
32247 /* end confdefs.h. */
32248 $ac_includes_default
32252 static struct stat ac_aggr;
32253 if (sizeof ac_aggr.st_blocks)
32259 rm -f conftest.$ac_objext
32260 if { (ac_try="$ac_compile"
32261 case "(($ac_try" in
32262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32263 *) ac_try_echo=$ac_try;;
32265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32266 (eval "$ac_compile") 2>conftest.er1
32268 grep -v '^ *+' conftest.er1 >conftest.err
32270 cat conftest.err >&5
32271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272 (exit $ac_status); } && {
32273 test -z "$ac_c_werror_flag" ||
32274 test ! -s conftest.err
32275 } && test -s conftest.$ac_objext; then
32276 ac_cv_member_struct_stat_st_blocks=yes
32278 echo "$as_me: failed program was:" >&5
32279 sed 's/^/| /' conftest.$ac_ext >&5
32281 ac_cv_member_struct_stat_st_blocks=no
32284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32289 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
32290 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
32291 if test $ac_cv_member_struct_stat_st_blocks = yes; then
32293 cat >>confdefs.h <<_ACEOF
32294 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
32298 cat >>confdefs.h <<\_ACEOF
32299 #define HAVE_ST_BLOCKS 1
32303 case " $LIBOBJS " in
32304 *" fileblocks.$ac_objext "* ) ;;
32305 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
32312 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32313 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32314 if test "${ac_cv_struct_tm+set}" = set; then
32315 echo $ECHO_N "(cached) $ECHO_C" >&6
32317 cat >conftest.$ac_ext <<_ACEOF
32320 cat confdefs.h >>conftest.$ac_ext
32321 cat >>conftest.$ac_ext <<_ACEOF
32322 /* end confdefs.h. */
32323 #include <sys/types.h>
32330 int *p = &tm.tm_sec;
32336 rm -f conftest.$ac_objext
32337 if { (ac_try="$ac_compile"
32338 case "(($ac_try" in
32339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32340 *) ac_try_echo=$ac_try;;
32342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32343 (eval "$ac_compile") 2>conftest.er1
32345 grep -v '^ *+' conftest.er1 >conftest.err
32347 cat conftest.err >&5
32348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32349 (exit $ac_status); } && {
32350 test -z "$ac_c_werror_flag" ||
32351 test ! -s conftest.err
32352 } && test -s conftest.$ac_objext; then
32353 ac_cv_struct_tm=time.h
32355 echo "$as_me: failed program was:" >&5
32356 sed 's/^/| /' conftest.$ac_ext >&5
32358 ac_cv_struct_tm=sys/time.h
32361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32363 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32364 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32365 if test $ac_cv_struct_tm = sys/time.h; then
32367 cat >>confdefs.h <<\_ACEOF
32368 #define TM_IN_SYS_TIME 1
32373 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
32374 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
32375 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
32376 echo $ECHO_N "(cached) $ECHO_C" >&6
32378 cat >conftest.$ac_ext <<_ACEOF
32381 cat confdefs.h >>conftest.$ac_ext
32382 cat >>conftest.$ac_ext <<_ACEOF
32383 /* end confdefs.h. */
32384 #include <sys/types.h>
32385 #include <$ac_cv_struct_tm>
32391 static struct tm ac_aggr;
32392 if (ac_aggr.tm_zone)
32398 rm -f conftest.$ac_objext
32399 if { (ac_try="$ac_compile"
32400 case "(($ac_try" in
32401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32402 *) ac_try_echo=$ac_try;;
32404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32405 (eval "$ac_compile") 2>conftest.er1
32407 grep -v '^ *+' conftest.er1 >conftest.err
32409 cat conftest.err >&5
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); } && {
32412 test -z "$ac_c_werror_flag" ||
32413 test ! -s conftest.err
32414 } && test -s conftest.$ac_objext; then
32415 ac_cv_member_struct_tm_tm_zone=yes
32417 echo "$as_me: failed program was:" >&5
32418 sed 's/^/| /' conftest.$ac_ext >&5
32420 cat >conftest.$ac_ext <<_ACEOF
32423 cat confdefs.h >>conftest.$ac_ext
32424 cat >>conftest.$ac_ext <<_ACEOF
32425 /* end confdefs.h. */
32426 #include <sys/types.h>
32427 #include <$ac_cv_struct_tm>
32433 static struct tm ac_aggr;
32434 if (sizeof ac_aggr.tm_zone)
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
32457 ac_cv_member_struct_tm_tm_zone=yes
32459 echo "$as_me: failed program was:" >&5
32460 sed 's/^/| /' conftest.$ac_ext >&5
32462 ac_cv_member_struct_tm_tm_zone=no
32465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32470 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
32471 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
32472 if test $ac_cv_member_struct_tm_tm_zone = yes; then
32474 cat >>confdefs.h <<_ACEOF
32475 #define HAVE_STRUCT_TM_TM_ZONE 1
32481 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
32483 cat >>confdefs.h <<\_ACEOF
32484 #define HAVE_TM_ZONE 1
32488 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
32489 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
32490 if test "${ac_cv_have_decl_tzname+set}" = set; then
32491 echo $ECHO_N "(cached) $ECHO_C" >&6
32493 cat >conftest.$ac_ext <<_ACEOF
32496 cat confdefs.h >>conftest.$ac_ext
32497 cat >>conftest.$ac_ext <<_ACEOF
32498 /* end confdefs.h. */
32512 rm -f conftest.$ac_objext
32513 if { (ac_try="$ac_compile"
32514 case "(($ac_try" in
32515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32516 *) ac_try_echo=$ac_try;;
32518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32519 (eval "$ac_compile") 2>conftest.er1
32521 grep -v '^ *+' conftest.er1 >conftest.err
32523 cat conftest.err >&5
32524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); } && {
32526 test -z "$ac_c_werror_flag" ||
32527 test ! -s conftest.err
32528 } && test -s conftest.$ac_objext; then
32529 ac_cv_have_decl_tzname=yes
32531 echo "$as_me: failed program was:" >&5
32532 sed 's/^/| /' conftest.$ac_ext >&5
32534 ac_cv_have_decl_tzname=no
32537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32539 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
32540 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
32541 if test $ac_cv_have_decl_tzname = yes; then
32543 cat >>confdefs.h <<_ACEOF
32544 #define HAVE_DECL_TZNAME 1
32549 cat >>confdefs.h <<_ACEOF
32550 #define HAVE_DECL_TZNAME 0
32557 { echo "$as_me:$LINENO: checking for tzname" >&5
32558 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
32559 if test "${ac_cv_var_tzname+set}" = set; then
32560 echo $ECHO_N "(cached) $ECHO_C" >&6
32562 cat >conftest.$ac_ext <<_ACEOF
32565 cat confdefs.h >>conftest.$ac_ext
32566 cat >>conftest.$ac_ext <<_ACEOF
32567 /* end confdefs.h. */
32569 #if !HAVE_DECL_TZNAME
32570 extern char *tzname[];
32576 return tzname[0][0];
32581 rm -f conftest.$ac_objext conftest$ac_exeext
32582 if { (ac_try="$ac_link"
32583 case "(($ac_try" in
32584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32585 *) ac_try_echo=$ac_try;;
32587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32588 (eval "$ac_link") 2>conftest.er1
32590 grep -v '^ *+' conftest.er1 >conftest.err
32592 cat conftest.err >&5
32593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32594 (exit $ac_status); } && {
32595 test -z "$ac_c_werror_flag" ||
32596 test ! -s conftest.err
32597 } && test -s conftest$ac_exeext &&
32598 $as_test_x conftest$ac_exeext; then
32599 ac_cv_var_tzname=yes
32601 echo "$as_me: failed program was:" >&5
32602 sed 's/^/| /' conftest.$ac_ext >&5
32604 ac_cv_var_tzname=no
32607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32608 conftest$ac_exeext conftest.$ac_ext
32610 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
32611 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
32612 if test $ac_cv_var_tzname = yes; then
32614 cat >>confdefs.h <<\_ACEOF
32615 #define HAVE_TZNAME 1
32622 { echo "$as_me:$LINENO: checking for utime.h" >&5
32623 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
32624 if test "${ba_cv_header_utime_h+set}" = set; then
32625 echo $ECHO_N "(cached) $ECHO_C" >&6
32628 cat >conftest.$ac_ext <<_ACEOF
32631 cat confdefs.h >>conftest.$ac_ext
32632 cat >>conftest.$ac_ext <<_ACEOF
32633 /* end confdefs.h. */
32635 #include <sys/types.h>
32648 rm -f conftest.$ac_objext
32649 if { (ac_try="$ac_compile"
32650 case "(($ac_try" in
32651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32652 *) ac_try_echo=$ac_try;;
32654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32655 (eval "$ac_compile") 2>conftest.er1
32657 grep -v '^ *+' conftest.er1 >conftest.err
32659 cat conftest.err >&5
32660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32661 (exit $ac_status); } && {
32662 test -z "$ac_c_werror_flag" ||
32663 test ! -s conftest.err
32664 } && test -s conftest.$ac_objext; then
32666 ba_cv_header_utime_h=yes
32669 echo "$as_me: failed program was:" >&5
32670 sed 's/^/| /' conftest.$ac_ext >&5
32673 ba_cv_header_utime_h=no
32678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32682 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
32683 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
32684 test $ba_cv_header_utime_h = yes &&
32685 cat >>confdefs.h <<\_ACEOF
32686 #define HAVE_UTIME_H 1
32690 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32691 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32692 if test "${ba_cv_header_socklen_t+set}" = set; then
32693 echo $ECHO_N "(cached) $ECHO_C" >&6
32696 cat >conftest.$ac_ext <<_ACEOF
32699 cat confdefs.h >>conftest.$ac_ext
32700 cat >>conftest.$ac_ext <<_ACEOF
32701 /* end confdefs.h. */
32703 #include <sys/types.h>
32704 #include <sys/socket.h>
32716 rm -f conftest.$ac_objext
32717 if { (ac_try="$ac_compile"
32718 case "(($ac_try" in
32719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32720 *) ac_try_echo=$ac_try;;
32722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32723 (eval "$ac_compile") 2>conftest.er1
32725 grep -v '^ *+' conftest.er1 >conftest.err
32727 cat conftest.err >&5
32728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32729 (exit $ac_status); } && {
32730 test -z "$ac_c_werror_flag" ||
32731 test ! -s conftest.err
32732 } && test -s conftest.$ac_objext; then
32734 ba_cv_header_socklen_t=yes
32737 echo "$as_me: failed program was:" >&5
32738 sed 's/^/| /' conftest.$ac_ext >&5
32741 ba_cv_header_socklen_t=no
32746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32750 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
32751 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
32752 test $ba_cv_header_socklen_t = yes &&
32753 cat >>confdefs.h <<\_ACEOF
32754 #define HAVE_SOCKLEN_T 1
32759 ac_cpp='$CXXCPP $CPPFLAGS'
32760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32764 { echo "$as_me:$LINENO: checking for ioctl_req_t" >&5
32765 echo $ECHO_N "checking for ioctl_req_t... $ECHO_C" >&6; }
32766 if test "${ba_cv_header_ioctl_req_t+set}" = set; then
32767 echo $ECHO_N "(cached) $ECHO_C" >&6
32770 cat >conftest.$ac_ext <<_ACEOF
32773 cat confdefs.h >>conftest.$ac_ext
32774 cat >>conftest.$ac_ext <<_ACEOF
32775 /* end confdefs.h. */
32777 #include <unistd.h>
32778 #include <sys/types.h>
32779 #include <sys/ioctl.h>
32785 int (*d_ioctl)(int fd, unsigned long int request, ...);
32792 rm -f conftest.$ac_objext
32793 if { (ac_try="$ac_compile"
32794 case "(($ac_try" in
32795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32796 *) ac_try_echo=$ac_try;;
32798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32799 (eval "$ac_compile") 2>conftest.er1
32801 grep -v '^ *+' conftest.er1 >conftest.err
32803 cat conftest.err >&5
32804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32805 (exit $ac_status); } && {
32806 test -z "$ac_cxx_werror_flag" ||
32807 test ! -s conftest.err
32808 } && test -s conftest.$ac_objext; then
32810 ba_cv_header_ioctl_req_t=yes
32813 echo "$as_me: failed program was:" >&5
32814 sed 's/^/| /' conftest.$ac_ext >&5
32817 ba_cv_header_ioctl_req_t=no
32822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32826 { echo "$as_me:$LINENO: result: $ba_cv_header_ioctl_req_t" >&5
32827 echo "${ECHO_T}$ba_cv_header_ioctl_req_t" >&6; }
32828 test $ba_cv_header_ioctl_req_t = yes &&
32829 cat >>confdefs.h <<\_ACEOF
32830 #define HAVE_IOCTL_ULINT_REQUEST 1
32835 ac_cpp='$CPP $CPPFLAGS'
32836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32842 ac_cpp='$CXXCPP $CPPFLAGS'
32843 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32844 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32845 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32847 { echo "$as_me:$LINENO: checking for typeof" >&5
32848 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
32849 if test "${ba_cv_have_typeof+set}" = set; then
32850 echo $ECHO_N "(cached) $ECHO_C" >&6
32853 if test "$cross_compiling" = yes; then
32855 ba_cv_have_typeof=no
32859 cat >conftest.$ac_ext <<_ACEOF
32862 cat confdefs.h >>conftest.$ac_ext
32863 cat >>conftest.$ac_ext <<_ACEOF
32864 /* end confdefs.h. */
32866 main(){char *a = 0; a = (typeof a)a;}
32869 rm -f conftest$ac_exeext
32870 if { (ac_try="$ac_link"
32871 case "(($ac_try" in
32872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32873 *) ac_try_echo=$ac_try;;
32875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32876 (eval "$ac_link") 2>&5
32878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32880 { (case "(($ac_try" in
32881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32882 *) ac_try_echo=$ac_try;;
32884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32885 (eval "$ac_try") 2>&5
32887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32888 (exit $ac_status); }; }; then
32890 ba_cv_have_typeof=yes
32893 echo "$as_me: program exited with status $ac_status" >&5
32894 echo "$as_me: failed program was:" >&5
32895 sed 's/^/| /' conftest.$ac_ext >&5
32897 ( exit $ac_status )
32899 ba_cv_have_typeof=no
32902 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32909 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
32910 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
32911 test $ba_cv_have_typeof = yes &&
32912 cat >>confdefs.h <<\_ACEOF
32913 #define HAVE_TYPEOF 1
32917 ac_cpp='$CPP $CPPFLAGS'
32918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
32923 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32924 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32925 if test "${ac_cv_c_const+set}" = set; then
32926 echo $ECHO_N "(cached) $ECHO_C" >&6
32928 cat >conftest.$ac_ext <<_ACEOF
32931 cat confdefs.h >>conftest.$ac_ext
32932 cat >>conftest.$ac_ext <<_ACEOF
32933 /* end confdefs.h. */
32938 /* FIXME: Include the comments suggested by Paul. */
32939 #ifndef __cplusplus
32940 /* Ultrix mips cc rejects this. */
32941 typedef int charset[2];
32943 /* SunOS 4.1.1 cc rejects this. */
32944 char const *const *pcpcc;
32946 /* NEC SVR4.0.2 mips cc rejects this. */
32947 struct point {int x, y;};
32948 static struct point const zero = {0,0};
32949 /* AIX XL C 1.02.0.0 rejects this.
32950 It does not let you subtract one const X* pointer from another in
32951 an arm of an if-expression whose if-part is not a constant
32953 const char *g = "string";
32954 pcpcc = &g + (g ? g-g : 0);
32955 /* HPUX 7.0 cc rejects these. */
32957 ppc = (char**) pcpcc;
32958 pcpcc = (char const *const *) ppc;
32959 { /* SCO 3.2v4 cc rejects this. */
32961 char const *s = 0 ? (char *) 0 : (char const *) 0;
32966 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
32967 int x[] = {25, 17};
32968 const int *foo = &x[0];
32971 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32972 typedef const int *iptr;
32976 { /* AIX XL C 1.02.0.0 rejects this saying
32977 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32978 struct s { int j; const int *ap[3]; };
32979 struct s *b; b->j = 5;
32981 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32982 const int foo = 10;
32983 if (!foo) return 0;
32985 return !cs[0] && !zero.x;
32992 rm -f conftest.$ac_objext
32993 if { (ac_try="$ac_compile"
32994 case "(($ac_try" in
32995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32996 *) ac_try_echo=$ac_try;;
32998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32999 (eval "$ac_compile") 2>conftest.er1
33001 grep -v '^ *+' conftest.er1 >conftest.err
33003 cat conftest.err >&5
33004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33005 (exit $ac_status); } && {
33006 test -z "$ac_c_werror_flag" ||
33007 test ! -s conftest.err
33008 } && test -s conftest.$ac_objext; then
33011 echo "$as_me: failed program was:" >&5
33012 sed 's/^/| /' conftest.$ac_ext >&5
33017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33019 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33020 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33021 if test $ac_cv_c_const = no; then
33023 cat >>confdefs.h <<\_ACEOF
33030 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
33031 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
33033 # The order of these tests is important.
33034 cat >conftest.$ac_ext <<_ACEOF
33037 cat confdefs.h >>conftest.$ac_ext
33038 cat >>conftest.$ac_ext <<_ACEOF
33039 /* end confdefs.h. */
33041 #include <sys/statvfs.h>
33042 #include <sys/fstyp.h>
33045 if { (ac_try="$ac_cpp conftest.$ac_ext"
33046 case "(($ac_try" in
33047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33048 *) ac_try_echo=$ac_try;;
33050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33053 grep -v '^ *+' conftest.er1 >conftest.err
33055 cat conftest.err >&5
33056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33057 (exit $ac_status); } >/dev/null && {
33058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33059 test ! -s conftest.err
33061 cat >>confdefs.h <<\_ACEOF
33062 #define FSTYPE_STATVFS 1
33067 echo "$as_me: failed program was:" >&5
33068 sed 's/^/| /' conftest.$ac_ext >&5
33073 rm -f conftest.err conftest.$ac_ext
33074 if test $fstype = no; then
33075 cat >conftest.$ac_ext <<_ACEOF
33078 cat confdefs.h >>conftest.$ac_ext
33079 cat >>conftest.$ac_ext <<_ACEOF
33080 /* end confdefs.h. */
33082 #include <sys/statfs.h>
33083 #include <sys/fstyp.h>
33086 if { (ac_try="$ac_cpp conftest.$ac_ext"
33087 case "(($ac_try" in
33088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33089 *) ac_try_echo=$ac_try;;
33091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33094 grep -v '^ *+' conftest.er1 >conftest.err
33096 cat conftest.err >&5
33097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33098 (exit $ac_status); } >/dev/null && {
33099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33100 test ! -s conftest.err
33102 cat >>confdefs.h <<\_ACEOF
33103 #define FSTYPE_USG_STATFS 1
33108 echo "$as_me: failed program was:" >&5
33109 sed 's/^/| /' conftest.$ac_ext >&5
33114 rm -f conftest.err conftest.$ac_ext
33116 if test $fstype = no; then
33117 cat >conftest.$ac_ext <<_ACEOF
33120 cat confdefs.h >>conftest.$ac_ext
33121 cat >>conftest.$ac_ext <<_ACEOF
33122 /* end confdefs.h. */
33124 #include <sys/statfs.h>
33125 #include <sys/vmount.h>
33128 if { (ac_try="$ac_cpp conftest.$ac_ext"
33129 case "(($ac_try" in
33130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33131 *) ac_try_echo=$ac_try;;
33133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33134 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33136 grep -v '^ *+' conftest.er1 >conftest.err
33138 cat conftest.err >&5
33139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33140 (exit $ac_status); } >/dev/null && {
33141 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33142 test ! -s conftest.err
33144 cat >>confdefs.h <<\_ACEOF
33145 #define FSTYPE_AIX_STATFS 1
33150 echo "$as_me: failed program was:" >&5
33151 sed 's/^/| /' conftest.$ac_ext >&5
33156 rm -f conftest.err conftest.$ac_ext
33158 if test $fstype = no; then
33159 cat >conftest.$ac_ext <<_ACEOF
33162 cat confdefs.h >>conftest.$ac_ext
33163 cat >>conftest.$ac_ext <<_ACEOF
33164 /* end confdefs.h. */
33166 #include <mntent.h>
33169 if { (ac_try="$ac_cpp conftest.$ac_ext"
33170 case "(($ac_try" in
33171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33172 *) ac_try_echo=$ac_try;;
33174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33177 grep -v '^ *+' conftest.er1 >conftest.err
33179 cat conftest.err >&5
33180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181 (exit $ac_status); } >/dev/null && {
33182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33183 test ! -s conftest.err
33185 cat >>confdefs.h <<\_ACEOF
33186 #define FSTYPE_MNTENT 1
33191 echo "$as_me: failed program was:" >&5
33192 sed 's/^/| /' conftest.$ac_ext >&5
33197 rm -f conftest.err conftest.$ac_ext
33199 if test $fstype = no; then
33200 cat >conftest.$ac_ext <<_ACEOF
33203 cat confdefs.h >>conftest.$ac_ext
33204 cat >>conftest.$ac_ext <<_ACEOF
33205 /* end confdefs.h. */
33206 #include <sys/mount.h>
33209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33210 $EGREP "f_type;" >/dev/null 2>&1; then
33211 cat >>confdefs.h <<\_ACEOF
33212 #define FSTYPE_STATFS 1
33219 if test $fstype = no; then
33220 cat >conftest.$ac_ext <<_ACEOF
33223 cat confdefs.h >>conftest.$ac_ext
33224 cat >>conftest.$ac_ext <<_ACEOF
33225 /* end confdefs.h. */
33227 #include <sys/mount.h>
33228 #include <sys/fs_types.h>
33231 if { (ac_try="$ac_cpp conftest.$ac_ext"
33232 case "(($ac_try" in
33233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234 *) ac_try_echo=$ac_try;;
33236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33239 grep -v '^ *+' conftest.er1 >conftest.err
33241 cat conftest.err >&5
33242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 (exit $ac_status); } >/dev/null && {
33244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33245 test ! -s conftest.err
33247 cat >>confdefs.h <<\_ACEOF
33248 #define FSTYPE_GETMNT 1
33253 echo "$as_me: failed program was:" >&5
33254 sed 's/^/| /' conftest.$ac_ext >&5
33259 rm -f conftest.err conftest.$ac_ext
33261 { echo "$as_me:$LINENO: result: $fstype" >&5
33262 echo "${ECHO_T}$fstype" >&6; }
33264 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33265 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33266 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33267 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33268 echo $ECHO_N "(cached) $ECHO_C" >&6
33270 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33271 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33273 # Is the header compilable?
33274 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
33275 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
33276 cat >conftest.$ac_ext <<_ACEOF
33279 cat confdefs.h >>conftest.$ac_ext
33280 cat >>conftest.$ac_ext <<_ACEOF
33281 /* end confdefs.h. */
33282 $ac_includes_default
33283 #include <sys/statvfs.h>
33285 rm -f conftest.$ac_objext
33286 if { (ac_try="$ac_compile"
33287 case "(($ac_try" in
33288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33289 *) ac_try_echo=$ac_try;;
33291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33292 (eval "$ac_compile") 2>conftest.er1
33294 grep -v '^ *+' conftest.er1 >conftest.err
33296 cat conftest.err >&5
33297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33298 (exit $ac_status); } && {
33299 test -z "$ac_c_werror_flag" ||
33300 test ! -s conftest.err
33301 } && test -s conftest.$ac_objext; then
33302 ac_header_compiler=yes
33304 echo "$as_me: failed program was:" >&5
33305 sed 's/^/| /' conftest.$ac_ext >&5
33307 ac_header_compiler=no
33310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33311 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33312 echo "${ECHO_T}$ac_header_compiler" >&6; }
33314 # Is the header present?
33315 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
33316 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
33317 cat >conftest.$ac_ext <<_ACEOF
33320 cat confdefs.h >>conftest.$ac_ext
33321 cat >>conftest.$ac_ext <<_ACEOF
33322 /* end confdefs.h. */
33323 #include <sys/statvfs.h>
33325 if { (ac_try="$ac_cpp conftest.$ac_ext"
33326 case "(($ac_try" in
33327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33328 *) ac_try_echo=$ac_try;;
33330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33333 grep -v '^ *+' conftest.er1 >conftest.err
33335 cat conftest.err >&5
33336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337 (exit $ac_status); } >/dev/null && {
33338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33339 test ! -s conftest.err
33341 ac_header_preproc=yes
33343 echo "$as_me: failed program was:" >&5
33344 sed 's/^/| /' conftest.$ac_ext >&5
33346 ac_header_preproc=no
33349 rm -f conftest.err conftest.$ac_ext
33350 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33351 echo "${ECHO_T}$ac_header_preproc" >&6; }
33353 # So? What about this header?
33354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33356 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
33357 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33358 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
33359 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
33360 ac_header_preproc=yes
33363 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
33364 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
33365 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
33366 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
33367 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
33368 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
33369 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
33370 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
33371 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
33372 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
33373 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
33374 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
33378 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
33379 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
33380 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
33381 echo $ECHO_N "(cached) $ECHO_C" >&6
33383 ac_cv_header_sys_statvfs_h=$ac_header_preproc
33385 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
33386 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
33389 if test $ac_cv_header_sys_statvfs_h = yes; then
33391 cat >>confdefs.h <<\_ACEOF
33392 #define HAVE_SYS_STATVFS_H 1
33399 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
33400 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
33401 if test "${ac_cv_type_signal+set}" = set; then
33402 echo $ECHO_N "(cached) $ECHO_C" >&6
33404 cat >conftest.$ac_ext <<_ACEOF
33407 cat confdefs.h >>conftest.$ac_ext
33408 cat >>conftest.$ac_ext <<_ACEOF
33409 /* end confdefs.h. */
33410 #include <sys/types.h>
33411 #include <signal.h>
33416 return *(signal (0, 0)) (0) == 1;
33421 rm -f conftest.$ac_objext
33422 if { (ac_try="$ac_compile"
33423 case "(($ac_try" in
33424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33425 *) ac_try_echo=$ac_try;;
33427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33428 (eval "$ac_compile") 2>conftest.er1
33430 grep -v '^ *+' conftest.er1 >conftest.err
33432 cat conftest.err >&5
33433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33434 (exit $ac_status); } && {
33435 test -z "$ac_c_werror_flag" ||
33436 test ! -s conftest.err
33437 } && test -s conftest.$ac_objext; then
33438 ac_cv_type_signal=int
33440 echo "$as_me: failed program was:" >&5
33441 sed 's/^/| /' conftest.$ac_ext >&5
33443 ac_cv_type_signal=void
33446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33448 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
33449 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
33451 cat >>confdefs.h <<_ACEOF
33452 #define RETSIGTYPE $ac_cv_type_signal
33457 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
33458 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
33459 if test "${bash_cv_signal_vintage+set}" = set; then
33460 echo $ECHO_N "(cached) $ECHO_C" >&6
33463 cat >conftest.$ac_ext <<_ACEOF
33466 cat confdefs.h >>conftest.$ac_ext
33467 cat >>conftest.$ac_ext <<_ACEOF
33468 /* end confdefs.h. */
33469 #include <signal.h>
33475 struct sigaction sa;
33476 sigemptyset(&ss); sigsuspend(&ss);
33477 sigaction(SIGINT, &sa, (struct sigaction *) 0);
33478 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
33484 rm -f conftest.$ac_objext conftest$ac_exeext
33485 if { (ac_try="$ac_link"
33486 case "(($ac_try" in
33487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33488 *) ac_try_echo=$ac_try;;
33490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33491 (eval "$ac_link") 2>conftest.er1
33493 grep -v '^ *+' conftest.er1 >conftest.err
33495 cat conftest.err >&5
33496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33497 (exit $ac_status); } && {
33498 test -z "$ac_c_werror_flag" ||
33499 test ! -s conftest.err
33500 } && test -s conftest$ac_exeext &&
33501 $as_test_x conftest$ac_exeext; then
33502 bash_cv_signal_vintage="posix"
33504 echo "$as_me: failed program was:" >&5
33505 sed 's/^/| /' conftest.$ac_ext >&5
33508 cat >conftest.$ac_ext <<_ACEOF
33511 cat confdefs.h >>conftest.$ac_ext
33512 cat >>conftest.$ac_ext <<_ACEOF
33513 /* end confdefs.h. */
33514 #include <signal.h>
33519 int mask = sigmask(SIGINT);
33520 sigsetmask(mask); sigblock(mask); sigpause(mask);
33526 rm -f conftest.$ac_objext conftest$ac_exeext
33527 if { (ac_try="$ac_link"
33528 case "(($ac_try" in
33529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33530 *) ac_try_echo=$ac_try;;
33532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33533 (eval "$ac_link") 2>conftest.er1
33535 grep -v '^ *+' conftest.er1 >conftest.err
33537 cat conftest.err >&5
33538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33539 (exit $ac_status); } && {
33540 test -z "$ac_c_werror_flag" ||
33541 test ! -s conftest.err
33542 } && test -s conftest$ac_exeext &&
33543 $as_test_x conftest$ac_exeext; then
33544 bash_cv_signal_vintage="4.2bsd"
33546 echo "$as_me: failed program was:" >&5
33547 sed 's/^/| /' conftest.$ac_ext >&5
33550 cat >conftest.$ac_ext <<_ACEOF
33553 cat confdefs.h >>conftest.$ac_ext
33554 cat >>conftest.$ac_ext <<_ACEOF
33555 /* end confdefs.h. */
33557 #include <signal.h>
33558 RETSIGTYPE foo() { }
33563 int mask = sigmask(SIGINT);
33564 sigset(SIGINT, foo); sigrelse(SIGINT);
33565 sighold(SIGINT); sigpause(SIGINT);
33571 rm -f conftest.$ac_objext conftest$ac_exeext
33572 if { (ac_try="$ac_link"
33573 case "(($ac_try" in
33574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33575 *) ac_try_echo=$ac_try;;
33577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33578 (eval "$ac_link") 2>conftest.er1
33580 grep -v '^ *+' conftest.er1 >conftest.err
33582 cat conftest.err >&5
33583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33584 (exit $ac_status); } && {
33585 test -z "$ac_c_werror_flag" ||
33586 test ! -s conftest.err
33587 } && test -s conftest$ac_exeext &&
33588 $as_test_x conftest$ac_exeext; then
33589 bash_cv_signal_vintage="svr3"
33591 echo "$as_me: failed program was:" >&5
33592 sed 's/^/| /' conftest.$ac_ext >&5
33594 bash_cv_signal_vintage="v7"
33598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33599 conftest$ac_exeext conftest.$ac_ext
33603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33604 conftest$ac_exeext conftest.$ac_ext
33608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33609 conftest$ac_exeext conftest.$ac_ext
33613 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
33614 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
33615 if test "$bash_cv_signal_vintage" = "posix"; then
33616 cat >>confdefs.h <<\_ACEOF
33617 #define HAVE_POSIX_SIGNALS 1
33620 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
33621 cat >>confdefs.h <<\_ACEOF
33622 #define HAVE_BSD_SIGNALS 1
33625 elif test "$bash_cv_signal_vintage" = "svr3"; then
33626 cat >>confdefs.h <<\_ACEOF
33627 #define HAVE_USG_SIGHOLD 1
33632 { echo "$as_me:$LINENO: checking for mode_t" >&5
33633 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
33634 if test "${ac_cv_type_mode_t+set}" = set; then
33635 echo $ECHO_N "(cached) $ECHO_C" >&6
33637 cat >conftest.$ac_ext <<_ACEOF
33640 cat confdefs.h >>conftest.$ac_ext
33641 cat >>conftest.$ac_ext <<_ACEOF
33642 /* end confdefs.h. */
33643 $ac_includes_default
33644 typedef mode_t ac__type_new_;
33648 if ((ac__type_new_ *) 0)
33650 if (sizeof (ac__type_new_))
33656 rm -f conftest.$ac_objext
33657 if { (ac_try="$ac_compile"
33658 case "(($ac_try" in
33659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33660 *) ac_try_echo=$ac_try;;
33662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33663 (eval "$ac_compile") 2>conftest.er1
33665 grep -v '^ *+' conftest.er1 >conftest.err
33667 cat conftest.err >&5
33668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33669 (exit $ac_status); } && {
33670 test -z "$ac_c_werror_flag" ||
33671 test ! -s conftest.err
33672 } && test -s conftest.$ac_objext; then
33673 ac_cv_type_mode_t=yes
33675 echo "$as_me: failed program was:" >&5
33676 sed 's/^/| /' conftest.$ac_ext >&5
33678 ac_cv_type_mode_t=no
33681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33683 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
33684 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
33685 if test $ac_cv_type_mode_t = yes; then
33689 cat >>confdefs.h <<_ACEOF
33695 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
33696 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
33697 if test "${ac_cv_type_uid_t+set}" = set; then
33698 echo $ECHO_N "(cached) $ECHO_C" >&6
33700 cat >conftest.$ac_ext <<_ACEOF
33703 cat confdefs.h >>conftest.$ac_ext
33704 cat >>conftest.$ac_ext <<_ACEOF
33705 /* end confdefs.h. */
33706 #include <sys/types.h>
33709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33710 $EGREP "uid_t" >/dev/null 2>&1; then
33711 ac_cv_type_uid_t=yes
33713 ac_cv_type_uid_t=no
33718 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
33719 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
33720 if test $ac_cv_type_uid_t = no; then
33722 cat >>confdefs.h <<\_ACEOF
33727 cat >>confdefs.h <<\_ACEOF
33733 { echo "$as_me:$LINENO: checking for size_t" >&5
33734 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
33735 if test "${ac_cv_type_size_t+set}" = set; then
33736 echo $ECHO_N "(cached) $ECHO_C" >&6
33738 cat >conftest.$ac_ext <<_ACEOF
33741 cat confdefs.h >>conftest.$ac_ext
33742 cat >>conftest.$ac_ext <<_ACEOF
33743 /* end confdefs.h. */
33744 $ac_includes_default
33745 typedef size_t ac__type_new_;
33749 if ((ac__type_new_ *) 0)
33751 if (sizeof (ac__type_new_))
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
33774 ac_cv_type_size_t=yes
33776 echo "$as_me: failed program was:" >&5
33777 sed 's/^/| /' conftest.$ac_ext >&5
33779 ac_cv_type_size_t=no
33782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33784 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
33785 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
33786 if test $ac_cv_type_size_t = yes; then
33790 cat >>confdefs.h <<_ACEOF
33791 #define size_t unsigned int
33796 { echo "$as_me:$LINENO: checking for pid_t" >&5
33797 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
33798 if test "${ac_cv_type_pid_t+set}" = set; then
33799 echo $ECHO_N "(cached) $ECHO_C" >&6
33801 cat >conftest.$ac_ext <<_ACEOF
33804 cat confdefs.h >>conftest.$ac_ext
33805 cat >>conftest.$ac_ext <<_ACEOF
33806 /* end confdefs.h. */
33807 $ac_includes_default
33808 typedef pid_t ac__type_new_;
33812 if ((ac__type_new_ *) 0)
33814 if (sizeof (ac__type_new_))
33820 rm -f conftest.$ac_objext
33821 if { (ac_try="$ac_compile"
33822 case "(($ac_try" in
33823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33824 *) ac_try_echo=$ac_try;;
33826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33827 (eval "$ac_compile") 2>conftest.er1
33829 grep -v '^ *+' conftest.er1 >conftest.err
33831 cat conftest.err >&5
33832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33833 (exit $ac_status); } && {
33834 test -z "$ac_c_werror_flag" ||
33835 test ! -s conftest.err
33836 } && test -s conftest.$ac_objext; then
33837 ac_cv_type_pid_t=yes
33839 echo "$as_me: failed program was:" >&5
33840 sed 's/^/| /' conftest.$ac_ext >&5
33842 ac_cv_type_pid_t=no
33845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33847 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
33848 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
33849 if test $ac_cv_type_pid_t = yes; then
33853 cat >>confdefs.h <<_ACEOF
33859 { echo "$as_me:$LINENO: checking for off_t" >&5
33860 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
33861 if test "${ac_cv_type_off_t+set}" = set; then
33862 echo $ECHO_N "(cached) $ECHO_C" >&6
33864 cat >conftest.$ac_ext <<_ACEOF
33867 cat confdefs.h >>conftest.$ac_ext
33868 cat >>conftest.$ac_ext <<_ACEOF
33869 /* end confdefs.h. */
33870 $ac_includes_default
33871 typedef off_t ac__type_new_;
33875 if ((ac__type_new_ *) 0)
33877 if (sizeof (ac__type_new_))
33883 rm -f conftest.$ac_objext
33884 if { (ac_try="$ac_compile"
33885 case "(($ac_try" in
33886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33887 *) ac_try_echo=$ac_try;;
33889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33890 (eval "$ac_compile") 2>conftest.er1
33892 grep -v '^ *+' conftest.er1 >conftest.err
33894 cat conftest.err >&5
33895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33896 (exit $ac_status); } && {
33897 test -z "$ac_c_werror_flag" ||
33898 test ! -s conftest.err
33899 } && test -s conftest.$ac_objext; then
33900 ac_cv_type_off_t=yes
33902 echo "$as_me: failed program was:" >&5
33903 sed 's/^/| /' conftest.$ac_ext >&5
33905 ac_cv_type_off_t=no
33908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33910 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
33911 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
33912 if test $ac_cv_type_off_t = yes; then
33916 cat >>confdefs.h <<_ACEOF
33917 #define off_t long int
33923 { echo "$as_me:$LINENO: checking for intptr_t" >&5
33924 echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
33925 if test "${ac_cv_type_intptr_t+set}" = set; then
33926 echo $ECHO_N "(cached) $ECHO_C" >&6
33928 cat >conftest.$ac_ext <<_ACEOF
33931 cat confdefs.h >>conftest.$ac_ext
33932 cat >>conftest.$ac_ext <<_ACEOF
33933 /* end confdefs.h. */
33934 $ac_includes_default
33935 typedef intptr_t ac__type_new_;
33939 if ((ac__type_new_ *) 0)
33941 if (sizeof (ac__type_new_))
33947 rm -f conftest.$ac_objext
33948 if { (ac_try="$ac_compile"
33949 case "(($ac_try" in
33950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33951 *) ac_try_echo=$ac_try;;
33953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33954 (eval "$ac_compile") 2>conftest.er1
33956 grep -v '^ *+' conftest.er1 >conftest.err
33958 cat conftest.err >&5
33959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33960 (exit $ac_status); } && {
33961 test -z "$ac_c_werror_flag" ||
33962 test ! -s conftest.err
33963 } && test -s conftest.$ac_objext; then
33964 ac_cv_type_intptr_t=yes
33966 echo "$as_me: failed program was:" >&5
33967 sed 's/^/| /' conftest.$ac_ext >&5
33969 ac_cv_type_intptr_t=no
33972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33974 { echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
33975 echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
33976 if test $ac_cv_type_intptr_t = yes; then
33978 cat >>confdefs.h <<\_ACEOF
33979 #define HAVE_INTPTR_T 1
33983 for ac_type in 'int' 'long int' 'long long int'; do
33984 cat >conftest.$ac_ext <<_ACEOF
33987 cat confdefs.h >>conftest.$ac_ext
33988 cat >>conftest.$ac_ext <<_ACEOF
33989 /* end confdefs.h. */
33990 $ac_includes_default
33994 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34001 rm -f conftest.$ac_objext
34002 if { (ac_try="$ac_compile"
34003 case "(($ac_try" in
34004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34005 *) ac_try_echo=$ac_try;;
34007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34008 (eval "$ac_compile") 2>conftest.er1
34010 grep -v '^ *+' conftest.er1 >conftest.err
34012 cat conftest.err >&5
34013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34014 (exit $ac_status); } && {
34015 test -z "$ac_c_werror_flag" ||
34016 test ! -s conftest.err
34017 } && test -s conftest.$ac_objext; then
34019 cat >>confdefs.h <<_ACEOF
34020 #define intptr_t $ac_type
34025 echo "$as_me: failed program was:" >&5
34026 sed 's/^/| /' conftest.$ac_ext >&5
34031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34032 test -z "$ac_type" && break
34038 { echo "$as_me:$LINENO: checking for uintptr_t" >&5
34039 echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6; }
34040 if test "${ac_cv_type_uintptr_t+set}" = set; then
34041 echo $ECHO_N "(cached) $ECHO_C" >&6
34043 cat >conftest.$ac_ext <<_ACEOF
34046 cat confdefs.h >>conftest.$ac_ext
34047 cat >>conftest.$ac_ext <<_ACEOF
34048 /* end confdefs.h. */
34049 $ac_includes_default
34050 typedef uintptr_t ac__type_new_;
34054 if ((ac__type_new_ *) 0)
34056 if (sizeof (ac__type_new_))
34062 rm -f conftest.$ac_objext
34063 if { (ac_try="$ac_compile"
34064 case "(($ac_try" in
34065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34066 *) ac_try_echo=$ac_try;;
34068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34069 (eval "$ac_compile") 2>conftest.er1
34071 grep -v '^ *+' conftest.er1 >conftest.err
34073 cat conftest.err >&5
34074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34075 (exit $ac_status); } && {
34076 test -z "$ac_c_werror_flag" ||
34077 test ! -s conftest.err
34078 } && test -s conftest.$ac_objext; then
34079 ac_cv_type_uintptr_t=yes
34081 echo "$as_me: failed program was:" >&5
34082 sed 's/^/| /' conftest.$ac_ext >&5
34084 ac_cv_type_uintptr_t=no
34087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34089 { echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
34090 echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6; }
34091 if test $ac_cv_type_uintptr_t = yes; then
34093 cat >>confdefs.h <<\_ACEOF
34094 #define HAVE_UINTPTR_T 1
34098 for ac_type in 'unsigned int' 'unsigned long int' \
34099 'unsigned long long int'; do
34100 cat >conftest.$ac_ext <<_ACEOF
34103 cat confdefs.h >>conftest.$ac_ext
34104 cat >>conftest.$ac_ext <<_ACEOF
34105 /* end confdefs.h. */
34106 $ac_includes_default
34110 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
34117 rm -f conftest.$ac_objext
34118 if { (ac_try="$ac_compile"
34119 case "(($ac_try" in
34120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34121 *) ac_try_echo=$ac_try;;
34123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34124 (eval "$ac_compile") 2>conftest.er1
34126 grep -v '^ *+' conftest.er1 >conftest.err
34128 cat conftest.err >&5
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); } && {
34131 test -z "$ac_c_werror_flag" ||
34132 test ! -s conftest.err
34133 } && test -s conftest.$ac_objext; then
34135 cat >>confdefs.h <<_ACEOF
34136 #define uintptr_t $ac_type
34141 echo "$as_me: failed program was:" >&5
34142 sed 's/^/| /' conftest.$ac_ext >&5
34147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34148 test -z "$ac_type" && break
34153 { echo "$as_me:$LINENO: checking for ino_t" >&5
34154 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
34155 if test "${ac_cv_type_ino_t+set}" = set; then
34156 echo $ECHO_N "(cached) $ECHO_C" >&6
34158 cat >conftest.$ac_ext <<_ACEOF
34161 cat confdefs.h >>conftest.$ac_ext
34162 cat >>conftest.$ac_ext <<_ACEOF
34163 /* end confdefs.h. */
34164 $ac_includes_default
34165 typedef ino_t ac__type_new_;
34169 if ((ac__type_new_ *) 0)
34171 if (sizeof (ac__type_new_))
34177 rm -f conftest.$ac_objext
34178 if { (ac_try="$ac_compile"
34179 case "(($ac_try" in
34180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34181 *) ac_try_echo=$ac_try;;
34183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34184 (eval "$ac_compile") 2>conftest.er1
34186 grep -v '^ *+' conftest.er1 >conftest.err
34188 cat conftest.err >&5
34189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34190 (exit $ac_status); } && {
34191 test -z "$ac_c_werror_flag" ||
34192 test ! -s conftest.err
34193 } && test -s conftest.$ac_objext; then
34194 ac_cv_type_ino_t=yes
34196 echo "$as_me: failed program was:" >&5
34197 sed 's/^/| /' conftest.$ac_ext >&5
34199 ac_cv_type_ino_t=no
34202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34204 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
34205 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
34206 if test $ac_cv_type_ino_t = yes; then
34210 cat >>confdefs.h <<_ACEOF
34211 #define ino_t unsigned long
34216 { echo "$as_me:$LINENO: checking for dev_t" >&5
34217 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
34218 if test "${ac_cv_type_dev_t+set}" = set; then
34219 echo $ECHO_N "(cached) $ECHO_C" >&6
34221 cat >conftest.$ac_ext <<_ACEOF
34224 cat confdefs.h >>conftest.$ac_ext
34225 cat >>conftest.$ac_ext <<_ACEOF
34226 /* end confdefs.h. */
34227 $ac_includes_default
34228 typedef dev_t ac__type_new_;
34232 if ((ac__type_new_ *) 0)
34234 if (sizeof (ac__type_new_))
34240 rm -f conftest.$ac_objext
34241 if { (ac_try="$ac_compile"
34242 case "(($ac_try" in
34243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34244 *) ac_try_echo=$ac_try;;
34246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34247 (eval "$ac_compile") 2>conftest.er1
34249 grep -v '^ *+' conftest.er1 >conftest.err
34251 cat conftest.err >&5
34252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34253 (exit $ac_status); } && {
34254 test -z "$ac_c_werror_flag" ||
34255 test ! -s conftest.err
34256 } && test -s conftest.$ac_objext; then
34257 ac_cv_type_dev_t=yes
34259 echo "$as_me: failed program was:" >&5
34260 sed 's/^/| /' conftest.$ac_ext >&5
34262 ac_cv_type_dev_t=no
34265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34267 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
34268 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
34269 if test $ac_cv_type_dev_t = yes; then
34273 cat >>confdefs.h <<_ACEOF
34274 #define dev_t unsigned long
34279 { echo "$as_me:$LINENO: checking for daddr_t" >&5
34280 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
34281 if test "${ac_cv_type_daddr_t+set}" = set; then
34282 echo $ECHO_N "(cached) $ECHO_C" >&6
34284 cat >conftest.$ac_ext <<_ACEOF
34287 cat confdefs.h >>conftest.$ac_ext
34288 cat >>conftest.$ac_ext <<_ACEOF
34289 /* end confdefs.h. */
34290 $ac_includes_default
34291 typedef daddr_t ac__type_new_;
34295 if ((ac__type_new_ *) 0)
34297 if (sizeof (ac__type_new_))
34303 rm -f conftest.$ac_objext
34304 if { (ac_try="$ac_compile"
34305 case "(($ac_try" in
34306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34307 *) ac_try_echo=$ac_try;;
34309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34310 (eval "$ac_compile") 2>conftest.er1
34312 grep -v '^ *+' conftest.er1 >conftest.err
34314 cat conftest.err >&5
34315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34316 (exit $ac_status); } && {
34317 test -z "$ac_c_werror_flag" ||
34318 test ! -s conftest.err
34319 } && test -s conftest.$ac_objext; then
34320 ac_cv_type_daddr_t=yes
34322 echo "$as_me: failed program was:" >&5
34323 sed 's/^/| /' conftest.$ac_ext >&5
34325 ac_cv_type_daddr_t=no
34328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34330 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
34331 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
34332 if test $ac_cv_type_daddr_t = yes; then
34336 cat >>confdefs.h <<_ACEOF
34337 #define daddr_t long
34342 { echo "$as_me:$LINENO: checking for major_t" >&5
34343 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
34344 if test "${ac_cv_type_major_t+set}" = set; then
34345 echo $ECHO_N "(cached) $ECHO_C" >&6
34347 cat >conftest.$ac_ext <<_ACEOF
34350 cat confdefs.h >>conftest.$ac_ext
34351 cat >>conftest.$ac_ext <<_ACEOF
34352 /* end confdefs.h. */
34353 $ac_includes_default
34354 typedef major_t ac__type_new_;
34358 if ((ac__type_new_ *) 0)
34360 if (sizeof (ac__type_new_))
34366 rm -f conftest.$ac_objext
34367 if { (ac_try="$ac_compile"
34368 case "(($ac_try" in
34369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34370 *) ac_try_echo=$ac_try;;
34372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34373 (eval "$ac_compile") 2>conftest.er1
34375 grep -v '^ *+' conftest.er1 >conftest.err
34377 cat conftest.err >&5
34378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34379 (exit $ac_status); } && {
34380 test -z "$ac_c_werror_flag" ||
34381 test ! -s conftest.err
34382 } && test -s conftest.$ac_objext; then
34383 ac_cv_type_major_t=yes
34385 echo "$as_me: failed program was:" >&5
34386 sed 's/^/| /' conftest.$ac_ext >&5
34388 ac_cv_type_major_t=no
34391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34393 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
34394 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
34395 if test $ac_cv_type_major_t = yes; then
34399 cat >>confdefs.h <<_ACEOF
34400 #define major_t int
34405 { echo "$as_me:$LINENO: checking for minor_t" >&5
34406 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
34407 if test "${ac_cv_type_minor_t+set}" = set; then
34408 echo $ECHO_N "(cached) $ECHO_C" >&6
34410 cat >conftest.$ac_ext <<_ACEOF
34413 cat confdefs.h >>conftest.$ac_ext
34414 cat >>conftest.$ac_ext <<_ACEOF
34415 /* end confdefs.h. */
34416 $ac_includes_default
34417 typedef minor_t ac__type_new_;
34421 if ((ac__type_new_ *) 0)
34423 if (sizeof (ac__type_new_))
34429 rm -f conftest.$ac_objext
34430 if { (ac_try="$ac_compile"
34431 case "(($ac_try" in
34432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34433 *) ac_try_echo=$ac_try;;
34435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34436 (eval "$ac_compile") 2>conftest.er1
34438 grep -v '^ *+' conftest.er1 >conftest.err
34440 cat conftest.err >&5
34441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34442 (exit $ac_status); } && {
34443 test -z "$ac_c_werror_flag" ||
34444 test ! -s conftest.err
34445 } && test -s conftest.$ac_objext; then
34446 ac_cv_type_minor_t=yes
34448 echo "$as_me: failed program was:" >&5
34449 sed 's/^/| /' conftest.$ac_ext >&5
34451 ac_cv_type_minor_t=no
34454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34456 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
34457 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
34458 if test $ac_cv_type_minor_t = yes; then
34462 cat >>confdefs.h <<_ACEOF
34463 #define minor_t int
34468 { echo "$as_me:$LINENO: checking for ssize_t" >&5
34469 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
34470 if test "${ac_cv_type_ssize_t+set}" = set; then
34471 echo $ECHO_N "(cached) $ECHO_C" >&6
34473 cat >conftest.$ac_ext <<_ACEOF
34476 cat confdefs.h >>conftest.$ac_ext
34477 cat >>conftest.$ac_ext <<_ACEOF
34478 /* end confdefs.h. */
34479 $ac_includes_default
34480 typedef ssize_t ac__type_new_;
34484 if ((ac__type_new_ *) 0)
34486 if (sizeof (ac__type_new_))
34492 rm -f conftest.$ac_objext
34493 if { (ac_try="$ac_compile"
34494 case "(($ac_try" in
34495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34496 *) ac_try_echo=$ac_try;;
34498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34499 (eval "$ac_compile") 2>conftest.er1
34501 grep -v '^ *+' conftest.er1 >conftest.err
34503 cat conftest.err >&5
34504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34505 (exit $ac_status); } && {
34506 test -z "$ac_c_werror_flag" ||
34507 test ! -s conftest.err
34508 } && test -s conftest.$ac_objext; then
34509 ac_cv_type_ssize_t=yes
34511 echo "$as_me: failed program was:" >&5
34512 sed 's/^/| /' conftest.$ac_ext >&5
34514 ac_cv_type_ssize_t=no
34517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34519 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
34520 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
34521 if test $ac_cv_type_ssize_t = yes; then
34525 cat >>confdefs.h <<_ACEOF
34526 #define ssize_t int
34531 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
34532 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
34533 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
34534 echo $ECHO_N "(cached) $ECHO_C" >&6
34536 cat >conftest.$ac_ext <<_ACEOF
34539 cat confdefs.h >>conftest.$ac_ext
34540 cat >>conftest.$ac_ext <<_ACEOF
34541 /* end confdefs.h. */
34542 $ac_includes_default
34546 static struct stat ac_aggr;
34547 if (ac_aggr.st_blocks)
34553 rm -f conftest.$ac_objext
34554 if { (ac_try="$ac_compile"
34555 case "(($ac_try" in
34556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34557 *) ac_try_echo=$ac_try;;
34559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34560 (eval "$ac_compile") 2>conftest.er1
34562 grep -v '^ *+' conftest.er1 >conftest.err
34564 cat conftest.err >&5
34565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566 (exit $ac_status); } && {
34567 test -z "$ac_c_werror_flag" ||
34568 test ! -s conftest.err
34569 } && test -s conftest.$ac_objext; then
34570 ac_cv_member_struct_stat_st_blocks=yes
34572 echo "$as_me: failed program was:" >&5
34573 sed 's/^/| /' conftest.$ac_ext >&5
34575 cat >conftest.$ac_ext <<_ACEOF
34578 cat confdefs.h >>conftest.$ac_ext
34579 cat >>conftest.$ac_ext <<_ACEOF
34580 /* end confdefs.h. */
34581 $ac_includes_default
34585 static struct stat ac_aggr;
34586 if (sizeof ac_aggr.st_blocks)
34592 rm -f conftest.$ac_objext
34593 if { (ac_try="$ac_compile"
34594 case "(($ac_try" in
34595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34596 *) ac_try_echo=$ac_try;;
34598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34599 (eval "$ac_compile") 2>conftest.er1
34601 grep -v '^ *+' conftest.er1 >conftest.err
34603 cat conftest.err >&5
34604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605 (exit $ac_status); } && {
34606 test -z "$ac_c_werror_flag" ||
34607 test ! -s conftest.err
34608 } && test -s conftest.$ac_objext; then
34609 ac_cv_member_struct_stat_st_blocks=yes
34611 echo "$as_me: failed program was:" >&5
34612 sed 's/^/| /' conftest.$ac_ext >&5
34614 ac_cv_member_struct_stat_st_blocks=no
34617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34622 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
34623 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
34624 if test $ac_cv_member_struct_stat_st_blocks = yes; then
34626 cat >>confdefs.h <<_ACEOF
34627 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
34631 cat >>confdefs.h <<\_ACEOF
34632 #define HAVE_ST_BLOCKS 1
34636 case " $LIBOBJS " in
34637 *" fileblocks.$ac_objext "* ) ;;
34638 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
34645 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
34646 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
34647 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
34648 echo $ECHO_N "(cached) $ECHO_C" >&6
34650 cat >conftest.$ac_ext <<_ACEOF
34653 cat confdefs.h >>conftest.$ac_ext
34654 cat >>conftest.$ac_ext <<_ACEOF
34655 /* end confdefs.h. */
34656 $ac_includes_default
34660 static struct stat ac_aggr;
34661 if (ac_aggr.st_rdev)
34667 rm -f conftest.$ac_objext
34668 if { (ac_try="$ac_compile"
34669 case "(($ac_try" in
34670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34671 *) ac_try_echo=$ac_try;;
34673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34674 (eval "$ac_compile") 2>conftest.er1
34676 grep -v '^ *+' conftest.er1 >conftest.err
34678 cat conftest.err >&5
34679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34680 (exit $ac_status); } && {
34681 test -z "$ac_c_werror_flag" ||
34682 test ! -s conftest.err
34683 } && test -s conftest.$ac_objext; then
34684 ac_cv_member_struct_stat_st_rdev=yes
34686 echo "$as_me: failed program was:" >&5
34687 sed 's/^/| /' conftest.$ac_ext >&5
34689 cat >conftest.$ac_ext <<_ACEOF
34692 cat confdefs.h >>conftest.$ac_ext
34693 cat >>conftest.$ac_ext <<_ACEOF
34694 /* end confdefs.h. */
34695 $ac_includes_default
34699 static struct stat ac_aggr;
34700 if (sizeof ac_aggr.st_rdev)
34706 rm -f conftest.$ac_objext
34707 if { (ac_try="$ac_compile"
34708 case "(($ac_try" in
34709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34710 *) ac_try_echo=$ac_try;;
34712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34713 (eval "$ac_compile") 2>conftest.er1
34715 grep -v '^ *+' conftest.er1 >conftest.err
34717 cat conftest.err >&5
34718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34719 (exit $ac_status); } && {
34720 test -z "$ac_c_werror_flag" ||
34721 test ! -s conftest.err
34722 } && test -s conftest.$ac_objext; then
34723 ac_cv_member_struct_stat_st_rdev=yes
34725 echo "$as_me: failed program was:" >&5
34726 sed 's/^/| /' conftest.$ac_ext >&5
34728 ac_cv_member_struct_stat_st_rdev=no
34731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34736 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
34737 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
34738 if test $ac_cv_member_struct_stat_st_rdev = yes; then
34740 cat >>confdefs.h <<_ACEOF
34741 #define HAVE_STRUCT_STAT_ST_RDEV 1
34745 cat >>confdefs.h <<\_ACEOF
34746 #define HAVE_ST_RDEV 1
34752 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
34753 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
34754 if test "${ac_cv_struct_tm+set}" = set; then
34755 echo $ECHO_N "(cached) $ECHO_C" >&6
34757 cat >conftest.$ac_ext <<_ACEOF
34760 cat confdefs.h >>conftest.$ac_ext
34761 cat >>conftest.$ac_ext <<_ACEOF
34762 /* end confdefs.h. */
34763 #include <sys/types.h>
34770 int *p = &tm.tm_sec;
34776 rm -f conftest.$ac_objext
34777 if { (ac_try="$ac_compile"
34778 case "(($ac_try" in
34779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34780 *) ac_try_echo=$ac_try;;
34782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34783 (eval "$ac_compile") 2>conftest.er1
34785 grep -v '^ *+' conftest.er1 >conftest.err
34787 cat conftest.err >&5
34788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34789 (exit $ac_status); } && {
34790 test -z "$ac_c_werror_flag" ||
34791 test ! -s conftest.err
34792 } && test -s conftest.$ac_objext; then
34793 ac_cv_struct_tm=time.h
34795 echo "$as_me: failed program was:" >&5
34796 sed 's/^/| /' conftest.$ac_ext >&5
34798 ac_cv_struct_tm=sys/time.h
34801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34803 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
34804 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
34805 if test $ac_cv_struct_tm = sys/time.h; then
34807 cat >>confdefs.h <<\_ACEOF
34808 #define TM_IN_SYS_TIME 1
34813 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
34814 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
34815 if test "${ac_cv_c_const+set}" = set; then
34816 echo $ECHO_N "(cached) $ECHO_C" >&6
34818 cat >conftest.$ac_ext <<_ACEOF
34821 cat confdefs.h >>conftest.$ac_ext
34822 cat >>conftest.$ac_ext <<_ACEOF
34823 /* end confdefs.h. */
34828 /* FIXME: Include the comments suggested by Paul. */
34829 #ifndef __cplusplus
34830 /* Ultrix mips cc rejects this. */
34831 typedef int charset[2];
34833 /* SunOS 4.1.1 cc rejects this. */
34834 char const *const *pcpcc;
34836 /* NEC SVR4.0.2 mips cc rejects this. */
34837 struct point {int x, y;};
34838 static struct point const zero = {0,0};
34839 /* AIX XL C 1.02.0.0 rejects this.
34840 It does not let you subtract one const X* pointer from another in
34841 an arm of an if-expression whose if-part is not a constant
34843 const char *g = "string";
34844 pcpcc = &g + (g ? g-g : 0);
34845 /* HPUX 7.0 cc rejects these. */
34847 ppc = (char**) pcpcc;
34848 pcpcc = (char const *const *) ppc;
34849 { /* SCO 3.2v4 cc rejects this. */
34851 char const *s = 0 ? (char *) 0 : (char const *) 0;
34856 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
34857 int x[] = {25, 17};
34858 const int *foo = &x[0];
34861 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
34862 typedef const int *iptr;
34866 { /* AIX XL C 1.02.0.0 rejects this saying
34867 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
34868 struct s { int j; const int *ap[3]; };
34869 struct s *b; b->j = 5;
34871 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
34872 const int foo = 10;
34873 if (!foo) return 0;
34875 return !cs[0] && !zero.x;
34882 rm -f conftest.$ac_objext
34883 if { (ac_try="$ac_compile"
34884 case "(($ac_try" in
34885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34886 *) ac_try_echo=$ac_try;;
34888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34889 (eval "$ac_compile") 2>conftest.er1
34891 grep -v '^ *+' conftest.er1 >conftest.err
34893 cat conftest.err >&5
34894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34895 (exit $ac_status); } && {
34896 test -z "$ac_c_werror_flag" ||
34897 test ! -s conftest.err
34898 } && test -s conftest.$ac_objext; then
34901 echo "$as_me: failed program was:" >&5
34902 sed 's/^/| /' conftest.$ac_ext >&5
34907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34909 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
34910 echo "${ECHO_T}$ac_cv_c_const" >&6; }
34911 if test $ac_cv_c_const = no; then
34913 cat >>confdefs.h <<\_ACEOF
34920 { echo "$as_me:$LINENO: checking for char" >&5
34921 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
34922 if test "${ac_cv_type_char+set}" = set; then
34923 echo $ECHO_N "(cached) $ECHO_C" >&6
34925 cat >conftest.$ac_ext <<_ACEOF
34928 cat confdefs.h >>conftest.$ac_ext
34929 cat >>conftest.$ac_ext <<_ACEOF
34930 /* end confdefs.h. */
34931 $ac_includes_default
34932 typedef char ac__type_new_;
34936 if ((ac__type_new_ *) 0)
34938 if (sizeof (ac__type_new_))
34944 rm -f conftest.$ac_objext
34945 if { (ac_try="$ac_compile"
34946 case "(($ac_try" in
34947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34948 *) ac_try_echo=$ac_try;;
34950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34951 (eval "$ac_compile") 2>conftest.er1
34953 grep -v '^ *+' conftest.er1 >conftest.err
34955 cat conftest.err >&5
34956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957 (exit $ac_status); } && {
34958 test -z "$ac_c_werror_flag" ||
34959 test ! -s conftest.err
34960 } && test -s conftest.$ac_objext; then
34961 ac_cv_type_char=yes
34963 echo "$as_me: failed program was:" >&5
34964 sed 's/^/| /' conftest.$ac_ext >&5
34969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34971 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
34972 echo "${ECHO_T}$ac_cv_type_char" >&6; }
34974 # The cast to long int works around a bug in the HP C Compiler
34975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34977 # This bug is HP SR number 8606223364.
34978 { echo "$as_me:$LINENO: checking size of char" >&5
34979 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
34980 if test "${ac_cv_sizeof_char+set}" = set; then
34981 echo $ECHO_N "(cached) $ECHO_C" >&6
34983 if test "$cross_compiling" = yes; then
34984 # Depending upon the size, compute the lo and hi bounds.
34985 cat >conftest.$ac_ext <<_ACEOF
34988 cat confdefs.h >>conftest.$ac_ext
34989 cat >>conftest.$ac_ext <<_ACEOF
34990 /* end confdefs.h. */
34991 $ac_includes_default
34992 typedef char ac__type_sizeof_;
34996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35003 rm -f conftest.$ac_objext
35004 if { (ac_try="$ac_compile"
35005 case "(($ac_try" in
35006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35007 *) ac_try_echo=$ac_try;;
35009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35010 (eval "$ac_compile") 2>conftest.er1
35012 grep -v '^ *+' conftest.er1 >conftest.err
35014 cat conftest.err >&5
35015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35016 (exit $ac_status); } && {
35017 test -z "$ac_c_werror_flag" ||
35018 test ! -s conftest.err
35019 } && test -s conftest.$ac_objext; then
35022 cat >conftest.$ac_ext <<_ACEOF
35025 cat confdefs.h >>conftest.$ac_ext
35026 cat >>conftest.$ac_ext <<_ACEOF
35027 /* end confdefs.h. */
35028 $ac_includes_default
35029 typedef char ac__type_sizeof_;
35033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35040 rm -f conftest.$ac_objext
35041 if { (ac_try="$ac_compile"
35042 case "(($ac_try" in
35043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35044 *) ac_try_echo=$ac_try;;
35046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35047 (eval "$ac_compile") 2>conftest.er1
35049 grep -v '^ *+' conftest.er1 >conftest.err
35051 cat conftest.err >&5
35052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35053 (exit $ac_status); } && {
35054 test -z "$ac_c_werror_flag" ||
35055 test ! -s conftest.err
35056 } && test -s conftest.$ac_objext; then
35057 ac_hi=$ac_mid; break
35059 echo "$as_me: failed program was:" >&5
35060 sed 's/^/| /' conftest.$ac_ext >&5
35062 ac_lo=`expr $ac_mid + 1`
35063 if test $ac_lo -le $ac_mid; then
35067 ac_mid=`expr 2 '*' $ac_mid + 1`
35070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35073 echo "$as_me: failed program was:" >&5
35074 sed 's/^/| /' conftest.$ac_ext >&5
35076 cat >conftest.$ac_ext <<_ACEOF
35079 cat confdefs.h >>conftest.$ac_ext
35080 cat >>conftest.$ac_ext <<_ACEOF
35081 /* end confdefs.h. */
35082 $ac_includes_default
35083 typedef char ac__type_sizeof_;
35087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35094 rm -f conftest.$ac_objext
35095 if { (ac_try="$ac_compile"
35096 case "(($ac_try" in
35097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35098 *) ac_try_echo=$ac_try;;
35100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35101 (eval "$ac_compile") 2>conftest.er1
35103 grep -v '^ *+' conftest.er1 >conftest.err
35105 cat conftest.err >&5
35106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35107 (exit $ac_status); } && {
35108 test -z "$ac_c_werror_flag" ||
35109 test ! -s conftest.err
35110 } && test -s conftest.$ac_objext; then
35113 cat >conftest.$ac_ext <<_ACEOF
35116 cat confdefs.h >>conftest.$ac_ext
35117 cat >>conftest.$ac_ext <<_ACEOF
35118 /* end confdefs.h. */
35119 $ac_includes_default
35120 typedef char ac__type_sizeof_;
35124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35131 rm -f conftest.$ac_objext
35132 if { (ac_try="$ac_compile"
35133 case "(($ac_try" in
35134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35135 *) ac_try_echo=$ac_try;;
35137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35138 (eval "$ac_compile") 2>conftest.er1
35140 grep -v '^ *+' conftest.er1 >conftest.err
35142 cat conftest.err >&5
35143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35144 (exit $ac_status); } && {
35145 test -z "$ac_c_werror_flag" ||
35146 test ! -s conftest.err
35147 } && test -s conftest.$ac_objext; then
35148 ac_lo=$ac_mid; break
35150 echo "$as_me: failed program was:" >&5
35151 sed 's/^/| /' conftest.$ac_ext >&5
35153 ac_hi=`expr '(' $ac_mid ')' - 1`
35154 if test $ac_mid -le $ac_hi; then
35158 ac_mid=`expr 2 '*' $ac_mid`
35161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35164 echo "$as_me: failed program was:" >&5
35165 sed 's/^/| /' conftest.$ac_ext >&5
35170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35174 # Binary search between lo and hi bounds.
35175 while test "x$ac_lo" != "x$ac_hi"; do
35176 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35177 cat >conftest.$ac_ext <<_ACEOF
35180 cat confdefs.h >>conftest.$ac_ext
35181 cat >>conftest.$ac_ext <<_ACEOF
35182 /* end confdefs.h. */
35183 $ac_includes_default
35184 typedef char ac__type_sizeof_;
35188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35195 rm -f conftest.$ac_objext
35196 if { (ac_try="$ac_compile"
35197 case "(($ac_try" in
35198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35199 *) ac_try_echo=$ac_try;;
35201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35202 (eval "$ac_compile") 2>conftest.er1
35204 grep -v '^ *+' conftest.er1 >conftest.err
35206 cat conftest.err >&5
35207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35208 (exit $ac_status); } && {
35209 test -z "$ac_c_werror_flag" ||
35210 test ! -s conftest.err
35211 } && test -s conftest.$ac_objext; then
35214 echo "$as_me: failed program was:" >&5
35215 sed 's/^/| /' conftest.$ac_ext >&5
35217 ac_lo=`expr '(' $ac_mid ')' + 1`
35220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35223 ?*) ac_cv_sizeof_char=$ac_lo;;
35224 '') if test "$ac_cv_type_char" = yes; then
35225 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35226 See \`config.log' for more details." >&5
35227 echo "$as_me: error: cannot compute sizeof (char)
35228 See \`config.log' for more details." >&2;}
35229 { (exit 77); exit 77; }; }
35231 ac_cv_sizeof_char=0
35235 cat >conftest.$ac_ext <<_ACEOF
35238 cat confdefs.h >>conftest.$ac_ext
35239 cat >>conftest.$ac_ext <<_ACEOF
35240 /* end confdefs.h. */
35241 $ac_includes_default
35242 typedef char ac__type_sizeof_;
35243 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35244 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35246 #include <stdlib.h>
35251 FILE *f = fopen ("conftest.val", "w");
35254 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35256 long int i = longval ();
35257 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35259 fprintf (f, "%ld\n", i);
35263 unsigned long int i = ulongval ();
35264 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35266 fprintf (f, "%lu\n", i);
35268 return ferror (f) || fclose (f) != 0;
35274 rm -f conftest$ac_exeext
35275 if { (ac_try="$ac_link"
35276 case "(($ac_try" in
35277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35278 *) ac_try_echo=$ac_try;;
35280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35281 (eval "$ac_link") 2>&5
35283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35285 { (case "(($ac_try" in
35286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35287 *) ac_try_echo=$ac_try;;
35289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35290 (eval "$ac_try") 2>&5
35292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35293 (exit $ac_status); }; }; then
35294 ac_cv_sizeof_char=`cat conftest.val`
35296 echo "$as_me: program exited with status $ac_status" >&5
35297 echo "$as_me: failed program was:" >&5
35298 sed 's/^/| /' conftest.$ac_ext >&5
35300 ( exit $ac_status )
35301 if test "$ac_cv_type_char" = yes; then
35302 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
35303 See \`config.log' for more details." >&5
35304 echo "$as_me: error: cannot compute sizeof (char)
35305 See \`config.log' for more details." >&2;}
35306 { (exit 77); exit 77; }; }
35308 ac_cv_sizeof_char=0
35311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35315 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
35316 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
35320 cat >>confdefs.h <<_ACEOF
35321 #define SIZEOF_CHAR $ac_cv_sizeof_char
35325 { echo "$as_me:$LINENO: checking for short int" >&5
35326 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
35327 if test "${ac_cv_type_short_int+set}" = set; then
35328 echo $ECHO_N "(cached) $ECHO_C" >&6
35330 cat >conftest.$ac_ext <<_ACEOF
35333 cat confdefs.h >>conftest.$ac_ext
35334 cat >>conftest.$ac_ext <<_ACEOF
35335 /* end confdefs.h. */
35336 $ac_includes_default
35337 typedef short int ac__type_new_;
35341 if ((ac__type_new_ *) 0)
35343 if (sizeof (ac__type_new_))
35349 rm -f conftest.$ac_objext
35350 if { (ac_try="$ac_compile"
35351 case "(($ac_try" in
35352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35353 *) ac_try_echo=$ac_try;;
35355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35356 (eval "$ac_compile") 2>conftest.er1
35358 grep -v '^ *+' conftest.er1 >conftest.err
35360 cat conftest.err >&5
35361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35362 (exit $ac_status); } && {
35363 test -z "$ac_c_werror_flag" ||
35364 test ! -s conftest.err
35365 } && test -s conftest.$ac_objext; then
35366 ac_cv_type_short_int=yes
35368 echo "$as_me: failed program was:" >&5
35369 sed 's/^/| /' conftest.$ac_ext >&5
35371 ac_cv_type_short_int=no
35374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35376 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
35377 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
35379 # The cast to long int works around a bug in the HP C Compiler
35380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35382 # This bug is HP SR number 8606223364.
35383 { echo "$as_me:$LINENO: checking size of short int" >&5
35384 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
35385 if test "${ac_cv_sizeof_short_int+set}" = set; then
35386 echo $ECHO_N "(cached) $ECHO_C" >&6
35388 if test "$cross_compiling" = yes; then
35389 # Depending upon the size, compute the lo and hi bounds.
35390 cat >conftest.$ac_ext <<_ACEOF
35393 cat confdefs.h >>conftest.$ac_ext
35394 cat >>conftest.$ac_ext <<_ACEOF
35395 /* end confdefs.h. */
35396 $ac_includes_default
35397 typedef short int ac__type_sizeof_;
35401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35408 rm -f conftest.$ac_objext
35409 if { (ac_try="$ac_compile"
35410 case "(($ac_try" in
35411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35412 *) ac_try_echo=$ac_try;;
35414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35415 (eval "$ac_compile") 2>conftest.er1
35417 grep -v '^ *+' conftest.er1 >conftest.err
35419 cat conftest.err >&5
35420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35421 (exit $ac_status); } && {
35422 test -z "$ac_c_werror_flag" ||
35423 test ! -s conftest.err
35424 } && test -s conftest.$ac_objext; then
35427 cat >conftest.$ac_ext <<_ACEOF
35430 cat confdefs.h >>conftest.$ac_ext
35431 cat >>conftest.$ac_ext <<_ACEOF
35432 /* end confdefs.h. */
35433 $ac_includes_default
35434 typedef short int ac__type_sizeof_;
35438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35445 rm -f conftest.$ac_objext
35446 if { (ac_try="$ac_compile"
35447 case "(($ac_try" in
35448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35449 *) ac_try_echo=$ac_try;;
35451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35452 (eval "$ac_compile") 2>conftest.er1
35454 grep -v '^ *+' conftest.er1 >conftest.err
35456 cat conftest.err >&5
35457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35458 (exit $ac_status); } && {
35459 test -z "$ac_c_werror_flag" ||
35460 test ! -s conftest.err
35461 } && test -s conftest.$ac_objext; then
35462 ac_hi=$ac_mid; break
35464 echo "$as_me: failed program was:" >&5
35465 sed 's/^/| /' conftest.$ac_ext >&5
35467 ac_lo=`expr $ac_mid + 1`
35468 if test $ac_lo -le $ac_mid; then
35472 ac_mid=`expr 2 '*' $ac_mid + 1`
35475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35478 echo "$as_me: failed program was:" >&5
35479 sed 's/^/| /' conftest.$ac_ext >&5
35481 cat >conftest.$ac_ext <<_ACEOF
35484 cat confdefs.h >>conftest.$ac_ext
35485 cat >>conftest.$ac_ext <<_ACEOF
35486 /* end confdefs.h. */
35487 $ac_includes_default
35488 typedef short int ac__type_sizeof_;
35492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35499 rm -f conftest.$ac_objext
35500 if { (ac_try="$ac_compile"
35501 case "(($ac_try" in
35502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35503 *) ac_try_echo=$ac_try;;
35505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35506 (eval "$ac_compile") 2>conftest.er1
35508 grep -v '^ *+' conftest.er1 >conftest.err
35510 cat conftest.err >&5
35511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35512 (exit $ac_status); } && {
35513 test -z "$ac_c_werror_flag" ||
35514 test ! -s conftest.err
35515 } && test -s conftest.$ac_objext; then
35518 cat >conftest.$ac_ext <<_ACEOF
35521 cat confdefs.h >>conftest.$ac_ext
35522 cat >>conftest.$ac_ext <<_ACEOF
35523 /* end confdefs.h. */
35524 $ac_includes_default
35525 typedef short int ac__type_sizeof_;
35529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35536 rm -f conftest.$ac_objext
35537 if { (ac_try="$ac_compile"
35538 case "(($ac_try" in
35539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35540 *) ac_try_echo=$ac_try;;
35542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35543 (eval "$ac_compile") 2>conftest.er1
35545 grep -v '^ *+' conftest.er1 >conftest.err
35547 cat conftest.err >&5
35548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35549 (exit $ac_status); } && {
35550 test -z "$ac_c_werror_flag" ||
35551 test ! -s conftest.err
35552 } && test -s conftest.$ac_objext; then
35553 ac_lo=$ac_mid; break
35555 echo "$as_me: failed program was:" >&5
35556 sed 's/^/| /' conftest.$ac_ext >&5
35558 ac_hi=`expr '(' $ac_mid ')' - 1`
35559 if test $ac_mid -le $ac_hi; then
35563 ac_mid=`expr 2 '*' $ac_mid`
35566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35569 echo "$as_me: failed program was:" >&5
35570 sed 's/^/| /' conftest.$ac_ext >&5
35575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35579 # Binary search between lo and hi bounds.
35580 while test "x$ac_lo" != "x$ac_hi"; do
35581 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35582 cat >conftest.$ac_ext <<_ACEOF
35585 cat confdefs.h >>conftest.$ac_ext
35586 cat >>conftest.$ac_ext <<_ACEOF
35587 /* end confdefs.h. */
35588 $ac_includes_default
35589 typedef short int ac__type_sizeof_;
35593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35600 rm -f conftest.$ac_objext
35601 if { (ac_try="$ac_compile"
35602 case "(($ac_try" in
35603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35604 *) ac_try_echo=$ac_try;;
35606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35607 (eval "$ac_compile") 2>conftest.er1
35609 grep -v '^ *+' conftest.er1 >conftest.err
35611 cat conftest.err >&5
35612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35613 (exit $ac_status); } && {
35614 test -z "$ac_c_werror_flag" ||
35615 test ! -s conftest.err
35616 } && test -s conftest.$ac_objext; then
35619 echo "$as_me: failed program was:" >&5
35620 sed 's/^/| /' conftest.$ac_ext >&5
35622 ac_lo=`expr '(' $ac_mid ')' + 1`
35625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35628 ?*) ac_cv_sizeof_short_int=$ac_lo;;
35629 '') if test "$ac_cv_type_short_int" = yes; then
35630 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35631 See \`config.log' for more details." >&5
35632 echo "$as_me: error: cannot compute sizeof (short int)
35633 See \`config.log' for more details." >&2;}
35634 { (exit 77); exit 77; }; }
35636 ac_cv_sizeof_short_int=0
35640 cat >conftest.$ac_ext <<_ACEOF
35643 cat confdefs.h >>conftest.$ac_ext
35644 cat >>conftest.$ac_ext <<_ACEOF
35645 /* end confdefs.h. */
35646 $ac_includes_default
35647 typedef short int ac__type_sizeof_;
35648 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35649 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35651 #include <stdlib.h>
35656 FILE *f = fopen ("conftest.val", "w");
35659 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35661 long int i = longval ();
35662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35664 fprintf (f, "%ld\n", i);
35668 unsigned long int i = ulongval ();
35669 if (i != ((long int) (sizeof (ac__type_sizeof_))))
35671 fprintf (f, "%lu\n", i);
35673 return ferror (f) || fclose (f) != 0;
35679 rm -f conftest$ac_exeext
35680 if { (ac_try="$ac_link"
35681 case "(($ac_try" in
35682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35683 *) ac_try_echo=$ac_try;;
35685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35686 (eval "$ac_link") 2>&5
35688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35690 { (case "(($ac_try" in
35691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35692 *) ac_try_echo=$ac_try;;
35694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35695 (eval "$ac_try") 2>&5
35697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); }; }; then
35699 ac_cv_sizeof_short_int=`cat conftest.val`
35701 echo "$as_me: program exited with status $ac_status" >&5
35702 echo "$as_me: failed program was:" >&5
35703 sed 's/^/| /' conftest.$ac_ext >&5
35705 ( exit $ac_status )
35706 if test "$ac_cv_type_short_int" = yes; then
35707 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
35708 See \`config.log' for more details." >&5
35709 echo "$as_me: error: cannot compute sizeof (short int)
35710 See \`config.log' for more details." >&2;}
35711 { (exit 77); exit 77; }; }
35713 ac_cv_sizeof_short_int=0
35716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35720 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
35721 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
35725 cat >>confdefs.h <<_ACEOF
35726 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
35730 { echo "$as_me:$LINENO: checking for int" >&5
35731 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
35732 if test "${ac_cv_type_int+set}" = set; then
35733 echo $ECHO_N "(cached) $ECHO_C" >&6
35735 cat >conftest.$ac_ext <<_ACEOF
35738 cat confdefs.h >>conftest.$ac_ext
35739 cat >>conftest.$ac_ext <<_ACEOF
35740 /* end confdefs.h. */
35741 $ac_includes_default
35742 typedef int ac__type_new_;
35746 if ((ac__type_new_ *) 0)
35748 if (sizeof (ac__type_new_))
35754 rm -f conftest.$ac_objext
35755 if { (ac_try="$ac_compile"
35756 case "(($ac_try" in
35757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35758 *) ac_try_echo=$ac_try;;
35760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35761 (eval "$ac_compile") 2>conftest.er1
35763 grep -v '^ *+' conftest.er1 >conftest.err
35765 cat conftest.err >&5
35766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35767 (exit $ac_status); } && {
35768 test -z "$ac_c_werror_flag" ||
35769 test ! -s conftest.err
35770 } && test -s conftest.$ac_objext; then
35773 echo "$as_me: failed program was:" >&5
35774 sed 's/^/| /' conftest.$ac_ext >&5
35779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35781 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
35782 echo "${ECHO_T}$ac_cv_type_int" >&6; }
35784 # The cast to long int works around a bug in the HP C Compiler
35785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35787 # This bug is HP SR number 8606223364.
35788 { echo "$as_me:$LINENO: checking size of int" >&5
35789 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
35790 if test "${ac_cv_sizeof_int+set}" = set; then
35791 echo $ECHO_N "(cached) $ECHO_C" >&6
35793 if test "$cross_compiling" = yes; then
35794 # Depending upon the size, compute the lo and hi bounds.
35795 cat >conftest.$ac_ext <<_ACEOF
35798 cat confdefs.h >>conftest.$ac_ext
35799 cat >>conftest.$ac_ext <<_ACEOF
35800 /* end confdefs.h. */
35801 $ac_includes_default
35802 typedef int ac__type_sizeof_;
35806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35813 rm -f conftest.$ac_objext
35814 if { (ac_try="$ac_compile"
35815 case "(($ac_try" in
35816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35817 *) ac_try_echo=$ac_try;;
35819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35820 (eval "$ac_compile") 2>conftest.er1
35822 grep -v '^ *+' conftest.er1 >conftest.err
35824 cat conftest.err >&5
35825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35826 (exit $ac_status); } && {
35827 test -z "$ac_c_werror_flag" ||
35828 test ! -s conftest.err
35829 } && test -s conftest.$ac_objext; then
35832 cat >conftest.$ac_ext <<_ACEOF
35835 cat confdefs.h >>conftest.$ac_ext
35836 cat >>conftest.$ac_ext <<_ACEOF
35837 /* end confdefs.h. */
35838 $ac_includes_default
35839 typedef int ac__type_sizeof_;
35843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35850 rm -f conftest.$ac_objext
35851 if { (ac_try="$ac_compile"
35852 case "(($ac_try" in
35853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35854 *) ac_try_echo=$ac_try;;
35856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35857 (eval "$ac_compile") 2>conftest.er1
35859 grep -v '^ *+' conftest.er1 >conftest.err
35861 cat conftest.err >&5
35862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35863 (exit $ac_status); } && {
35864 test -z "$ac_c_werror_flag" ||
35865 test ! -s conftest.err
35866 } && test -s conftest.$ac_objext; then
35867 ac_hi=$ac_mid; break
35869 echo "$as_me: failed program was:" >&5
35870 sed 's/^/| /' conftest.$ac_ext >&5
35872 ac_lo=`expr $ac_mid + 1`
35873 if test $ac_lo -le $ac_mid; then
35877 ac_mid=`expr 2 '*' $ac_mid + 1`
35880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35883 echo "$as_me: failed program was:" >&5
35884 sed 's/^/| /' conftest.$ac_ext >&5
35886 cat >conftest.$ac_ext <<_ACEOF
35889 cat confdefs.h >>conftest.$ac_ext
35890 cat >>conftest.$ac_ext <<_ACEOF
35891 /* end confdefs.h. */
35892 $ac_includes_default
35893 typedef int ac__type_sizeof_;
35897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35904 rm -f conftest.$ac_objext
35905 if { (ac_try="$ac_compile"
35906 case "(($ac_try" in
35907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35908 *) ac_try_echo=$ac_try;;
35910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35911 (eval "$ac_compile") 2>conftest.er1
35913 grep -v '^ *+' conftest.er1 >conftest.err
35915 cat conftest.err >&5
35916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35917 (exit $ac_status); } && {
35918 test -z "$ac_c_werror_flag" ||
35919 test ! -s conftest.err
35920 } && test -s conftest.$ac_objext; then
35923 cat >conftest.$ac_ext <<_ACEOF
35926 cat confdefs.h >>conftest.$ac_ext
35927 cat >>conftest.$ac_ext <<_ACEOF
35928 /* end confdefs.h. */
35929 $ac_includes_default
35930 typedef int ac__type_sizeof_;
35934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35941 rm -f conftest.$ac_objext
35942 if { (ac_try="$ac_compile"
35943 case "(($ac_try" in
35944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35945 *) ac_try_echo=$ac_try;;
35947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35948 (eval "$ac_compile") 2>conftest.er1
35950 grep -v '^ *+' conftest.er1 >conftest.err
35952 cat conftest.err >&5
35953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35954 (exit $ac_status); } && {
35955 test -z "$ac_c_werror_flag" ||
35956 test ! -s conftest.err
35957 } && test -s conftest.$ac_objext; then
35958 ac_lo=$ac_mid; break
35960 echo "$as_me: failed program was:" >&5
35961 sed 's/^/| /' conftest.$ac_ext >&5
35963 ac_hi=`expr '(' $ac_mid ')' - 1`
35964 if test $ac_mid -le $ac_hi; then
35968 ac_mid=`expr 2 '*' $ac_mid`
35971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35974 echo "$as_me: failed program was:" >&5
35975 sed 's/^/| /' conftest.$ac_ext >&5
35980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35984 # Binary search between lo and hi bounds.
35985 while test "x$ac_lo" != "x$ac_hi"; do
35986 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35987 cat >conftest.$ac_ext <<_ACEOF
35990 cat confdefs.h >>conftest.$ac_ext
35991 cat >>conftest.$ac_ext <<_ACEOF
35992 /* end confdefs.h. */
35993 $ac_includes_default
35994 typedef int ac__type_sizeof_;
35998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36005 rm -f conftest.$ac_objext
36006 if { (ac_try="$ac_compile"
36007 case "(($ac_try" in
36008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36009 *) ac_try_echo=$ac_try;;
36011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36012 (eval "$ac_compile") 2>conftest.er1
36014 grep -v '^ *+' conftest.er1 >conftest.err
36016 cat conftest.err >&5
36017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36018 (exit $ac_status); } && {
36019 test -z "$ac_c_werror_flag" ||
36020 test ! -s conftest.err
36021 } && test -s conftest.$ac_objext; then
36024 echo "$as_me: failed program was:" >&5
36025 sed 's/^/| /' conftest.$ac_ext >&5
36027 ac_lo=`expr '(' $ac_mid ')' + 1`
36030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36033 ?*) ac_cv_sizeof_int=$ac_lo;;
36034 '') if test "$ac_cv_type_int" = yes; then
36035 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36036 See \`config.log' for more details." >&5
36037 echo "$as_me: error: cannot compute sizeof (int)
36038 See \`config.log' for more details." >&2;}
36039 { (exit 77); exit 77; }; }
36045 cat >conftest.$ac_ext <<_ACEOF
36048 cat confdefs.h >>conftest.$ac_ext
36049 cat >>conftest.$ac_ext <<_ACEOF
36050 /* end confdefs.h. */
36051 $ac_includes_default
36052 typedef int ac__type_sizeof_;
36053 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36054 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36056 #include <stdlib.h>
36061 FILE *f = fopen ("conftest.val", "w");
36064 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36066 long int i = longval ();
36067 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36069 fprintf (f, "%ld\n", i);
36073 unsigned long int i = ulongval ();
36074 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36076 fprintf (f, "%lu\n", i);
36078 return ferror (f) || fclose (f) != 0;
36084 rm -f conftest$ac_exeext
36085 if { (ac_try="$ac_link"
36086 case "(($ac_try" in
36087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36088 *) ac_try_echo=$ac_try;;
36090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36091 (eval "$ac_link") 2>&5
36093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36095 { (case "(($ac_try" in
36096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36097 *) ac_try_echo=$ac_try;;
36099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36100 (eval "$ac_try") 2>&5
36102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36103 (exit $ac_status); }; }; then
36104 ac_cv_sizeof_int=`cat conftest.val`
36106 echo "$as_me: program exited with status $ac_status" >&5
36107 echo "$as_me: failed program was:" >&5
36108 sed 's/^/| /' conftest.$ac_ext >&5
36110 ( exit $ac_status )
36111 if test "$ac_cv_type_int" = yes; then
36112 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
36113 See \`config.log' for more details." >&5
36114 echo "$as_me: error: cannot compute sizeof (int)
36115 See \`config.log' for more details." >&2;}
36116 { (exit 77); exit 77; }; }
36121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36125 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
36126 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
36130 cat >>confdefs.h <<_ACEOF
36131 #define SIZEOF_INT $ac_cv_sizeof_int
36135 { echo "$as_me:$LINENO: checking for long int" >&5
36136 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
36137 if test "${ac_cv_type_long_int+set}" = set; then
36138 echo $ECHO_N "(cached) $ECHO_C" >&6
36140 cat >conftest.$ac_ext <<_ACEOF
36143 cat confdefs.h >>conftest.$ac_ext
36144 cat >>conftest.$ac_ext <<_ACEOF
36145 /* end confdefs.h. */
36146 $ac_includes_default
36147 typedef long int ac__type_new_;
36151 if ((ac__type_new_ *) 0)
36153 if (sizeof (ac__type_new_))
36159 rm -f conftest.$ac_objext
36160 if { (ac_try="$ac_compile"
36161 case "(($ac_try" in
36162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36163 *) ac_try_echo=$ac_try;;
36165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36166 (eval "$ac_compile") 2>conftest.er1
36168 grep -v '^ *+' conftest.er1 >conftest.err
36170 cat conftest.err >&5
36171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36172 (exit $ac_status); } && {
36173 test -z "$ac_c_werror_flag" ||
36174 test ! -s conftest.err
36175 } && test -s conftest.$ac_objext; then
36176 ac_cv_type_long_int=yes
36178 echo "$as_me: failed program was:" >&5
36179 sed 's/^/| /' conftest.$ac_ext >&5
36181 ac_cv_type_long_int=no
36184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36186 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
36187 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
36189 # The cast to long int works around a bug in the HP C Compiler
36190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36192 # This bug is HP SR number 8606223364.
36193 { echo "$as_me:$LINENO: checking size of long int" >&5
36194 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
36195 if test "${ac_cv_sizeof_long_int+set}" = set; then
36196 echo $ECHO_N "(cached) $ECHO_C" >&6
36198 if test "$cross_compiling" = yes; then
36199 # Depending upon the size, compute the lo and hi bounds.
36200 cat >conftest.$ac_ext <<_ACEOF
36203 cat confdefs.h >>conftest.$ac_ext
36204 cat >>conftest.$ac_ext <<_ACEOF
36205 /* end confdefs.h. */
36206 $ac_includes_default
36207 typedef long int ac__type_sizeof_;
36211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36218 rm -f conftest.$ac_objext
36219 if { (ac_try="$ac_compile"
36220 case "(($ac_try" in
36221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36222 *) ac_try_echo=$ac_try;;
36224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36225 (eval "$ac_compile") 2>conftest.er1
36227 grep -v '^ *+' conftest.er1 >conftest.err
36229 cat conftest.err >&5
36230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36231 (exit $ac_status); } && {
36232 test -z "$ac_c_werror_flag" ||
36233 test ! -s conftest.err
36234 } && test -s conftest.$ac_objext; then
36237 cat >conftest.$ac_ext <<_ACEOF
36240 cat confdefs.h >>conftest.$ac_ext
36241 cat >>conftest.$ac_ext <<_ACEOF
36242 /* end confdefs.h. */
36243 $ac_includes_default
36244 typedef long int ac__type_sizeof_;
36248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36255 rm -f conftest.$ac_objext
36256 if { (ac_try="$ac_compile"
36257 case "(($ac_try" in
36258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36259 *) ac_try_echo=$ac_try;;
36261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36262 (eval "$ac_compile") 2>conftest.er1
36264 grep -v '^ *+' conftest.er1 >conftest.err
36266 cat conftest.err >&5
36267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36268 (exit $ac_status); } && {
36269 test -z "$ac_c_werror_flag" ||
36270 test ! -s conftest.err
36271 } && test -s conftest.$ac_objext; then
36272 ac_hi=$ac_mid; break
36274 echo "$as_me: failed program was:" >&5
36275 sed 's/^/| /' conftest.$ac_ext >&5
36277 ac_lo=`expr $ac_mid + 1`
36278 if test $ac_lo -le $ac_mid; then
36282 ac_mid=`expr 2 '*' $ac_mid + 1`
36285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36288 echo "$as_me: failed program was:" >&5
36289 sed 's/^/| /' conftest.$ac_ext >&5
36291 cat >conftest.$ac_ext <<_ACEOF
36294 cat confdefs.h >>conftest.$ac_ext
36295 cat >>conftest.$ac_ext <<_ACEOF
36296 /* end confdefs.h. */
36297 $ac_includes_default
36298 typedef long int ac__type_sizeof_;
36302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36309 rm -f conftest.$ac_objext
36310 if { (ac_try="$ac_compile"
36311 case "(($ac_try" in
36312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36313 *) ac_try_echo=$ac_try;;
36315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36316 (eval "$ac_compile") 2>conftest.er1
36318 grep -v '^ *+' conftest.er1 >conftest.err
36320 cat conftest.err >&5
36321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36322 (exit $ac_status); } && {
36323 test -z "$ac_c_werror_flag" ||
36324 test ! -s conftest.err
36325 } && test -s conftest.$ac_objext; then
36328 cat >conftest.$ac_ext <<_ACEOF
36331 cat confdefs.h >>conftest.$ac_ext
36332 cat >>conftest.$ac_ext <<_ACEOF
36333 /* end confdefs.h. */
36334 $ac_includes_default
36335 typedef long int ac__type_sizeof_;
36339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36346 rm -f conftest.$ac_objext
36347 if { (ac_try="$ac_compile"
36348 case "(($ac_try" in
36349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36350 *) ac_try_echo=$ac_try;;
36352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36353 (eval "$ac_compile") 2>conftest.er1
36355 grep -v '^ *+' conftest.er1 >conftest.err
36357 cat conftest.err >&5
36358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36359 (exit $ac_status); } && {
36360 test -z "$ac_c_werror_flag" ||
36361 test ! -s conftest.err
36362 } && test -s conftest.$ac_objext; then
36363 ac_lo=$ac_mid; break
36365 echo "$as_me: failed program was:" >&5
36366 sed 's/^/| /' conftest.$ac_ext >&5
36368 ac_hi=`expr '(' $ac_mid ')' - 1`
36369 if test $ac_mid -le $ac_hi; then
36373 ac_mid=`expr 2 '*' $ac_mid`
36376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36379 echo "$as_me: failed program was:" >&5
36380 sed 's/^/| /' conftest.$ac_ext >&5
36385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36389 # Binary search between lo and hi bounds.
36390 while test "x$ac_lo" != "x$ac_hi"; do
36391 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36392 cat >conftest.$ac_ext <<_ACEOF
36395 cat confdefs.h >>conftest.$ac_ext
36396 cat >>conftest.$ac_ext <<_ACEOF
36397 /* end confdefs.h. */
36398 $ac_includes_default
36399 typedef long int ac__type_sizeof_;
36403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36410 rm -f conftest.$ac_objext
36411 if { (ac_try="$ac_compile"
36412 case "(($ac_try" in
36413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36414 *) ac_try_echo=$ac_try;;
36416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36417 (eval "$ac_compile") 2>conftest.er1
36419 grep -v '^ *+' conftest.er1 >conftest.err
36421 cat conftest.err >&5
36422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36423 (exit $ac_status); } && {
36424 test -z "$ac_c_werror_flag" ||
36425 test ! -s conftest.err
36426 } && test -s conftest.$ac_objext; then
36429 echo "$as_me: failed program was:" >&5
36430 sed 's/^/| /' conftest.$ac_ext >&5
36432 ac_lo=`expr '(' $ac_mid ')' + 1`
36435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36438 ?*) ac_cv_sizeof_long_int=$ac_lo;;
36439 '') if test "$ac_cv_type_long_int" = yes; then
36440 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36441 See \`config.log' for more details." >&5
36442 echo "$as_me: error: cannot compute sizeof (long int)
36443 See \`config.log' for more details." >&2;}
36444 { (exit 77); exit 77; }; }
36446 ac_cv_sizeof_long_int=0
36450 cat >conftest.$ac_ext <<_ACEOF
36453 cat confdefs.h >>conftest.$ac_ext
36454 cat >>conftest.$ac_ext <<_ACEOF
36455 /* end confdefs.h. */
36456 $ac_includes_default
36457 typedef long int ac__type_sizeof_;
36458 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36459 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36461 #include <stdlib.h>
36466 FILE *f = fopen ("conftest.val", "w");
36469 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36471 long int i = longval ();
36472 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36474 fprintf (f, "%ld\n", i);
36478 unsigned long int i = ulongval ();
36479 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36481 fprintf (f, "%lu\n", i);
36483 return ferror (f) || fclose (f) != 0;
36489 rm -f conftest$ac_exeext
36490 if { (ac_try="$ac_link"
36491 case "(($ac_try" in
36492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36493 *) ac_try_echo=$ac_try;;
36495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36496 (eval "$ac_link") 2>&5
36498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36500 { (case "(($ac_try" in
36501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36502 *) ac_try_echo=$ac_try;;
36504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36505 (eval "$ac_try") 2>&5
36507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36508 (exit $ac_status); }; }; then
36509 ac_cv_sizeof_long_int=`cat conftest.val`
36511 echo "$as_me: program exited with status $ac_status" >&5
36512 echo "$as_me: failed program was:" >&5
36513 sed 's/^/| /' conftest.$ac_ext >&5
36515 ( exit $ac_status )
36516 if test "$ac_cv_type_long_int" = yes; then
36517 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
36518 See \`config.log' for more details." >&5
36519 echo "$as_me: error: cannot compute sizeof (long int)
36520 See \`config.log' for more details." >&2;}
36521 { (exit 77); exit 77; }; }
36523 ac_cv_sizeof_long_int=0
36526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36530 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
36531 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
36535 cat >>confdefs.h <<_ACEOF
36536 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
36540 { echo "$as_me:$LINENO: checking for long long int" >&5
36541 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
36542 if test "${ac_cv_type_long_long_int+set}" = set; then
36543 echo $ECHO_N "(cached) $ECHO_C" >&6
36545 cat >conftest.$ac_ext <<_ACEOF
36548 cat confdefs.h >>conftest.$ac_ext
36549 cat >>conftest.$ac_ext <<_ACEOF
36550 /* end confdefs.h. */
36551 $ac_includes_default
36552 typedef long long int ac__type_new_;
36556 if ((ac__type_new_ *) 0)
36558 if (sizeof (ac__type_new_))
36564 rm -f conftest.$ac_objext
36565 if { (ac_try="$ac_compile"
36566 case "(($ac_try" in
36567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36568 *) ac_try_echo=$ac_try;;
36570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36571 (eval "$ac_compile") 2>conftest.er1
36573 grep -v '^ *+' conftest.er1 >conftest.err
36575 cat conftest.err >&5
36576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36577 (exit $ac_status); } && {
36578 test -z "$ac_c_werror_flag" ||
36579 test ! -s conftest.err
36580 } && test -s conftest.$ac_objext; then
36581 ac_cv_type_long_long_int=yes
36583 echo "$as_me: failed program was:" >&5
36584 sed 's/^/| /' conftest.$ac_ext >&5
36586 ac_cv_type_long_long_int=no
36589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36591 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
36592 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
36594 # The cast to long int works around a bug in the HP C Compiler
36595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
36596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
36597 # This bug is HP SR number 8606223364.
36598 { echo "$as_me:$LINENO: checking size of long long int" >&5
36599 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
36600 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
36601 echo $ECHO_N "(cached) $ECHO_C" >&6
36603 if test "$cross_compiling" = yes; then
36604 # Depending upon the size, compute the lo and hi bounds.
36605 cat >conftest.$ac_ext <<_ACEOF
36608 cat confdefs.h >>conftest.$ac_ext
36609 cat >>conftest.$ac_ext <<_ACEOF
36610 /* end confdefs.h. */
36611 $ac_includes_default
36612 typedef long long int ac__type_sizeof_;
36616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
36623 rm -f conftest.$ac_objext
36624 if { (ac_try="$ac_compile"
36625 case "(($ac_try" in
36626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36627 *) ac_try_echo=$ac_try;;
36629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36630 (eval "$ac_compile") 2>conftest.er1
36632 grep -v '^ *+' conftest.er1 >conftest.err
36634 cat conftest.err >&5
36635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36636 (exit $ac_status); } && {
36637 test -z "$ac_c_werror_flag" ||
36638 test ! -s conftest.err
36639 } && test -s conftest.$ac_objext; then
36642 cat >conftest.$ac_ext <<_ACEOF
36645 cat confdefs.h >>conftest.$ac_ext
36646 cat >>conftest.$ac_ext <<_ACEOF
36647 /* end confdefs.h. */
36648 $ac_includes_default
36649 typedef long long int ac__type_sizeof_;
36653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36660 rm -f conftest.$ac_objext
36661 if { (ac_try="$ac_compile"
36662 case "(($ac_try" in
36663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36664 *) ac_try_echo=$ac_try;;
36666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36667 (eval "$ac_compile") 2>conftest.er1
36669 grep -v '^ *+' conftest.er1 >conftest.err
36671 cat conftest.err >&5
36672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36673 (exit $ac_status); } && {
36674 test -z "$ac_c_werror_flag" ||
36675 test ! -s conftest.err
36676 } && test -s conftest.$ac_objext; then
36677 ac_hi=$ac_mid; break
36679 echo "$as_me: failed program was:" >&5
36680 sed 's/^/| /' conftest.$ac_ext >&5
36682 ac_lo=`expr $ac_mid + 1`
36683 if test $ac_lo -le $ac_mid; then
36687 ac_mid=`expr 2 '*' $ac_mid + 1`
36690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36693 echo "$as_me: failed program was:" >&5
36694 sed 's/^/| /' conftest.$ac_ext >&5
36696 cat >conftest.$ac_ext <<_ACEOF
36699 cat confdefs.h >>conftest.$ac_ext
36700 cat >>conftest.$ac_ext <<_ACEOF
36701 /* end confdefs.h. */
36702 $ac_includes_default
36703 typedef long long int ac__type_sizeof_;
36707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
36714 rm -f conftest.$ac_objext
36715 if { (ac_try="$ac_compile"
36716 case "(($ac_try" in
36717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36718 *) ac_try_echo=$ac_try;;
36720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36721 (eval "$ac_compile") 2>conftest.er1
36723 grep -v '^ *+' conftest.er1 >conftest.err
36725 cat conftest.err >&5
36726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36727 (exit $ac_status); } && {
36728 test -z "$ac_c_werror_flag" ||
36729 test ! -s conftest.err
36730 } && test -s conftest.$ac_objext; then
36733 cat >conftest.$ac_ext <<_ACEOF
36736 cat confdefs.h >>conftest.$ac_ext
36737 cat >>conftest.$ac_ext <<_ACEOF
36738 /* end confdefs.h. */
36739 $ac_includes_default
36740 typedef long long int ac__type_sizeof_;
36744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
36751 rm -f conftest.$ac_objext
36752 if { (ac_try="$ac_compile"
36753 case "(($ac_try" in
36754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36755 *) ac_try_echo=$ac_try;;
36757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36758 (eval "$ac_compile") 2>conftest.er1
36760 grep -v '^ *+' conftest.er1 >conftest.err
36762 cat conftest.err >&5
36763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36764 (exit $ac_status); } && {
36765 test -z "$ac_c_werror_flag" ||
36766 test ! -s conftest.err
36767 } && test -s conftest.$ac_objext; then
36768 ac_lo=$ac_mid; break
36770 echo "$as_me: failed program was:" >&5
36771 sed 's/^/| /' conftest.$ac_ext >&5
36773 ac_hi=`expr '(' $ac_mid ')' - 1`
36774 if test $ac_mid -le $ac_hi; then
36778 ac_mid=`expr 2 '*' $ac_mid`
36781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36784 echo "$as_me: failed program was:" >&5
36785 sed 's/^/| /' conftest.$ac_ext >&5
36790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36794 # Binary search between lo and hi bounds.
36795 while test "x$ac_lo" != "x$ac_hi"; do
36796 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36797 cat >conftest.$ac_ext <<_ACEOF
36800 cat confdefs.h >>conftest.$ac_ext
36801 cat >>conftest.$ac_ext <<_ACEOF
36802 /* end confdefs.h. */
36803 $ac_includes_default
36804 typedef long long int ac__type_sizeof_;
36808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
36815 rm -f conftest.$ac_objext
36816 if { (ac_try="$ac_compile"
36817 case "(($ac_try" in
36818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36819 *) ac_try_echo=$ac_try;;
36821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36822 (eval "$ac_compile") 2>conftest.er1
36824 grep -v '^ *+' conftest.er1 >conftest.err
36826 cat conftest.err >&5
36827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36828 (exit $ac_status); } && {
36829 test -z "$ac_c_werror_flag" ||
36830 test ! -s conftest.err
36831 } && test -s conftest.$ac_objext; then
36834 echo "$as_me: failed program was:" >&5
36835 sed 's/^/| /' conftest.$ac_ext >&5
36837 ac_lo=`expr '(' $ac_mid ')' + 1`
36840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36843 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
36844 '') if test "$ac_cv_type_long_long_int" = yes; then
36845 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36846 See \`config.log' for more details." >&5
36847 echo "$as_me: error: cannot compute sizeof (long long int)
36848 See \`config.log' for more details." >&2;}
36849 { (exit 77); exit 77; }; }
36851 ac_cv_sizeof_long_long_int=0
36855 cat >conftest.$ac_ext <<_ACEOF
36858 cat confdefs.h >>conftest.$ac_ext
36859 cat >>conftest.$ac_ext <<_ACEOF
36860 /* end confdefs.h. */
36861 $ac_includes_default
36862 typedef long long int ac__type_sizeof_;
36863 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
36864 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
36866 #include <stdlib.h>
36871 FILE *f = fopen ("conftest.val", "w");
36874 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
36876 long int i = longval ();
36877 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36879 fprintf (f, "%ld\n", i);
36883 unsigned long int i = ulongval ();
36884 if (i != ((long int) (sizeof (ac__type_sizeof_))))
36886 fprintf (f, "%lu\n", i);
36888 return ferror (f) || fclose (f) != 0;
36894 rm -f conftest$ac_exeext
36895 if { (ac_try="$ac_link"
36896 case "(($ac_try" in
36897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36898 *) ac_try_echo=$ac_try;;
36900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36901 (eval "$ac_link") 2>&5
36903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36905 { (case "(($ac_try" in
36906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36907 *) ac_try_echo=$ac_try;;
36909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36910 (eval "$ac_try") 2>&5
36912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36913 (exit $ac_status); }; }; then
36914 ac_cv_sizeof_long_long_int=`cat conftest.val`
36916 echo "$as_me: program exited with status $ac_status" >&5
36917 echo "$as_me: failed program was:" >&5
36918 sed 's/^/| /' conftest.$ac_ext >&5
36920 ( exit $ac_status )
36921 if test "$ac_cv_type_long_long_int" = yes; then
36922 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
36923 See \`config.log' for more details." >&5
36924 echo "$as_me: error: cannot compute sizeof (long long int)
36925 See \`config.log' for more details." >&2;}
36926 { (exit 77); exit 77; }; }
36928 ac_cv_sizeof_long_long_int=0
36931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36935 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
36936 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
36940 cat >>confdefs.h <<_ACEOF
36941 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
36945 { echo "$as_me:$LINENO: checking for int *" >&5
36946 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
36947 if test "${ac_cv_type_int_p+set}" = set; then
36948 echo $ECHO_N "(cached) $ECHO_C" >&6
36950 cat >conftest.$ac_ext <<_ACEOF
36953 cat confdefs.h >>conftest.$ac_ext
36954 cat >>conftest.$ac_ext <<_ACEOF
36955 /* end confdefs.h. */
36956 $ac_includes_default
36957 typedef int * ac__type_new_;
36961 if ((ac__type_new_ *) 0)
36963 if (sizeof (ac__type_new_))
36969 rm -f conftest.$ac_objext
36970 if { (ac_try="$ac_compile"
36971 case "(($ac_try" in
36972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36973 *) ac_try_echo=$ac_try;;
36975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36976 (eval "$ac_compile") 2>conftest.er1
36978 grep -v '^ *+' conftest.er1 >conftest.err
36980 cat conftest.err >&5
36981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36982 (exit $ac_status); } && {
36983 test -z "$ac_c_werror_flag" ||
36984 test ! -s conftest.err
36985 } && test -s conftest.$ac_objext; then
36986 ac_cv_type_int_p=yes
36988 echo "$as_me: failed program was:" >&5
36989 sed 's/^/| /' conftest.$ac_ext >&5
36991 ac_cv_type_int_p=no
36994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36996 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
36997 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
36999 # The cast to long int works around a bug in the HP C Compiler
37000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
37001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
37002 # This bug is HP SR number 8606223364.
37003 { echo "$as_me:$LINENO: checking size of int *" >&5
37004 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
37005 if test "${ac_cv_sizeof_int_p+set}" = set; then
37006 echo $ECHO_N "(cached) $ECHO_C" >&6
37008 if test "$cross_compiling" = yes; then
37009 # Depending upon the size, compute the lo and hi bounds.
37010 cat >conftest.$ac_ext <<_ACEOF
37013 cat confdefs.h >>conftest.$ac_ext
37014 cat >>conftest.$ac_ext <<_ACEOF
37015 /* end confdefs.h. */
37016 $ac_includes_default
37017 typedef int * ac__type_sizeof_;
37021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
37028 rm -f conftest.$ac_objext
37029 if { (ac_try="$ac_compile"
37030 case "(($ac_try" in
37031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37032 *) ac_try_echo=$ac_try;;
37034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37035 (eval "$ac_compile") 2>conftest.er1
37037 grep -v '^ *+' conftest.er1 >conftest.err
37039 cat conftest.err >&5
37040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37041 (exit $ac_status); } && {
37042 test -z "$ac_c_werror_flag" ||
37043 test ! -s conftest.err
37044 } && test -s conftest.$ac_objext; then
37047 cat >conftest.$ac_ext <<_ACEOF
37050 cat confdefs.h >>conftest.$ac_ext
37051 cat >>conftest.$ac_ext <<_ACEOF
37052 /* end confdefs.h. */
37053 $ac_includes_default
37054 typedef int * ac__type_sizeof_;
37058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37065 rm -f conftest.$ac_objext
37066 if { (ac_try="$ac_compile"
37067 case "(($ac_try" in
37068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37069 *) ac_try_echo=$ac_try;;
37071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37072 (eval "$ac_compile") 2>conftest.er1
37074 grep -v '^ *+' conftest.er1 >conftest.err
37076 cat conftest.err >&5
37077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37078 (exit $ac_status); } && {
37079 test -z "$ac_c_werror_flag" ||
37080 test ! -s conftest.err
37081 } && test -s conftest.$ac_objext; then
37082 ac_hi=$ac_mid; break
37084 echo "$as_me: failed program was:" >&5
37085 sed 's/^/| /' conftest.$ac_ext >&5
37087 ac_lo=`expr $ac_mid + 1`
37088 if test $ac_lo -le $ac_mid; then
37092 ac_mid=`expr 2 '*' $ac_mid + 1`
37095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37098 echo "$as_me: failed program was:" >&5
37099 sed 's/^/| /' conftest.$ac_ext >&5
37101 cat >conftest.$ac_ext <<_ACEOF
37104 cat confdefs.h >>conftest.$ac_ext
37105 cat >>conftest.$ac_ext <<_ACEOF
37106 /* end confdefs.h. */
37107 $ac_includes_default
37108 typedef int * ac__type_sizeof_;
37112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
37119 rm -f conftest.$ac_objext
37120 if { (ac_try="$ac_compile"
37121 case "(($ac_try" in
37122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37123 *) ac_try_echo=$ac_try;;
37125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37126 (eval "$ac_compile") 2>conftest.er1
37128 grep -v '^ *+' conftest.er1 >conftest.err
37130 cat conftest.err >&5
37131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37132 (exit $ac_status); } && {
37133 test -z "$ac_c_werror_flag" ||
37134 test ! -s conftest.err
37135 } && test -s conftest.$ac_objext; then
37138 cat >conftest.$ac_ext <<_ACEOF
37141 cat confdefs.h >>conftest.$ac_ext
37142 cat >>conftest.$ac_ext <<_ACEOF
37143 /* end confdefs.h. */
37144 $ac_includes_default
37145 typedef int * ac__type_sizeof_;
37149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
37156 rm -f conftest.$ac_objext
37157 if { (ac_try="$ac_compile"
37158 case "(($ac_try" in
37159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37160 *) ac_try_echo=$ac_try;;
37162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37163 (eval "$ac_compile") 2>conftest.er1
37165 grep -v '^ *+' conftest.er1 >conftest.err
37167 cat conftest.err >&5
37168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37169 (exit $ac_status); } && {
37170 test -z "$ac_c_werror_flag" ||
37171 test ! -s conftest.err
37172 } && test -s conftest.$ac_objext; then
37173 ac_lo=$ac_mid; break
37175 echo "$as_me: failed program was:" >&5
37176 sed 's/^/| /' conftest.$ac_ext >&5
37178 ac_hi=`expr '(' $ac_mid ')' - 1`
37179 if test $ac_mid -le $ac_hi; then
37183 ac_mid=`expr 2 '*' $ac_mid`
37186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37189 echo "$as_me: failed program was:" >&5
37190 sed 's/^/| /' conftest.$ac_ext >&5
37195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37199 # Binary search between lo and hi bounds.
37200 while test "x$ac_lo" != "x$ac_hi"; do
37201 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
37202 cat >conftest.$ac_ext <<_ACEOF
37205 cat confdefs.h >>conftest.$ac_ext
37206 cat >>conftest.$ac_ext <<_ACEOF
37207 /* end confdefs.h. */
37208 $ac_includes_default
37209 typedef int * ac__type_sizeof_;
37213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
37220 rm -f conftest.$ac_objext
37221 if { (ac_try="$ac_compile"
37222 case "(($ac_try" in
37223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37224 *) ac_try_echo=$ac_try;;
37226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37227 (eval "$ac_compile") 2>conftest.er1
37229 grep -v '^ *+' conftest.er1 >conftest.err
37231 cat conftest.err >&5
37232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37233 (exit $ac_status); } && {
37234 test -z "$ac_c_werror_flag" ||
37235 test ! -s conftest.err
37236 } && test -s conftest.$ac_objext; then
37239 echo "$as_me: failed program was:" >&5
37240 sed 's/^/| /' conftest.$ac_ext >&5
37242 ac_lo=`expr '(' $ac_mid ')' + 1`
37245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37248 ?*) ac_cv_sizeof_int_p=$ac_lo;;
37249 '') if test "$ac_cv_type_int_p" = yes; then
37250 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37251 See \`config.log' for more details." >&5
37252 echo "$as_me: error: cannot compute sizeof (int *)
37253 See \`config.log' for more details." >&2;}
37254 { (exit 77); exit 77; }; }
37256 ac_cv_sizeof_int_p=0
37260 cat >conftest.$ac_ext <<_ACEOF
37263 cat confdefs.h >>conftest.$ac_ext
37264 cat >>conftest.$ac_ext <<_ACEOF
37265 /* end confdefs.h. */
37266 $ac_includes_default
37267 typedef int * ac__type_sizeof_;
37268 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
37269 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
37271 #include <stdlib.h>
37276 FILE *f = fopen ("conftest.val", "w");
37279 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
37281 long int i = longval ();
37282 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37284 fprintf (f, "%ld\n", i);
37288 unsigned long int i = ulongval ();
37289 if (i != ((long int) (sizeof (ac__type_sizeof_))))
37291 fprintf (f, "%lu\n", i);
37293 return ferror (f) || fclose (f) != 0;
37299 rm -f conftest$ac_exeext
37300 if { (ac_try="$ac_link"
37301 case "(($ac_try" in
37302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37303 *) ac_try_echo=$ac_try;;
37305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37306 (eval "$ac_link") 2>&5
37308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37310 { (case "(($ac_try" in
37311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37312 *) ac_try_echo=$ac_try;;
37314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37315 (eval "$ac_try") 2>&5
37317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37318 (exit $ac_status); }; }; then
37319 ac_cv_sizeof_int_p=`cat conftest.val`
37321 echo "$as_me: program exited with status $ac_status" >&5
37322 echo "$as_me: failed program was:" >&5
37323 sed 's/^/| /' conftest.$ac_ext >&5
37325 ( exit $ac_status )
37326 if test "$ac_cv_type_int_p" = yes; then
37327 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
37328 See \`config.log' for more details." >&5
37329 echo "$as_me: error: cannot compute sizeof (int *)
37330 See \`config.log' for more details." >&2;}
37331 { (exit 77); exit 77; }; }
37333 ac_cv_sizeof_int_p=0
37336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37340 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
37341 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
37345 cat >>confdefs.h <<_ACEOF
37346 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
37351 { echo "$as_me:$LINENO: checking for u_int type" >&5
37352 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
37353 if test "${ac_cv_have_u_int+set}" = set; then
37354 echo $ECHO_N "(cached) $ECHO_C" >&6
37357 cat >conftest.$ac_ext <<_ACEOF
37360 cat confdefs.h >>conftest.$ac_ext
37361 cat >>conftest.$ac_ext <<_ACEOF
37362 /* end confdefs.h. */
37364 #include <sys/types.h>
37376 rm -f conftest.$ac_objext
37377 if { (ac_try="$ac_compile"
37378 case "(($ac_try" in
37379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37380 *) ac_try_echo=$ac_try;;
37382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37383 (eval "$ac_compile") 2>conftest.er1
37385 grep -v '^ *+' conftest.er1 >conftest.err
37387 cat conftest.err >&5
37388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389 (exit $ac_status); } && {
37390 test -z "$ac_c_werror_flag" ||
37391 test ! -s conftest.err
37392 } && test -s conftest.$ac_objext; then
37394 ac_cv_have_u_int="yes"
37397 echo "$as_me: failed program was:" >&5
37398 sed 's/^/| /' conftest.$ac_ext >&5
37401 ac_cv_have_u_int="no"
37406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37410 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
37411 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
37412 if test "x$ac_cv_have_u_int" = "xyes" ; then
37413 cat >>confdefs.h <<\_ACEOF
37414 #define HAVE_U_INT 1
37420 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
37421 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
37422 if test "${ac_cv_have_intmax_t+set}" = set; then
37423 echo $ECHO_N "(cached) $ECHO_C" >&6
37426 cat >conftest.$ac_ext <<_ACEOF
37429 cat confdefs.h >>conftest.$ac_ext
37430 cat >>conftest.$ac_ext <<_ACEOF
37431 /* end confdefs.h. */
37433 #include <sys/types.h>
37445 rm -f conftest.$ac_objext
37446 if { (ac_try="$ac_compile"
37447 case "(($ac_try" in
37448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37449 *) ac_try_echo=$ac_try;;
37451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37452 (eval "$ac_compile") 2>conftest.er1
37454 grep -v '^ *+' conftest.er1 >conftest.err
37456 cat conftest.err >&5
37457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37458 (exit $ac_status); } && {
37459 test -z "$ac_c_werror_flag" ||
37460 test ! -s conftest.err
37461 } && test -s conftest.$ac_objext; then
37463 ac_cv_have_intmax_t="yes"
37466 echo "$as_me: failed program was:" >&5
37467 sed 's/^/| /' conftest.$ac_ext >&5
37470 cat >conftest.$ac_ext <<_ACEOF
37473 cat confdefs.h >>conftest.$ac_ext
37474 cat >>conftest.$ac_ext <<_ACEOF
37475 /* end confdefs.h. */
37477 #include <stdint.h>
37489 rm -f conftest.$ac_objext
37490 if { (ac_try="$ac_compile"
37491 case "(($ac_try" in
37492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37493 *) ac_try_echo=$ac_try;;
37495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37496 (eval "$ac_compile") 2>conftest.er1
37498 grep -v '^ *+' conftest.er1 >conftest.err
37500 cat conftest.err >&5
37501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502 (exit $ac_status); } && {
37503 test -z "$ac_c_werror_flag" ||
37504 test ! -s conftest.err
37505 } && test -s conftest.$ac_objext; then
37507 ac_cv_have_intmax_t="yes"
37510 echo "$as_me: failed program was:" >&5
37511 sed 's/^/| /' conftest.$ac_ext >&5
37514 ac_cv_have_intmax_t="no"
37519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37528 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
37529 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
37530 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
37531 cat >>confdefs.h <<\_ACEOF
37532 #define HAVE_INTMAX_T 1
37538 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
37539 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
37540 if test "${ac_cv_have_u_intmax_t+set}" = set; then
37541 echo $ECHO_N "(cached) $ECHO_C" >&6
37544 cat >conftest.$ac_ext <<_ACEOF
37547 cat confdefs.h >>conftest.$ac_ext
37548 cat >>conftest.$ac_ext <<_ACEOF
37549 /* end confdefs.h. */
37551 #include <sys/types.h>
37557 u_intmax_t a; a = 1;
37563 rm -f conftest.$ac_objext
37564 if { (ac_try="$ac_compile"
37565 case "(($ac_try" in
37566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37567 *) ac_try_echo=$ac_try;;
37569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37570 (eval "$ac_compile") 2>conftest.er1
37572 grep -v '^ *+' conftest.er1 >conftest.err
37574 cat conftest.err >&5
37575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37576 (exit $ac_status); } && {
37577 test -z "$ac_c_werror_flag" ||
37578 test ! -s conftest.err
37579 } && test -s conftest.$ac_objext; then
37581 ac_cv_have_u_intmax_t="yes"
37584 echo "$as_me: failed program was:" >&5
37585 sed 's/^/| /' conftest.$ac_ext >&5
37588 cat >conftest.$ac_ext <<_ACEOF
37591 cat confdefs.h >>conftest.$ac_ext
37592 cat >>conftest.$ac_ext <<_ACEOF
37593 /* end confdefs.h. */
37595 #include <stdint.h>
37601 u_intmax_t a; a = 1;
37607 rm -f conftest.$ac_objext
37608 if { (ac_try="$ac_compile"
37609 case "(($ac_try" in
37610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37611 *) ac_try_echo=$ac_try;;
37613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37614 (eval "$ac_compile") 2>conftest.er1
37616 grep -v '^ *+' conftest.er1 >conftest.err
37618 cat conftest.err >&5
37619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37620 (exit $ac_status); } && {
37621 test -z "$ac_c_werror_flag" ||
37622 test ! -s conftest.err
37623 } && test -s conftest.$ac_objext; then
37625 ac_cv_have_u_intmax_t="yes"
37628 echo "$as_me: failed program was:" >&5
37629 sed 's/^/| /' conftest.$ac_ext >&5
37632 ac_cv_have_u_intmax_t="no"
37637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37646 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
37647 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
37648 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
37649 cat >>confdefs.h <<\_ACEOF
37650 #define HAVE_U_INTMAX_T 1
37656 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
37657 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
37658 if test "${ac_cv_have_intxx_t+set}" = set; then
37659 echo $ECHO_N "(cached) $ECHO_C" >&6
37662 cat >conftest.$ac_ext <<_ACEOF
37665 cat confdefs.h >>conftest.$ac_ext
37666 cat >>conftest.$ac_ext <<_ACEOF
37667 /* end confdefs.h. */
37669 #include <sys/types.h>
37675 int8_t a; int16_t b; int32_t c; a = b = c = 1;
37681 rm -f conftest.$ac_objext
37682 if { (ac_try="$ac_compile"
37683 case "(($ac_try" in
37684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37685 *) ac_try_echo=$ac_try;;
37687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37688 (eval "$ac_compile") 2>conftest.er1
37690 grep -v '^ *+' conftest.er1 >conftest.err
37692 cat conftest.err >&5
37693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37694 (exit $ac_status); } && {
37695 test -z "$ac_c_werror_flag" ||
37696 test ! -s conftest.err
37697 } && test -s conftest.$ac_objext; then
37699 ac_cv_have_intxx_t="yes"
37702 echo "$as_me: failed program was:" >&5
37703 sed 's/^/| /' conftest.$ac_ext >&5
37706 ac_cv_have_intxx_t="no"
37711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37715 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
37716 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
37717 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
37718 cat >>confdefs.h <<\_ACEOF
37719 #define HAVE_INTXX_T 1
37725 { echo "$as_me:$LINENO: checking for int64_t type" >&5
37726 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
37727 if test "${ac_cv_have_int64_t+set}" = set; then
37728 echo $ECHO_N "(cached) $ECHO_C" >&6
37731 cat >conftest.$ac_ext <<_ACEOF
37734 cat confdefs.h >>conftest.$ac_ext
37735 cat >>conftest.$ac_ext <<_ACEOF
37736 /* end confdefs.h. */
37738 #include <sys/types.h>
37750 rm -f conftest.$ac_objext
37751 if { (ac_try="$ac_compile"
37752 case "(($ac_try" in
37753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37754 *) ac_try_echo=$ac_try;;
37756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37757 (eval "$ac_compile") 2>conftest.er1
37759 grep -v '^ *+' conftest.er1 >conftest.err
37761 cat conftest.err >&5
37762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37763 (exit $ac_status); } && {
37764 test -z "$ac_c_werror_flag" ||
37765 test ! -s conftest.err
37766 } && test -s conftest.$ac_objext; then
37768 ac_cv_have_int64_t="yes"
37771 echo "$as_me: failed program was:" >&5
37772 sed 's/^/| /' conftest.$ac_ext >&5
37775 ac_cv_have_int64_t="no"
37780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37784 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
37785 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
37786 if test "x$ac_cv_have_int64_t" = "xyes" ; then
37787 cat >>confdefs.h <<\_ACEOF
37788 #define HAVE_INT64_T 1
37794 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
37795 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
37796 if test "${ac_cv_have_u_intxx_t+set}" = set; then
37797 echo $ECHO_N "(cached) $ECHO_C" >&6
37800 cat >conftest.$ac_ext <<_ACEOF
37803 cat confdefs.h >>conftest.$ac_ext
37804 cat >>conftest.$ac_ext <<_ACEOF
37805 /* end confdefs.h. */
37807 #include <sys/types.h>
37813 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
37819 rm -f conftest.$ac_objext
37820 if { (ac_try="$ac_compile"
37821 case "(($ac_try" in
37822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37823 *) ac_try_echo=$ac_try;;
37825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37826 (eval "$ac_compile") 2>conftest.er1
37828 grep -v '^ *+' conftest.er1 >conftest.err
37830 cat conftest.err >&5
37831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37832 (exit $ac_status); } && {
37833 test -z "$ac_c_werror_flag" ||
37834 test ! -s conftest.err
37835 } && test -s conftest.$ac_objext; then
37837 ac_cv_have_u_intxx_t="yes"
37840 echo "$as_me: failed program was:" >&5
37841 sed 's/^/| /' conftest.$ac_ext >&5
37844 ac_cv_have_u_intxx_t="no"
37849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37853 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
37854 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
37855 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
37856 cat >>confdefs.h <<\_ACEOF
37857 #define HAVE_U_INTXX_T 1
37863 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
37864 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
37865 if test "${ac_cv_have_u_int64_t+set}" = set; then
37866 echo $ECHO_N "(cached) $ECHO_C" >&6
37869 cat >conftest.$ac_ext <<_ACEOF
37872 cat confdefs.h >>conftest.$ac_ext
37873 cat >>conftest.$ac_ext <<_ACEOF
37874 /* end confdefs.h. */
37876 #include <sys/types.h>
37882 u_int64_t a; a = 1;
37888 rm -f conftest.$ac_objext
37889 if { (ac_try="$ac_compile"
37890 case "(($ac_try" in
37891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37892 *) ac_try_echo=$ac_try;;
37894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37895 (eval "$ac_compile") 2>conftest.er1
37897 grep -v '^ *+' conftest.er1 >conftest.err
37899 cat conftest.err >&5
37900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37901 (exit $ac_status); } && {
37902 test -z "$ac_c_werror_flag" ||
37903 test ! -s conftest.err
37904 } && test -s conftest.$ac_objext; then
37906 ac_cv_have_u_int64_t="yes"
37909 echo "$as_me: failed program was:" >&5
37910 sed 's/^/| /' conftest.$ac_ext >&5
37913 ac_cv_have_u_int64_t="no"
37918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37922 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
37923 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
37924 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
37925 cat >>confdefs.h <<\_ACEOF
37926 #define HAVE_U_INT64_T 1
37932 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
37933 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
37935 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
37936 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
37937 cat >conftest.$ac_ext <<_ACEOF
37940 cat confdefs.h >>conftest.$ac_ext
37941 cat >>conftest.$ac_ext <<_ACEOF
37942 /* end confdefs.h. */
37944 #include <sys/bitypes.h>
37950 int8_t a; int16_t b; int32_t c;
37951 u_int8_t e; u_int16_t f; u_int32_t g;
37952 a = b = c = e = f = g = 1;
37958 rm -f conftest.$ac_objext
37959 if { (ac_try="$ac_compile"
37960 case "(($ac_try" in
37961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37962 *) ac_try_echo=$ac_try;;
37964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37965 (eval "$ac_compile") 2>conftest.er1
37967 grep -v '^ *+' conftest.er1 >conftest.err
37969 cat conftest.err >&5
37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971 (exit $ac_status); } && {
37972 test -z "$ac_c_werror_flag" ||
37973 test ! -s conftest.err
37974 } && test -s conftest.$ac_objext; then
37976 cat >>confdefs.h <<\_ACEOF
37977 #define HAVE_U_INTXX_T 1
37980 cat >>confdefs.h <<\_ACEOF
37981 #define HAVE_INTXX_T 1
37984 cat >>confdefs.h <<\_ACEOF
37985 #define HAVE_SYS_BITYPES_H 1
37988 { echo "$as_me:$LINENO: result: yes" >&5
37989 echo "${ECHO_T}yes" >&6; }
37992 echo "$as_me: failed program was:" >&5
37993 sed 's/^/| /' conftest.$ac_ext >&5
37996 { echo "$as_me:$LINENO: result: no" >&5
37997 echo "${ECHO_T}no" >&6; }
38002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38005 if test -z "$have_u_intxx_t" ; then
38006 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
38007 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
38008 if test "${ac_cv_have_uintxx_t+set}" = set; then
38009 echo $ECHO_N "(cached) $ECHO_C" >&6
38012 cat >conftest.$ac_ext <<_ACEOF
38015 cat confdefs.h >>conftest.$ac_ext
38016 cat >>conftest.$ac_ext <<_ACEOF
38017 /* end confdefs.h. */
38019 #include <sys/types.h>
38025 uint8_t a; uint16_t b;
38026 uint32_t c; a = b = c = 1;
38032 rm -f conftest.$ac_objext
38033 if { (ac_try="$ac_compile"
38034 case "(($ac_try" in
38035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38036 *) ac_try_echo=$ac_try;;
38038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38039 (eval "$ac_compile") 2>conftest.er1
38041 grep -v '^ *+' conftest.er1 >conftest.err
38043 cat conftest.err >&5
38044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38045 (exit $ac_status); } && {
38046 test -z "$ac_c_werror_flag" ||
38047 test ! -s conftest.err
38048 } && test -s conftest.$ac_objext; then
38050 ac_cv_have_uintxx_t="yes"
38053 echo "$as_me: failed program was:" >&5
38054 sed 's/^/| /' conftest.$ac_ext >&5
38057 ac_cv_have_uintxx_t="no"
38062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38066 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
38067 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
38068 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
38069 cat >>confdefs.h <<\_ACEOF
38070 #define HAVE_UINTXX_T 1
38076 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
38077 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38079 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
38080 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
38081 cat >conftest.$ac_ext <<_ACEOF
38084 cat confdefs.h >>conftest.$ac_ext
38085 cat >>conftest.$ac_ext <<_ACEOF
38086 /* end confdefs.h. */
38088 #include <sys/bitypes.h>
38094 int64_t a; u_int64_t b;
38101 rm -f conftest.$ac_objext
38102 if { (ac_try="$ac_compile"
38103 case "(($ac_try" in
38104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38105 *) ac_try_echo=$ac_try;;
38107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38108 (eval "$ac_compile") 2>conftest.er1
38110 grep -v '^ *+' conftest.er1 >conftest.err
38112 cat conftest.err >&5
38113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38114 (exit $ac_status); } && {
38115 test -z "$ac_c_werror_flag" ||
38116 test ! -s conftest.err
38117 } && test -s conftest.$ac_objext; then
38119 cat >>confdefs.h <<\_ACEOF
38120 #define HAVE_U_INT64_T 1
38123 cat >>confdefs.h <<\_ACEOF
38124 #define HAVE_INT64_T 1
38127 { echo "$as_me:$LINENO: result: yes" >&5
38128 echo "${ECHO_T}yes" >&6; }
38131 echo "$as_me: failed program was:" >&5
38132 sed 's/^/| /' conftest.$ac_ext >&5
38135 { echo "$as_me:$LINENO: result: no" >&5
38136 echo "${ECHO_T}no" >&6; }
38141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38144 if (test -z "$have_uintxx_t" && \
38145 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
38147 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
38148 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
38149 cat >conftest.$ac_ext <<_ACEOF
38152 cat confdefs.h >>conftest.$ac_ext
38153 cat >>conftest.$ac_ext <<_ACEOF
38154 /* end confdefs.h. */
38156 #include <sys/bitypes.h>
38162 uint8_t a; uint16_t b;
38163 uint32_t c; a = b = c = 1;
38169 rm -f conftest.$ac_objext
38170 if { (ac_try="$ac_compile"
38171 case "(($ac_try" in
38172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38173 *) ac_try_echo=$ac_try;;
38175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38176 (eval "$ac_compile") 2>conftest.er1
38178 grep -v '^ *+' conftest.er1 >conftest.err
38180 cat conftest.err >&5
38181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182 (exit $ac_status); } && {
38183 test -z "$ac_c_werror_flag" ||
38184 test ! -s conftest.err
38185 } && test -s conftest.$ac_objext; then
38187 cat >>confdefs.h <<\_ACEOF
38188 #define HAVE_UINTXX_T 1
38191 { echo "$as_me:$LINENO: result: yes" >&5
38192 echo "${ECHO_T}yes" >&6; }
38195 echo "$as_me: failed program was:" >&5
38196 sed 's/^/| /' conftest.$ac_ext >&5
38199 { echo "$as_me:$LINENO: result: no" >&5
38200 echo "${ECHO_T}no" >&6; }
38205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38237 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38238 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38239 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38240 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38241 echo $ECHO_N "(cached) $ECHO_C" >&6
38243 cat >conftest.$ac_ext <<_ACEOF
38246 cat confdefs.h >>conftest.$ac_ext
38247 cat >>conftest.$ac_ext <<_ACEOF
38248 /* end confdefs.h. */
38249 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38250 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38251 #define $ac_func innocuous_$ac_func
38253 /* System header to define __stub macros and hopefully few prototypes,
38254 which can conflict with char $ac_func (); below.
38255 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38256 <limits.h> exists even on freestanding compilers. */
38259 # include <limits.h>
38261 # include <assert.h>
38266 /* Override any GCC internal prototype to avoid an error.
38267 Use char because int might match the return type of a GCC
38268 builtin and then its argument prototype would still apply. */
38273 /* The GNU C library defines this for functions which it implements
38274 to always fail with ENOSYS. Some functions are actually named
38275 something starting with __ and the normal name is an alias. */
38276 #if defined __stub_$ac_func || defined __stub___$ac_func
38283 return $ac_func ();
38288 rm -f conftest.$ac_objext conftest$ac_exeext
38289 if { (ac_try="$ac_link"
38290 case "(($ac_try" in
38291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38292 *) ac_try_echo=$ac_try;;
38294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38295 (eval "$ac_link") 2>conftest.er1
38297 grep -v '^ *+' conftest.er1 >conftest.err
38299 cat conftest.err >&5
38300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38301 (exit $ac_status); } && {
38302 test -z "$ac_c_werror_flag" ||
38303 test ! -s conftest.err
38304 } && test -s conftest$ac_exeext &&
38305 $as_test_x conftest$ac_exeext; then
38306 eval "$as_ac_var=yes"
38308 echo "$as_me: failed program was:" >&5
38309 sed 's/^/| /' conftest.$ac_ext >&5
38311 eval "$as_ac_var=no"
38314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38315 conftest$ac_exeext conftest.$ac_ext
38317 ac_res=`eval echo '${'$as_ac_var'}'`
38318 { echo "$as_me:$LINENO: result: $ac_res" >&5
38319 echo "${ECHO_T}$ac_res" >&6; }
38320 if test `eval echo '${'$as_ac_var'}'` = yes; then
38321 cat >>confdefs.h <<_ACEOF
38322 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38326 echo 'configure: cannot find needed function.'; exit 1
38333 for ac_func in fchdir
38335 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38336 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38337 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38338 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38339 echo $ECHO_N "(cached) $ECHO_C" >&6
38341 cat >conftest.$ac_ext <<_ACEOF
38344 cat confdefs.h >>conftest.$ac_ext
38345 cat >>conftest.$ac_ext <<_ACEOF
38346 /* end confdefs.h. */
38347 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38349 #define $ac_func innocuous_$ac_func
38351 /* System header to define __stub macros and hopefully few prototypes,
38352 which can conflict with char $ac_func (); below.
38353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38354 <limits.h> exists even on freestanding compilers. */
38357 # include <limits.h>
38359 # include <assert.h>
38364 /* Override any GCC internal prototype to avoid an error.
38365 Use char because int might match the return type of a GCC
38366 builtin and then its argument prototype would still apply. */
38371 /* The GNU C library defines this for functions which it implements
38372 to always fail with ENOSYS. Some functions are actually named
38373 something starting with __ and the normal name is an alias. */
38374 #if defined __stub_$ac_func || defined __stub___$ac_func
38381 return $ac_func ();
38386 rm -f conftest.$ac_objext conftest$ac_exeext
38387 if { (ac_try="$ac_link"
38388 case "(($ac_try" in
38389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38390 *) ac_try_echo=$ac_try;;
38392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38393 (eval "$ac_link") 2>conftest.er1
38395 grep -v '^ *+' conftest.er1 >conftest.err
38397 cat conftest.err >&5
38398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38399 (exit $ac_status); } && {
38400 test -z "$ac_c_werror_flag" ||
38401 test ! -s conftest.err
38402 } && test -s conftest$ac_exeext &&
38403 $as_test_x conftest$ac_exeext; then
38404 eval "$as_ac_var=yes"
38406 echo "$as_me: failed program was:" >&5
38407 sed 's/^/| /' conftest.$ac_ext >&5
38409 eval "$as_ac_var=no"
38412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38413 conftest$ac_exeext conftest.$ac_ext
38415 ac_res=`eval echo '${'$as_ac_var'}'`
38416 { echo "$as_me:$LINENO: result: $ac_res" >&5
38417 echo "${ECHO_T}$ac_res" >&6; }
38418 if test `eval echo '${'$as_ac_var'}'` = yes; then
38419 cat >>confdefs.h <<_ACEOF
38420 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38422 cat >>confdefs.h <<\_ACEOF
38423 #define HAVE_FCHDIR 1
38430 for ac_func in strtoll
38432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38433 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38435 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38436 echo $ECHO_N "(cached) $ECHO_C" >&6
38438 cat >conftest.$ac_ext <<_ACEOF
38441 cat confdefs.h >>conftest.$ac_ext
38442 cat >>conftest.$ac_ext <<_ACEOF
38443 /* end confdefs.h. */
38444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38446 #define $ac_func innocuous_$ac_func
38448 /* System header to define __stub macros and hopefully few prototypes,
38449 which can conflict with char $ac_func (); below.
38450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38451 <limits.h> exists even on freestanding compilers. */
38454 # include <limits.h>
38456 # include <assert.h>
38461 /* Override any GCC internal prototype to avoid an error.
38462 Use char because int might match the return type of a GCC
38463 builtin and then its argument prototype would still apply. */
38468 /* The GNU C library defines this for functions which it implements
38469 to always fail with ENOSYS. Some functions are actually named
38470 something starting with __ and the normal name is an alias. */
38471 #if defined __stub_$ac_func || defined __stub___$ac_func
38478 return $ac_func ();
38483 rm -f conftest.$ac_objext conftest$ac_exeext
38484 if { (ac_try="$ac_link"
38485 case "(($ac_try" in
38486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38487 *) ac_try_echo=$ac_try;;
38489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38490 (eval "$ac_link") 2>conftest.er1
38492 grep -v '^ *+' conftest.er1 >conftest.err
38494 cat conftest.err >&5
38495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38496 (exit $ac_status); } && {
38497 test -z "$ac_c_werror_flag" ||
38498 test ! -s conftest.err
38499 } && test -s conftest$ac_exeext &&
38500 $as_test_x conftest$ac_exeext; then
38501 eval "$as_ac_var=yes"
38503 echo "$as_me: failed program was:" >&5
38504 sed 's/^/| /' conftest.$ac_ext >&5
38506 eval "$as_ac_var=no"
38509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38510 conftest$ac_exeext conftest.$ac_ext
38512 ac_res=`eval echo '${'$as_ac_var'}'`
38513 { echo "$as_me:$LINENO: result: $ac_res" >&5
38514 echo "${ECHO_T}$ac_res" >&6; }
38515 if test `eval echo '${'$as_ac_var'}'` = yes; then
38516 cat >>confdefs.h <<_ACEOF
38517 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38519 cat >>confdefs.h <<\_ACEOF
38520 #define HAVE_STRTOLL 1
38527 for ac_func in posix_fadvise
38529 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38530 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38531 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38532 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38533 echo $ECHO_N "(cached) $ECHO_C" >&6
38535 cat >conftest.$ac_ext <<_ACEOF
38538 cat confdefs.h >>conftest.$ac_ext
38539 cat >>conftest.$ac_ext <<_ACEOF
38540 /* end confdefs.h. */
38541 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38542 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38543 #define $ac_func innocuous_$ac_func
38545 /* System header to define __stub macros and hopefully few prototypes,
38546 which can conflict with char $ac_func (); below.
38547 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38548 <limits.h> exists even on freestanding compilers. */
38551 # include <limits.h>
38553 # include <assert.h>
38558 /* Override any GCC internal prototype to avoid an error.
38559 Use char because int might match the return type of a GCC
38560 builtin and then its argument prototype would still apply. */
38565 /* The GNU C library defines this for functions which it implements
38566 to always fail with ENOSYS. Some functions are actually named
38567 something starting with __ and the normal name is an alias. */
38568 #if defined __stub_$ac_func || defined __stub___$ac_func
38575 return $ac_func ();
38580 rm -f conftest.$ac_objext conftest$ac_exeext
38581 if { (ac_try="$ac_link"
38582 case "(($ac_try" in
38583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38584 *) ac_try_echo=$ac_try;;
38586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38587 (eval "$ac_link") 2>conftest.er1
38589 grep -v '^ *+' conftest.er1 >conftest.err
38591 cat conftest.err >&5
38592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38593 (exit $ac_status); } && {
38594 test -z "$ac_c_werror_flag" ||
38595 test ! -s conftest.err
38596 } && test -s conftest$ac_exeext &&
38597 $as_test_x conftest$ac_exeext; then
38598 eval "$as_ac_var=yes"
38600 echo "$as_me: failed program was:" >&5
38601 sed 's/^/| /' conftest.$ac_ext >&5
38603 eval "$as_ac_var=no"
38606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38607 conftest$ac_exeext conftest.$ac_ext
38609 ac_res=`eval echo '${'$as_ac_var'}'`
38610 { echo "$as_me:$LINENO: result: $ac_res" >&5
38611 echo "${ECHO_T}$ac_res" >&6; }
38612 if test `eval echo '${'$as_ac_var'}'` = yes; then
38613 cat >>confdefs.h <<_ACEOF
38614 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38621 for ac_func in fdatasync
38623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38624 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38626 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38627 echo $ECHO_N "(cached) $ECHO_C" >&6
38629 cat >conftest.$ac_ext <<_ACEOF
38632 cat confdefs.h >>conftest.$ac_ext
38633 cat >>conftest.$ac_ext <<_ACEOF
38634 /* end confdefs.h. */
38635 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38636 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38637 #define $ac_func innocuous_$ac_func
38639 /* System header to define __stub macros and hopefully few prototypes,
38640 which can conflict with char $ac_func (); below.
38641 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38642 <limits.h> exists even on freestanding compilers. */
38645 # include <limits.h>
38647 # include <assert.h>
38652 /* Override any GCC internal prototype to avoid an error.
38653 Use char because int might match the return type of a GCC
38654 builtin and then its argument prototype would still apply. */
38659 /* The GNU C library defines this for functions which it implements
38660 to always fail with ENOSYS. Some functions are actually named
38661 something starting with __ and the normal name is an alias. */
38662 #if defined __stub_$ac_func || defined __stub___$ac_func
38669 return $ac_func ();
38674 rm -f conftest.$ac_objext conftest$ac_exeext
38675 if { (ac_try="$ac_link"
38676 case "(($ac_try" in
38677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38678 *) ac_try_echo=$ac_try;;
38680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38681 (eval "$ac_link") 2>conftest.er1
38683 grep -v '^ *+' conftest.er1 >conftest.err
38685 cat conftest.err >&5
38686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38687 (exit $ac_status); } && {
38688 test -z "$ac_c_werror_flag" ||
38689 test ! -s conftest.err
38690 } && test -s conftest$ac_exeext &&
38691 $as_test_x conftest$ac_exeext; then
38692 eval "$as_ac_var=yes"
38694 echo "$as_me: failed program was:" >&5
38695 sed 's/^/| /' conftest.$ac_ext >&5
38697 eval "$as_ac_var=no"
38700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38701 conftest$ac_exeext conftest.$ac_ext
38703 ac_res=`eval echo '${'$as_ac_var'}'`
38704 { echo "$as_me:$LINENO: result: $ac_res" >&5
38705 echo "${ECHO_T}$ac_res" >&6; }
38706 if test `eval echo '${'$as_ac_var'}'` = yes; then
38707 cat >>confdefs.h <<_ACEOF
38708 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38716 for ac_func in chflags
38718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38722 echo $ECHO_N "(cached) $ECHO_C" >&6
38724 cat >conftest.$ac_ext <<_ACEOF
38727 cat confdefs.h >>conftest.$ac_ext
38728 cat >>conftest.$ac_ext <<_ACEOF
38729 /* end confdefs.h. */
38730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38731 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38732 #define $ac_func innocuous_$ac_func
38734 /* System header to define __stub macros and hopefully few prototypes,
38735 which can conflict with char $ac_func (); below.
38736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38737 <limits.h> exists even on freestanding compilers. */
38740 # include <limits.h>
38742 # include <assert.h>
38747 /* Override any GCC internal prototype to avoid an error.
38748 Use char because int might match the return type of a GCC
38749 builtin and then its argument prototype would still apply. */
38754 /* The GNU C library defines this for functions which it implements
38755 to always fail with ENOSYS. Some functions are actually named
38756 something starting with __ and the normal name is an alias. */
38757 #if defined __stub_$ac_func || defined __stub___$ac_func
38764 return $ac_func ();
38769 rm -f conftest.$ac_objext conftest$ac_exeext
38770 if { (ac_try="$ac_link"
38771 case "(($ac_try" in
38772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38773 *) ac_try_echo=$ac_try;;
38775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38776 (eval "$ac_link") 2>conftest.er1
38778 grep -v '^ *+' conftest.er1 >conftest.err
38780 cat conftest.err >&5
38781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38782 (exit $ac_status); } && {
38783 test -z "$ac_c_werror_flag" ||
38784 test ! -s conftest.err
38785 } && test -s conftest$ac_exeext &&
38786 $as_test_x conftest$ac_exeext; then
38787 eval "$as_ac_var=yes"
38789 echo "$as_me: failed program was:" >&5
38790 sed 's/^/| /' conftest.$ac_ext >&5
38792 eval "$as_ac_var=no"
38795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38796 conftest$ac_exeext conftest.$ac_ext
38798 ac_res=`eval echo '${'$as_ac_var'}'`
38799 { echo "$as_me:$LINENO: result: $ac_res" >&5
38800 echo "${ECHO_T}$ac_res" >&6; }
38801 if test `eval echo '${'$as_ac_var'}'` = yes; then
38802 cat >>confdefs.h <<_ACEOF
38803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38814 for ac_func in snprintf vsnprintf gethostid fseeko
38816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38820 echo $ECHO_N "(cached) $ECHO_C" >&6
38822 cat >conftest.$ac_ext <<_ACEOF
38825 cat confdefs.h >>conftest.$ac_ext
38826 cat >>conftest.$ac_ext <<_ACEOF
38827 /* end confdefs.h. */
38828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38830 #define $ac_func innocuous_$ac_func
38832 /* System header to define __stub macros and hopefully few prototypes,
38833 which can conflict with char $ac_func (); below.
38834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38835 <limits.h> exists even on freestanding compilers. */
38838 # include <limits.h>
38840 # include <assert.h>
38845 /* Override any GCC internal prototype to avoid an error.
38846 Use char because int might match the return type of a GCC
38847 builtin and then its argument prototype would still apply. */
38852 /* The GNU C library defines this for functions which it implements
38853 to always fail with ENOSYS. Some functions are actually named
38854 something starting with __ and the normal name is an alias. */
38855 #if defined __stub_$ac_func || defined __stub___$ac_func
38862 return $ac_func ();
38867 rm -f conftest.$ac_objext conftest$ac_exeext
38868 if { (ac_try="$ac_link"
38869 case "(($ac_try" in
38870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38871 *) ac_try_echo=$ac_try;;
38873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38874 (eval "$ac_link") 2>conftest.er1
38876 grep -v '^ *+' conftest.er1 >conftest.err
38878 cat conftest.err >&5
38879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38880 (exit $ac_status); } && {
38881 test -z "$ac_c_werror_flag" ||
38882 test ! -s conftest.err
38883 } && test -s conftest$ac_exeext &&
38884 $as_test_x conftest$ac_exeext; then
38885 eval "$as_ac_var=yes"
38887 echo "$as_me: failed program was:" >&5
38888 sed 's/^/| /' conftest.$ac_ext >&5
38890 eval "$as_ac_var=no"
38893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38894 conftest$ac_exeext conftest.$ac_ext
38896 ac_res=`eval echo '${'$as_ac_var'}'`
38897 { echo "$as_me:$LINENO: result: $ac_res" >&5
38898 echo "${ECHO_T}$ac_res" >&6; }
38899 if test `eval echo '${'$as_ac_var'}'` = yes; then
38900 cat >>confdefs.h <<_ACEOF
38901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38908 { echo "$as_me:$LINENO: checking for va_copy" >&5
38909 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
38910 if test "${ba_cv_va_copy+set}" = set; then
38911 echo $ECHO_N "(cached) $ECHO_C" >&6
38914 cat >conftest.$ac_ext <<_ACEOF
38917 cat confdefs.h >>conftest.$ac_ext
38918 cat >>conftest.$ac_ext <<_ACEOF
38919 /* end confdefs.h. */
38921 #include <stdarg.h>
38922 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
38923 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
38929 call_use_va_copy(1,2,3)
38935 rm -f conftest.$ac_objext conftest$ac_exeext
38936 if { (ac_try="$ac_link"
38937 case "(($ac_try" in
38938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38939 *) ac_try_echo=$ac_try;;
38941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38942 (eval "$ac_link") 2>conftest.er1
38944 grep -v '^ *+' conftest.er1 >conftest.err
38946 cat conftest.err >&5
38947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38948 (exit $ac_status); } && {
38949 test -z "$ac_c_werror_flag" ||
38950 test ! -s conftest.err
38951 } && test -s conftest$ac_exeext &&
38952 $as_test_x conftest$ac_exeext; then
38957 echo "$as_me: failed program was:" >&5
38958 sed 's/^/| /' conftest.$ac_ext >&5
38966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38967 conftest$ac_exeext conftest.$ac_ext
38971 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
38972 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
38973 test $ba_cv_va_copy = yes &&
38974 cat >>confdefs.h <<\_ACEOF
38975 #define HAVE_VA_COPY 1
38983 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
38985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38989 echo $ECHO_N "(cached) $ECHO_C" >&6
38991 cat >conftest.$ac_ext <<_ACEOF
38994 cat confdefs.h >>conftest.$ac_ext
38995 cat >>conftest.$ac_ext <<_ACEOF
38996 /* end confdefs.h. */
38997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
38999 #define $ac_func innocuous_$ac_func
39001 /* System header to define __stub macros and hopefully few prototypes,
39002 which can conflict with char $ac_func (); below.
39003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39004 <limits.h> exists even on freestanding compilers. */
39007 # include <limits.h>
39009 # include <assert.h>
39014 /* Override any GCC internal prototype to avoid an error.
39015 Use char because int might match the return type of a GCC
39016 builtin and then its argument prototype would still apply. */
39021 /* The GNU C library defines this for functions which it implements
39022 to always fail with ENOSYS. Some functions are actually named
39023 something starting with __ and the normal name is an alias. */
39024 #if defined __stub_$ac_func || defined __stub___$ac_func
39031 return $ac_func ();
39036 rm -f conftest.$ac_objext conftest$ac_exeext
39037 if { (ac_try="$ac_link"
39038 case "(($ac_try" in
39039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39040 *) ac_try_echo=$ac_try;;
39042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39043 (eval "$ac_link") 2>conftest.er1
39045 grep -v '^ *+' conftest.er1 >conftest.err
39047 cat conftest.err >&5
39048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39049 (exit $ac_status); } && {
39050 test -z "$ac_c_werror_flag" ||
39051 test ! -s conftest.err
39052 } && test -s conftest$ac_exeext &&
39053 $as_test_x conftest$ac_exeext; then
39054 eval "$as_ac_var=yes"
39056 echo "$as_me: failed program was:" >&5
39057 sed 's/^/| /' conftest.$ac_ext >&5
39059 eval "$as_ac_var=no"
39062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39063 conftest$ac_exeext conftest.$ac_ext
39065 ac_res=`eval echo '${'$as_ac_var'}'`
39066 { echo "$as_me:$LINENO: result: $ac_res" >&5
39067 echo "${ECHO_T}$ac_res" >&6; }
39068 if test `eval echo '${'$as_ac_var'}'` = yes; then
39069 cat >>confdefs.h <<_ACEOF
39070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39077 # If resolver functions are not in libc check for -lnsl or -lresolv.
39078 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
39079 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
39080 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
39081 echo $ECHO_N "(cached) $ECHO_C" >&6
39083 cat >conftest.$ac_ext <<_ACEOF
39086 cat confdefs.h >>conftest.$ac_ext
39087 cat >>conftest.$ac_ext <<_ACEOF
39088 /* end confdefs.h. */
39089 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
39090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39091 #define gethostbyname_r innocuous_gethostbyname_r
39093 /* System header to define __stub macros and hopefully few prototypes,
39094 which can conflict with char gethostbyname_r (); below.
39095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39096 <limits.h> exists even on freestanding compilers. */
39099 # include <limits.h>
39101 # include <assert.h>
39104 #undef gethostbyname_r
39106 /* Override any GCC internal prototype to avoid an error.
39107 Use char because int might match the return type of a GCC
39108 builtin and then its argument prototype would still apply. */
39112 char gethostbyname_r ();
39113 /* The GNU C library defines this for functions which it implements
39114 to always fail with ENOSYS. Some functions are actually named
39115 something starting with __ and the normal name is an alias. */
39116 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
39123 return gethostbyname_r ();
39128 rm -f conftest.$ac_objext conftest$ac_exeext
39129 if { (ac_try="$ac_link"
39130 case "(($ac_try" in
39131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39132 *) ac_try_echo=$ac_try;;
39134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39135 (eval "$ac_link") 2>conftest.er1
39137 grep -v '^ *+' conftest.er1 >conftest.err
39139 cat conftest.err >&5
39140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39141 (exit $ac_status); } && {
39142 test -z "$ac_c_werror_flag" ||
39143 test ! -s conftest.err
39144 } && test -s conftest$ac_exeext &&
39145 $as_test_x conftest$ac_exeext; then
39146 ac_cv_func_gethostbyname_r=yes
39148 echo "$as_me: failed program was:" >&5
39149 sed 's/^/| /' conftest.$ac_ext >&5
39151 ac_cv_func_gethostbyname_r=no
39154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39155 conftest$ac_exeext conftest.$ac_ext
39157 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
39158 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
39159 if test $ac_cv_func_gethostbyname_r = yes; then
39160 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
39161 echo "${ECHO_T}using libc's resolver" >&6; }
39164 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
39165 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
39166 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
39167 echo $ECHO_N "(cached) $ECHO_C" >&6
39169 ac_check_lib_save_LIBS=$LIBS
39171 cat >conftest.$ac_ext <<_ACEOF
39174 cat confdefs.h >>conftest.$ac_ext
39175 cat >>conftest.$ac_ext <<_ACEOF
39176 /* end confdefs.h. */
39178 /* Override any GCC internal prototype to avoid an error.
39179 Use char because int might match the return type of a GCC
39180 builtin and then its argument prototype would still apply. */
39184 char gethostbyname_r ();
39188 return gethostbyname_r ();
39193 rm -f conftest.$ac_objext conftest$ac_exeext
39194 if { (ac_try="$ac_link"
39195 case "(($ac_try" in
39196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39197 *) ac_try_echo=$ac_try;;
39199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39200 (eval "$ac_link") 2>conftest.er1
39202 grep -v '^ *+' conftest.er1 >conftest.err
39204 cat conftest.err >&5
39205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39206 (exit $ac_status); } && {
39207 test -z "$ac_c_werror_flag" ||
39208 test ! -s conftest.err
39209 } && test -s conftest$ac_exeext &&
39210 $as_test_x conftest$ac_exeext; then
39211 ac_cv_lib_nsl_gethostbyname_r=yes
39213 echo "$as_me: failed program was:" >&5
39214 sed 's/^/| /' conftest.$ac_ext >&5
39216 ac_cv_lib_nsl_gethostbyname_r=no
39219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39220 conftest$ac_exeext conftest.$ac_ext
39221 LIBS=$ac_check_lib_save_LIBS
39223 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
39224 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
39225 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
39226 cat >>confdefs.h <<_ACEOF
39227 #define HAVE_LIBNSL 1
39235 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
39236 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
39237 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
39238 echo $ECHO_N "(cached) $ECHO_C" >&6
39240 ac_check_lib_save_LIBS=$LIBS
39241 LIBS="-lresolv $LIBS"
39242 cat >conftest.$ac_ext <<_ACEOF
39245 cat confdefs.h >>conftest.$ac_ext
39246 cat >>conftest.$ac_ext <<_ACEOF
39247 /* end confdefs.h. */
39249 /* Override any GCC internal prototype to avoid an error.
39250 Use char because int might match the return type of a GCC
39251 builtin and then its argument prototype would still apply. */
39255 char gethostbyname_r ();
39259 return gethostbyname_r ();
39264 rm -f conftest.$ac_objext conftest$ac_exeext
39265 if { (ac_try="$ac_link"
39266 case "(($ac_try" in
39267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39268 *) ac_try_echo=$ac_try;;
39270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39271 (eval "$ac_link") 2>conftest.er1
39273 grep -v '^ *+' conftest.er1 >conftest.err
39275 cat conftest.err >&5
39276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39277 (exit $ac_status); } && {
39278 test -z "$ac_c_werror_flag" ||
39279 test ! -s conftest.err
39280 } && test -s conftest$ac_exeext &&
39281 $as_test_x conftest$ac_exeext; then
39282 ac_cv_lib_resolv_gethostbyname_r=yes
39284 echo "$as_me: failed program was:" >&5
39285 sed 's/^/| /' conftest.$ac_ext >&5
39287 ac_cv_lib_resolv_gethostbyname_r=no
39290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39291 conftest$ac_exeext conftest.$ac_ext
39292 LIBS=$ac_check_lib_save_LIBS
39294 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
39295 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
39296 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
39297 cat >>confdefs.h <<_ACEOF
39298 #define HAVE_LIBRESOLV 1
39301 LIBS="-lresolv $LIBS"
39309 for ac_func in inet_pton
39311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39315 echo $ECHO_N "(cached) $ECHO_C" >&6
39317 cat >conftest.$ac_ext <<_ACEOF
39320 cat confdefs.h >>conftest.$ac_ext
39321 cat >>conftest.$ac_ext <<_ACEOF
39322 /* end confdefs.h. */
39323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39325 #define $ac_func innocuous_$ac_func
39327 /* System header to define __stub macros and hopefully few prototypes,
39328 which can conflict with char $ac_func (); below.
39329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39330 <limits.h> exists even on freestanding compilers. */
39333 # include <limits.h>
39335 # include <assert.h>
39340 /* Override any GCC internal prototype to avoid an error.
39341 Use char because int might match the return type of a GCC
39342 builtin and then its argument prototype would still apply. */
39347 /* The GNU C library defines this for functions which it implements
39348 to always fail with ENOSYS. Some functions are actually named
39349 something starting with __ and the normal name is an alias. */
39350 #if defined __stub_$ac_func || defined __stub___$ac_func
39357 return $ac_func ();
39362 rm -f conftest.$ac_objext conftest$ac_exeext
39363 if { (ac_try="$ac_link"
39364 case "(($ac_try" in
39365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39366 *) ac_try_echo=$ac_try;;
39368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39369 (eval "$ac_link") 2>conftest.er1
39371 grep -v '^ *+' conftest.er1 >conftest.err
39373 cat conftest.err >&5
39374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39375 (exit $ac_status); } && {
39376 test -z "$ac_c_werror_flag" ||
39377 test ! -s conftest.err
39378 } && test -s conftest$ac_exeext &&
39379 $as_test_x conftest$ac_exeext; then
39380 eval "$as_ac_var=yes"
39382 echo "$as_me: failed program was:" >&5
39383 sed 's/^/| /' conftest.$ac_ext >&5
39385 eval "$as_ac_var=no"
39388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39389 conftest$ac_exeext conftest.$ac_ext
39391 ac_res=`eval echo '${'$as_ac_var'}'`
39392 { echo "$as_me:$LINENO: result: $ac_res" >&5
39393 echo "${ECHO_T}$ac_res" >&6; }
39394 if test `eval echo '${'$as_ac_var'}'` = yes; then
39395 cat >>confdefs.h <<_ACEOF
39396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39398 cat >>confdefs.h <<\_ACEOF
39399 #define HAVE_INET_PTON 1
39406 for ac_func in inet_ntop
39408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39409 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39411 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39412 echo $ECHO_N "(cached) $ECHO_C" >&6
39414 cat >conftest.$ac_ext <<_ACEOF
39417 cat confdefs.h >>conftest.$ac_ext
39418 cat >>conftest.$ac_ext <<_ACEOF
39419 /* end confdefs.h. */
39420 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39422 #define $ac_func innocuous_$ac_func
39424 /* System header to define __stub macros and hopefully few prototypes,
39425 which can conflict with char $ac_func (); below.
39426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39427 <limits.h> exists even on freestanding compilers. */
39430 # include <limits.h>
39432 # include <assert.h>
39437 /* Override any GCC internal prototype to avoid an error.
39438 Use char because int might match the return type of a GCC
39439 builtin and then its argument prototype would still apply. */
39444 /* The GNU C library defines this for functions which it implements
39445 to always fail with ENOSYS. Some functions are actually named
39446 something starting with __ and the normal name is an alias. */
39447 #if defined __stub_$ac_func || defined __stub___$ac_func
39454 return $ac_func ();
39459 rm -f conftest.$ac_objext conftest$ac_exeext
39460 if { (ac_try="$ac_link"
39461 case "(($ac_try" in
39462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39463 *) ac_try_echo=$ac_try;;
39465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39466 (eval "$ac_link") 2>conftest.er1
39468 grep -v '^ *+' conftest.er1 >conftest.err
39470 cat conftest.err >&5
39471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39472 (exit $ac_status); } && {
39473 test -z "$ac_c_werror_flag" ||
39474 test ! -s conftest.err
39475 } && test -s conftest$ac_exeext &&
39476 $as_test_x conftest$ac_exeext; then
39477 eval "$as_ac_var=yes"
39479 echo "$as_me: failed program was:" >&5
39480 sed 's/^/| /' conftest.$ac_ext >&5
39482 eval "$as_ac_var=no"
39485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39486 conftest$ac_exeext conftest.$ac_ext
39488 ac_res=`eval echo '${'$as_ac_var'}'`
39489 { echo "$as_me:$LINENO: result: $ac_res" >&5
39490 echo "${ECHO_T}$ac_res" >&6; }
39491 if test `eval echo '${'$as_ac_var'}'` = yes; then
39492 cat >>confdefs.h <<_ACEOF
39493 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39495 cat >>confdefs.h <<\_ACEOF
39496 #define HAVE_INET_NTOP 1
39503 for ac_func in gethostbyname2
39505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39506 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39508 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39509 echo $ECHO_N "(cached) $ECHO_C" >&6
39511 cat >conftest.$ac_ext <<_ACEOF
39514 cat confdefs.h >>conftest.$ac_ext
39515 cat >>conftest.$ac_ext <<_ACEOF
39516 /* end confdefs.h. */
39517 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39519 #define $ac_func innocuous_$ac_func
39521 /* System header to define __stub macros and hopefully few prototypes,
39522 which can conflict with char $ac_func (); below.
39523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39524 <limits.h> exists even on freestanding compilers. */
39527 # include <limits.h>
39529 # include <assert.h>
39534 /* Override any GCC internal prototype to avoid an error.
39535 Use char because int might match the return type of a GCC
39536 builtin and then its argument prototype would still apply. */
39541 /* The GNU C library defines this for functions which it implements
39542 to always fail with ENOSYS. Some functions are actually named
39543 something starting with __ and the normal name is an alias. */
39544 #if defined __stub_$ac_func || defined __stub___$ac_func
39551 return $ac_func ();
39556 rm -f conftest.$ac_objext conftest$ac_exeext
39557 if { (ac_try="$ac_link"
39558 case "(($ac_try" in
39559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39560 *) ac_try_echo=$ac_try;;
39562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39563 (eval "$ac_link") 2>conftest.er1
39565 grep -v '^ *+' conftest.er1 >conftest.err
39567 cat conftest.err >&5
39568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39569 (exit $ac_status); } && {
39570 test -z "$ac_c_werror_flag" ||
39571 test ! -s conftest.err
39572 } && test -s conftest$ac_exeext &&
39573 $as_test_x conftest$ac_exeext; then
39574 eval "$as_ac_var=yes"
39576 echo "$as_me: failed program was:" >&5
39577 sed 's/^/| /' conftest.$ac_ext >&5
39579 eval "$as_ac_var=no"
39582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39583 conftest$ac_exeext conftest.$ac_ext
39585 ac_res=`eval echo '${'$as_ac_var'}'`
39586 { echo "$as_me:$LINENO: result: $ac_res" >&5
39587 echo "${ECHO_T}$ac_res" >&6; }
39588 if test `eval echo '${'$as_ac_var'}'` = yes; then
39589 cat >>confdefs.h <<_ACEOF
39590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39592 cat >>confdefs.h <<\_ACEOF
39593 #define HAVE_GETHOSTBYNAME2 1
39600 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
39601 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
39602 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
39603 echo $ECHO_N "(cached) $ECHO_C" >&6
39606 cat >conftest.$ac_ext <<_ACEOF
39609 cat confdefs.h >>conftest.$ac_ext
39610 cat >>conftest.$ac_ext <<_ACEOF
39611 /* end confdefs.h. */
39613 #include <sys/socket.h>
39619 struct sockaddr s; s.sa_len;
39625 rm -f conftest.$ac_objext
39626 if { (ac_try="$ac_compile"
39627 case "(($ac_try" in
39628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39629 *) ac_try_echo=$ac_try;;
39631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39632 (eval "$ac_compile") 2>conftest.er1
39634 grep -v '^ *+' conftest.er1 >conftest.err
39636 cat conftest.err >&5
39637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39638 (exit $ac_status); } && {
39639 test -z "$ac_c_werror_flag" ||
39640 test ! -s conftest.err
39641 } && test -s conftest.$ac_objext; then
39643 ac_cv_struct_sockaddr_sa_len=yes
39646 echo "$as_me: failed program was:" >&5
39647 sed 's/^/| /' conftest.$ac_ext >&5
39649 ac_cv_struct_sockaddr_sa_len=no
39654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39658 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
39659 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
39661 if test $ac_cv_struct_sockaddr_sa_len = yes; then
39663 cat >>confdefs.h <<\_ACEOF
39664 #define HAVE_SA_LEN 1
39670 for ac_func in strftime
39672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39676 echo $ECHO_N "(cached) $ECHO_C" >&6
39678 cat >conftest.$ac_ext <<_ACEOF
39681 cat confdefs.h >>conftest.$ac_ext
39682 cat >>conftest.$ac_ext <<_ACEOF
39683 /* end confdefs.h. */
39684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39686 #define $ac_func innocuous_$ac_func
39688 /* System header to define __stub macros and hopefully few prototypes,
39689 which can conflict with char $ac_func (); below.
39690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39691 <limits.h> exists even on freestanding compilers. */
39694 # include <limits.h>
39696 # include <assert.h>
39701 /* Override any GCC internal prototype to avoid an error.
39702 Use char because int might match the return type of a GCC
39703 builtin and then its argument prototype would still apply. */
39708 /* The GNU C library defines this for functions which it implements
39709 to always fail with ENOSYS. Some functions are actually named
39710 something starting with __ and the normal name is an alias. */
39711 #if defined __stub_$ac_func || defined __stub___$ac_func
39718 return $ac_func ();
39723 rm -f conftest.$ac_objext conftest$ac_exeext
39724 if { (ac_try="$ac_link"
39725 case "(($ac_try" in
39726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39727 *) ac_try_echo=$ac_try;;
39729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39730 (eval "$ac_link") 2>conftest.er1
39732 grep -v '^ *+' conftest.er1 >conftest.err
39734 cat conftest.err >&5
39735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39736 (exit $ac_status); } && {
39737 test -z "$ac_c_werror_flag" ||
39738 test ! -s conftest.err
39739 } && test -s conftest$ac_exeext &&
39740 $as_test_x conftest$ac_exeext; then
39741 eval "$as_ac_var=yes"
39743 echo "$as_me: failed program was:" >&5
39744 sed 's/^/| /' conftest.$ac_ext >&5
39746 eval "$as_ac_var=no"
39749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39750 conftest$ac_exeext conftest.$ac_ext
39752 ac_res=`eval echo '${'$as_ac_var'}'`
39753 { echo "$as_me:$LINENO: result: $ac_res" >&5
39754 echo "${ECHO_T}$ac_res" >&6; }
39755 if test `eval echo '${'$as_ac_var'}'` = yes; then
39756 cat >>confdefs.h <<_ACEOF
39757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39761 # strftime is in -lintl on SCO UNIX.
39762 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
39763 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
39764 if test "${ac_cv_lib_intl_strftime+set}" = set; then
39765 echo $ECHO_N "(cached) $ECHO_C" >&6
39767 ac_check_lib_save_LIBS=$LIBS
39768 LIBS="-lintl $LIBS"
39769 cat >conftest.$ac_ext <<_ACEOF
39772 cat confdefs.h >>conftest.$ac_ext
39773 cat >>conftest.$ac_ext <<_ACEOF
39774 /* end confdefs.h. */
39776 /* Override any GCC internal prototype to avoid an error.
39777 Use char because int might match the return type of a GCC
39778 builtin and then its argument prototype would still apply. */
39786 return strftime ();
39791 rm -f conftest.$ac_objext conftest$ac_exeext
39792 if { (ac_try="$ac_link"
39793 case "(($ac_try" in
39794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39795 *) ac_try_echo=$ac_try;;
39797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39798 (eval "$ac_link") 2>conftest.er1
39800 grep -v '^ *+' conftest.er1 >conftest.err
39802 cat conftest.err >&5
39803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39804 (exit $ac_status); } && {
39805 test -z "$ac_c_werror_flag" ||
39806 test ! -s conftest.err
39807 } && test -s conftest$ac_exeext &&
39808 $as_test_x conftest$ac_exeext; then
39809 ac_cv_lib_intl_strftime=yes
39811 echo "$as_me: failed program was:" >&5
39812 sed 's/^/| /' conftest.$ac_ext >&5
39814 ac_cv_lib_intl_strftime=no
39817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39818 conftest$ac_exeext conftest.$ac_ext
39819 LIBS=$ac_check_lib_save_LIBS
39821 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
39822 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
39823 if test $ac_cv_lib_intl_strftime = yes; then
39824 cat >>confdefs.h <<\_ACEOF
39825 #define HAVE_STRFTIME 1
39828 LIBS="-lintl $LIBS"
39835 for ac_func in vprintf
39837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39841 echo $ECHO_N "(cached) $ECHO_C" >&6
39843 cat >conftest.$ac_ext <<_ACEOF
39846 cat confdefs.h >>conftest.$ac_ext
39847 cat >>conftest.$ac_ext <<_ACEOF
39848 /* end confdefs.h. */
39849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39851 #define $ac_func innocuous_$ac_func
39853 /* System header to define __stub macros and hopefully few prototypes,
39854 which can conflict with char $ac_func (); below.
39855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39856 <limits.h> exists even on freestanding compilers. */
39859 # include <limits.h>
39861 # include <assert.h>
39866 /* Override any GCC internal prototype to avoid an error.
39867 Use char because int might match the return type of a GCC
39868 builtin and then its argument prototype would still apply. */
39873 /* The GNU C library defines this for functions which it implements
39874 to always fail with ENOSYS. Some functions are actually named
39875 something starting with __ and the normal name is an alias. */
39876 #if defined __stub_$ac_func || defined __stub___$ac_func
39883 return $ac_func ();
39888 rm -f conftest.$ac_objext conftest$ac_exeext
39889 if { (ac_try="$ac_link"
39890 case "(($ac_try" in
39891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39892 *) ac_try_echo=$ac_try;;
39894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39895 (eval "$ac_link") 2>conftest.er1
39897 grep -v '^ *+' conftest.er1 >conftest.err
39899 cat conftest.err >&5
39900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39901 (exit $ac_status); } && {
39902 test -z "$ac_c_werror_flag" ||
39903 test ! -s conftest.err
39904 } && test -s conftest$ac_exeext &&
39905 $as_test_x conftest$ac_exeext; then
39906 eval "$as_ac_var=yes"
39908 echo "$as_me: failed program was:" >&5
39909 sed 's/^/| /' conftest.$ac_ext >&5
39911 eval "$as_ac_var=no"
39914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39915 conftest$ac_exeext conftest.$ac_ext
39917 ac_res=`eval echo '${'$as_ac_var'}'`
39918 { echo "$as_me:$LINENO: result: $ac_res" >&5
39919 echo "${ECHO_T}$ac_res" >&6; }
39920 if test `eval echo '${'$as_ac_var'}'` = yes; then
39921 cat >>confdefs.h <<_ACEOF
39922 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39925 { echo "$as_me:$LINENO: checking for _doprnt" >&5
39926 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
39927 if test "${ac_cv_func__doprnt+set}" = set; then
39928 echo $ECHO_N "(cached) $ECHO_C" >&6
39930 cat >conftest.$ac_ext <<_ACEOF
39933 cat confdefs.h >>conftest.$ac_ext
39934 cat >>conftest.$ac_ext <<_ACEOF
39935 /* end confdefs.h. */
39936 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
39937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
39938 #define _doprnt innocuous__doprnt
39940 /* System header to define __stub macros and hopefully few prototypes,
39941 which can conflict with char _doprnt (); below.
39942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39943 <limits.h> exists even on freestanding compilers. */
39946 # include <limits.h>
39948 # include <assert.h>
39953 /* Override any GCC internal prototype to avoid an error.
39954 Use char because int might match the return type of a GCC
39955 builtin and then its argument prototype would still apply. */
39960 /* The GNU C library defines this for functions which it implements
39961 to always fail with ENOSYS. Some functions are actually named
39962 something starting with __ and the normal name is an alias. */
39963 #if defined __stub__doprnt || defined __stub____doprnt
39975 rm -f conftest.$ac_objext conftest$ac_exeext
39976 if { (ac_try="$ac_link"
39977 case "(($ac_try" in
39978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39979 *) ac_try_echo=$ac_try;;
39981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39982 (eval "$ac_link") 2>conftest.er1
39984 grep -v '^ *+' conftest.er1 >conftest.err
39986 cat conftest.err >&5
39987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39988 (exit $ac_status); } && {
39989 test -z "$ac_c_werror_flag" ||
39990 test ! -s conftest.err
39991 } && test -s conftest$ac_exeext &&
39992 $as_test_x conftest$ac_exeext; then
39993 ac_cv_func__doprnt=yes
39995 echo "$as_me: failed program was:" >&5
39996 sed 's/^/| /' conftest.$ac_ext >&5
39998 ac_cv_func__doprnt=no
40001 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40002 conftest$ac_exeext conftest.$ac_ext
40004 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
40005 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
40006 if test $ac_cv_func__doprnt = yes; then
40008 cat >>confdefs.h <<\_ACEOF
40009 #define HAVE_DOPRNT 1
40018 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
40019 # for constant arguments. Useless!
40020 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
40021 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
40022 if test "${ac_cv_working_alloca_h+set}" = set; then
40023 echo $ECHO_N "(cached) $ECHO_C" >&6
40025 cat >conftest.$ac_ext <<_ACEOF
40028 cat confdefs.h >>conftest.$ac_ext
40029 cat >>conftest.$ac_ext <<_ACEOF
40030 /* end confdefs.h. */
40031 #include <alloca.h>
40035 char *p = (char *) alloca (2 * sizeof (int));
40041 rm -f conftest.$ac_objext conftest$ac_exeext
40042 if { (ac_try="$ac_link"
40043 case "(($ac_try" in
40044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40045 *) ac_try_echo=$ac_try;;
40047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40048 (eval "$ac_link") 2>conftest.er1
40050 grep -v '^ *+' conftest.er1 >conftest.err
40052 cat conftest.err >&5
40053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40054 (exit $ac_status); } && {
40055 test -z "$ac_c_werror_flag" ||
40056 test ! -s conftest.err
40057 } && test -s conftest$ac_exeext &&
40058 $as_test_x conftest$ac_exeext; then
40059 ac_cv_working_alloca_h=yes
40061 echo "$as_me: failed program was:" >&5
40062 sed 's/^/| /' conftest.$ac_ext >&5
40064 ac_cv_working_alloca_h=no
40067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40068 conftest$ac_exeext conftest.$ac_ext
40070 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
40071 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
40072 if test $ac_cv_working_alloca_h = yes; then
40074 cat >>confdefs.h <<\_ACEOF
40075 #define HAVE_ALLOCA_H 1
40080 { echo "$as_me:$LINENO: checking for alloca" >&5
40081 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
40082 if test "${ac_cv_func_alloca_works+set}" = set; then
40083 echo $ECHO_N "(cached) $ECHO_C" >&6
40085 cat >conftest.$ac_ext <<_ACEOF
40088 cat confdefs.h >>conftest.$ac_ext
40089 cat >>conftest.$ac_ext <<_ACEOF
40090 /* end confdefs.h. */
40092 # define alloca __builtin_alloca
40095 # include <malloc.h>
40096 # define alloca _alloca
40098 # ifdef HAVE_ALLOCA_H
40099 # include <alloca.h>
40104 # ifndef alloca /* predefined by HP cc +Olibcalls */
40115 char *p = (char *) alloca (1);
40121 rm -f conftest.$ac_objext conftest$ac_exeext
40122 if { (ac_try="$ac_link"
40123 case "(($ac_try" in
40124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40125 *) ac_try_echo=$ac_try;;
40127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40128 (eval "$ac_link") 2>conftest.er1
40130 grep -v '^ *+' conftest.er1 >conftest.err
40132 cat conftest.err >&5
40133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40134 (exit $ac_status); } && {
40135 test -z "$ac_c_werror_flag" ||
40136 test ! -s conftest.err
40137 } && test -s conftest$ac_exeext &&
40138 $as_test_x conftest$ac_exeext; then
40139 ac_cv_func_alloca_works=yes
40141 echo "$as_me: failed program was:" >&5
40142 sed 's/^/| /' conftest.$ac_ext >&5
40144 ac_cv_func_alloca_works=no
40147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40148 conftest$ac_exeext conftest.$ac_ext
40150 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
40151 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
40153 if test $ac_cv_func_alloca_works = yes; then
40155 cat >>confdefs.h <<\_ACEOF
40156 #define HAVE_ALLOCA 1
40160 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
40161 # that cause trouble. Some versions do not even contain alloca or
40162 # contain a buggy version. If you still want to use their alloca,
40163 # use ar to extract alloca.o from them instead of compiling alloca.c.
40165 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
40167 cat >>confdefs.h <<\_ACEOF
40172 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
40173 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
40174 if test "${ac_cv_os_cray+set}" = set; then
40175 echo $ECHO_N "(cached) $ECHO_C" >&6
40177 cat >conftest.$ac_ext <<_ACEOF
40180 cat confdefs.h >>conftest.$ac_ext
40181 cat >>conftest.$ac_ext <<_ACEOF
40182 /* end confdefs.h. */
40183 #if defined CRAY && ! defined CRAY2
40190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40191 $EGREP "webecray" >/dev/null 2>&1; then
40199 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
40200 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
40201 if test $ac_cv_os_cray = yes; then
40202 for ac_func in _getb67 GETB67 getb67; do
40203 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40204 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40205 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40206 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40207 echo $ECHO_N "(cached) $ECHO_C" >&6
40209 cat >conftest.$ac_ext <<_ACEOF
40212 cat confdefs.h >>conftest.$ac_ext
40213 cat >>conftest.$ac_ext <<_ACEOF
40214 /* end confdefs.h. */
40215 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40217 #define $ac_func innocuous_$ac_func
40219 /* System header to define __stub macros and hopefully few prototypes,
40220 which can conflict with char $ac_func (); below.
40221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40222 <limits.h> exists even on freestanding compilers. */
40225 # include <limits.h>
40227 # include <assert.h>
40232 /* Override any GCC internal prototype to avoid an error.
40233 Use char because int might match the return type of a GCC
40234 builtin and then its argument prototype would still apply. */
40239 /* The GNU C library defines this for functions which it implements
40240 to always fail with ENOSYS. Some functions are actually named
40241 something starting with __ and the normal name is an alias. */
40242 #if defined __stub_$ac_func || defined __stub___$ac_func
40249 return $ac_func ();
40254 rm -f conftest.$ac_objext conftest$ac_exeext
40255 if { (ac_try="$ac_link"
40256 case "(($ac_try" in
40257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40258 *) ac_try_echo=$ac_try;;
40260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40261 (eval "$ac_link") 2>conftest.er1
40263 grep -v '^ *+' conftest.er1 >conftest.err
40265 cat conftest.err >&5
40266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40267 (exit $ac_status); } && {
40268 test -z "$ac_c_werror_flag" ||
40269 test ! -s conftest.err
40270 } && test -s conftest$ac_exeext &&
40271 $as_test_x conftest$ac_exeext; then
40272 eval "$as_ac_var=yes"
40274 echo "$as_me: failed program was:" >&5
40275 sed 's/^/| /' conftest.$ac_ext >&5
40277 eval "$as_ac_var=no"
40280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40281 conftest$ac_exeext conftest.$ac_ext
40283 ac_res=`eval echo '${'$as_ac_var'}'`
40284 { echo "$as_me:$LINENO: result: $ac_res" >&5
40285 echo "${ECHO_T}$ac_res" >&6; }
40286 if test `eval echo '${'$as_ac_var'}'` = yes; then
40288 cat >>confdefs.h <<_ACEOF
40289 #define CRAY_STACKSEG_END $ac_func
40298 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
40299 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
40300 if test "${ac_cv_c_stack_direction+set}" = set; then
40301 echo $ECHO_N "(cached) $ECHO_C" >&6
40303 if test "$cross_compiling" = yes; then
40304 ac_cv_c_stack_direction=0
40306 cat >conftest.$ac_ext <<_ACEOF
40309 cat confdefs.h >>conftest.$ac_ext
40310 cat >>conftest.$ac_ext <<_ACEOF
40311 /* end confdefs.h. */
40312 $ac_includes_default
40314 find_stack_direction ()
40316 static char *addr = 0;
40321 return find_stack_direction ();
40324 return (&dummy > addr) ? 1 : -1;
40330 return find_stack_direction () < 0;
40333 rm -f conftest$ac_exeext
40334 if { (ac_try="$ac_link"
40335 case "(($ac_try" in
40336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40337 *) ac_try_echo=$ac_try;;
40339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40340 (eval "$ac_link") 2>&5
40342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40344 { (case "(($ac_try" in
40345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40346 *) ac_try_echo=$ac_try;;
40348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40349 (eval "$ac_try") 2>&5
40351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40352 (exit $ac_status); }; }; then
40353 ac_cv_c_stack_direction=1
40355 echo "$as_me: program exited with status $ac_status" >&5
40356 echo "$as_me: failed program was:" >&5
40357 sed 's/^/| /' conftest.$ac_ext >&5
40359 ( exit $ac_status )
40360 ac_cv_c_stack_direction=-1
40362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40367 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
40368 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
40370 cat >>confdefs.h <<_ACEOF
40371 #define STACK_DIRECTION $ac_cv_c_stack_direction
40377 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
40378 # -lseq on Dynix/PTX, -lgen on Unixware.
40379 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
40380 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
40381 if test "${ac_cv_search_getmntent+set}" = set; then
40382 echo $ECHO_N "(cached) $ECHO_C" >&6
40384 ac_func_search_save_LIBS=$LIBS
40385 cat >conftest.$ac_ext <<_ACEOF
40388 cat confdefs.h >>conftest.$ac_ext
40389 cat >>conftest.$ac_ext <<_ACEOF
40390 /* end confdefs.h. */
40392 /* Override any GCC internal prototype to avoid an error.
40393 Use char because int might match the return type of a GCC
40394 builtin and then its argument prototype would still apply. */
40402 return getmntent ();
40407 for ac_lib in '' sun seq gen; do
40408 if test -z "$ac_lib"; then
40409 ac_res="none required"
40412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
40414 rm -f conftest.$ac_objext conftest$ac_exeext
40415 if { (ac_try="$ac_link"
40416 case "(($ac_try" in
40417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40418 *) ac_try_echo=$ac_try;;
40420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40421 (eval "$ac_link") 2>conftest.er1
40423 grep -v '^ *+' conftest.er1 >conftest.err
40425 cat conftest.err >&5
40426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40427 (exit $ac_status); } && {
40428 test -z "$ac_c_werror_flag" ||
40429 test ! -s conftest.err
40430 } && test -s conftest$ac_exeext &&
40431 $as_test_x conftest$ac_exeext; then
40432 ac_cv_search_getmntent=$ac_res
40434 echo "$as_me: failed program was:" >&5
40435 sed 's/^/| /' conftest.$ac_ext >&5
40440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40442 if test "${ac_cv_search_getmntent+set}" = set; then
40446 if test "${ac_cv_search_getmntent+set}" = set; then
40449 ac_cv_search_getmntent=no
40451 rm conftest.$ac_ext
40452 LIBS=$ac_func_search_save_LIBS
40454 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
40455 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
40456 ac_res=$ac_cv_search_getmntent
40457 if test "$ac_res" != no; then
40458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
40459 ac_cv_func_getmntent=yes
40461 cat >>confdefs.h <<\_ACEOF
40462 #define HAVE_GETMNTENT 1
40466 ac_cv_func_getmntent=no
40470 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
40471 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
40472 if test "${ac_cv_func_closedir_void+set}" = set; then
40473 echo $ECHO_N "(cached) $ECHO_C" >&6
40475 if test "$cross_compiling" = yes; then
40476 ac_cv_func_closedir_void=yes
40478 cat >conftest.$ac_ext <<_ACEOF
40481 cat confdefs.h >>conftest.$ac_ext
40482 cat >>conftest.$ac_ext <<_ACEOF
40483 /* end confdefs.h. */
40484 $ac_includes_default
40485 #include <$ac_header_dirent>
40486 #ifndef __cplusplus
40493 return closedir (opendir (".")) != 0;
40498 rm -f conftest$ac_exeext
40499 if { (ac_try="$ac_link"
40500 case "(($ac_try" in
40501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40502 *) ac_try_echo=$ac_try;;
40504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40505 (eval "$ac_link") 2>&5
40507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40509 { (case "(($ac_try" in
40510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40511 *) ac_try_echo=$ac_try;;
40513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40514 (eval "$ac_try") 2>&5
40516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40517 (exit $ac_status); }; }; then
40518 ac_cv_func_closedir_void=no
40520 echo "$as_me: program exited with status $ac_status" >&5
40521 echo "$as_me: failed program was:" >&5
40522 sed 's/^/| /' conftest.$ac_ext >&5
40524 ( exit $ac_status )
40525 ac_cv_func_closedir_void=yes
40527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40532 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
40533 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
40534 if test $ac_cv_func_closedir_void = yes; then
40536 cat >>confdefs.h <<\_ACEOF
40537 #define CLOSEDIR_VOID 1
40542 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
40543 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
40544 if test "${ac_cv_func_setpgrp_void+set}" = set; then
40545 echo $ECHO_N "(cached) $ECHO_C" >&6
40547 if test "$cross_compiling" = yes; then
40548 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
40549 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
40550 { (exit 1); exit 1; }; }
40552 cat >conftest.$ac_ext <<_ACEOF
40555 cat confdefs.h >>conftest.$ac_ext
40556 cat >>conftest.$ac_ext <<_ACEOF
40557 /* end confdefs.h. */
40558 $ac_includes_default
40562 /* If this system has a BSD-style setpgrp which takes arguments,
40563 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
40564 exit successfully. */
40565 return setpgrp (1,1) != -1;
40570 rm -f conftest$ac_exeext
40571 if { (ac_try="$ac_link"
40572 case "(($ac_try" in
40573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40574 *) ac_try_echo=$ac_try;;
40576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40577 (eval "$ac_link") 2>&5
40579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40581 { (case "(($ac_try" in
40582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40583 *) ac_try_echo=$ac_try;;
40585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40586 (eval "$ac_try") 2>&5
40588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40589 (exit $ac_status); }; }; then
40590 ac_cv_func_setpgrp_void=no
40592 echo "$as_me: program exited with status $ac_status" >&5
40593 echo "$as_me: failed program was:" >&5
40594 sed 's/^/| /' conftest.$ac_ext >&5
40596 ( exit $ac_status )
40597 ac_cv_func_setpgrp_void=yes
40599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40604 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
40605 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
40606 if test $ac_cv_func_setpgrp_void = yes; then
40608 cat >>confdefs.h <<\_ACEOF
40609 #define SETPGRP_VOID 1
40613 # AC_FUNC_FNMATCH dnl use local version
40615 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
40616 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
40617 if test "${ac_cv_lib_intl_gettext+set}" = set; then
40618 echo $ECHO_N "(cached) $ECHO_C" >&6
40620 ac_check_lib_save_LIBS=$LIBS
40621 LIBS="-lintl $LIBS"
40622 cat >conftest.$ac_ext <<_ACEOF
40625 cat confdefs.h >>conftest.$ac_ext
40626 cat >>conftest.$ac_ext <<_ACEOF
40627 /* end confdefs.h. */
40629 /* Override any GCC internal prototype to avoid an error.
40630 Use char because int might match the return type of a GCC
40631 builtin and then its argument prototype would still apply. */
40644 rm -f conftest.$ac_objext conftest$ac_exeext
40645 if { (ac_try="$ac_link"
40646 case "(($ac_try" in
40647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40648 *) ac_try_echo=$ac_try;;
40650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40651 (eval "$ac_link") 2>conftest.er1
40653 grep -v '^ *+' conftest.er1 >conftest.err
40655 cat conftest.err >&5
40656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40657 (exit $ac_status); } && {
40658 test -z "$ac_c_werror_flag" ||
40659 test ! -s conftest.err
40660 } && test -s conftest$ac_exeext &&
40661 $as_test_x conftest$ac_exeext; then
40662 ac_cv_lib_intl_gettext=yes
40664 echo "$as_me: failed program was:" >&5
40665 sed 's/^/| /' conftest.$ac_ext >&5
40667 ac_cv_lib_intl_gettext=no
40670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40671 conftest$ac_exeext conftest.$ac_ext
40672 LIBS=$ac_check_lib_save_LIBS
40674 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
40675 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
40676 if test $ac_cv_lib_intl_gettext = yes; then
40677 LIBS="$LIBS -lintl"
40682 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
40683 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
40684 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
40685 echo $ECHO_N "(cached) $ECHO_C" >&6
40687 ac_check_lib_save_LIBS=$LIBS
40689 cat >conftest.$ac_ext <<_ACEOF
40692 cat confdefs.h >>conftest.$ac_ext
40693 cat >>conftest.$ac_ext <<_ACEOF
40694 /* end confdefs.h. */
40696 /* Override any GCC internal prototype to avoid an error.
40697 Use char because int might match the return type of a GCC
40698 builtin and then its argument prototype would still apply. */
40706 return getpwnam ();
40711 rm -f conftest.$ac_objext conftest$ac_exeext
40712 if { (ac_try="$ac_link"
40713 case "(($ac_try" in
40714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40715 *) ac_try_echo=$ac_try;;
40717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40718 (eval "$ac_link") 2>conftest.er1
40720 grep -v '^ *+' conftest.er1 >conftest.err
40722 cat conftest.err >&5
40723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40724 (exit $ac_status); } && {
40725 test -z "$ac_c_werror_flag" ||
40726 test ! -s conftest.err
40727 } && test -s conftest$ac_exeext &&
40728 $as_test_x conftest$ac_exeext; then
40729 ac_cv_lib_sun_getpwnam=yes
40731 echo "$as_me: failed program was:" >&5
40732 sed 's/^/| /' conftest.$ac_ext >&5
40734 ac_cv_lib_sun_getpwnam=no
40737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40738 conftest$ac_exeext conftest.$ac_ext
40739 LIBS=$ac_check_lib_save_LIBS
40741 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
40742 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
40743 if test $ac_cv_lib_sun_getpwnam = yes; then
40744 cat >>confdefs.h <<_ACEOF
40745 #define HAVE_LIBSUN 1
40754 for ac_header in zlib.h
40756 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40761 echo $ECHO_N "(cached) $ECHO_C" >&6
40763 ac_res=`eval echo '${'$as_ac_Header'}'`
40764 { echo "$as_me:$LINENO: result: $ac_res" >&5
40765 echo "${ECHO_T}$ac_res" >&6; }
40767 # Is the header compilable?
40768 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
40769 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
40770 cat >conftest.$ac_ext <<_ACEOF
40773 cat confdefs.h >>conftest.$ac_ext
40774 cat >>conftest.$ac_ext <<_ACEOF
40775 /* end confdefs.h. */
40776 $ac_includes_default
40777 #include <$ac_header>
40779 rm -f conftest.$ac_objext
40780 if { (ac_try="$ac_compile"
40781 case "(($ac_try" in
40782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40783 *) ac_try_echo=$ac_try;;
40785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40786 (eval "$ac_compile") 2>conftest.er1
40788 grep -v '^ *+' conftest.er1 >conftest.err
40790 cat conftest.err >&5
40791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40792 (exit $ac_status); } && {
40793 test -z "$ac_c_werror_flag" ||
40794 test ! -s conftest.err
40795 } && test -s conftest.$ac_objext; then
40796 ac_header_compiler=yes
40798 echo "$as_me: failed program was:" >&5
40799 sed 's/^/| /' conftest.$ac_ext >&5
40801 ac_header_compiler=no
40804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40806 echo "${ECHO_T}$ac_header_compiler" >&6; }
40808 # Is the header present?
40809 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
40810 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
40811 cat >conftest.$ac_ext <<_ACEOF
40814 cat confdefs.h >>conftest.$ac_ext
40815 cat >>conftest.$ac_ext <<_ACEOF
40816 /* end confdefs.h. */
40817 #include <$ac_header>
40819 if { (ac_try="$ac_cpp conftest.$ac_ext"
40820 case "(($ac_try" in
40821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40822 *) ac_try_echo=$ac_try;;
40824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40827 grep -v '^ *+' conftest.er1 >conftest.err
40829 cat conftest.err >&5
40830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40831 (exit $ac_status); } >/dev/null && {
40832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40833 test ! -s conftest.err
40835 ac_header_preproc=yes
40837 echo "$as_me: failed program was:" >&5
40838 sed 's/^/| /' conftest.$ac_ext >&5
40840 ac_header_preproc=no
40843 rm -f conftest.err conftest.$ac_ext
40844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40845 echo "${ECHO_T}$ac_header_preproc" >&6; }
40847 # So? What about this header?
40848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40854 ac_header_preproc=yes
40857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
40873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
40874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40875 echo $ECHO_N "(cached) $ECHO_C" >&6
40877 eval "$as_ac_Header=\$ac_header_preproc"
40879 ac_res=`eval echo '${'$as_ac_Header'}'`
40880 { echo "$as_me:$LINENO: result: $ac_res" >&5
40881 echo "${ECHO_T}$ac_res" >&6; }
40884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40885 cat >>confdefs.h <<_ACEOF
40886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40893 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
40894 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
40895 if test "${ac_cv_lib_z_deflate+set}" = set; then
40896 echo $ECHO_N "(cached) $ECHO_C" >&6
40898 ac_check_lib_save_LIBS=$LIBS
40900 cat >conftest.$ac_ext <<_ACEOF
40903 cat confdefs.h >>conftest.$ac_ext
40904 cat >>conftest.$ac_ext <<_ACEOF
40905 /* end confdefs.h. */
40907 /* Override any GCC internal prototype to avoid an error.
40908 Use char because int might match the return type of a GCC
40909 builtin and then its argument prototype would still apply. */
40922 rm -f conftest.$ac_objext conftest$ac_exeext
40923 if { (ac_try="$ac_link"
40924 case "(($ac_try" in
40925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40926 *) ac_try_echo=$ac_try;;
40928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40929 (eval "$ac_link") 2>conftest.er1
40931 grep -v '^ *+' conftest.er1 >conftest.err
40933 cat conftest.err >&5
40934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40935 (exit $ac_status); } && {
40936 test -z "$ac_c_werror_flag" ||
40937 test ! -s conftest.err
40938 } && test -s conftest$ac_exeext &&
40939 $as_test_x conftest$ac_exeext; then
40940 ac_cv_lib_z_deflate=yes
40942 echo "$as_me: failed program was:" >&5
40943 sed 's/^/| /' conftest.$ac_ext >&5
40945 ac_cv_lib_z_deflate=no
40948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40949 conftest$ac_exeext conftest.$ac_ext
40950 LIBS=$ac_check_lib_save_LIBS
40952 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
40953 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
40954 if test $ac_cv_lib_z_deflate = yes; then
40959 if test x$FDLIBS = x-lz; then
40960 cat >>confdefs.h <<\_ACEOF
40961 #define HAVE_LIBZ 1
40968 # Check whether --enable-acl was given.
40969 if test "${enable_acl+set}" = set; then
40970 enableval=$enable_acl;
40971 if test x$enableval = xyes; then
40973 elif test x$enableval = xno; then
40982 have_extended_acl=no
40983 if test x$support_acl = xyes -o x$support_acl = xauto; then
40984 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40985 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
40986 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
40987 if test "${ac_cv_header_sys_acl_h+set}" = set; then
40988 echo $ECHO_N "(cached) $ECHO_C" >&6
40990 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
40991 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
40993 # Is the header compilable?
40994 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
40995 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
40996 cat >conftest.$ac_ext <<_ACEOF
40999 cat confdefs.h >>conftest.$ac_ext
41000 cat >>conftest.$ac_ext <<_ACEOF
41001 /* end confdefs.h. */
41002 $ac_includes_default
41003 #include <sys/acl.h>
41005 rm -f conftest.$ac_objext
41006 if { (ac_try="$ac_compile"
41007 case "(($ac_try" in
41008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41009 *) ac_try_echo=$ac_try;;
41011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41012 (eval "$ac_compile") 2>conftest.er1
41014 grep -v '^ *+' conftest.er1 >conftest.err
41016 cat conftest.err >&5
41017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41018 (exit $ac_status); } && {
41019 test -z "$ac_c_werror_flag" ||
41020 test ! -s conftest.err
41021 } && test -s conftest.$ac_objext; then
41022 ac_header_compiler=yes
41024 echo "$as_me: failed program was:" >&5
41025 sed 's/^/| /' conftest.$ac_ext >&5
41027 ac_header_compiler=no
41030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41031 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41032 echo "${ECHO_T}$ac_header_compiler" >&6; }
41034 # Is the header present?
41035 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
41036 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
41037 cat >conftest.$ac_ext <<_ACEOF
41040 cat confdefs.h >>conftest.$ac_ext
41041 cat >>conftest.$ac_ext <<_ACEOF
41042 /* end confdefs.h. */
41043 #include <sys/acl.h>
41045 if { (ac_try="$ac_cpp conftest.$ac_ext"
41046 case "(($ac_try" in
41047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41048 *) ac_try_echo=$ac_try;;
41050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41053 grep -v '^ *+' conftest.er1 >conftest.err
41055 cat conftest.err >&5
41056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41057 (exit $ac_status); } >/dev/null && {
41058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41059 test ! -s conftest.err
41061 ac_header_preproc=yes
41063 echo "$as_me: failed program was:" >&5
41064 sed 's/^/| /' conftest.$ac_ext >&5
41066 ac_header_preproc=no
41069 rm -f conftest.err conftest.$ac_ext
41070 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41071 echo "${ECHO_T}$ac_header_preproc" >&6; }
41073 # So? What about this header?
41074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41076 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
41077 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41078 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
41079 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
41080 ac_header_preproc=yes
41083 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
41084 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
41085 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
41086 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
41087 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
41088 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
41089 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
41090 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
41091 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
41092 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
41093 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
41094 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
41098 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
41099 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
41100 if test "${ac_cv_header_sys_acl_h+set}" = set; then
41101 echo $ECHO_N "(cached) $ECHO_C" >&6
41103 ac_cv_header_sys_acl_h=$ac_header_preproc
41105 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
41106 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
41109 if test $ac_cv_header_sys_acl_h = yes; then
41111 cat >>confdefs.h <<\_ACEOF
41112 #define HAVE_SYS_ACL_H 1
41118 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
41119 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
41120 if test "${ac_cv_func_acl_get_file+set}" = set; then
41121 echo $ECHO_N "(cached) $ECHO_C" >&6
41123 cat >conftest.$ac_ext <<_ACEOF
41126 cat confdefs.h >>conftest.$ac_ext
41127 cat >>conftest.$ac_ext <<_ACEOF
41128 /* end confdefs.h. */
41129 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
41130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41131 #define acl_get_file innocuous_acl_get_file
41133 /* System header to define __stub macros and hopefully few prototypes,
41134 which can conflict with char acl_get_file (); below.
41135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41136 <limits.h> exists even on freestanding compilers. */
41139 # include <limits.h>
41141 # include <assert.h>
41144 #undef acl_get_file
41146 /* Override any GCC internal prototype to avoid an error.
41147 Use char because int might match the return type of a GCC
41148 builtin and then its argument prototype would still apply. */
41152 char acl_get_file ();
41153 /* The GNU C library defines this for functions which it implements
41154 to always fail with ENOSYS. Some functions are actually named
41155 something starting with __ and the normal name is an alias. */
41156 #if defined __stub_acl_get_file || defined __stub___acl_get_file
41163 return acl_get_file ();
41168 rm -f conftest.$ac_objext conftest$ac_exeext
41169 if { (ac_try="$ac_link"
41170 case "(($ac_try" in
41171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41172 *) ac_try_echo=$ac_try;;
41174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41175 (eval "$ac_link") 2>conftest.er1
41177 grep -v '^ *+' conftest.er1 >conftest.err
41179 cat conftest.err >&5
41180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41181 (exit $ac_status); } && {
41182 test -z "$ac_c_werror_flag" ||
41183 test ! -s conftest.err
41184 } && test -s conftest$ac_exeext &&
41185 $as_test_x conftest$ac_exeext; then
41186 ac_cv_func_acl_get_file=yes
41188 echo "$as_me: failed program was:" >&5
41189 sed 's/^/| /' conftest.$ac_ext >&5
41191 ac_cv_func_acl_get_file=no
41194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41195 conftest$ac_exeext conftest.$ac_ext
41197 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
41198 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
41199 if test $ac_cv_func_acl_get_file = yes; then
41205 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
41206 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
41207 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
41208 echo $ECHO_N "(cached) $ECHO_C" >&6
41210 ac_check_lib_save_LIBS=$LIBS
41212 cat >conftest.$ac_ext <<_ACEOF
41215 cat confdefs.h >>conftest.$ac_ext
41216 cat >>conftest.$ac_ext <<_ACEOF
41217 /* end confdefs.h. */
41219 /* Override any GCC internal prototype to avoid an error.
41220 Use char because int might match the return type of a GCC
41221 builtin and then its argument prototype would still apply. */
41225 char acl_get_file ();
41229 return acl_get_file ();
41234 rm -f conftest.$ac_objext conftest$ac_exeext
41235 if { (ac_try="$ac_link"
41236 case "(($ac_try" in
41237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41238 *) ac_try_echo=$ac_try;;
41240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41241 (eval "$ac_link") 2>conftest.er1
41243 grep -v '^ *+' conftest.er1 >conftest.err
41245 cat conftest.err >&5
41246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41247 (exit $ac_status); } && {
41248 test -z "$ac_c_werror_flag" ||
41249 test ! -s conftest.err
41250 } && test -s conftest$ac_exeext &&
41251 $as_test_x conftest$ac_exeext; then
41252 ac_cv_lib_acl_acl_get_file=yes
41254 echo "$as_me: failed program was:" >&5
41255 sed 's/^/| /' conftest.$ac_ext >&5
41257 ac_cv_lib_acl_acl_get_file=no
41260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41261 conftest$ac_exeext conftest.$ac_ext
41262 LIBS=$ac_check_lib_save_LIBS
41264 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
41265 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
41266 if test $ac_cv_lib_acl_acl_get_file = yes; then
41269 FDLIBS="-lacl $FDLIBS"
41273 { echo "$as_me:$LINENO: checking for acl_get_file in -lpacl" >&5
41274 echo $ECHO_N "checking for acl_get_file in -lpacl... $ECHO_C" >&6; }
41275 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then
41276 echo $ECHO_N "(cached) $ECHO_C" >&6
41278 ac_check_lib_save_LIBS=$LIBS
41279 LIBS="-lpacl $LIBS"
41280 cat >conftest.$ac_ext <<_ACEOF
41283 cat confdefs.h >>conftest.$ac_ext
41284 cat >>conftest.$ac_ext <<_ACEOF
41285 /* end confdefs.h. */
41287 /* Override any GCC internal prototype to avoid an error.
41288 Use char because int might match the return type of a GCC
41289 builtin and then its argument prototype would still apply. */
41293 char acl_get_file ();
41297 return acl_get_file ();
41302 rm -f conftest.$ac_objext conftest$ac_exeext
41303 if { (ac_try="$ac_link"
41304 case "(($ac_try" in
41305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41306 *) ac_try_echo=$ac_try;;
41308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41309 (eval "$ac_link") 2>conftest.er1
41311 grep -v '^ *+' conftest.er1 >conftest.err
41313 cat conftest.err >&5
41314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41315 (exit $ac_status); } && {
41316 test -z "$ac_c_werror_flag" ||
41317 test ! -s conftest.err
41318 } && test -s conftest$ac_exeext &&
41319 $as_test_x conftest$ac_exeext; then
41320 ac_cv_lib_pacl_acl_get_file=yes
41322 echo "$as_me: failed program was:" >&5
41323 sed 's/^/| /' conftest.$ac_ext >&5
41325 ac_cv_lib_pacl_acl_get_file=no
41328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41329 conftest$ac_exeext conftest.$ac_ext
41330 LIBS=$ac_check_lib_save_LIBS
41332 { echo "$as_me:$LINENO: result: $ac_cv_lib_pacl_acl_get_file" >&5
41333 echo "${ECHO_T}$ac_cv_lib_pacl_acl_get_file" >&6; }
41334 if test $ac_cv_lib_pacl_acl_get_file = yes; then
41337 FDLIBS="-lpacl $FDLIBS"
41341 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
41342 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
41343 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
41344 echo $ECHO_N "(cached) $ECHO_C" >&6
41346 ac_check_lib_save_LIBS=$LIBS
41348 cat >conftest.$ac_ext <<_ACEOF
41351 cat confdefs.h >>conftest.$ac_ext
41352 cat >>conftest.$ac_ext <<_ACEOF
41353 /* end confdefs.h. */
41355 /* Override any GCC internal prototype to avoid an error.
41356 Use char because int might match the return type of a GCC
41357 builtin and then its argument prototype would still apply. */
41365 return acltotext ();
41370 rm -f conftest.$ac_objext conftest$ac_exeext
41371 if { (ac_try="$ac_link"
41372 case "(($ac_try" in
41373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41374 *) ac_try_echo=$ac_try;;
41376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41377 (eval "$ac_link") 2>conftest.er1
41379 grep -v '^ *+' conftest.er1 >conftest.err
41381 cat conftest.err >&5
41382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41383 (exit $ac_status); } && {
41384 test -z "$ac_c_werror_flag" ||
41385 test ! -s conftest.err
41386 } && test -s conftest$ac_exeext &&
41387 $as_test_x conftest$ac_exeext; then
41388 ac_cv_lib_sec_acltotext=yes
41390 echo "$as_me: failed program was:" >&5
41391 sed 's/^/| /' conftest.$ac_ext >&5
41393 ac_cv_lib_sec_acltotext=no
41396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41397 conftest$ac_exeext conftest.$ac_ext
41398 LIBS=$ac_check_lib_save_LIBS
41400 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
41401 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
41402 if test $ac_cv_lib_sec_acltotext = yes; then
41405 FDLIBS="-lsec $FDLIBS"
41407 { echo "$as_me:$LINENO: checking for acl_totext in -lsec" >&5
41408 echo $ECHO_N "checking for acl_totext in -lsec... $ECHO_C" >&6; }
41409 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then
41410 echo $ECHO_N "(cached) $ECHO_C" >&6
41412 ac_check_lib_save_LIBS=$LIBS
41414 cat >conftest.$ac_ext <<_ACEOF
41417 cat confdefs.h >>conftest.$ac_ext
41418 cat >>conftest.$ac_ext <<_ACEOF
41419 /* end confdefs.h. */
41421 /* Override any GCC internal prototype to avoid an error.
41422 Use char because int might match the return type of a GCC
41423 builtin and then its argument prototype would still apply. */
41427 char acl_totext ();
41431 return acl_totext ();
41436 rm -f conftest.$ac_objext conftest$ac_exeext
41437 if { (ac_try="$ac_link"
41438 case "(($ac_try" in
41439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41440 *) ac_try_echo=$ac_try;;
41442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41443 (eval "$ac_link") 2>conftest.er1
41445 grep -v '^ *+' conftest.er1 >conftest.err
41447 cat conftest.err >&5
41448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41449 (exit $ac_status); } && {
41450 test -z "$ac_c_werror_flag" ||
41451 test ! -s conftest.err
41452 } && test -s conftest$ac_exeext &&
41453 $as_test_x conftest$ac_exeext; then
41454 ac_cv_lib_sec_acl_totext=yes
41456 echo "$as_me: failed program was:" >&5
41457 sed 's/^/| /' conftest.$ac_ext >&5
41459 ac_cv_lib_sec_acl_totext=no
41462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41463 conftest$ac_exeext conftest.$ac_ext
41464 LIBS=$ac_check_lib_save_LIBS
41466 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acl_totext" >&5
41467 echo "${ECHO_T}$ac_cv_lib_sec_acl_totext" >&6; }
41468 if test $ac_cv_lib_sec_acl_totext = yes; then
41470 have_extended_acl=yes
41492 if test x$support_acl = xyes -a $have_acl != yes; then
41493 { { echo "$as_me:$LINENO: error: acl support explicitly enabled but no supported acl implementation found,
41494 please either load the acl libraries or rerun configure without --enable-acl" >&5
41495 echo "$as_me: error: acl support explicitly enabled but no supported acl implementation found,
41496 please either load the acl libraries or rerun configure without --enable-acl" >&2;}
41497 { (exit 1); exit 1; }; }
41499 if test $have_acl = yes; then
41501 cat >>confdefs.h <<\_ACEOF
41507 if test $have_extended_acl = yes; then
41509 cat >>confdefs.h <<\_ACEOF
41510 #define HAVE_EXTENDED_ACL 1
41518 # Check whether --enable-xattr was given.
41519 if test "${enable_xattr+set}" = set; then
41520 enableval=$enable_xattr;
41521 if test x$enableval = xyes; then
41523 elif test x$enableval = xno; then
41532 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
41533 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41534 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41535 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41536 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41537 echo $ECHO_N "(cached) $ECHO_C" >&6
41539 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41540 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41542 # Is the header compilable?
41543 { echo "$as_me:$LINENO: checking sys/extattr.h usability" >&5
41544 echo $ECHO_N "checking sys/extattr.h usability... $ECHO_C" >&6; }
41545 cat >conftest.$ac_ext <<_ACEOF
41548 cat confdefs.h >>conftest.$ac_ext
41549 cat >>conftest.$ac_ext <<_ACEOF
41550 /* end confdefs.h. */
41551 $ac_includes_default
41552 #include <sys/extattr.h>
41554 rm -f conftest.$ac_objext
41555 if { (ac_try="$ac_compile"
41556 case "(($ac_try" in
41557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41558 *) ac_try_echo=$ac_try;;
41560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41561 (eval "$ac_compile") 2>conftest.er1
41563 grep -v '^ *+' conftest.er1 >conftest.err
41565 cat conftest.err >&5
41566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41567 (exit $ac_status); } && {
41568 test -z "$ac_c_werror_flag" ||
41569 test ! -s conftest.err
41570 } && test -s conftest.$ac_objext; then
41571 ac_header_compiler=yes
41573 echo "$as_me: failed program was:" >&5
41574 sed 's/^/| /' conftest.$ac_ext >&5
41576 ac_header_compiler=no
41579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41581 echo "${ECHO_T}$ac_header_compiler" >&6; }
41583 # Is the header present?
41584 { echo "$as_me:$LINENO: checking sys/extattr.h presence" >&5
41585 echo $ECHO_N "checking sys/extattr.h presence... $ECHO_C" >&6; }
41586 cat >conftest.$ac_ext <<_ACEOF
41589 cat confdefs.h >>conftest.$ac_ext
41590 cat >>conftest.$ac_ext <<_ACEOF
41591 /* end confdefs.h. */
41592 #include <sys/extattr.h>
41594 if { (ac_try="$ac_cpp conftest.$ac_ext"
41595 case "(($ac_try" in
41596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41597 *) ac_try_echo=$ac_try;;
41599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41602 grep -v '^ *+' conftest.er1 >conftest.err
41604 cat conftest.err >&5
41605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41606 (exit $ac_status); } >/dev/null && {
41607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41608 test ! -s conftest.err
41610 ac_header_preproc=yes
41612 echo "$as_me: failed program was:" >&5
41613 sed 's/^/| /' conftest.$ac_ext >&5
41615 ac_header_preproc=no
41618 rm -f conftest.err conftest.$ac_ext
41619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41620 echo "${ECHO_T}$ac_header_preproc" >&6; }
41622 # So? What about this header?
41623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41625 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
41626 echo "$as_me: WARNING: sys/extattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41627 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the compiler's result" >&5
41628 echo "$as_me: WARNING: sys/extattr.h: proceeding with the compiler's result" >&2;}
41629 ac_header_preproc=yes
41632 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: present but cannot be compiled" >&5
41633 echo "$as_me: WARNING: sys/extattr.h: present but cannot be compiled" >&2;}
41634 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&5
41635 echo "$as_me: WARNING: sys/extattr.h: check for missing prerequisite headers?" >&2;}
41636 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: see the Autoconf documentation" >&5
41637 echo "$as_me: WARNING: sys/extattr.h: see the Autoconf documentation" >&2;}
41638 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&5
41639 echo "$as_me: WARNING: sys/extattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
41640 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&5
41641 echo "$as_me: WARNING: sys/extattr.h: proceeding with the preprocessor's result" >&2;}
41642 { echo "$as_me:$LINENO: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&5
41643 echo "$as_me: WARNING: sys/extattr.h: in the future, the compiler will take precedence" >&2;}
41647 { echo "$as_me:$LINENO: checking for sys/extattr.h" >&5
41648 echo $ECHO_N "checking for sys/extattr.h... $ECHO_C" >&6; }
41649 if test "${ac_cv_header_sys_extattr_h+set}" = set; then
41650 echo $ECHO_N "(cached) $ECHO_C" >&6
41652 ac_cv_header_sys_extattr_h=$ac_header_preproc
41654 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_extattr_h" >&5
41655 echo "${ECHO_T}$ac_cv_header_sys_extattr_h" >&6; }
41658 if test $ac_cv_header_sys_extattr_h = yes; then
41660 cat >>confdefs.h <<\_ACEOF
41661 #define HAVE_SYS_EXTATTR_H 1
41667 if test "${ac_cv_header_libutil_h+set}" = set; then
41668 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41669 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41670 if test "${ac_cv_header_libutil_h+set}" = set; then
41671 echo $ECHO_N "(cached) $ECHO_C" >&6
41673 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41674 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41676 # Is the header compilable?
41677 { echo "$as_me:$LINENO: checking libutil.h usability" >&5
41678 echo $ECHO_N "checking libutil.h usability... $ECHO_C" >&6; }
41679 cat >conftest.$ac_ext <<_ACEOF
41682 cat confdefs.h >>conftest.$ac_ext
41683 cat >>conftest.$ac_ext <<_ACEOF
41684 /* end confdefs.h. */
41685 $ac_includes_default
41686 #include <libutil.h>
41688 rm -f conftest.$ac_objext
41689 if { (ac_try="$ac_compile"
41690 case "(($ac_try" in
41691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41692 *) ac_try_echo=$ac_try;;
41694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41695 (eval "$ac_compile") 2>conftest.er1
41697 grep -v '^ *+' conftest.er1 >conftest.err
41699 cat conftest.err >&5
41700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41701 (exit $ac_status); } && {
41702 test -z "$ac_c_werror_flag" ||
41703 test ! -s conftest.err
41704 } && test -s conftest.$ac_objext; then
41705 ac_header_compiler=yes
41707 echo "$as_me: failed program was:" >&5
41708 sed 's/^/| /' conftest.$ac_ext >&5
41710 ac_header_compiler=no
41713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41715 echo "${ECHO_T}$ac_header_compiler" >&6; }
41717 # Is the header present?
41718 { echo "$as_me:$LINENO: checking libutil.h presence" >&5
41719 echo $ECHO_N "checking libutil.h presence... $ECHO_C" >&6; }
41720 cat >conftest.$ac_ext <<_ACEOF
41723 cat confdefs.h >>conftest.$ac_ext
41724 cat >>conftest.$ac_ext <<_ACEOF
41725 /* end confdefs.h. */
41726 #include <libutil.h>
41728 if { (ac_try="$ac_cpp conftest.$ac_ext"
41729 case "(($ac_try" in
41730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41731 *) ac_try_echo=$ac_try;;
41733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41736 grep -v '^ *+' conftest.er1 >conftest.err
41738 cat conftest.err >&5
41739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41740 (exit $ac_status); } >/dev/null && {
41741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41742 test ! -s conftest.err
41744 ac_header_preproc=yes
41746 echo "$as_me: failed program was:" >&5
41747 sed 's/^/| /' conftest.$ac_ext >&5
41749 ac_header_preproc=no
41752 rm -f conftest.err conftest.$ac_ext
41753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41754 echo "${ECHO_T}$ac_header_preproc" >&6; }
41756 # So? What about this header?
41757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41759 { echo "$as_me:$LINENO: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&5
41760 echo "$as_me: WARNING: libutil.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41761 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the compiler's result" >&5
41762 echo "$as_me: WARNING: libutil.h: proceeding with the compiler's result" >&2;}
41763 ac_header_preproc=yes
41766 { echo "$as_me:$LINENO: WARNING: libutil.h: present but cannot be compiled" >&5
41767 echo "$as_me: WARNING: libutil.h: present but cannot be compiled" >&2;}
41768 { echo "$as_me:$LINENO: WARNING: libutil.h: check for missing prerequisite headers?" >&5
41769 echo "$as_me: WARNING: libutil.h: check for missing prerequisite headers?" >&2;}
41770 { echo "$as_me:$LINENO: WARNING: libutil.h: see the Autoconf documentation" >&5
41771 echo "$as_me: WARNING: libutil.h: see the Autoconf documentation" >&2;}
41772 { echo "$as_me:$LINENO: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&5
41773 echo "$as_me: WARNING: libutil.h: section \"Present But Cannot Be Compiled\"" >&2;}
41774 { echo "$as_me:$LINENO: WARNING: libutil.h: proceeding with the preprocessor's result" >&5
41775 echo "$as_me: WARNING: libutil.h: proceeding with the preprocessor's result" >&2;}
41776 { echo "$as_me:$LINENO: WARNING: libutil.h: in the future, the compiler will take precedence" >&5
41777 echo "$as_me: WARNING: libutil.h: in the future, the compiler will take precedence" >&2;}
41781 { echo "$as_me:$LINENO: checking for libutil.h" >&5
41782 echo $ECHO_N "checking for libutil.h... $ECHO_C" >&6; }
41783 if test "${ac_cv_header_libutil_h+set}" = set; then
41784 echo $ECHO_N "(cached) $ECHO_C" >&6
41786 ac_cv_header_libutil_h=$ac_header_preproc
41788 { echo "$as_me:$LINENO: result: $ac_cv_header_libutil_h" >&5
41789 echo "${ECHO_T}$ac_cv_header_libutil_h" >&6; }
41792 if test $ac_cv_header_libutil_h = yes; then
41794 cat >>confdefs.h <<\_ACEOF
41795 #define HAVE_LIBUTIL_H 1
41804 for ac_func in extattr_get_link extattr_set_link extattr_list_link
41806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41810 echo $ECHO_N "(cached) $ECHO_C" >&6
41812 cat >conftest.$ac_ext <<_ACEOF
41815 cat confdefs.h >>conftest.$ac_ext
41816 cat >>conftest.$ac_ext <<_ACEOF
41817 /* end confdefs.h. */
41818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41820 #define $ac_func innocuous_$ac_func
41822 /* System header to define __stub macros and hopefully few prototypes,
41823 which can conflict with char $ac_func (); below.
41824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41825 <limits.h> exists even on freestanding compilers. */
41828 # include <limits.h>
41830 # include <assert.h>
41835 /* Override any GCC internal prototype to avoid an error.
41836 Use char because int might match the return type of a GCC
41837 builtin and then its argument prototype would still apply. */
41842 /* The GNU C library defines this for functions which it implements
41843 to always fail with ENOSYS. Some functions are actually named
41844 something starting with __ and the normal name is an alias. */
41845 #if defined __stub_$ac_func || defined __stub___$ac_func
41852 return $ac_func ();
41857 rm -f conftest.$ac_objext conftest$ac_exeext
41858 if { (ac_try="$ac_link"
41859 case "(($ac_try" in
41860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41861 *) ac_try_echo=$ac_try;;
41863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41864 (eval "$ac_link") 2>conftest.er1
41866 grep -v '^ *+' conftest.er1 >conftest.err
41868 cat conftest.err >&5
41869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41870 (exit $ac_status); } && {
41871 test -z "$ac_c_werror_flag" ||
41872 test ! -s conftest.err
41873 } && test -s conftest$ac_exeext &&
41874 $as_test_x conftest$ac_exeext; then
41875 eval "$as_ac_var=yes"
41877 echo "$as_me: failed program was:" >&5
41878 sed 's/^/| /' conftest.$ac_ext >&5
41880 eval "$as_ac_var=no"
41883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41884 conftest$ac_exeext conftest.$ac_ext
41886 ac_res=`eval echo '${'$as_ac_var'}'`
41887 { echo "$as_me:$LINENO: result: $ac_res" >&5
41888 echo "${ECHO_T}$ac_res" >&6; }
41889 if test `eval echo '${'$as_ac_var'}'` = yes; then
41890 cat >>confdefs.h <<_ACEOF
41891 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41896 cat >>confdefs.h <<\_ACEOF
41897 #define HAVE_EXTATTR_GET_LINK 1
41901 cat >>confdefs.h <<\_ACEOF
41902 #define HAVE_EXTATTR_SET_LINK 1
41906 cat >>confdefs.h <<\_ACEOF
41907 #define HAVE_EXTATTR_LIST_LINK 1
41916 if test $have_xattr = no; then
41920 for ac_func in extattr_get_file extattr_set_file extattr_list_file
41922 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41923 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41924 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41925 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41926 echo $ECHO_N "(cached) $ECHO_C" >&6
41928 cat >conftest.$ac_ext <<_ACEOF
41931 cat confdefs.h >>conftest.$ac_ext
41932 cat >>conftest.$ac_ext <<_ACEOF
41933 /* end confdefs.h. */
41934 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41935 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41936 #define $ac_func innocuous_$ac_func
41938 /* System header to define __stub macros and hopefully few prototypes,
41939 which can conflict with char $ac_func (); below.
41940 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41941 <limits.h> exists even on freestanding compilers. */
41944 # include <limits.h>
41946 # include <assert.h>
41951 /* Override any GCC internal prototype to avoid an error.
41952 Use char because int might match the return type of a GCC
41953 builtin and then its argument prototype would still apply. */
41958 /* The GNU C library defines this for functions which it implements
41959 to always fail with ENOSYS. Some functions are actually named
41960 something starting with __ and the normal name is an alias. */
41961 #if defined __stub_$ac_func || defined __stub___$ac_func
41968 return $ac_func ();
41973 rm -f conftest.$ac_objext conftest$ac_exeext
41974 if { (ac_try="$ac_link"
41975 case "(($ac_try" in
41976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41977 *) ac_try_echo=$ac_try;;
41979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41980 (eval "$ac_link") 2>conftest.er1
41982 grep -v '^ *+' conftest.er1 >conftest.err
41984 cat conftest.err >&5
41985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41986 (exit $ac_status); } && {
41987 test -z "$ac_c_werror_flag" ||
41988 test ! -s conftest.err
41989 } && test -s conftest$ac_exeext &&
41990 $as_test_x conftest$ac_exeext; then
41991 eval "$as_ac_var=yes"
41993 echo "$as_me: failed program was:" >&5
41994 sed 's/^/| /' conftest.$ac_ext >&5
41996 eval "$as_ac_var=no"
41999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42000 conftest$ac_exeext conftest.$ac_ext
42002 ac_res=`eval echo '${'$as_ac_var'}'`
42003 { echo "$as_me:$LINENO: result: $ac_res" >&5
42004 echo "${ECHO_T}$ac_res" >&6; }
42005 if test `eval echo '${'$as_ac_var'}'` = yes; then
42006 cat >>confdefs.h <<_ACEOF
42007 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42012 cat >>confdefs.h <<\_ACEOF
42013 #define HAVE_EXTATTR_GET_FILE 1
42017 cat >>confdefs.h <<\_ACEOF
42018 #define HAVE_EXTATTR_SET_FILE 1
42022 cat >>confdefs.h <<\_ACEOF
42023 #define HAVE_EXTATTR_LIST_FILE 1
42033 if test $have_xattr = yes; then
42034 have_extattr_string_in_libc=no
42037 for ac_func in extattr_namespace_to_string extattr_string_to_namespace
42039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42040 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42042 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42043 echo $ECHO_N "(cached) $ECHO_C" >&6
42045 cat >conftest.$ac_ext <<_ACEOF
42048 cat confdefs.h >>conftest.$ac_ext
42049 cat >>conftest.$ac_ext <<_ACEOF
42050 /* end confdefs.h. */
42051 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42053 #define $ac_func innocuous_$ac_func
42055 /* System header to define __stub macros and hopefully few prototypes,
42056 which can conflict with char $ac_func (); below.
42057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42058 <limits.h> exists even on freestanding compilers. */
42061 # include <limits.h>
42063 # include <assert.h>
42068 /* Override any GCC internal prototype to avoid an error.
42069 Use char because int might match the return type of a GCC
42070 builtin and then its argument prototype would still apply. */
42075 /* The GNU C library defines this for functions which it implements
42076 to always fail with ENOSYS. Some functions are actually named
42077 something starting with __ and the normal name is an alias. */
42078 #if defined __stub_$ac_func || defined __stub___$ac_func
42085 return $ac_func ();
42090 rm -f conftest.$ac_objext conftest$ac_exeext
42091 if { (ac_try="$ac_link"
42092 case "(($ac_try" in
42093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42094 *) ac_try_echo=$ac_try;;
42096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42097 (eval "$ac_link") 2>conftest.er1
42099 grep -v '^ *+' conftest.er1 >conftest.err
42101 cat conftest.err >&5
42102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42103 (exit $ac_status); } && {
42104 test -z "$ac_c_werror_flag" ||
42105 test ! -s conftest.err
42106 } && test -s conftest$ac_exeext &&
42107 $as_test_x conftest$ac_exeext; then
42108 eval "$as_ac_var=yes"
42110 echo "$as_me: failed program was:" >&5
42111 sed 's/^/| /' conftest.$ac_ext >&5
42113 eval "$as_ac_var=no"
42116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42117 conftest$ac_exeext conftest.$ac_ext
42119 ac_res=`eval echo '${'$as_ac_var'}'`
42120 { echo "$as_me:$LINENO: result: $ac_res" >&5
42121 echo "${ECHO_T}$ac_res" >&6; }
42122 if test `eval echo '${'$as_ac_var'}'` = yes; then
42123 cat >>confdefs.h <<_ACEOF
42124 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42127 have_extattr_string_in_libc=yes
42129 cat >>confdefs.h <<\_ACEOF
42130 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42134 cat >>confdefs.h <<\_ACEOF
42135 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42144 if test $have_extattr_string_in_libc = no; then
42145 { echo "$as_me:$LINENO: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
42146 echo $ECHO_N "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... $ECHO_C" >&6; }
42147 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then
42148 echo $ECHO_N "(cached) $ECHO_C" >&6
42150 ac_check_lib_save_LIBS=$LIBS
42151 LIBS="-lutil $LIBS"
42152 cat >conftest.$ac_ext <<_ACEOF
42155 cat confdefs.h >>conftest.$ac_ext
42156 cat >>conftest.$ac_ext <<_ACEOF
42157 /* end confdefs.h. */
42159 /* Override any GCC internal prototype to avoid an error.
42160 Use char because int might match the return type of a GCC
42161 builtin and then its argument prototype would still apply. */
42165 char extattr_namespace_to_string extattr_string_to_namespace ();
42169 return extattr_namespace_to_string extattr_string_to_namespace ();
42174 rm -f conftest.$ac_objext conftest$ac_exeext
42175 if { (ac_try="$ac_link"
42176 case "(($ac_try" in
42177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42178 *) ac_try_echo=$ac_try;;
42180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42181 (eval "$ac_link") 2>conftest.er1
42183 grep -v '^ *+' conftest.er1 >conftest.err
42185 cat conftest.err >&5
42186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42187 (exit $ac_status); } && {
42188 test -z "$ac_c_werror_flag" ||
42189 test ! -s conftest.err
42190 } && test -s conftest$ac_exeext &&
42191 $as_test_x conftest$ac_exeext; then
42192 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
42194 echo "$as_me: failed program was:" >&5
42195 sed 's/^/| /' conftest.$ac_ext >&5
42197 ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
42200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42201 conftest$ac_exeext conftest.$ac_ext
42202 LIBS=$ac_check_lib_save_LIBS
42204 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
42205 echo "${ECHO_T}$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
42206 if test $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace = yes; then
42209 cat >>confdefs.h <<\_ACEOF
42210 #define HAVE_EXTATTR_NAMESPACE_TO_STRING 1
42214 cat >>confdefs.h <<\_ACEOF
42215 #define HAVE_EXTATTR_STRING_TO_NAMESPACE 1
42218 FDLIBS="-lutil $FDLIBS"
42226 if test $have_xattr = no; then
42227 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42228 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42229 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42230 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42231 echo $ECHO_N "(cached) $ECHO_C" >&6
42233 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42234 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42236 # Is the header compilable?
42237 { echo "$as_me:$LINENO: checking sys/xattr.h usability" >&5
42238 echo $ECHO_N "checking sys/xattr.h usability... $ECHO_C" >&6; }
42239 cat >conftest.$ac_ext <<_ACEOF
42242 cat confdefs.h >>conftest.$ac_ext
42243 cat >>conftest.$ac_ext <<_ACEOF
42244 /* end confdefs.h. */
42245 $ac_includes_default
42246 #include <sys/xattr.h>
42248 rm -f conftest.$ac_objext
42249 if { (ac_try="$ac_compile"
42250 case "(($ac_try" in
42251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42252 *) ac_try_echo=$ac_try;;
42254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42255 (eval "$ac_compile") 2>conftest.er1
42257 grep -v '^ *+' conftest.er1 >conftest.err
42259 cat conftest.err >&5
42260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42261 (exit $ac_status); } && {
42262 test -z "$ac_c_werror_flag" ||
42263 test ! -s conftest.err
42264 } && test -s conftest.$ac_objext; then
42265 ac_header_compiler=yes
42267 echo "$as_me: failed program was:" >&5
42268 sed 's/^/| /' conftest.$ac_ext >&5
42270 ac_header_compiler=no
42273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42275 echo "${ECHO_T}$ac_header_compiler" >&6; }
42277 # Is the header present?
42278 { echo "$as_me:$LINENO: checking sys/xattr.h presence" >&5
42279 echo $ECHO_N "checking sys/xattr.h presence... $ECHO_C" >&6; }
42280 cat >conftest.$ac_ext <<_ACEOF
42283 cat confdefs.h >>conftest.$ac_ext
42284 cat >>conftest.$ac_ext <<_ACEOF
42285 /* end confdefs.h. */
42286 #include <sys/xattr.h>
42288 if { (ac_try="$ac_cpp conftest.$ac_ext"
42289 case "(($ac_try" in
42290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42291 *) ac_try_echo=$ac_try;;
42293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42296 grep -v '^ *+' conftest.er1 >conftest.err
42298 cat conftest.err >&5
42299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42300 (exit $ac_status); } >/dev/null && {
42301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42302 test ! -s conftest.err
42304 ac_header_preproc=yes
42306 echo "$as_me: failed program was:" >&5
42307 sed 's/^/| /' conftest.$ac_ext >&5
42309 ac_header_preproc=no
42312 rm -f conftest.err conftest.$ac_ext
42313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42314 echo "${ECHO_T}$ac_header_preproc" >&6; }
42316 # So? What about this header?
42317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42319 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42320 echo "$as_me: WARNING: sys/xattr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42321 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the compiler's result" >&5
42322 echo "$as_me: WARNING: sys/xattr.h: proceeding with the compiler's result" >&2;}
42323 ac_header_preproc=yes
42326 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: present but cannot be compiled" >&5
42327 echo "$as_me: WARNING: sys/xattr.h: present but cannot be compiled" >&2;}
42328 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&5
42329 echo "$as_me: WARNING: sys/xattr.h: check for missing prerequisite headers?" >&2;}
42330 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: see the Autoconf documentation" >&5
42331 echo "$as_me: WARNING: sys/xattr.h: see the Autoconf documentation" >&2;}
42332 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&5
42333 echo "$as_me: WARNING: sys/xattr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42334 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&5
42335 echo "$as_me: WARNING: sys/xattr.h: proceeding with the preprocessor's result" >&2;}
42336 { echo "$as_me:$LINENO: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&5
42337 echo "$as_me: WARNING: sys/xattr.h: in the future, the compiler will take precedence" >&2;}
42341 { echo "$as_me:$LINENO: checking for sys/xattr.h" >&5
42342 echo $ECHO_N "checking for sys/xattr.h... $ECHO_C" >&6; }
42343 if test "${ac_cv_header_sys_xattr_h+set}" = set; then
42344 echo $ECHO_N "(cached) $ECHO_C" >&6
42346 ac_cv_header_sys_xattr_h=$ac_header_preproc
42348 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_xattr_h" >&5
42349 echo "${ECHO_T}$ac_cv_header_sys_xattr_h" >&6; }
42352 if test $ac_cv_header_sys_xattr_h = yes; then
42354 cat >>confdefs.h <<\_ACEOF
42355 #define HAVE_SYS_XATTR_H 1
42364 for ac_func in llistxattr lgetxattr lsetxattr
42366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42370 echo $ECHO_N "(cached) $ECHO_C" >&6
42372 cat >conftest.$ac_ext <<_ACEOF
42375 cat confdefs.h >>conftest.$ac_ext
42376 cat >>conftest.$ac_ext <<_ACEOF
42377 /* end confdefs.h. */
42378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42380 #define $ac_func innocuous_$ac_func
42382 /* System header to define __stub macros and hopefully few prototypes,
42383 which can conflict with char $ac_func (); below.
42384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42385 <limits.h> exists even on freestanding compilers. */
42388 # include <limits.h>
42390 # include <assert.h>
42395 /* Override any GCC internal prototype to avoid an error.
42396 Use char because int might match the return type of a GCC
42397 builtin and then its argument prototype would still apply. */
42402 /* The GNU C library defines this for functions which it implements
42403 to always fail with ENOSYS. Some functions are actually named
42404 something starting with __ and the normal name is an alias. */
42405 #if defined __stub_$ac_func || defined __stub___$ac_func
42412 return $ac_func ();
42417 rm -f conftest.$ac_objext conftest$ac_exeext
42418 if { (ac_try="$ac_link"
42419 case "(($ac_try" in
42420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42421 *) ac_try_echo=$ac_try;;
42423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42424 (eval "$ac_link") 2>conftest.er1
42426 grep -v '^ *+' conftest.er1 >conftest.err
42428 cat conftest.err >&5
42429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42430 (exit $ac_status); } && {
42431 test -z "$ac_c_werror_flag" ||
42432 test ! -s conftest.err
42433 } && test -s conftest$ac_exeext &&
42434 $as_test_x conftest$ac_exeext; then
42435 eval "$as_ac_var=yes"
42437 echo "$as_me: failed program was:" >&5
42438 sed 's/^/| /' conftest.$ac_ext >&5
42440 eval "$as_ac_var=no"
42443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42444 conftest$ac_exeext conftest.$ac_ext
42446 ac_res=`eval echo '${'$as_ac_var'}'`
42447 { echo "$as_me:$LINENO: result: $ac_res" >&5
42448 echo "${ECHO_T}$ac_res" >&6; }
42449 if test `eval echo '${'$as_ac_var'}'` = yes; then
42450 cat >>confdefs.h <<_ACEOF
42451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42456 cat >>confdefs.h <<\_ACEOF
42457 #define HAVE_LLISTXATTR 1
42461 cat >>confdefs.h <<\_ACEOF
42462 #define HAVE_LGETXATTR 1
42466 cat >>confdefs.h <<\_ACEOF
42467 #define HAVE_LSETXATTR 1
42476 if test $have_xattr = no; then
42480 for ac_func in listxattr getxattr setxattr
42482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42486 echo $ECHO_N "(cached) $ECHO_C" >&6
42488 cat >conftest.$ac_ext <<_ACEOF
42491 cat confdefs.h >>conftest.$ac_ext
42492 cat >>conftest.$ac_ext <<_ACEOF
42493 /* end confdefs.h. */
42494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42496 #define $ac_func innocuous_$ac_func
42498 /* System header to define __stub macros and hopefully few prototypes,
42499 which can conflict with char $ac_func (); below.
42500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42501 <limits.h> exists even on freestanding compilers. */
42504 # include <limits.h>
42506 # include <assert.h>
42511 /* Override any GCC internal prototype to avoid an error.
42512 Use char because int might match the return type of a GCC
42513 builtin and then its argument prototype would still apply. */
42518 /* The GNU C library defines this for functions which it implements
42519 to always fail with ENOSYS. Some functions are actually named
42520 something starting with __ and the normal name is an alias. */
42521 #if defined __stub_$ac_func || defined __stub___$ac_func
42528 return $ac_func ();
42533 rm -f conftest.$ac_objext conftest$ac_exeext
42534 if { (ac_try="$ac_link"
42535 case "(($ac_try" in
42536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42537 *) ac_try_echo=$ac_try;;
42539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42540 (eval "$ac_link") 2>conftest.er1
42542 grep -v '^ *+' conftest.er1 >conftest.err
42544 cat conftest.err >&5
42545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42546 (exit $ac_status); } && {
42547 test -z "$ac_c_werror_flag" ||
42548 test ! -s conftest.err
42549 } && test -s conftest$ac_exeext &&
42550 $as_test_x conftest$ac_exeext; then
42551 eval "$as_ac_var=yes"
42553 echo "$as_me: failed program was:" >&5
42554 sed 's/^/| /' conftest.$ac_ext >&5
42556 eval "$as_ac_var=no"
42559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42560 conftest$ac_exeext conftest.$ac_ext
42562 ac_res=`eval echo '${'$as_ac_var'}'`
42563 { echo "$as_me:$LINENO: result: $ac_res" >&5
42564 echo "${ECHO_T}$ac_res" >&6; }
42565 if test `eval echo '${'$as_ac_var'}'` = yes; then
42566 cat >>confdefs.h <<_ACEOF
42567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42572 cat >>confdefs.h <<\_ACEOF
42573 #define HAVE_LISTXATTR 1
42577 cat >>confdefs.h <<\_ACEOF
42578 #define HAVE_GETXATTR 1
42582 cat >>confdefs.h <<\_ACEOF
42583 #define HAVE_SETXATTR 1
42594 if test $have_xattr = no; then
42595 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42596 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42597 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42598 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42599 echo $ECHO_N "(cached) $ECHO_C" >&6
42601 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42602 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42604 # Is the header compilable?
42605 { echo "$as_me:$LINENO: checking sys/attr.h usability" >&5
42606 echo $ECHO_N "checking sys/attr.h usability... $ECHO_C" >&6; }
42607 cat >conftest.$ac_ext <<_ACEOF
42610 cat confdefs.h >>conftest.$ac_ext
42611 cat >>conftest.$ac_ext <<_ACEOF
42612 /* end confdefs.h. */
42613 $ac_includes_default
42614 #include <sys/attr.h>
42616 rm -f conftest.$ac_objext
42617 if { (ac_try="$ac_compile"
42618 case "(($ac_try" in
42619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42620 *) ac_try_echo=$ac_try;;
42622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42623 (eval "$ac_compile") 2>conftest.er1
42625 grep -v '^ *+' conftest.er1 >conftest.err
42627 cat conftest.err >&5
42628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42629 (exit $ac_status); } && {
42630 test -z "$ac_c_werror_flag" ||
42631 test ! -s conftest.err
42632 } && test -s conftest.$ac_objext; then
42633 ac_header_compiler=yes
42635 echo "$as_me: failed program was:" >&5
42636 sed 's/^/| /' conftest.$ac_ext >&5
42638 ac_header_compiler=no
42641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42642 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42643 echo "${ECHO_T}$ac_header_compiler" >&6; }
42645 # Is the header present?
42646 { echo "$as_me:$LINENO: checking sys/attr.h presence" >&5
42647 echo $ECHO_N "checking sys/attr.h presence... $ECHO_C" >&6; }
42648 cat >conftest.$ac_ext <<_ACEOF
42651 cat confdefs.h >>conftest.$ac_ext
42652 cat >>conftest.$ac_ext <<_ACEOF
42653 /* end confdefs.h. */
42654 #include <sys/attr.h>
42656 if { (ac_try="$ac_cpp conftest.$ac_ext"
42657 case "(($ac_try" in
42658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42659 *) ac_try_echo=$ac_try;;
42661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42664 grep -v '^ *+' conftest.er1 >conftest.err
42666 cat conftest.err >&5
42667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42668 (exit $ac_status); } >/dev/null && {
42669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42670 test ! -s conftest.err
42672 ac_header_preproc=yes
42674 echo "$as_me: failed program was:" >&5
42675 sed 's/^/| /' conftest.$ac_ext >&5
42677 ac_header_preproc=no
42680 rm -f conftest.err conftest.$ac_ext
42681 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42682 echo "${ECHO_T}$ac_header_preproc" >&6; }
42684 # So? What about this header?
42685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42687 { echo "$as_me:$LINENO: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42688 echo "$as_me: WARNING: sys/attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42689 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the compiler's result" >&5
42690 echo "$as_me: WARNING: sys/attr.h: proceeding with the compiler's result" >&2;}
42691 ac_header_preproc=yes
42694 { echo "$as_me:$LINENO: WARNING: sys/attr.h: present but cannot be compiled" >&5
42695 echo "$as_me: WARNING: sys/attr.h: present but cannot be compiled" >&2;}
42696 { echo "$as_me:$LINENO: WARNING: sys/attr.h: check for missing prerequisite headers?" >&5
42697 echo "$as_me: WARNING: sys/attr.h: check for missing prerequisite headers?" >&2;}
42698 { echo "$as_me:$LINENO: WARNING: sys/attr.h: see the Autoconf documentation" >&5
42699 echo "$as_me: WARNING: sys/attr.h: see the Autoconf documentation" >&2;}
42700 { echo "$as_me:$LINENO: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&5
42701 echo "$as_me: WARNING: sys/attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42702 { echo "$as_me:$LINENO: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&5
42703 echo "$as_me: WARNING: sys/attr.h: proceeding with the preprocessor's result" >&2;}
42704 { echo "$as_me:$LINENO: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&5
42705 echo "$as_me: WARNING: sys/attr.h: in the future, the compiler will take precedence" >&2;}
42709 { echo "$as_me:$LINENO: checking for sys/attr.h" >&5
42710 echo $ECHO_N "checking for sys/attr.h... $ECHO_C" >&6; }
42711 if test "${ac_cv_header_sys_attr_h+set}" = set; then
42712 echo $ECHO_N "(cached) $ECHO_C" >&6
42714 ac_cv_header_sys_attr_h=$ac_header_preproc
42716 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_attr_h" >&5
42717 echo "${ECHO_T}$ac_cv_header_sys_attr_h" >&6; }
42720 if test $ac_cv_header_sys_attr_h = yes; then
42722 cat >>confdefs.h <<\_ACEOF
42723 #define HAVE_SYS_ATTR_H 1
42729 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42730 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42731 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42732 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42733 echo $ECHO_N "(cached) $ECHO_C" >&6
42735 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42736 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42738 # Is the header compilable?
42739 { echo "$as_me:$LINENO: checking sys/nvpair.h usability" >&5
42740 echo $ECHO_N "checking sys/nvpair.h usability... $ECHO_C" >&6; }
42741 cat >conftest.$ac_ext <<_ACEOF
42744 cat confdefs.h >>conftest.$ac_ext
42745 cat >>conftest.$ac_ext <<_ACEOF
42746 /* end confdefs.h. */
42747 $ac_includes_default
42748 #include <sys/nvpair.h>
42750 rm -f conftest.$ac_objext
42751 if { (ac_try="$ac_compile"
42752 case "(($ac_try" in
42753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42754 *) ac_try_echo=$ac_try;;
42756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42757 (eval "$ac_compile") 2>conftest.er1
42759 grep -v '^ *+' conftest.er1 >conftest.err
42761 cat conftest.err >&5
42762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42763 (exit $ac_status); } && {
42764 test -z "$ac_c_werror_flag" ||
42765 test ! -s conftest.err
42766 } && test -s conftest.$ac_objext; then
42767 ac_header_compiler=yes
42769 echo "$as_me: failed program was:" >&5
42770 sed 's/^/| /' conftest.$ac_ext >&5
42772 ac_header_compiler=no
42775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42777 echo "${ECHO_T}$ac_header_compiler" >&6; }
42779 # Is the header present?
42780 { echo "$as_me:$LINENO: checking sys/nvpair.h presence" >&5
42781 echo $ECHO_N "checking sys/nvpair.h presence... $ECHO_C" >&6; }
42782 cat >conftest.$ac_ext <<_ACEOF
42785 cat confdefs.h >>conftest.$ac_ext
42786 cat >>conftest.$ac_ext <<_ACEOF
42787 /* end confdefs.h. */
42788 #include <sys/nvpair.h>
42790 if { (ac_try="$ac_cpp conftest.$ac_ext"
42791 case "(($ac_try" in
42792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42793 *) ac_try_echo=$ac_try;;
42795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42798 grep -v '^ *+' conftest.er1 >conftest.err
42800 cat conftest.err >&5
42801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42802 (exit $ac_status); } >/dev/null && {
42803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42804 test ! -s conftest.err
42806 ac_header_preproc=yes
42808 echo "$as_me: failed program was:" >&5
42809 sed 's/^/| /' conftest.$ac_ext >&5
42811 ac_header_preproc=no
42814 rm -f conftest.err conftest.$ac_ext
42815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42816 echo "${ECHO_T}$ac_header_preproc" >&6; }
42818 # So? What about this header?
42819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42821 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&5
42822 echo "$as_me: WARNING: sys/nvpair.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42823 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&5
42824 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the compiler's result" >&2;}
42825 ac_header_preproc=yes
42828 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: present but cannot be compiled" >&5
42829 echo "$as_me: WARNING: sys/nvpair.h: present but cannot be compiled" >&2;}
42830 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&5
42831 echo "$as_me: WARNING: sys/nvpair.h: check for missing prerequisite headers?" >&2;}
42832 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: see the Autoconf documentation" >&5
42833 echo "$as_me: WARNING: sys/nvpair.h: see the Autoconf documentation" >&2;}
42834 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&5
42835 echo "$as_me: WARNING: sys/nvpair.h: section \"Present But Cannot Be Compiled\"" >&2;}
42836 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&5
42837 echo "$as_me: WARNING: sys/nvpair.h: proceeding with the preprocessor's result" >&2;}
42838 { echo "$as_me:$LINENO: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&5
42839 echo "$as_me: WARNING: sys/nvpair.h: in the future, the compiler will take precedence" >&2;}
42843 { echo "$as_me:$LINENO: checking for sys/nvpair.h" >&5
42844 echo $ECHO_N "checking for sys/nvpair.h... $ECHO_C" >&6; }
42845 if test "${ac_cv_header_sys_nvpair_h+set}" = set; then
42846 echo $ECHO_N "(cached) $ECHO_C" >&6
42848 ac_cv_header_sys_nvpair_h=$ac_header_preproc
42850 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_nvpair_h" >&5
42851 echo "${ECHO_T}$ac_cv_header_sys_nvpair_h" >&6; }
42854 if test $ac_cv_header_sys_nvpair_h = yes; then
42856 cat >>confdefs.h <<\_ACEOF
42857 #define HAVE_SYS_NVPAIR_H 1
42863 if test "${ac_cv_header_attr_h+set}" = set; then
42864 { echo "$as_me:$LINENO: checking for attr.h" >&5
42865 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42866 if test "${ac_cv_header_attr_h+set}" = set; then
42867 echo $ECHO_N "(cached) $ECHO_C" >&6
42869 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42870 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42872 # Is the header compilable?
42873 { echo "$as_me:$LINENO: checking attr.h usability" >&5
42874 echo $ECHO_N "checking attr.h usability... $ECHO_C" >&6; }
42875 cat >conftest.$ac_ext <<_ACEOF
42878 cat confdefs.h >>conftest.$ac_ext
42879 cat >>conftest.$ac_ext <<_ACEOF
42880 /* end confdefs.h. */
42881 $ac_includes_default
42884 rm -f conftest.$ac_objext
42885 if { (ac_try="$ac_compile"
42886 case "(($ac_try" in
42887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42888 *) ac_try_echo=$ac_try;;
42890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42891 (eval "$ac_compile") 2>conftest.er1
42893 grep -v '^ *+' conftest.er1 >conftest.err
42895 cat conftest.err >&5
42896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42897 (exit $ac_status); } && {
42898 test -z "$ac_c_werror_flag" ||
42899 test ! -s conftest.err
42900 } && test -s conftest.$ac_objext; then
42901 ac_header_compiler=yes
42903 echo "$as_me: failed program was:" >&5
42904 sed 's/^/| /' conftest.$ac_ext >&5
42906 ac_header_compiler=no
42909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42910 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42911 echo "${ECHO_T}$ac_header_compiler" >&6; }
42913 # Is the header present?
42914 { echo "$as_me:$LINENO: checking attr.h presence" >&5
42915 echo $ECHO_N "checking attr.h presence... $ECHO_C" >&6; }
42916 cat >conftest.$ac_ext <<_ACEOF
42919 cat confdefs.h >>conftest.$ac_ext
42920 cat >>conftest.$ac_ext <<_ACEOF
42921 /* end confdefs.h. */
42924 if { (ac_try="$ac_cpp conftest.$ac_ext"
42925 case "(($ac_try" in
42926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42927 *) ac_try_echo=$ac_try;;
42929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42932 grep -v '^ *+' conftest.er1 >conftest.err
42934 cat conftest.err >&5
42935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42936 (exit $ac_status); } >/dev/null && {
42937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42938 test ! -s conftest.err
42940 ac_header_preproc=yes
42942 echo "$as_me: failed program was:" >&5
42943 sed 's/^/| /' conftest.$ac_ext >&5
42945 ac_header_preproc=no
42948 rm -f conftest.err conftest.$ac_ext
42949 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42950 echo "${ECHO_T}$ac_header_preproc" >&6; }
42952 # So? What about this header?
42953 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42955 { echo "$as_me:$LINENO: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&5
42956 echo "$as_me: WARNING: attr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42957 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the compiler's result" >&5
42958 echo "$as_me: WARNING: attr.h: proceeding with the compiler's result" >&2;}
42959 ac_header_preproc=yes
42962 { echo "$as_me:$LINENO: WARNING: attr.h: present but cannot be compiled" >&5
42963 echo "$as_me: WARNING: attr.h: present but cannot be compiled" >&2;}
42964 { echo "$as_me:$LINENO: WARNING: attr.h: check for missing prerequisite headers?" >&5
42965 echo "$as_me: WARNING: attr.h: check for missing prerequisite headers?" >&2;}
42966 { echo "$as_me:$LINENO: WARNING: attr.h: see the Autoconf documentation" >&5
42967 echo "$as_me: WARNING: attr.h: see the Autoconf documentation" >&2;}
42968 { echo "$as_me:$LINENO: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&5
42969 echo "$as_me: WARNING: attr.h: section \"Present But Cannot Be Compiled\"" >&2;}
42970 { echo "$as_me:$LINENO: WARNING: attr.h: proceeding with the preprocessor's result" >&5
42971 echo "$as_me: WARNING: attr.h: proceeding with the preprocessor's result" >&2;}
42972 { echo "$as_me:$LINENO: WARNING: attr.h: in the future, the compiler will take precedence" >&5
42973 echo "$as_me: WARNING: attr.h: in the future, the compiler will take precedence" >&2;}
42977 { echo "$as_me:$LINENO: checking for attr.h" >&5
42978 echo $ECHO_N "checking for attr.h... $ECHO_C" >&6; }
42979 if test "${ac_cv_header_attr_h+set}" = set; then
42980 echo $ECHO_N "(cached) $ECHO_C" >&6
42982 ac_cv_header_attr_h=$ac_header_preproc
42984 { echo "$as_me:$LINENO: result: $ac_cv_header_attr_h" >&5
42985 echo "${ECHO_T}$ac_cv_header_attr_h" >&6; }
42988 if test $ac_cv_header_attr_h = yes; then
42990 cat >>confdefs.h <<\_ACEOF
42991 #define HAVE_ATTR_H 1
43003 for ac_func in openat fstatat unlinkat fchownat futimesat
43005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43009 echo $ECHO_N "(cached) $ECHO_C" >&6
43011 cat >conftest.$ac_ext <<_ACEOF
43014 cat confdefs.h >>conftest.$ac_ext
43015 cat >>conftest.$ac_ext <<_ACEOF
43016 /* end confdefs.h. */
43017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43019 #define $ac_func innocuous_$ac_func
43021 /* System header to define __stub macros and hopefully few prototypes,
43022 which can conflict with char $ac_func (); below.
43023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43024 <limits.h> exists even on freestanding compilers. */
43027 # include <limits.h>
43029 # include <assert.h>
43034 /* Override any GCC internal prototype to avoid an error.
43035 Use char because int might match the return type of a GCC
43036 builtin and then its argument prototype would still apply. */
43041 /* The GNU C library defines this for functions which it implements
43042 to always fail with ENOSYS. Some functions are actually named
43043 something starting with __ and the normal name is an alias. */
43044 #if defined __stub_$ac_func || defined __stub___$ac_func
43051 return $ac_func ();
43056 rm -f conftest.$ac_objext conftest$ac_exeext
43057 if { (ac_try="$ac_link"
43058 case "(($ac_try" in
43059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43060 *) ac_try_echo=$ac_try;;
43062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43063 (eval "$ac_link") 2>conftest.er1
43065 grep -v '^ *+' conftest.er1 >conftest.err
43067 cat conftest.err >&5
43068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43069 (exit $ac_status); } && {
43070 test -z "$ac_c_werror_flag" ||
43071 test ! -s conftest.err
43072 } && test -s conftest$ac_exeext &&
43073 $as_test_x conftest$ac_exeext; then
43074 eval "$as_ac_var=yes"
43076 echo "$as_me: failed program was:" >&5
43077 sed 's/^/| /' conftest.$ac_ext >&5
43079 eval "$as_ac_var=no"
43082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43083 conftest$ac_exeext conftest.$ac_ext
43085 ac_res=`eval echo '${'$as_ac_var'}'`
43086 { echo "$as_me:$LINENO: result: $ac_res" >&5
43087 echo "${ECHO_T}$ac_res" >&6; }
43088 if test `eval echo '${'$as_ac_var'}'` = yes; then
43089 cat >>confdefs.h <<_ACEOF
43090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43095 cat >>confdefs.h <<\_ACEOF
43096 #define HAVE_OPENAT 1
43100 cat >>confdefs.h <<\_ACEOF
43101 #define HAVE_FSTATAT 1
43105 cat >>confdefs.h <<\_ACEOF
43106 #define HAVE_UNLINKAT 1
43110 cat >>confdefs.h <<\_ACEOF
43111 #define HAVE_FCHOWNAT 1
43115 cat >>confdefs.h <<\_ACEOF
43116 #define HAVE_FUTIMESAT 1
43125 if test $have_xattr = yes; then
43126 { echo "$as_me:$LINENO: checking for nvlist_next_nvpair in -lnvpair" >&5
43127 echo $ECHO_N "checking for nvlist_next_nvpair in -lnvpair... $ECHO_C" >&6; }
43128 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then
43129 echo $ECHO_N "(cached) $ECHO_C" >&6
43131 ac_check_lib_save_LIBS=$LIBS
43132 LIBS="-lnvpair $LIBS"
43133 cat >conftest.$ac_ext <<_ACEOF
43136 cat confdefs.h >>conftest.$ac_ext
43137 cat >>conftest.$ac_ext <<_ACEOF
43138 /* end confdefs.h. */
43140 /* Override any GCC internal prototype to avoid an error.
43141 Use char because int might match the return type of a GCC
43142 builtin and then its argument prototype would still apply. */
43146 char nvlist_next_nvpair ();
43150 return nvlist_next_nvpair ();
43155 rm -f conftest.$ac_objext conftest$ac_exeext
43156 if { (ac_try="$ac_link"
43157 case "(($ac_try" in
43158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43159 *) ac_try_echo=$ac_try;;
43161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43162 (eval "$ac_link") 2>conftest.er1
43164 grep -v '^ *+' conftest.er1 >conftest.err
43166 cat conftest.err >&5
43167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43168 (exit $ac_status); } && {
43169 test -z "$ac_c_werror_flag" ||
43170 test ! -s conftest.err
43171 } && test -s conftest$ac_exeext &&
43172 $as_test_x conftest$ac_exeext; then
43173 ac_cv_lib_nvpair_nvlist_next_nvpair=yes
43175 echo "$as_me: failed program was:" >&5
43176 sed 's/^/| /' conftest.$ac_ext >&5
43178 ac_cv_lib_nvpair_nvlist_next_nvpair=no
43181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43182 conftest$ac_exeext conftest.$ac_ext
43183 LIBS=$ac_check_lib_save_LIBS
43185 { echo "$as_me:$LINENO: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
43186 echo "${ECHO_T}$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
43187 if test $ac_cv_lib_nvpair_nvlist_next_nvpair = yes; then
43190 cat >>confdefs.h <<\_ACEOF
43191 #define HAVE_NVLIST_NEXT_NVPAIR 1
43194 FDLIBS="-lnvpair $FDLIBS"
43202 if test x$support_xattr = xyes -a $have_xattr != yes; then
43203 { { echo "$as_me:$LINENO: error: xattr support explicitly enabled but no supported xattr implementation found,
43204 please either load the xattr libraries or rerun configure without --enable-xattr" >&5
43205 echo "$as_me: error: xattr support explicitly enabled but no supported xattr implementation found,
43206 please either load the xattr libraries or rerun configure without --enable-xattr" >&2;}
43207 { (exit 1); exit 1; }; }
43209 if test $have_xattr = yes; then
43211 cat >>confdefs.h <<\_ACEOF
43212 #define HAVE_XATTR 1
43220 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
43221 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
43222 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
43223 echo $ECHO_N "(cached) $ECHO_C" >&6
43225 ac_check_lib_save_LIBS=$LIBS
43226 LIBS="-lpthread $LIBS"
43227 cat >conftest.$ac_ext <<_ACEOF
43230 cat confdefs.h >>conftest.$ac_ext
43231 cat >>conftest.$ac_ext <<_ACEOF
43232 /* end confdefs.h. */
43234 /* Override any GCC internal prototype to avoid an error.
43235 Use char because int might match the return type of a GCC
43236 builtin and then its argument prototype would still apply. */
43240 char pthread_create ();
43244 return pthread_create ();
43249 rm -f conftest.$ac_objext conftest$ac_exeext
43250 if { (ac_try="$ac_link"
43251 case "(($ac_try" in
43252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43253 *) ac_try_echo=$ac_try;;
43255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43256 (eval "$ac_link") 2>conftest.er1
43258 grep -v '^ *+' conftest.er1 >conftest.err
43260 cat conftest.err >&5
43261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43262 (exit $ac_status); } && {
43263 test -z "$ac_c_werror_flag" ||
43264 test ! -s conftest.err
43265 } && test -s conftest$ac_exeext &&
43266 $as_test_x conftest$ac_exeext; then
43267 ac_cv_lib_pthread_pthread_create=yes
43269 echo "$as_me: failed program was:" >&5
43270 sed 's/^/| /' conftest.$ac_ext >&5
43272 ac_cv_lib_pthread_pthread_create=no
43275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43276 conftest$ac_exeext conftest.$ac_ext
43277 LIBS=$ac_check_lib_save_LIBS
43279 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
43280 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
43281 if test $ac_cv_lib_pthread_pthread_create = yes; then
43282 PTHREAD_LIB="-lpthread"
43285 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
43286 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
43287 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
43288 echo $ECHO_N "(cached) $ECHO_C" >&6
43290 ac_check_lib_save_LIBS=$LIBS
43291 LIBS="-lpthreads $LIBS"
43292 cat >conftest.$ac_ext <<_ACEOF
43295 cat confdefs.h >>conftest.$ac_ext
43296 cat >>conftest.$ac_ext <<_ACEOF
43297 /* end confdefs.h. */
43299 /* Override any GCC internal prototype to avoid an error.
43300 Use char because int might match the return type of a GCC
43301 builtin and then its argument prototype would still apply. */
43305 char pthread_create ();
43309 return pthread_create ();
43314 rm -f conftest.$ac_objext conftest$ac_exeext
43315 if { (ac_try="$ac_link"
43316 case "(($ac_try" in
43317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43318 *) ac_try_echo=$ac_try;;
43320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43321 (eval "$ac_link") 2>conftest.er1
43323 grep -v '^ *+' conftest.er1 >conftest.err
43325 cat conftest.err >&5
43326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43327 (exit $ac_status); } && {
43328 test -z "$ac_c_werror_flag" ||
43329 test ! -s conftest.err
43330 } && test -s conftest$ac_exeext &&
43331 $as_test_x conftest$ac_exeext; then
43332 ac_cv_lib_pthreads_pthread_create=yes
43334 echo "$as_me: failed program was:" >&5
43335 sed 's/^/| /' conftest.$ac_ext >&5
43337 ac_cv_lib_pthreads_pthread_create=no
43340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43341 conftest$ac_exeext conftest.$ac_ext
43342 LIBS=$ac_check_lib_save_LIBS
43344 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
43345 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
43346 if test $ac_cv_lib_pthreads_pthread_create = yes; then
43347 PTHREAD_LIB="-lpthreads"
43350 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
43351 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
43352 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
43353 echo $ECHO_N "(cached) $ECHO_C" >&6
43355 ac_check_lib_save_LIBS=$LIBS
43357 cat >conftest.$ac_ext <<_ACEOF
43360 cat confdefs.h >>conftest.$ac_ext
43361 cat >>conftest.$ac_ext <<_ACEOF
43362 /* end confdefs.h. */
43364 /* Override any GCC internal prototype to avoid an error.
43365 Use char because int might match the return type of a GCC
43366 builtin and then its argument prototype would still apply. */
43370 char pthread_create ();
43374 return pthread_create ();
43379 rm -f conftest.$ac_objext conftest$ac_exeext
43380 if { (ac_try="$ac_link"
43381 case "(($ac_try" in
43382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43383 *) ac_try_echo=$ac_try;;
43385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43386 (eval "$ac_link") 2>conftest.er1
43388 grep -v '^ *+' conftest.er1 >conftest.err
43390 cat conftest.err >&5
43391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43392 (exit $ac_status); } && {
43393 test -z "$ac_c_werror_flag" ||
43394 test ! -s conftest.err
43395 } && test -s conftest$ac_exeext &&
43396 $as_test_x conftest$ac_exeext; then
43397 ac_cv_lib_c_r_pthread_create=yes
43399 echo "$as_me: failed program was:" >&5
43400 sed 's/^/| /' conftest.$ac_ext >&5
43402 ac_cv_lib_c_r_pthread_create=no
43405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43406 conftest$ac_exeext conftest.$ac_ext
43407 LIBS=$ac_check_lib_save_LIBS
43409 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
43410 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
43411 if test $ac_cv_lib_c_r_pthread_create = yes; then
43412 PTHREAD_LIB="-lc_r"
43415 { echo "$as_me:$LINENO: checking for pthread_create" >&5
43416 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
43417 if test "${ac_cv_func_pthread_create+set}" = set; then
43418 echo $ECHO_N "(cached) $ECHO_C" >&6
43420 cat >conftest.$ac_ext <<_ACEOF
43423 cat confdefs.h >>conftest.$ac_ext
43424 cat >>conftest.$ac_ext <<_ACEOF
43425 /* end confdefs.h. */
43426 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
43427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43428 #define pthread_create innocuous_pthread_create
43430 /* System header to define __stub macros and hopefully few prototypes,
43431 which can conflict with char pthread_create (); below.
43432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43433 <limits.h> exists even on freestanding compilers. */
43436 # include <limits.h>
43438 # include <assert.h>
43441 #undef pthread_create
43443 /* Override any GCC internal prototype to avoid an error.
43444 Use char because int might match the return type of a GCC
43445 builtin and then its argument prototype would still apply. */
43449 char pthread_create ();
43450 /* The GNU C library defines this for functions which it implements
43451 to always fail with ENOSYS. Some functions are actually named
43452 something starting with __ and the normal name is an alias. */
43453 #if defined __stub_pthread_create || defined __stub___pthread_create
43460 return pthread_create ();
43465 rm -f conftest.$ac_objext conftest$ac_exeext
43466 if { (ac_try="$ac_link"
43467 case "(($ac_try" in
43468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43469 *) ac_try_echo=$ac_try;;
43471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43472 (eval "$ac_link") 2>conftest.er1
43474 grep -v '^ *+' conftest.er1 >conftest.err
43476 cat conftest.err >&5
43477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43478 (exit $ac_status); } && {
43479 test -z "$ac_c_werror_flag" ||
43480 test ! -s conftest.err
43481 } && test -s conftest$ac_exeext &&
43482 $as_test_x conftest$ac_exeext; then
43483 ac_cv_func_pthread_create=yes
43485 echo "$as_me: failed program was:" >&5
43486 sed 's/^/| /' conftest.$ac_ext >&5
43488 ac_cv_func_pthread_create=no
43491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43492 conftest$ac_exeext conftest.$ac_ext
43494 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
43495 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
43512 for ac_header in sys/prctl.h sys/capability.h
43514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43519 echo $ECHO_N "(cached) $ECHO_C" >&6
43521 ac_res=`eval echo '${'$as_ac_Header'}'`
43522 { echo "$as_me:$LINENO: result: $ac_res" >&5
43523 echo "${ECHO_T}$ac_res" >&6; }
43525 # Is the header compilable?
43526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
43527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
43528 cat >conftest.$ac_ext <<_ACEOF
43531 cat confdefs.h >>conftest.$ac_ext
43532 cat >>conftest.$ac_ext <<_ACEOF
43533 /* end confdefs.h. */
43534 $ac_includes_default
43535 #include <$ac_header>
43537 rm -f conftest.$ac_objext
43538 if { (ac_try="$ac_compile"
43539 case "(($ac_try" in
43540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43541 *) ac_try_echo=$ac_try;;
43543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43544 (eval "$ac_compile") 2>conftest.er1
43546 grep -v '^ *+' conftest.er1 >conftest.err
43548 cat conftest.err >&5
43549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43550 (exit $ac_status); } && {
43551 test -z "$ac_c_werror_flag" ||
43552 test ! -s conftest.err
43553 } && test -s conftest.$ac_objext; then
43554 ac_header_compiler=yes
43556 echo "$as_me: failed program was:" >&5
43557 sed 's/^/| /' conftest.$ac_ext >&5
43559 ac_header_compiler=no
43562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43564 echo "${ECHO_T}$ac_header_compiler" >&6; }
43566 # Is the header present?
43567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
43568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
43569 cat >conftest.$ac_ext <<_ACEOF
43572 cat confdefs.h >>conftest.$ac_ext
43573 cat >>conftest.$ac_ext <<_ACEOF
43574 /* end confdefs.h. */
43575 #include <$ac_header>
43577 if { (ac_try="$ac_cpp conftest.$ac_ext"
43578 case "(($ac_try" in
43579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43580 *) ac_try_echo=$ac_try;;
43582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43585 grep -v '^ *+' conftest.er1 >conftest.err
43587 cat conftest.err >&5
43588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43589 (exit $ac_status); } >/dev/null && {
43590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43591 test ! -s conftest.err
43593 ac_header_preproc=yes
43595 echo "$as_me: failed program was:" >&5
43596 sed 's/^/| /' conftest.$ac_ext >&5
43598 ac_header_preproc=no
43601 rm -f conftest.err conftest.$ac_ext
43602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43603 echo "${ECHO_T}$ac_header_preproc" >&6; }
43605 # So? What about this header?
43606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43612 ac_header_preproc=yes
43615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
43631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
43632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43633 echo $ECHO_N "(cached) $ECHO_C" >&6
43635 eval "$as_ac_Header=\$ac_header_preproc"
43637 ac_res=`eval echo '${'$as_ac_Header'}'`
43638 { echo "$as_me:$LINENO: result: $ac_res" >&5
43639 echo "${ECHO_T}$ac_res" >&6; }
43642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43643 cat >>confdefs.h <<_ACEOF
43644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43653 for ac_func in prctl setreuid
43655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43659 echo $ECHO_N "(cached) $ECHO_C" >&6
43661 cat >conftest.$ac_ext <<_ACEOF
43664 cat confdefs.h >>conftest.$ac_ext
43665 cat >>conftest.$ac_ext <<_ACEOF
43666 /* end confdefs.h. */
43667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43669 #define $ac_func innocuous_$ac_func
43671 /* System header to define __stub macros and hopefully few prototypes,
43672 which can conflict with char $ac_func (); below.
43673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43674 <limits.h> exists even on freestanding compilers. */
43677 # include <limits.h>
43679 # include <assert.h>
43684 /* Override any GCC internal prototype to avoid an error.
43685 Use char because int might match the return type of a GCC
43686 builtin and then its argument prototype would still apply. */
43691 /* The GNU C library defines this for functions which it implements
43692 to always fail with ENOSYS. Some functions are actually named
43693 something starting with __ and the normal name is an alias. */
43694 #if defined __stub_$ac_func || defined __stub___$ac_func
43701 return $ac_func ();
43706 rm -f conftest.$ac_objext conftest$ac_exeext
43707 if { (ac_try="$ac_link"
43708 case "(($ac_try" in
43709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43710 *) ac_try_echo=$ac_try;;
43712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43713 (eval "$ac_link") 2>conftest.er1
43715 grep -v '^ *+' conftest.er1 >conftest.err
43717 cat conftest.err >&5
43718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43719 (exit $ac_status); } && {
43720 test -z "$ac_c_werror_flag" ||
43721 test ! -s conftest.err
43722 } && test -s conftest$ac_exeext &&
43723 $as_test_x conftest$ac_exeext; then
43724 eval "$as_ac_var=yes"
43726 echo "$as_me: failed program was:" >&5
43727 sed 's/^/| /' conftest.$ac_ext >&5
43729 eval "$as_ac_var=no"
43732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43733 conftest$ac_exeext conftest.$ac_ext
43735 ac_res=`eval echo '${'$as_ac_var'}'`
43736 { echo "$as_me:$LINENO: result: $ac_res" >&5
43737 echo "${ECHO_T}$ac_res" >&6; }
43738 if test `eval echo '${'$as_ac_var'}'` = yes; then
43739 cat >>confdefs.h <<_ACEOF
43740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43746 { echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
43747 echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
43748 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
43749 echo $ECHO_N "(cached) $ECHO_C" >&6
43751 ac_check_lib_save_LIBS=$LIBS
43753 cat >conftest.$ac_ext <<_ACEOF
43756 cat confdefs.h >>conftest.$ac_ext
43757 cat >>conftest.$ac_ext <<_ACEOF
43758 /* end confdefs.h. */
43760 /* Override any GCC internal prototype to avoid an error.
43761 Use char because int might match the return type of a GCC
43762 builtin and then its argument prototype would still apply. */
43766 char cap_set_proc ();
43770 return cap_set_proc ();
43775 rm -f conftest.$ac_objext conftest$ac_exeext
43776 if { (ac_try="$ac_link"
43777 case "(($ac_try" in
43778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43779 *) ac_try_echo=$ac_try;;
43781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43782 (eval "$ac_link") 2>conftest.er1
43784 grep -v '^ *+' conftest.er1 >conftest.err
43786 cat conftest.err >&5
43787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43788 (exit $ac_status); } && {
43789 test -z "$ac_c_werror_flag" ||
43790 test ! -s conftest.err
43791 } && test -s conftest$ac_exeext &&
43792 $as_test_x conftest$ac_exeext; then
43793 ac_cv_lib_cap_cap_set_proc=yes
43795 echo "$as_me: failed program was:" >&5
43796 sed 's/^/| /' conftest.$ac_ext >&5
43798 ac_cv_lib_cap_cap_set_proc=no
43801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43802 conftest$ac_exeext conftest.$ac_ext
43803 LIBS=$ac_check_lib_save_LIBS
43805 { echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
43806 echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
43807 if test $ac_cv_lib_cap_cap_set_proc = yes; then
43813 if test x$CAP_LIBS = x-lcap; then
43815 cat >>confdefs.h <<\_ACEOF
43816 #define HAVE_LIBCAP 1
43823 cat >>confdefs.h <<\_ACEOF
43828 CFLAGS=${CFLAGS--O}
43830 if test x$have_gcc = xyes ; then
43831 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43832 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
43834 LDFLAGS=${LDFLAGS--O}
43835 DB_LIBS="${SQL_LFLAGS}"
43836 CPPFLAGS="$CPPFLAGS"
43863 PFILES="platforms/Makefile"
43868 hostname=`uname -n | cut -d '.' -f 1`
43869 if test x${hostname} = x ; then
43870 hostname="localhost"
43872 ping -c 1 $hostname 2>/dev/null 1>/dev/null
43873 if test ! $? = 0; then
43874 hostname="localhost"
43877 case "$DISTNAME" in
43880 PSCMD="ps -e -o pid,comm"
43881 PFILES="${PFILES} \
43882 platforms/aix/Makefile"
43883 TAPEDRIVE="/dev/rmt0.1"
43887 PTHREAD_LIB="-lpthread -lexc"
43888 if test "${CC}" = "gcc" ; then
43895 TAPEDRIVE="/dev/nrmt0"
43898 DISTVER=`uname -a |awk '{print $3}'`
43899 TAPEDRIVE="/dev/nrmt0"
43900 PTHREAD_LIB="-pthread"
43901 CFLAGS="${CFLAGS} -pthread"
43902 PSCMD="ps -ax -o pid,command"
43905 PFILES="${PFILES} \
43906 platforms/bsdi/Makefile \
43907 platforms/bsdi/bacula-fd \
43908 platforms/bsdi/bacula-sd \
43909 platforms/bsdi/bacula-dir"
43910 largefile_support="yes"
43913 DISTVER=`uname -a |awk '{print $3}'`
43914 TAPEDRIVE="/dev/nrst0"
43916 WCFLAGS="-mwindows"
43917 WLDFLAGS="-mwindows"
43921 TAPEDRIVE="/dev/nst0"
43922 PSCMD="ps -e -o pid,command"
43924 PFILES="${PFILES} \
43925 platforms/darwin/Makefile"
43929 TAPEDRIVE="/dev/nst0"
43930 PSCMD="ps -e -o pid,command"
43932 PFILES="${PFILES} \
43933 platforms/osx/Makefile"
43936 if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
43939 DISTVER=`cat /etc/debian_version`
43940 if test -f /etc/lsb-release ; then
43942 if test "x$DISTRIB_ID" != "x" ; then
43943 DISTNAME=$DISTRIB_ID
43945 if test "x$DISTRIB_RELEASE" != "x" ; then
43946 DISTVER=$DISTRIB_RELEASE
43949 if test "$DISTNAME" = "Ubuntu" ; then
43952 TAPEDRIVE="/dev/nst0"
43953 PSCMD="ps -e -o pid,command"
43954 if test "$DISTNAME" = "ubuntu" ; then
43955 PFILES="${PFILES} \
43956 platforms/ubuntu/Makefile \
43957 platforms/ubuntu/bacula-fd \
43958 platforms/ubuntu/bacula-sd \
43959 platforms/ubuntu/bacula-dir"
43961 PFILES="${PFILES} \
43962 platforms/debian/Makefile \
43963 platforms/debian/bacula-fd \
43964 platforms/debian/bacula-sd \
43965 platforms/debian/bacula-dir"
43969 DISTVER=`uname -a |awk '{print $3}'`
43970 VER=`echo $DISTVER | cut -c 1`
43971 if test x$VER = x4 ; then
43972 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
43973 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
43977 TAPEDRIVE="/dev/nrsa0"
43978 PSCMD="ps -ax -o pid,command"
43979 PFILES="${PFILES} \
43980 platforms/freebsd/Makefile \
43981 platforms/freebsd/bacula-fd \
43982 platforms/freebsd/bacula-sd \
43983 platforms/freebsd/bacula-dir"
43984 largefile_support="yes"
43987 PSCMD="UNIX95=1; ps -e -o pid,comm"
43988 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
43990 TAPEDRIVE="/dev/rmt/0hnb"
43991 PTHREAD_LIB="-lpthread"
43992 cat >>confdefs.h <<\_ACEOF
43993 #define _INCLUDE_LONGLONG 1
43999 TAPEDRIVE="/dev/rmt/0cbn"
44000 PSCMD="ps -e -o pid,comm"
44001 PFILES="${PFILES} \
44002 platforms/irix/Makefile \
44003 platforms/irix/bacula-fd \
44004 platforms/irix/bacula-sd \
44005 platforms/irix/bacula-dir"
44008 DISTVER=`uname -a |awk '{print $3}'`
44011 TAPEDRIVE="/dev/nrst0"
44012 PSCMD="ps -ax -o pid,command"
44013 PTHREAD_LIB="-pthread"
44014 CFLAGS="${CFLAGS} -pthread"
44017 DISTVER=`uname -a |awk '{print $3}'`
44020 TAPEDRIVE="/dev/nrst0"
44021 PSCMD="ps -ax -o pid,command"
44022 PTHREAD_LIB="-pthread"
44023 CFLAGS="${CFLAGS} -pthread"
44024 PFILES="${PFILES} \
44025 platforms/openbsd/Makefile \
44026 platforms/openbsd/bacula-fd \
44027 platforms/openbsd/bacula-sd \
44028 platforms/openbsd/bacula-dir"
44031 if test -f /etc/whitebox-release ; then
44032 f=/etc/whitebox-release
44034 f=/etc/redhat-release
44036 if test `cat $f | grep release |\
44037 cut -f 3 -d ' '`x = "Enterprise"x ; then
44038 DISTVER="Enterprise "`cat $f | grep release |\
44041 DISTVER=`cat /etc/redhat-release | grep release |\
44044 TAPEDRIVE="/dev/nst0"
44045 PSCMD="ps -e -o pid,command"
44046 PFILES="${PFILES} \
44047 platforms/redhat/Makefile \
44048 platforms/redhat/bacula-fd \
44049 platforms/redhat/bacula-sd \
44050 platforms/redhat/bacula-dir
44054 DISTVER=`cat /etc/mandrake-release | grep release |\
44056 TAPEDRIVE="/dev/nst0"
44057 PSCMD="ps -e -o pid,command"
44058 PFILES="${PFILES} \
44059 platforms/mandrake/Makefile \
44060 platforms/mandrake/bacula-fd \
44061 platforms/mandrake/bacula-sd \
44062 platforms/mandrake/bacula-dir \
44066 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
44067 TAPEDRIVE="/dev/nst0"
44068 PSCMD="ps -e -o pid,command"
44069 PFILES="${PFILES} \
44070 platforms/gentoo/Makefile \
44071 platforms/gentoo/bacula-init \
44072 platforms/gentoo/bacula-fd \
44073 platforms/gentoo/bacula-sd \
44074 platforms/gentoo/bacula-dir"
44077 DISTVER=`cat /etc/slackware-version`
44078 TAPEDRIVE="/dev/nst0"
44079 PSCMD="ps -e -o pid,command"
44080 PFILES="${PFILES} \
44081 platforms/slackware/Makefile \
44082 platforms/slackware/rc.bacula-fd \
44083 platforms/slackware/rc.bacula-sd \
44084 platforms/slackware/rc.bacula-dir\
44085 platforms/slackware/functions.bacula"
44089 TAPEDRIVE="/dev/rmt/0cbn"
44090 PSCMD="ps -e -o pid,comm"
44091 PFILES="${PFILES} \
44092 platforms/solaris/Makefile \
44093 platforms/solaris/bacula-fd \
44094 platforms/solaris/bacula-sd \
44095 platforms/solaris/bacula-dir"
44096 if test x$DISTVER = x5.6 ; then
44097 cat >>confdefs.h <<\_ACEOF
44098 #define HAVE_OLD_SOCKOPT 1
44102 LIBS="$LIBS -lresolv"
44105 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
44107 TAPEDRIVE="/dev/nst0"
44108 PSCMD="ps -e -o pid,command"
44109 PFILES="${PFILES} \
44110 platforms/suse/Makefile \
44111 platforms/suse/bacula-fd \
44112 platforms/suse/bacula-sd \
44113 platforms/suse/bacula-dir \
44114 platforms/suse/bacula \
44119 TAPEDRIVE="/dev/nst0"
44120 PSCMD="ps -e -o pid,command"
44121 PFILES="${PFILES} \
44122 platforms/suse/Makefile \
44123 platforms/suse/bacula-fd \
44124 platforms/suse/bacula-sd \
44125 platforms/suse/bacula-dir"
44129 TAPEDRIVE="/dev/nst0"
44132 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
44138 LIBS="$PTHREAD_LIB $LIBS"
44140 cat >>confdefs.h <<_ACEOF
44144 cat >>confdefs.h <<_ACEOF
44155 MCOMMON=./autoconf/Make.common
44158 if test "x${subsysdir}" = "x${sbindir}" ; then
44161 echo "You have set both --sbindir and --with-subsys-dir"
44162 echo " equal to: ${subsysdir} "
44163 echo "This is not permitted. Please reconfigure."
44165 echo "Aborting configuration ..."
44171 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 examples/nagios/check_bacula/Makefile $PFILES"
44173 ac_config_commands="$ac_config_commands default"
44175 cat >confcache <<\_ACEOF
44176 # This file is a shell script that caches the results of configure
44177 # tests run on this system so they can be shared between configure
44178 # scripts and configure runs, see configure's option --config-cache.
44179 # It is not useful on other systems. If it contains results you don't
44180 # want to keep, you may remove or edit it.
44182 # config.status only pays attention to the cache file if you give it
44183 # the --recheck option to rerun configure.
44185 # `ac_cv_env_foo' variables (set or unset) will be overridden when
44186 # loading this file, other *unset* `ac_cv_foo' will be assigned the
44187 # following values.
44191 # The following way of writing the cache mishandles newlines in values,
44192 # but we know of no workaround that is simple, portable, and efficient.
44193 # So, we kill variables containing newlines.
44194 # Ultrix sh set writes to stderr and can't be redirected directly,
44195 # and sets the high bit in the cache file unless we assign to the vars.
44197 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
44198 eval ac_val=\$$ac_var
44202 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
44203 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
44206 _ | IFS | as_nl) ;; #(
44207 *) $as_unset $ac_var ;;
44213 case $as_nl`(ac_space=' '; set) 2>&1` in #(
44214 *${as_nl}ac_space=\ *)
44215 # `set' does not quote correctly, so add quotes (double-quote
44216 # substitution turns \\\\ into \\, and sed turns \\ into \).
44219 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
44222 # `set' quotes correctly as required by POSIX, so do not add quotes.
44223 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
44232 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
44234 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
44236 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
44237 if test -w "$cache_file"; then
44238 test "x$cache_file" != "x/dev/null" &&
44239 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
44240 echo "$as_me: updating cache $cache_file" >&6;}
44241 cat confcache >$cache_file
44243 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
44244 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
44249 test "x$prefix" = xNONE && prefix=$ac_default_prefix
44250 # Let make expand exec_prefix.
44251 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
44253 DEFS=-DHAVE_CONFIG_H
44257 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
44258 # 1. Remove the extension, and $U if already installed.
44259 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
44260 ac_i=`echo "$ac_i" | sed "$ac_script"`
44261 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
44262 # will be set to the directory where LIBOBJS objects are built.
44263 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
44264 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
44266 LIBOBJS=$ac_libobjs
44268 LTLIBOBJS=$ac_ltlibobjs
44272 : ${CONFIG_STATUS=./config.status}
44273 ac_clean_files_save=$ac_clean_files
44274 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
44275 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
44276 echo "$as_me: creating $CONFIG_STATUS" >&6;}
44277 cat >$CONFIG_STATUS <<_ACEOF
44279 # Generated by $as_me.
44280 # Run this file to recreate the current configuration.
44281 # Compiler output produced by configure, useful for debugging
44282 # configure, is in config.log if it exists.
44285 ac_cs_recheck=false
44287 SHELL=\${CONFIG_SHELL-$SHELL}
44290 cat >>$CONFIG_STATUS <<\_ACEOF
44291 ## --------------------- ##
44292 ## M4sh Initialization. ##
44293 ## --------------------- ##
44295 # Be more Bourne compatible
44296 DUALCASE=1; export DUALCASE # for MKS sh
44297 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
44300 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
44301 # is contrary to our usage. Disable this feature.
44302 alias -g '${1+"$@"}'='"$@"'
44303 setopt NO_GLOB_SUBST
44305 case `(set -o) 2>/dev/null` in
44306 *posix*) set -o posix ;;
44315 # Avoid depending upon Character Ranges.
44316 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
44317 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
44318 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
44319 as_cr_digits='0123456789'
44320 as_cr_alnum=$as_cr_Letters$as_cr_digits
44322 # The user is always right.
44323 if test "${PATH_SEPARATOR+set}" != set; then
44324 echo "#! /bin/sh" >conf$$.sh
44325 echo "exit 0" >>conf$$.sh
44327 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44335 # Support unset when possible.
44336 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
44344 # We need space, tab and new line, in precisely that order. Quoting is
44345 # there to prevent editors from complaining about space-tab.
44346 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
44347 # splitting by setting IFS to empty value.)
44352 # Find who we are. Look in the path if we contain no directory separator.
44354 *[\\/]* ) as_myself=$0 ;;
44355 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44356 for as_dir in $PATH
44359 test -z "$as_dir" && as_dir=.
44360 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
44366 # We did not find ourselves, most probably we were run as `sh COMMAND'
44367 # in which case we are not to be found in the path.
44368 if test "x$as_myself" = x; then
44371 if test ! -f "$as_myself"; then
44372 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
44373 { (exit 1); exit 1; }
44376 # Work around bugs in pre-3.0 UWIN ksh.
44377 for as_var in ENV MAIL MAILPATH
44378 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44386 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44387 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44388 LC_TELEPHONE LC_TIME
44390 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
44391 eval $as_var=C; export $as_var
44393 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44397 # Required to use basename.
44398 if expr a : '\(a\)' >/dev/null 2>&1 &&
44399 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44405 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
44406 as_basename=basename
44412 # Name of the executable.
44413 as_me=`$as_basename -- "$0" ||
44414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
44415 X"$0" : 'X\(//\)$' \| \
44416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
44418 sed '/^.*\/\([^/][^/]*\)\/*$/{
44437 as_lineno_1=$LINENO
44438 as_lineno_2=$LINENO
44439 test "x$as_lineno_1" != "x$as_lineno_2" &&
44440 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
44442 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
44443 # uniformly replaced by the line number. The first 'sed' inserts a
44444 # line-number line after each line using $LINENO; the second 'sed'
44445 # does the real work. The second script uses 'N' to pair each
44446 # line-number line with the line containing $LINENO, and appends
44447 # trailing '-' during substitution so that $LINENO is not a special
44448 # case at line end.
44449 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
44450 # scripts with optimization help from Paolo Bonzini. Blame Lee
44451 # E. McMahon (1931-1989) for sed's syntax. :-)
44463 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
44466 ' >$as_me.lineno &&
44467 chmod +x "$as_me.lineno" ||
44468 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
44469 { (exit 1); exit 1; }; }
44471 # Don't try to exec as it changes $[0], causing all sort of problems
44472 # (the dirname of $[0] is not the place where we might find the
44473 # original and so on. Autoconf is especially sensitive to this).
44474 . "./$as_me.lineno"
44475 # Exit status is that of the last command.
44480 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
44486 ECHO_C= ECHO_N= ECHO_T=
44487 case `echo -n x` in
44489 case `echo 'x\c'` in
44490 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
44497 if expr a : '\(a\)' >/dev/null 2>&1 &&
44498 test "X`expr 00001 : '.*\(...\)'`" = X001; then
44504 rm -f conf$$ conf$$.exe conf$$.file
44505 if test -d conf$$.dir; then
44506 rm -f conf$$.dir/conf$$.file
44512 if ln -s conf$$.file conf$$ 2>/dev/null; then
44514 # ... but there are two gotchas:
44515 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
44516 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
44517 # In both cases, we have to default to `cp -p'.
44518 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
44520 elif ln conf$$.file conf$$ 2>/dev/null; then
44525 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
44526 rmdir conf$$.dir 2>/dev/null
44528 if mkdir -p . 2>/dev/null; then
44531 test -d ./-p && rmdir ./-p
44535 if test -x / >/dev/null 2>&1; then
44536 as_test_x='test -x'
44538 if ls -dL / >/dev/null 2>&1; then
44545 if test -d "$1"; then
44551 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
44552 ???[sx]*):;;*)false;;esac;fi
44556 as_executable_p=$as_test_x
44558 # Sed expression to map a string onto a valid CPP name.
44559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44561 # Sed expression to map a string onto a valid variable name.
44562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44567 # Save the log message, to keep $[0] and so on meaningful, and to
44568 # report actual input values of CONFIG_FILES etc. instead of their
44569 # values after options handling.
44571 This file was extended by $as_me, which was
44572 generated by GNU Autoconf 2.61. Invocation command line was
44574 CONFIG_FILES = $CONFIG_FILES
44575 CONFIG_HEADERS = $CONFIG_HEADERS
44576 CONFIG_LINKS = $CONFIG_LINKS
44577 CONFIG_COMMANDS = $CONFIG_COMMANDS
44580 on `(hostname || uname -n) 2>/dev/null | sed 1q`
44585 cat >>$CONFIG_STATUS <<_ACEOF
44586 # Files that config.status was made for.
44587 config_files="$ac_config_files"
44588 config_headers="$ac_config_headers"
44589 config_commands="$ac_config_commands"
44593 cat >>$CONFIG_STATUS <<\_ACEOF
44595 \`$as_me' instantiates files from templates according to the
44596 current configuration.
44598 Usage: $0 [OPTIONS] [FILE]...
44600 -h, --help print this help, then exit
44601 -V, --version print version number and configuration settings, then exit
44602 -q, --quiet do not print progress messages
44603 -d, --debug don't remove temporary files
44604 --recheck update $as_me by reconfiguring in the same conditions
44605 --file=FILE[:TEMPLATE]
44606 instantiate the configuration file FILE
44607 --header=FILE[:TEMPLATE]
44608 instantiate the configuration header FILE
44610 Configuration files:
44613 Configuration headers:
44616 Configuration commands:
44619 Report bugs to <bug-autoconf@gnu.org>."
44622 cat >>$CONFIG_STATUS <<_ACEOF
44625 configured by $0, generated by GNU Autoconf 2.61,
44626 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
44628 Copyright (C) 2006 Free Software Foundation, Inc.
44629 This config.status script is free software; the Free Software Foundation
44630 gives unlimited permission to copy, distribute and modify it."
44637 cat >>$CONFIG_STATUS <<\_ACEOF
44638 # If no file are specified by the user, then we need to provide default
44639 # value. By we need to know if files were specified by the user.
44645 ac_option=`expr "X$1" : 'X\([^=]*\)='`
44646 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
44657 # Handling of the options.
44658 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44660 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
44661 echo "$ac_cs_version"; exit ;;
44662 --debug | --debu | --deb | --de | --d | -d )
44664 --file | --fil | --fi | --f )
44666 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44667 ac_need_defaults=false;;
44668 --header | --heade | --head | --hea )
44670 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44671 ac_need_defaults=false;;
44673 # Conflict between --help and --header
44674 { echo "$as_me: error: ambiguous option: $1
44675 Try \`$0 --help' for more information." >&2
44676 { (exit 1); exit 1; }; };;
44677 --help | --hel | -h )
44678 echo "$ac_cs_usage"; exit ;;
44679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44680 | -silent | --silent | --silen | --sile | --sil | --si | --s)
44683 # This is an error.
44684 -*) { echo "$as_me: error: unrecognized option: $1
44685 Try \`$0 --help' for more information." >&2
44686 { (exit 1); exit 1; }; } ;;
44688 *) ac_config_targets="$ac_config_targets $1"
44689 ac_need_defaults=false ;;
44695 ac_configure_extra_args=
44697 if $ac_cs_silent; then
44699 ac_configure_extra_args="$ac_configure_extra_args --silent"
44703 cat >>$CONFIG_STATUS <<_ACEOF
44704 if \$ac_cs_recheck; then
44705 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44706 CONFIG_SHELL=$SHELL
44707 export CONFIG_SHELL
44708 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44712 cat >>$CONFIG_STATUS <<\_ACEOF
44716 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44717 ## Running $as_me. ##
44723 cat >>$CONFIG_STATUS <<_ACEOF
44729 # The HP-UX ksh and POSIX shell print the target directory to stdout
44730 # if CDPATH is set.
44731 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
44733 sed_quote_subst='$sed_quote_subst'
44734 double_quote_subst='$double_quote_subst'
44735 delay_variable_subst='$delay_variable_subst'
44736 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
44737 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
44738 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
44739 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
44740 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
44741 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
44742 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
44743 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
44744 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
44745 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
44746 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
44747 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
44748 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
44749 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
44750 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
44751 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
44752 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
44753 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
44754 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
44755 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
44756 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
44757 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
44758 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
44759 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
44760 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
44761 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
44762 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
44763 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44764 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
44765 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
44766 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
44767 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
44768 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44769 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
44770 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
44771 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44772 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44773 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44774 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
44775 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
44776 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
44777 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
44778 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
44779 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
44780 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"`'
44781 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"`'
44782 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
44783 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
44784 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
44785 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
44786 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
44787 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
44788 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
44789 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
44790 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
44791 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
44792 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
44793 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
44794 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
44795 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
44796 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
44797 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
44798 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44799 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44800 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
44801 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
44802 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44803 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44804 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
44805 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44806 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44807 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44808 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44809 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44810 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44811 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
44812 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44813 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
44814 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
44815 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
44816 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
44817 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
44818 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
44819 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
44820 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44821 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
44822 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
44823 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
44824 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
44825 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
44826 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44827 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44828 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
44829 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44830 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
44831 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
44832 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
44833 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
44834 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
44835 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44836 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
44837 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
44838 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44839 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
44840 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
44841 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44842 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44843 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
44844 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
44845 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
44846 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44847 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
44848 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
44849 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
44850 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
44851 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
44852 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
44853 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
44854 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
44855 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44856 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
44857 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
44858 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
44859 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
44860 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44861 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44862 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44863 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44864 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44865 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44866 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44867 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44868 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44869 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44870 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44871 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44872 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44873 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44874 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44875 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44876 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44877 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44878 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44879 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44880 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44881 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44882 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44883 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44884 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44885 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44886 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44887 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44888 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44889 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44890 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44891 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44892 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44893 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44894 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44895 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44896 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44897 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44898 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44899 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44900 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44901 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44902 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44903 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44904 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44905 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44906 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
44909 LTCFLAGS='$LTCFLAGS'
44910 compiler='$compiler_DEFAULT'
44912 # Quote evaled strings.
44924 deplibs_check_method \
44933 lt_cv_sys_global_symbol_pipe \
44934 lt_cv_sys_global_symbol_to_cdecl \
44935 lt_cv_sys_global_symbol_to_c_name_address \
44936 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44939 lt_prog_compiler_no_builtin_flag \
44940 lt_prog_compiler_wl \
44941 lt_prog_compiler_pic \
44942 lt_prog_compiler_static \
44943 lt_cv_prog_compiler_c_o \
44951 export_dynamic_flag_spec \
44952 whole_archive_flag_spec \
44953 compiler_needs_object \
44955 allow_undefined_flag \
44956 no_undefined_flag \
44957 hardcode_libdir_flag_spec \
44958 hardcode_libdir_flag_spec_ld \
44959 hardcode_libdir_separator \
44964 variables_saved_for_relink \
44966 library_names_spec \
44971 compiler_lib_search_dirs \
44976 compiler_lib_search_path \
44979 lt_prog_compiler_no_builtin_flag_CXX \
44980 lt_prog_compiler_wl_CXX \
44981 lt_prog_compiler_pic_CXX \
44982 lt_prog_compiler_static_CXX \
44983 lt_cv_prog_compiler_c_o_CXX \
44984 export_dynamic_flag_spec_CXX \
44985 whole_archive_flag_spec_CXX \
44986 compiler_needs_object_CXX \
44988 allow_undefined_flag_CXX \
44989 no_undefined_flag_CXX \
44990 hardcode_libdir_flag_spec_CXX \
44991 hardcode_libdir_flag_spec_ld_CXX \
44992 hardcode_libdir_separator_CXX \
44993 fix_srcfile_path_CXX \
44994 exclude_expsyms_CXX \
44995 include_expsyms_CXX \
44996 file_list_spec_CXX \
44997 compiler_lib_search_dirs_CXX \
44998 predep_objects_CXX \
44999 postdep_objects_CXX \
45002 compiler_lib_search_path_CXX; do
45003 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45004 *[\\\\\\\`\\"\\\$]*)
45005 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
45008 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45013 # Double-quote double-evaled strings.
45014 for var in reload_cmds \
45015 old_postinstall_cmds \
45016 old_postuninstall_cmds \
45018 extract_expsyms_cmds \
45019 old_archive_from_new_cmds \
45020 old_archive_from_expsyms_cmds \
45022 archive_expsym_cmds \
45024 module_expsym_cmds \
45025 export_symbols_cmds \
45028 postuninstall_cmds \
45030 sys_lib_search_path_spec \
45031 sys_lib_dlsearch_path_spec \
45032 old_archive_cmds_CXX \
45033 old_archive_from_new_cmds_CXX \
45034 old_archive_from_expsyms_cmds_CXX \
45036 archive_expsym_cmds_CXX \
45038 module_expsym_cmds_CXX \
45039 export_symbols_cmds_CXX \
45040 prelink_cmds_CXX; do
45041 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
45042 *[\\\\\\\`\\"\\\$]*)
45043 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
45046 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
45051 # Fix-up fallback echo if it was mangled by the above quoting rules.
45053 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
45057 ac_aux_dir='$ac_aux_dir'
45058 xsi_shell='$xsi_shell'
45059 lt_shell_append='$lt_shell_append'
45061 # See if we are running on zsh, and set the options which allow our
45062 # commands through without removal of \ escapes INIT.
45063 if test -n "\${ZSH_VERSION+set}" ; then
45064 setopt NO_GLOB_SUBST
45070 TIMESTAMP='$TIMESTAMP'
45078 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
45079 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
45081 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
45082 # Capture the value of LINGUAS because we need it to compute CATALOGS.
45083 LINGUAS="${LINGUAS-%UNSET%}"
45088 cat >>$CONFIG_STATUS <<\_ACEOF
45090 # Handling of arguments.
45091 for ac_config_target in $ac_config_targets
45093 case $ac_config_target in
45094 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
45095 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
45096 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
45097 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
45098 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
45099 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
45100 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
45101 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
45102 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
45103 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
45104 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
45105 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
45106 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
45107 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
45108 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
45109 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
45110 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
45111 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
45112 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
45113 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
45114 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
45115 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
45116 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
45117 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
45118 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
45119 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
45120 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
45121 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
45122 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
45123 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
45124 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
45125 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
45126 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
45127 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
45128 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
45129 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
45130 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
45131 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
45132 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
45133 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
45134 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
45135 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
45136 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
45137 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
45138 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
45139 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
45140 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
45141 "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
45142 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
45143 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
45144 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
45145 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
45146 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
45147 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
45148 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
45149 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
45150 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
45151 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
45152 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
45153 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
45154 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
45155 "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
45156 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
45157 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
45158 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
45159 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
45160 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
45161 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
45162 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
45163 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
45164 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
45165 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
45166 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
45167 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
45168 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
45169 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
45170 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
45171 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
45172 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
45173 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
45174 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
45175 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
45176 "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
45177 "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
45178 "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
45179 "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
45180 "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
45181 "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
45182 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
45183 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
45184 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
45185 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
45186 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
45187 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
45188 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
45189 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
45190 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
45191 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
45192 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
45193 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
45194 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
45195 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
45196 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
45197 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
45198 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
45199 "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
45200 "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
45201 "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
45202 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
45203 "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
45204 "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
45205 "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
45206 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
45207 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
45208 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
45209 "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
45210 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
45211 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
45213 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
45214 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
45215 { (exit 1); exit 1; }; };;
45220 # If the user did not use the arguments to specify the items to instantiate,
45221 # then the envvar interface is used. Set only those that are not.
45222 # We use the long form for the default assignment because of an extremely
45223 # bizarre bug on SunOS 4.1.3.
45224 if $ac_need_defaults; then
45225 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
45226 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
45227 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
45230 # Have a temporary directory for convenience. Make it in the build tree
45231 # simply because there is no reason against having it here, and in addition,
45232 # creating and moving files from /tmp can sometimes cause problems.
45233 # Hook for its removal unless debugging.
45234 # Note that there is a small window in which the directory will not be cleaned:
45235 # after its creation but before its name has been assigned to `$tmp'.
45239 trap 'exit_status=$?
45240 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
45242 trap '{ (exit 1); exit 1; }' 1 2 13 15
45244 # Create a (secure) tmp directory for tmp files.
45247 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
45248 test -n "$tmp" && test -d "$tmp"
45251 tmp=./conf$$-$RANDOM
45252 (umask 077 && mkdir "$tmp")
45255 echo "$me: cannot create a temporary directory in ." >&2
45256 { (exit 1); exit 1; }
45260 # Set up the sed scripts for CONFIG_FILES section.
45263 # No need to generate the scripts if there are no CONFIG_FILES.
45264 # This happens for instance when ./config.status config.h
45265 if test -n "$CONFIG_FILES"; then
45269 # Create sed commands to just substitute file output variables.
45271 # Remaining file output variables are in a fragment that also has non-file
45277 for ac_last_try in false false false false false :; do
45278 cat >conf$$subs.sed <<_ACEOF
45279 SHELL!$SHELL$ac_delim
45280 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
45281 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
45282 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
45283 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
45284 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
45285 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
45286 exec_prefix!$exec_prefix$ac_delim
45287 prefix!$prefix$ac_delim
45288 program_transform_name!$program_transform_name$ac_delim
45289 bindir!$bindir$ac_delim
45290 sbindir!$sbindir$ac_delim
45291 libexecdir!$libexecdir$ac_delim
45292 datarootdir!$datarootdir$ac_delim
45293 datadir!$datadir$ac_delim
45294 sysconfdir!$sysconfdir$ac_delim
45295 sharedstatedir!$sharedstatedir$ac_delim
45296 localstatedir!$localstatedir$ac_delim
45297 includedir!$includedir$ac_delim
45298 oldincludedir!$oldincludedir$ac_delim
45299 docdir!$docdir$ac_delim
45300 infodir!$infodir$ac_delim
45301 htmldir!$htmldir$ac_delim
45302 dvidir!$dvidir$ac_delim
45303 pdfdir!$pdfdir$ac_delim
45304 psdir!$psdir$ac_delim
45305 libdir!$libdir$ac_delim
45306 localedir!$localedir$ac_delim
45307 mandir!$mandir$ac_delim
45308 DEFS!$DEFS$ac_delim
45309 ECHO_C!$ECHO_C$ac_delim
45310 ECHO_N!$ECHO_N$ac_delim
45311 ECHO_T!$ECHO_T$ac_delim
45312 LIBS!$LIBS$ac_delim
45313 build_alias!$build_alias$ac_delim
45314 host_alias!$host_alias$ac_delim
45315 target_alias!$target_alias$ac_delim
45316 BUILD_DIR!$BUILD_DIR$ac_delim
45317 TOP_DIR!$TOP_DIR$ac_delim
45318 WIN32BUILDDIR!$WIN32BUILDDIR$ac_delim
45319 WIN32MAINDIR!$WIN32MAINDIR$ac_delim
45320 WIN32TOPDIR!$WIN32TOPDIR$ac_delim
45321 TRUEPRG!$TRUEPRG$ac_delim
45322 FALSEPRG!$FALSEPRG$ac_delim
45323 VERSION!$VERSION$ac_delim
45324 DATE!$DATE$ac_delim
45325 LSMDATE!$LSMDATE$ac_delim
45326 BACULA!$BACULA$ac_delim
45327 post_host!$post_host$ac_delim
45328 LIBBAC_LT_CURRENT!$LIBBAC_LT_CURRENT$ac_delim
45329 LIBBAC_LT_REVISION!$LIBBAC_LT_REVISION$ac_delim
45330 LIBBAC_LT_AGE!$LIBBAC_LT_AGE$ac_delim
45331 LIBBACCFG_LT_CURRENT!$LIBBACCFG_LT_CURRENT$ac_delim
45332 LIBBACCFG_LT_REVISION!$LIBBACCFG_LT_REVISION$ac_delim
45333 LIBBACCFG_LT_AGE!$LIBBACCFG_LT_AGE$ac_delim
45334 LIBBACPY_LT_CURRENT!$LIBBACPY_LT_CURRENT$ac_delim
45335 LIBBACPY_LT_REVISION!$LIBBACPY_LT_REVISION$ac_delim
45336 LIBBACPY_LT_AGE!$LIBBACPY_LT_AGE$ac_delim
45337 LIBBACSQL_LT_CURRENT!$LIBBACSQL_LT_CURRENT$ac_delim
45338 LIBBACSQL_LT_REVISION!$LIBBACSQL_LT_REVISION$ac_delim
45339 LIBBACSQL_LT_AGE!$LIBBACSQL_LT_AGE$ac_delim
45340 LIBBACFIND_LT_CURRENT!$LIBBACFIND_LT_CURRENT$ac_delim
45341 LIBBACFIND_LT_REVISION!$LIBBACFIND_LT_REVISION$ac_delim
45342 LIBBACFIND_LT_AGE!$LIBBACFIND_LT_AGE$ac_delim
45344 CFLAGS!$CFLAGS$ac_delim
45345 LDFLAGS!$LDFLAGS$ac_delim
45346 CPPFLAGS!$CPPFLAGS$ac_delim
45347 ac_ct_CC!$ac_ct_CC$ac_delim
45348 EXEEXT!$EXEEXT$ac_delim
45349 OBJEXT!$OBJEXT$ac_delim
45351 CXXFLAGS!$CXXFLAGS$ac_delim
45352 ac_ct_CXX!$ac_ct_CXX$ac_delim
45354 GREP!$GREP$ac_delim
45355 EGREP!$EGREP$ac_delim
45356 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
45357 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
45358 INSTALL_DATA!$INSTALL_DATA$ac_delim
45360 REMOVE!$REMOVE$ac_delim
45363 ECHO!$ECHO$ac_delim
45367 OPENSSL!$OPENSSL$ac_delim
45370 MKISOFS!$MKISOFS$ac_delim
45371 PYTHON!$PYTHON$ac_delim
45372 GROWISOFS!$GROWISOFS$ac_delim
45375 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
45377 elif $ac_last_try; then
45378 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45379 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45380 { (exit 1); exit 1; }; }
45382 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45386 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45387 if test -n "$ac_eof"; then
45388 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45389 ac_eof=`expr $ac_eof + 1`
45392 cat >>$CONFIG_STATUS <<_ACEOF
45393 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
45394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45395 /^[ ]*@MCOMMON@[ ]*$/{
45401 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45402 s/^/s,@/; s/!/@,|#_!!_#|/
45405 s/'"$ac_delim"'$/,g/; t
45407 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45408 ' >>$CONFIG_STATUS <conf$$subs.sed
45409 rm -f conf$$subs.sed
45410 cat >>$CONFIG_STATUS <<_ACEOF
45416 for ac_last_try in false false false false false :; do
45417 cat >conf$$subs.sed <<_ACEOF
45418 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
45419 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
45420 PKGCONFIG!$PKGCONFIG$ac_delim
45421 QMAKE!$QMAKE$ac_delim
45422 GMAKE!$GMAKE$ac_delim
45423 WXCONFIG!$WXCONFIG$ac_delim
45424 WXFLAGS!$WXFLAGS$ac_delim
45425 CDRECORD!$CDRECORD$ac_delim
45426 PIDOF!$PIDOF$ac_delim
45428 ARFLAGS!$ARFLAGS$ac_delim
45429 MAKE_SHELL!$MAKE_SHELL$ac_delim
45430 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
45431 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
45432 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
45433 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
45434 LIBTOOL!$LIBTOOL$ac_delim
45435 build!$build$ac_delim
45436 build_cpu!$build_cpu$ac_delim
45437 build_vendor!$build_vendor$ac_delim
45438 build_os!$build_os$ac_delim
45439 host!$host$ac_delim
45440 host_cpu!$host_cpu$ac_delim
45441 host_vendor!$host_vendor$ac_delim
45442 host_os!$host_os$ac_delim
45443 FGREP!$FGREP$ac_delim
45445 DUMPBIN!$DUMPBIN$ac_delim
45446 ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
45448 LN_S!$LN_S$ac_delim
45449 OBJDUMP!$OBJDUMP$ac_delim
45450 STRIP!$STRIP$ac_delim
45451 RANLIB!$RANLIB$ac_delim
45452 lt_ECHO!$lt_ECHO$ac_delim
45453 DSYMUTIL!$DSYMUTIL$ac_delim
45454 NMEDIT!$NMEDIT$ac_delim
45455 LIPO!$LIPO$ac_delim
45456 OTOOL!$OTOOL$ac_delim
45457 OTOOL64!$OTOOL64$ac_delim
45458 CXXCPP!$CXXCPP$ac_delim
45459 DEFAULT_OBJECT_TYPE!$DEFAULT_OBJECT_TYPE$ac_delim
45460 DEFAULT_ARCHIVE_TYPE!$DEFAULT_ARCHIVE_TYPE$ac_delim
45461 DEFAULT_SHARED_OBJECT_TYPE!$DEFAULT_SHARED_OBJECT_TYPE$ac_delim
45462 LIBTOOL_INSTALL_TARGET!$LIBTOOL_INSTALL_TARGET$ac_delim
45463 LIBTOOL_UNINSTALL_TARGET!$LIBTOOL_UNINSTALL_TARGET$ac_delim
45464 LIBTOOL_CLEAN_TARGET!$LIBTOOL_CLEAN_TARGET$ac_delim
45465 QMAKE_LIBTOOL!$QMAKE_LIBTOOL$ac_delim
45466 FD_PLUGIN_DIR!$FD_PLUGIN_DIR$ac_delim
45467 INCLUDE_INSTALL_TARGET!$INCLUDE_INSTALL_TARGET$ac_delim
45468 INCLUDE_UNINSTALL_TARGET!$INCLUDE_UNINSTALL_TARGET$ac_delim
45469 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
45470 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
45471 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
45472 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
45473 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
45474 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
45475 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
45476 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
45477 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
45478 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
45479 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
45480 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
45481 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
45482 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
45483 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
45484 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
45485 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
45486 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
45487 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
45488 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
45489 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
45490 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
45491 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
45492 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
45493 SET_MAKE!$SET_MAKE$ac_delim
45494 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
45495 USE_NLS!$USE_NLS$ac_delim
45496 MSGFMT!$MSGFMT$ac_delim
45497 GMSGFMT!$GMSGFMT$ac_delim
45498 XGETTEXT!$XGETTEXT$ac_delim
45499 MSGMERGE!$MSGMERGE$ac_delim
45500 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
45501 LIBICONV!$LIBICONV$ac_delim
45502 LTLIBICONV!$LTLIBICONV$ac_delim
45503 INTLLIBS!$INTLLIBS$ac_delim
45504 LIBINTL!$LIBINTL$ac_delim
45505 LTLIBINTL!$LTLIBINTL$ac_delim
45506 POSUB!$POSUB$ac_delim
45507 GLIBC2!$GLIBC2$ac_delim
45508 ALLOCA!$ALLOCA$ac_delim
45509 GLIBC21!$GLIBC21$ac_delim
45510 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
45511 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
45512 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
45513 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
45514 INTLBISON!$INTLBISON$ac_delim
45517 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45519 elif $ac_last_try; then
45520 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45521 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45522 { (exit 1); exit 1; }; }
45524 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45528 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45529 if test -n "$ac_eof"; then
45530 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45531 ac_eof=`expr $ac_eof + 1`
45534 cat >>$CONFIG_STATUS <<_ACEOF
45535 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
45536 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45539 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45540 s/^/s,@/; s/!/@,|#_!!_#|/
45543 s/'"$ac_delim"'$/,g/; t
45545 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45546 ' >>$CONFIG_STATUS <conf$$subs.sed
45547 rm -f conf$$subs.sed
45548 cat >>$CONFIG_STATUS <<_ACEOF
45554 for ac_last_try in false false false false false :; do
45555 cat >conf$$subs.sed <<_ACEOF
45556 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
45557 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
45558 CATOBJEXT!$CATOBJEXT$ac_delim
45559 DATADIRNAME!$DATADIRNAME$ac_delim
45560 INSTOBJEXT!$INSTOBJEXT$ac_delim
45561 GENCAT!$GENCAT$ac_delim
45562 INTLOBJS!$INTLOBJS$ac_delim
45563 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
45564 BAT_DIR!$BAT_DIR$ac_delim
45565 QWT_INC!$QWT_INC$ac_delim
45566 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
45567 QWT_LIB!$QWT_LIB$ac_delim
45569 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
45570 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
45571 WX_DIR!$WX_DIR$ac_delim
45572 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
45573 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
45574 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
45575 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
45576 STATIC_FD!$STATIC_FD$ac_delim
45577 STATIC_SD!$STATIC_SD$ac_delim
45578 STATIC_DIR!$STATIC_DIR$ac_delim
45579 STATIC_CONS!$STATIC_CONS$ac_delim
45580 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
45581 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
45582 ALL_DIRS!$ALL_DIRS$ac_delim
45583 DIRD_DIR!$DIRD_DIR$ac_delim
45584 DIR_TOOLS!$DIR_TOOLS$ac_delim
45585 STORED_DIR!$STORED_DIR$ac_delim
45586 CONS_INC!$CONS_INC$ac_delim
45587 CONS_OBJ!$CONS_OBJ$ac_delim
45588 CONS_SRC!$CONS_SRC$ac_delim
45589 CONS_LIBS!$CONS_LIBS$ac_delim
45590 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
45591 READLINE_SRC!$READLINE_SRC$ac_delim
45592 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
45593 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
45594 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
45595 OPENSSL_INC!$OPENSSL_INC$ac_delim
45596 working_dir!$working_dir$ac_delim
45597 archivedir!$archivedir$ac_delim
45598 basename!$basename$ac_delim
45599 hostname!$hostname$ac_delim
45600 scriptdir!$scriptdir$ac_delim
45601 bsrdir!$bsrdir$ac_delim
45602 logdir!$logdir$ac_delim
45603 plugindir!$plugindir$ac_delim
45604 dump_email!$dump_email$ac_delim
45605 job_email!$job_email$ac_delim
45606 smtp_host!$smtp_host$ac_delim
45607 piddir!$piddir$ac_delim
45608 subsysdir!$subsysdir$ac_delim
45609 baseport!$baseport$ac_delim
45610 dir_port!$dir_port$ac_delim
45611 fd_port!$fd_port$ac_delim
45612 sd_port!$sd_port$ac_delim
45613 dir_password!$dir_password$ac_delim
45614 fd_password!$fd_password$ac_delim
45615 sd_password!$sd_password$ac_delim
45616 mon_dir_password!$mon_dir_password$ac_delim
45617 mon_fd_password!$mon_fd_password$ac_delim
45618 mon_sd_password!$mon_sd_password$ac_delim
45619 db_name!$db_name$ac_delim
45620 db_user!$db_user$ac_delim
45621 db_password!$db_password$ac_delim
45622 db_port!$db_port$ac_delim
45623 dir_user!$dir_user$ac_delim
45624 dir_group!$dir_group$ac_delim
45625 sd_user!$sd_user$ac_delim
45626 sd_group!$sd_group$ac_delim
45627 fd_user!$fd_user$ac_delim
45628 fd_group!$fd_group$ac_delim
45629 SBINPERM!$SBINPERM$ac_delim
45630 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
45631 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
45632 SQL_BINDIR!$SQL_BINDIR$ac_delim
45633 DBI_DBD_DRIVERDIR!$DBI_DBD_DRIVERDIR$ac_delim
45634 uncomment_dbi!$uncomment_dbi$ac_delim
45635 DB_PROG!$DB_PROG$ac_delim
45636 DB_PROG_LIB!$DB_PROG_LIB$ac_delim
45637 cats!$cats$ac_delim
45638 DB_TYPE!$DB_TYPE$ac_delim
45639 GETCONF!$GETCONF$ac_delim
45640 XMKMF!$XMKMF$ac_delim
45641 X_CFLAGS!$X_CFLAGS$ac_delim
45642 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
45643 X_LIBS!$X_LIBS$ac_delim
45644 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
45645 LIBOBJS!$LIBOBJS$ac_delim
45646 CAP_LIBS!$CAP_LIBS$ac_delim
45647 FDLIBS!$FDLIBS$ac_delim
45648 DEBUG!$DEBUG$ac_delim
45649 DINCLUDE!$DINCLUDE$ac_delim
45650 DLIB!$DLIB$ac_delim
45651 DB_LIBS!$DB_LIBS$ac_delim
45652 WCFLAGS!$WCFLAGS$ac_delim
45655 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
45657 elif $ac_last_try; then
45658 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45659 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45660 { (exit 1); exit 1; }; }
45662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45666 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45667 if test -n "$ac_eof"; then
45668 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45669 ac_eof=`expr $ac_eof + 1`
45672 cat >>$CONFIG_STATUS <<_ACEOF
45673 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
45674 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45677 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45678 s/^/s,@/; s/!/@,|#_!!_#|/
45681 s/'"$ac_delim"'$/,g/; t
45683 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45684 ' >>$CONFIG_STATUS <conf$$subs.sed
45685 rm -f conf$$subs.sed
45686 cat >>$CONFIG_STATUS <<_ACEOF
45692 for ac_last_try in false false false false false :; do
45693 cat >conf$$subs.sed <<_ACEOF
45694 WLDFLAGS!$WLDFLAGS$ac_delim
45695 WRAPLIBS!$WRAPLIBS$ac_delim
45696 OBJLIST!$OBJLIST$ac_delim
45697 TAPEDRIVE!$TAPEDRIVE$ac_delim
45698 PSCMD!$PSCMD$ac_delim
45699 WIN32!$WIN32$ac_delim
45700 MACOSX!$MACOSX$ac_delim
45701 DISTNAME!$DISTNAME$ac_delim
45702 DISTVER!$DISTVER$ac_delim
45703 LTLIBOBJS!$LTLIBOBJS$ac_delim
45706 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
45708 elif $ac_last_try; then
45709 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
45710 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
45711 { (exit 1); exit 1; }; }
45713 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
45717 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
45718 if test -n "$ac_eof"; then
45719 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
45720 ac_eof=`expr $ac_eof + 1`
45723 cat >>$CONFIG_STATUS <<_ACEOF
45724 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
45725 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
45728 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
45729 s/^/s,@/; s/!/@,|#_!!_#|/
45732 s/'"$ac_delim"'$/,g/; t
45734 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
45735 ' >>$CONFIG_STATUS <conf$$subs.sed
45736 rm -f conf$$subs.sed
45737 cat >>$CONFIG_STATUS <<_ACEOF
45744 # VPATH may cause trouble with some makes, so we remove $(srcdir),
45745 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
45746 # trailing colons and then remove the whole line if VPATH becomes empty
45747 # (actually we leave an empty line to preserve line numbers).
45748 if test "x$srcdir" = x.; then
45749 ac_vpsub='/^[ ]*VPATH[ ]*=/{
45750 s/:*\$(srcdir):*/:/
45751 s/:*\${srcdir}:*/:/
45753 s/^\([^=]*=[ ]*\):*/\1/
45759 cat >>$CONFIG_STATUS <<\_ACEOF
45760 fi # test -n "$CONFIG_FILES"
45763 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
45766 :[FHLC]) ac_mode=$ac_tag; continue;;
45768 case $ac_mode$ac_tag in
45770 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
45771 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
45772 { (exit 1); exit 1; }; };;
45773 :[FH]-) ac_tag=-:-;;
45774 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
45791 -) ac_f="$tmp/stdin";;
45792 *) # Look for the file first in the build tree, then in the source tree
45793 # (if the path is not absolute). The absolute path cannot be DOS-style,
45794 # because $ac_f cannot contain `:'.
45798 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
45800 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
45801 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
45802 { (exit 1); exit 1; }; };;
45804 ac_file_inputs="$ac_file_inputs $ac_f"
45807 # Let's still pretend it is `configure' which instantiates (i.e., don't
45808 # use $as_me), people would be surprised to read:
45809 # /* config.h. Generated by config.status. */
45810 configure_input="Generated from "`IFS=:
45811 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
45812 if test x"$ac_file" != x-; then
45813 configure_input="$ac_file. $configure_input"
45814 { echo "$as_me:$LINENO: creating $ac_file" >&5
45815 echo "$as_me: creating $ac_file" >&6;}
45819 *:-:* | *:-) cat >"$tmp/stdin";;
45824 ac_dir=`$as_dirname -- "$ac_file" ||
45825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45826 X"$ac_file" : 'X\(//\)[^/]' \| \
45827 X"$ac_file" : 'X\(//\)$' \| \
45828 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
45830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45834 /^X\(\/\/\)[^/].*/{
45849 -*) as_dir=./$as_dir;;
45851 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
45855 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
45856 *) as_qdir=$as_dir;;
45858 as_dirs="'$as_qdir' $as_dirs"
45859 as_dir=`$as_dirname -- "$as_dir" ||
45860 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45861 X"$as_dir" : 'X\(//\)[^/]' \| \
45862 X"$as_dir" : 'X\(//\)$' \| \
45863 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45869 /^X\(\/\/\)[^/].*/{
45882 test -d "$as_dir" && break
45884 test -z "$as_dirs" || eval "mkdir $as_dirs"
45885 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
45886 echo "$as_me: error: cannot create directory $as_dir" >&2;}
45887 { (exit 1); exit 1; }; }; }
45891 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45893 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45894 # A ".." for each directory in $ac_dir_suffix.
45895 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
45896 case $ac_top_builddir_sub in
45897 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45898 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45901 ac_abs_top_builddir=$ac_pwd
45902 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45903 # for backward compatibility:
45904 ac_top_builddir=$ac_top_build_prefix
45907 .) # We are building in place.
45909 ac_top_srcdir=$ac_top_builddir_sub
45910 ac_abs_top_srcdir=$ac_pwd ;;
45911 [\\/]* | ?:[\\/]* ) # Absolute name.
45912 ac_srcdir=$srcdir$ac_dir_suffix;
45913 ac_top_srcdir=$srcdir
45914 ac_abs_top_srcdir=$srcdir ;;
45915 *) # Relative name.
45916 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45917 ac_top_srcdir=$ac_top_build_prefix$srcdir
45918 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45920 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45930 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
45931 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
45935 cat >>$CONFIG_STATUS <<\_ACEOF
45936 # If the template does not know about datarootdir, expand it.
45937 # FIXME: This hack should be removed a few years after 2.60.
45938 ac_datarootdir_hack=; ac_datarootdir_seen=
45940 case `sed -n '/datarootdir/ {
45949 ' $ac_file_inputs` in
45950 *datarootdir*) ac_datarootdir_seen=yes;;
45951 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
45952 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
45953 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
45955 cat >>$CONFIG_STATUS <<_ACEOF
45956 ac_datarootdir_hack='
45957 s&@datadir@&$datadir&g
45958 s&@docdir@&$docdir&g
45959 s&@infodir@&$infodir&g
45960 s&@localedir@&$localedir&g
45961 s&@mandir@&$mandir&g
45962 s&\\\${datarootdir}&$datarootdir&g' ;;
45966 # Neutralize VPATH when `$srcdir' = `.'.
45967 # Shell code in configure.ac might set extrasub.
45968 # FIXME: do we really want to maintain this feature?
45969 cat >>$CONFIG_STATUS <<_ACEOF
45973 cat >>$CONFIG_STATUS <<\_ACEOF
45975 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
45976 s&@configure_input@&$configure_input&;t t
45977 s&@top_builddir@&$ac_top_builddir_sub&;t t
45978 s&@srcdir@&$ac_srcdir&;t t
45979 s&@abs_srcdir@&$ac_abs_srcdir&;t t
45980 s&@top_srcdir@&$ac_top_srcdir&;t t
45981 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
45982 s&@builddir@&$ac_builddir&;t t
45983 s&@abs_builddir@&$ac_abs_builddir&;t t
45984 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
45985 s&@INSTALL@&$ac_INSTALL&;t t
45986 $ac_datarootdir_hack
45987 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" >$tmp/out
45989 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
45990 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
45991 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
45992 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45993 which seems to be undefined. Please make sure it is defined." >&5
45994 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
45995 which seems to be undefined. Please make sure it is defined." >&2;}
45999 -) cat "$tmp/out"; rm -f "$tmp/out";;
46000 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
46009 # Transform confdefs.h into a sed script `conftest.defines', that
46010 # substitutes the proper values into config.h.in to produce config.h.
46011 rm -f conftest.defines conftest.tail
46012 # First, append a space to every undef/define line, to ease matching.
46013 echo 's/$/ /' >conftest.defines
46014 # Then, protect against being on the right side of a sed subst, or in
46015 # an unquoted here document, in config.status. If some macros were
46016 # called several times there might be several #defines for the same
46017 # symbol, which is useless. But do not sort them, since the last
46018 # AC_DEFINE must be honored.
46019 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46020 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
46021 # NAME is the cpp macro being defined, VALUE is the value it is being given.
46022 # PARAMS is the parameter list in the macro definition--in most cases, it's
46023 # just an empty string.
46024 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
46025 ac_dB='\\)[ (].*,\\1define\\2'
46033 s/^[ ]*#[ ]*define[ ][ ]*//
46038 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
46039 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
46040 ' >>conftest.defines
46042 # Remove the space that was appended to ease matching.
46043 # Then replace #undef with comments. This is necessary, for
46044 # example, in the case of _POSIX_SOURCE, which is predefined and required
46045 # on some systems where configure will not decide to define it.
46046 # (The regexp can be short, since the line contains either #define or #undef.)
46048 s,^[ #]*u.*,/* & */,' >>conftest.defines
46050 # Break up conftest.defines:
46051 ac_max_sed_lines=50
46053 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
46054 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
46055 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
46057 ac_in='$ac_file_inputs'
46058 ac_out='"$tmp/out1"'
46059 ac_nxt='"$tmp/out2"'
46063 # Write a here document:
46064 cat >>$CONFIG_STATUS <<_ACEOF
46065 # First, check the format of the line:
46066 cat >"\$tmp/defines.sed" <<\\CEOF
46067 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
46068 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
46072 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
46074 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
46075 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
46076 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
46077 grep . conftest.tail >/dev/null || break
46078 rm -f conftest.defines
46079 mv conftest.tail conftest.defines
46081 rm -f conftest.defines conftest.tail
46083 echo "ac_result=$ac_in" >>$CONFIG_STATUS
46084 cat >>$CONFIG_STATUS <<\_ACEOF
46085 if test x"$ac_file" != x-; then
46086 echo "/* $configure_input */" >"$tmp/config.h"
46087 cat "$ac_result" >>"$tmp/config.h"
46088 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
46089 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
46090 echo "$as_me: $ac_file is unchanged" >&6;}
46093 mv "$tmp/config.h" $ac_file
46096 echo "/* $configure_input */"
46102 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
46103 echo "$as_me: executing $ac_file commands" >&6;}
46108 case $ac_file$ac_mode in
46111 # See if we are running on zsh, and set the options which allow our
46112 # commands through without removal of \ escapes.
46113 if test -n "${ZSH_VERSION+set}" ; then
46114 setopt NO_GLOB_SUBST
46117 cfgfile="${ofile}T"
46118 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46121 cat <<_LT_EOF >> "$cfgfile"
46124 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
46125 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
46126 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
46127 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46129 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
46130 # 2006, 2007, 2008 Free Software Foundation, Inc.
46131 # Written by Gordon Matzigkeit, 1996
46133 # This file is part of GNU Libtool.
46135 # GNU Libtool is free software; you can redistribute it and/or
46136 # modify it under the terms of the GNU General Public License as
46137 # published by the Free Software Foundation; either version 2 of
46138 # the License, or (at your option) any later version.
46140 # As a special exception to the GNU General Public License,
46141 # if you distribute this file as part of a program or library that
46142 # is built using GNU Libtool, you may include this file under the
46143 # same distribution terms that you use for the rest of that program.
46145 # GNU Libtool is distributed in the hope that it will be useful,
46146 # but WITHOUT ANY WARRANTY; without even the implied warranty of
46147 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46148 # GNU General Public License for more details.
46150 # You should have received a copy of the GNU General Public License
46151 # along with GNU Libtool; see the file COPYING. If not, a copy
46152 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
46153 # obtained by writing to the Free Software Foundation, Inc.,
46154 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
46157 # The names of the tagged configurations supported by this script.
46158 available_tags="CXX "
46160 # ### BEGIN LIBTOOL CONFIG
46162 # Which release of libtool.m4 was used?
46163 macro_version=$macro_version
46164 macro_revision=$macro_revision
46166 # Whether or not to build shared libraries.
46167 build_libtool_libs=$enable_shared
46169 # Whether or not to build static libraries.
46170 build_old_libs=$enable_static
46172 # What type of objects to build.
46175 # Whether or not to optimize for fast installation.
46176 fast_install=$enable_fast_install
46179 host_alias=$host_alias
46183 # The build system.
46184 build_alias=$build_alias
46188 # A sed program that does not truncate output.
46191 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46192 Xsed="\$SED -e 1s/^X//"
46194 # A grep program that handles long lines.
46200 # A literal string matcher.
46203 # A BSD- or MS-compatible name lister.
46206 # Whether we need soft or hard links.
46209 # What is the maximum length of a command?
46210 max_cmd_len=$max_cmd_len
46212 # Object file suffix (normally "o").
46215 # Executable file suffix (normally "").
46218 # whether the shell understands "unset".
46221 # turn spaces into newlines.
46224 # turn newlines into spaces.
46227 # How to create reloadable object files.
46228 reload_flag=$lt_reload_flag
46229 reload_cmds=$lt_reload_cmds
46231 # An object symbol dumper.
46232 OBJDUMP=$lt_OBJDUMP
46234 # Method to check whether dependent libraries are shared objects.
46235 deplibs_check_method=$lt_deplibs_check_method
46237 # Command to use when deplibs_check_method == "file_magic".
46238 file_magic_cmd=$lt_file_magic_cmd
46242 AR_FLAGS=$lt_AR_FLAGS
46244 # A symbol stripping program.
46247 # Commands used to install an old-style archive.
46249 old_postinstall_cmds=$lt_old_postinstall_cmds
46250 old_postuninstall_cmds=$lt_old_postuninstall_cmds
46255 # LTCC compiler flags.
46256 LTCFLAGS=$lt_CFLAGS
46258 # Take the output of nm and produce a listing of raw symbols and C names.
46259 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
46261 # Transform the output of nm in a proper C declaration.
46262 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
46264 # Transform the output of nm in a C name address pair.
46265 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
46267 # Transform the output of nm in a C name address pair when lib prefix is needed.
46268 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
46270 # The name of the directory that contains temporary libtool files.
46273 # Shell to use when invoking shell scripts.
46276 # An echo program that does not interpret backslashes.
46279 # Used to examine libraries when file_magic_cmd begins with "file".
46280 MAGIC_CMD=$MAGIC_CMD
46282 # Must we lock files when doing compilation?
46283 need_locks=$lt_need_locks
46285 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
46286 DSYMUTIL=$lt_DSYMUTIL
46288 # Tool to change global to local symbols on Mac OS X.
46291 # Tool to manipulate fat objects and archives on Mac OS X.
46294 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
46297 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
46298 OTOOL64=$lt_OTOOL64
46300 # Old archive suffix (normally "a").
46303 # Shared library suffix (normally ".so").
46304 shrext_cmds=$lt_shrext_cmds
46306 # The commands to extract the exported symbol list from a shared archive.
46307 extract_expsyms_cmds=$lt_extract_expsyms_cmds
46309 # Variables whose values should be saved in libtool wrapper scripts and
46310 # restored at link time.
46311 variables_saved_for_relink=$lt_variables_saved_for_relink
46313 # Do we need the "lib" prefix for modules?
46314 need_lib_prefix=$need_lib_prefix
46316 # Do we need a version for libraries?
46317 need_version=$need_version
46319 # Library versioning type.
46320 version_type=$version_type
46322 # Shared library runtime path variable.
46323 runpath_var=$runpath_var
46325 # Shared library path variable.
46326 shlibpath_var=$shlibpath_var
46328 # Is shlibpath searched before the hard-coded library search path?
46329 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
46331 # Format of library name prefix.
46332 libname_spec=$lt_libname_spec
46334 # List of archive names. First name is the real one, the rest are links.
46335 # The last name is the one that the linker finds with -lNAME
46336 library_names_spec=$lt_library_names_spec
46338 # The coded name of the library, if different from the real name.
46339 soname_spec=$lt_soname_spec
46341 # Command to use after installation of a shared archive.
46342 postinstall_cmds=$lt_postinstall_cmds
46344 # Command to use after uninstallation of a shared archive.
46345 postuninstall_cmds=$lt_postuninstall_cmds
46347 # Commands used to finish a libtool library installation in a directory.
46348 finish_cmds=$lt_finish_cmds
46350 # As "finish_cmds", except a single script fragment to be evaled but
46352 finish_eval=$lt_finish_eval
46354 # Whether we should hardcode library paths into libraries.
46355 hardcode_into_libs=$hardcode_into_libs
46357 # Compile-time system search path for libraries.
46358 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
46360 # Run-time system search path for libraries.
46361 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
46363 # Whether dlopen is supported.
46364 dlopen_support=$enable_dlopen
46366 # Whether dlopen of programs is supported.
46367 dlopen_self=$enable_dlopen_self
46369 # Whether dlopen of statically linked programs is supported.
46370 dlopen_self_static=$enable_dlopen_self_static
46372 # Commands to strip libraries.
46373 old_striplib=$lt_old_striplib
46374 striplib=$lt_striplib
46377 # The linker used to build libraries.
46380 # Commands used to build an old-style archive.
46381 old_archive_cmds=$lt_old_archive_cmds
46383 # A language specific compiler.
46386 # Is the compiler the GNU compiler?
46389 # Compiler flag to turn off builtin functions.
46390 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
46392 # How to pass a linker flag through the compiler.
46393 wl=$lt_lt_prog_compiler_wl
46395 # Additional compiler flags for building library objects.
46396 pic_flag=$lt_lt_prog_compiler_pic
46398 # Compiler flag to prevent dynamic linking.
46399 link_static_flag=$lt_lt_prog_compiler_static
46401 # Does compiler simultaneously support -c and -o options?
46402 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
46404 # Whether or not to add -lc for building shared libraries.
46405 build_libtool_need_lc=$archive_cmds_need_lc
46407 # Whether or not to disallow shared libs when runtime libs are static.
46408 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
46410 # Compiler flag to allow reflexive dlopens.
46411 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
46413 # Compiler flag to generate shared objects directly from archives.
46414 whole_archive_flag_spec=$lt_whole_archive_flag_spec
46416 # Whether the compiler copes with passing no objects directly.
46417 compiler_needs_object=$lt_compiler_needs_object
46419 # Create an old-style archive from a shared archive.
46420 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
46422 # Create a temporary old-style archive to link instead of a shared archive.
46423 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
46425 # Commands used to build a shared archive.
46426 archive_cmds=$lt_archive_cmds
46427 archive_expsym_cmds=$lt_archive_expsym_cmds
46429 # Commands used to build a loadable module if different from building
46430 # a shared archive.
46431 module_cmds=$lt_module_cmds
46432 module_expsym_cmds=$lt_module_expsym_cmds
46434 # Whether we are building with GNU ld or not.
46435 with_gnu_ld=$lt_with_gnu_ld
46437 # Flag that allows shared libraries with undefined symbols to be built.
46438 allow_undefined_flag=$lt_allow_undefined_flag
46440 # Flag that enforces no undefined symbols.
46441 no_undefined_flag=$lt_no_undefined_flag
46443 # Flag to hardcode \$libdir into a binary during linking.
46444 # This must work even if \$libdir does not exist
46445 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
46447 # If ld is used when linking, flag to hardcode \$libdir into a binary
46448 # during linking. This must work even if \$libdir does not exist.
46449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
46451 # Whether we need a single "-rpath" flag with a separated argument.
46452 hardcode_libdir_separator=$lt_hardcode_libdir_separator
46454 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46455 # DIR into the resulting binary.
46456 hardcode_direct=$hardcode_direct
46458 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46459 # DIR into the resulting binary and the resulting library dependency is
46460 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46461 # library is relocated.
46462 hardcode_direct_absolute=$hardcode_direct_absolute
46464 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46465 # into the resulting binary.
46466 hardcode_minus_L=$hardcode_minus_L
46468 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46469 # into the resulting binary.
46470 hardcode_shlibpath_var=$hardcode_shlibpath_var
46472 # Set to "yes" if building a shared library automatically hardcodes DIR
46473 # into the library and all subsequent libraries and executables linked
46475 hardcode_automatic=$hardcode_automatic
46477 # Set to yes if linker adds runtime paths of dependent libraries
46478 # to runtime path list.
46479 inherit_rpath=$inherit_rpath
46481 # Whether libtool must link a program against all its dependency libraries.
46482 link_all_deplibs=$link_all_deplibs
46484 # Fix the shell variable \$srcfile for the compiler.
46485 fix_srcfile_path=$lt_fix_srcfile_path
46487 # Set to "yes" if exported symbols are required.
46488 always_export_symbols=$always_export_symbols
46490 # The commands to list exported symbols.
46491 export_symbols_cmds=$lt_export_symbols_cmds
46493 # Symbols that should not be listed in the preloaded symbols.
46494 exclude_expsyms=$lt_exclude_expsyms
46496 # Symbols that must always be exported.
46497 include_expsyms=$lt_include_expsyms
46499 # Commands necessary for linking programs (against libraries) with templates.
46500 prelink_cmds=$lt_prelink_cmds
46502 # Specify filename containing input files.
46503 file_list_spec=$lt_file_list_spec
46505 # How to hardcode a shared library path into an executable.
46506 hardcode_action=$hardcode_action
46508 # The directories searched by this compiler when creating a shared library.
46509 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
46511 # Dependencies to place before and after the objects being linked to
46512 # create a shared library.
46513 predep_objects=$lt_predep_objects
46514 postdep_objects=$lt_postdep_objects
46515 predeps=$lt_predeps
46516 postdeps=$lt_postdeps
46518 # The library search path used internally by the compiler when linking
46519 # a shared library.
46520 compiler_lib_search_path=$lt_compiler_lib_search_path
46522 # ### END LIBTOOL CONFIG
46528 cat <<\_LT_EOF >> "$cfgfile"
46529 # AIX sometimes has problems with the GCC collect2 program. For some
46530 # reason, if we set the COLLECT_NAMES environment variable, the problems
46531 # vanish in a puff of smoke.
46532 if test "X${COLLECT_NAMES+set}" != Xset; then
46534 export COLLECT_NAMES
46541 ltmain="$ac_aux_dir/ltmain.sh"
46544 # We use sed instead of cat because bash on DJGPP gets confused if
46545 # if finds mixed CR/LF and LF-only lines. Since sed operates in
46546 # text mode, it properly converts lines to CR/LF. This bash problem
46547 # is reportedly fixed, but why not run on old versions too?
46548 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
46549 || (rm -f "$cfgfile"; exit 1)
46553 cat << \_LT_EOF >> "$cfgfile"
46555 # func_dirname file append nondir_replacement
46556 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46557 # otherwise set result to NONDIR_REPLACEMENT.
46561 */*) func_dirname_result="${1%/*}${2}" ;;
46562 * ) func_dirname_result="${3}" ;;
46566 # func_basename file
46569 func_basename_result="${1##*/}"
46572 # func_dirname_and_basename file append nondir_replacement
46573 # perform func_basename and func_dirname in a single function
46575 # dirname: Compute the dirname of FILE. If nonempty,
46576 # add APPEND to the result, otherwise set result
46577 # to NONDIR_REPLACEMENT.
46578 # value returned in "$func_dirname_result"
46579 # basename: Compute filename of FILE.
46580 # value retuned in "$func_basename_result"
46581 # Implementation must be kept synchronized with func_dirname
46582 # and func_basename. For efficiency, we do not delegate to
46583 # those functions but instead duplicate the functionality here.
46584 func_dirname_and_basename ()
46587 */*) func_dirname_result="${1%/*}${2}" ;;
46588 * ) func_dirname_result="${3}" ;;
46590 func_basename_result="${1##*/}"
46593 # func_stripname prefix suffix name
46594 # strip PREFIX and SUFFIX off of NAME.
46595 # PREFIX and SUFFIX must not contain globbing or regex special
46596 # characters, hashes, percent signs, but SUFFIX may contain a leading
46597 # dot (in which case that matches only a dot).
46600 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
46601 # positional parameters, so assign one to ordinary parameter first.
46602 func_stripname_result=${3}
46603 func_stripname_result=${func_stripname_result#"${1}"}
46604 func_stripname_result=${func_stripname_result%"${2}"}
46610 func_opt_split_opt=${1%%=*}
46611 func_opt_split_arg=${1#*=}
46618 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
46619 *) func_lo2o_result=${1} ;;
46623 # func_xform libobj-or-source
46626 func_xform_result=${1%.*}.lo
46629 # func_arith arithmetic-term...
46632 func_arith_result=$(( $* ))
46636 # STRING may not start with a hyphen.
46639 func_len_result=${#1}
46644 *) # Bourne compatible functions.
46645 cat << \_LT_EOF >> "$cfgfile"
46647 # func_dirname file append nondir_replacement
46648 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
46649 # otherwise set result to NONDIR_REPLACEMENT.
46652 # Extract subdirectory from the argument.
46653 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
46654 if test "X$func_dirname_result" = "X${1}"; then
46655 func_dirname_result="${3}"
46657 func_dirname_result="$func_dirname_result${2}"
46661 # func_basename file
46664 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
46668 # func_stripname prefix suffix name
46669 # strip PREFIX and SUFFIX off of NAME.
46670 # PREFIX and SUFFIX must not contain globbing or regex special
46671 # characters, hashes, percent signs, but SUFFIX may contain a leading
46672 # dot (in which case that matches only a dot).
46673 # func_strip_suffix prefix name
46677 .*) func_stripname_result=`$ECHO "X${3}" \
46678 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
46679 *) func_stripname_result=`$ECHO "X${3}" \
46680 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
46685 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
46686 my_sed_long_arg='1s/^-[^=]*=//'
46691 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
46692 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
46698 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
46701 # func_xform libobj-or-source
46704 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
46707 # func_arith arithmetic-term...
46710 func_arith_result=`expr "$@"`
46714 # STRING may not start with a hyphen.
46717 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
46723 case $lt_shell_append in
46725 cat << \_LT_EOF >> "$cfgfile"
46727 # func_append var value
46728 # Append VALUE to the end of shell variable VAR.
46736 cat << \_LT_EOF >> "$cfgfile"
46738 # func_append var value
46739 # Append VALUE to the end of shell variable VAR.
46750 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
46751 || (rm -f "$cfgfile"; exit 1)
46753 mv -f "$cfgfile" "$ofile" ||
46754 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
46758 cat <<_LT_EOF >> "$ofile"
46760 # ### BEGIN LIBTOOL TAG CONFIG: CXX
46762 # The linker used to build libraries.
46765 # Commands used to build an old-style archive.
46766 old_archive_cmds=$lt_old_archive_cmds_CXX
46768 # A language specific compiler.
46769 CC=$lt_compiler_CXX
46771 # Is the compiler the GNU compiler?
46774 # Compiler flag to turn off builtin functions.
46775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
46777 # How to pass a linker flag through the compiler.
46778 wl=$lt_lt_prog_compiler_wl_CXX
46780 # Additional compiler flags for building library objects.
46781 pic_flag=$lt_lt_prog_compiler_pic_CXX
46783 # Compiler flag to prevent dynamic linking.
46784 link_static_flag=$lt_lt_prog_compiler_static_CXX
46786 # Does compiler simultaneously support -c and -o options?
46787 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
46789 # Whether or not to add -lc for building shared libraries.
46790 build_libtool_need_lc=$archive_cmds_need_lc_CXX
46792 # Whether or not to disallow shared libs when runtime libs are static.
46793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
46795 # Compiler flag to allow reflexive dlopens.
46796 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
46798 # Compiler flag to generate shared objects directly from archives.
46799 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
46801 # Whether the compiler copes with passing no objects directly.
46802 compiler_needs_object=$lt_compiler_needs_object_CXX
46804 # Create an old-style archive from a shared archive.
46805 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
46807 # Create a temporary old-style archive to link instead of a shared archive.
46808 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
46810 # Commands used to build a shared archive.
46811 archive_cmds=$lt_archive_cmds_CXX
46812 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
46814 # Commands used to build a loadable module if different from building
46815 # a shared archive.
46816 module_cmds=$lt_module_cmds_CXX
46817 module_expsym_cmds=$lt_module_expsym_cmds_CXX
46819 # Whether we are building with GNU ld or not.
46820 with_gnu_ld=$lt_with_gnu_ld_CXX
46822 # Flag that allows shared libraries with undefined symbols to be built.
46823 allow_undefined_flag=$lt_allow_undefined_flag_CXX
46825 # Flag that enforces no undefined symbols.
46826 no_undefined_flag=$lt_no_undefined_flag_CXX
46828 # Flag to hardcode \$libdir into a binary during linking.
46829 # This must work even if \$libdir does not exist
46830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
46832 # If ld is used when linking, flag to hardcode \$libdir into a binary
46833 # during linking. This must work even if \$libdir does not exist.
46834 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
46836 # Whether we need a single "-rpath" flag with a separated argument.
46837 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
46839 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46840 # DIR into the resulting binary.
46841 hardcode_direct=$hardcode_direct_CXX
46843 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
46844 # DIR into the resulting binary and the resulting library dependency is
46845 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
46846 # library is relocated.
46847 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
46849 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
46850 # into the resulting binary.
46851 hardcode_minus_L=$hardcode_minus_L_CXX
46853 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
46854 # into the resulting binary.
46855 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
46857 # Set to "yes" if building a shared library automatically hardcodes DIR
46858 # into the library and all subsequent libraries and executables linked
46860 hardcode_automatic=$hardcode_automatic_CXX
46862 # Set to yes if linker adds runtime paths of dependent libraries
46863 # to runtime path list.
46864 inherit_rpath=$inherit_rpath_CXX
46866 # Whether libtool must link a program against all its dependency libraries.
46867 link_all_deplibs=$link_all_deplibs_CXX
46869 # Fix the shell variable \$srcfile for the compiler.
46870 fix_srcfile_path=$lt_fix_srcfile_path_CXX
46872 # Set to "yes" if exported symbols are required.
46873 always_export_symbols=$always_export_symbols_CXX
46875 # The commands to list exported symbols.
46876 export_symbols_cmds=$lt_export_symbols_cmds_CXX
46878 # Symbols that should not be listed in the preloaded symbols.
46879 exclude_expsyms=$lt_exclude_expsyms_CXX
46881 # Symbols that must always be exported.
46882 include_expsyms=$lt_include_expsyms_CXX
46884 # Commands necessary for linking programs (against libraries) with templates.
46885 prelink_cmds=$lt_prelink_cmds_CXX
46887 # Specify filename containing input files.
46888 file_list_spec=$lt_file_list_spec_CXX
46890 # How to hardcode a shared library path into an executable.
46891 hardcode_action=$hardcode_action_CXX
46893 # The directories searched by this compiler when creating a shared library.
46894 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
46896 # Dependencies to place before and after the objects being linked to
46897 # create a shared library.
46898 predep_objects=$lt_predep_objects_CXX
46899 postdep_objects=$lt_postdep_objects_CXX
46900 predeps=$lt_predeps_CXX
46901 postdeps=$lt_postdeps_CXX
46903 # The library search path used internally by the compiler when linking
46904 # a shared library.
46905 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
46907 # ### END LIBTOOL TAG CONFIG: CXX
46912 for ac_file in $CONFIG_FILES; do
46913 # Support "outfile[:infile[:infile...]]"
46915 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
46917 # PO directories have a Makefile.in generated from Makefile.in.in.
46918 case "$ac_file" in */Makefile.in)
46919 # Adjust a relative srcdir.
46920 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
46921 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
46922 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
46923 # In autoconf-2.13 it is called $ac_given_srcdir.
46924 # In autoconf-2.50 it is called $srcdir.
46925 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
46926 case "$ac_given_srcdir" in
46927 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
46928 /*) top_srcdir="$ac_given_srcdir" ;;
46929 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
46931 # Treat a directory as a PO directory if and only if it has a
46932 # POTFILES.in file. This allows packages to have multiple PO
46933 # directories under different names or in different locations.
46934 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
46935 rm -f "$ac_dir/POTFILES"
46936 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
46937 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
46938 POMAKEFILEDEPS="POTFILES.in"
46939 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
46940 # on $ac_dir but don't depend on user-specified configuration
46942 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
46943 # The LINGUAS file contains the set of available languages.
46944 if test -n "$OBSOLETE_ALL_LINGUAS"; then
46945 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
46947 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
46948 # Hide the ALL_LINGUAS assigment from automake.
46949 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
46950 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
46952 # The set of available languages was given in configure.in.
46953 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
46956 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
46957 # Compute UPDATEPOFILES
46958 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
46959 # Compute DUMMYPOFILES
46960 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
46962 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
46963 case "$ac_given_srcdir" in
46965 *) srcdirpre='$(srcdir)/' ;;
46971 for lang in $ALL_LINGUAS; do
46972 POFILES="$POFILES $srcdirpre$lang.po"
46973 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
46974 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
46975 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
46977 # CATALOGS depends on both $ac_dir and the user's LINGUAS
46978 # environment variable.
46980 if test -n "$ALL_LINGUAS"; then
46981 for presentlang in $ALL_LINGUAS; do
46983 if test "%UNSET%" != "$LINGUAS"; then
46984 desiredlanguages="$LINGUAS"
46986 desiredlanguages="$ALL_LINGUAS"
46988 for desiredlang in $desiredlanguages; do
46989 # Use the presentlang catalog if desiredlang is
46990 # a. equal to presentlang, or
46991 # b. a variant of presentlang (because in this case,
46992 # presentlang can be used as a fallback for messages
46993 # which are not translated in the desiredlang catalog).
46994 case "$desiredlang" in
46995 "$presentlang"*) useit=yes;;
46998 if test $useit = yes; then
46999 INST_LINGUAS="$INST_LINGUAS $presentlang"
47004 if test -n "$INST_LINGUAS"; then
47005 for lang in $INST_LINGUAS; do
47006 CATALOGS="$CATALOGS $lang.gmo"
47009 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
47010 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"
47011 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
47012 if test -f "$f"; then
47014 *.orig | *.bak | *~) ;;
47015 *) cat "$f" >> "$ac_dir/Makefile" ;;
47030 { (exit 0); exit 0; }
47032 chmod +x $CONFIG_STATUS
47033 ac_clean_files=$ac_clean_files_save
47036 # configure is writing to config.log, and then calls config.status.
47037 # config.status does its own redirection, appending to config.log.
47038 # Unfortunately, on DOS this fails, as config.log is still kept open
47039 # by configure, so config.status won't be able to write to it; its
47040 # output is simply discarded. So we exec the FD to /dev/null,
47041 # effectively closing config.log, so it can be properly (re)opened and
47042 # appended to by config.status. When coming back to configure, we
47043 # need to make the FD available again.
47044 if test "$no_create" != yes; then
47046 ac_config_status_args=
47047 test "$silent" = yes &&
47048 ac_config_status_args="$ac_config_status_args --quiet"
47050 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47052 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47053 # would make configure fail if this is the last instruction.
47054 $ac_cs_success || { (exit 1); exit 1; }
47058 if test "${support_bat}" = "yes" ; then
47059 if test "x$QMAKE" = "xnone"; then
47060 { { echo "$as_me:$LINENO: error: Could not find qmake $PATH. Check your Qt installation" >&5
47061 echo "$as_me: error: Could not find qmake $PATH. Check your Qt installation" >&2;}
47062 { (exit 1); exit 1; }; }
47067 echo "Creating bat Makefile"
47072 ${MAKE:-make} clean
47076 if test X"$GCC" = "Xyes" ; then
47077 echo "Doing make of dependencies"
47078 ${MAKE:-make} depend
47082 chmod 755 install_conf_file build-depkgs-qt-console
47086 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
47087 chmod 755 dvd-handler dvd-simulator
47088 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
47092 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
47093 chmod 755 $c/update_postgresql_tables_10_to_11
47097 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
47098 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
47100 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
47101 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
47103 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
47104 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
47106 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
47107 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
47109 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
47110 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
47112 chmod 755 $c/create_ingres_database $c/update_ingres_tables $c/make_ingres_tables
47113 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables $c/drop_ingres_database
47116 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup $c/make_catalog_backup.pl
47117 chmod 755 $c/sqlite
47120 chmod 755 src/win32/build-depkgs-mingw32
47122 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
47123 largefile_support="yes"
47126 if test X"$GCC" = "Xyes" ; then
47127 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47128 if test "x${CCVERSION}" = "x" ; then
47129 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47131 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
47132 if test x"${CXXVERSION}" = x ; then
47133 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
47137 # clean up any old junk
47141 ${MAKE:-make} clean
47143 if test "x${db_type}" = "xInternal" ; then
47146 echo "You have not specified either --enable-client-only or one of the"
47147 echo " supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
47148 echo " This is not permitted. Please reconfigure."
47150 echo "Aborting the configuration ..."
47157 Configuration on `date`:
47159 Host: ${host}${post_host} -- ${DISTNAME} ${DISTVER}
47160 Bacula version: ${BACULA} ${VERSION} (${DATE})
47161 Source code location: ${srcdir}
47162 Install binaries: ${sbindir}
47163 Install libraries: ${libdir}
47164 Install config files: ${sysconfdir}
47165 Scripts directory: ${scriptdir}
47166 Archive directory: ${archivedir}
47167 Working directory: ${working_dir}
47168 PID directory: ${piddir}
47169 Subsys directory: ${subsysdir}
47170 Man directory: ${mandir}
47171 Data directory: ${datarootdir}
47172 Plugin directory: ${plugindir}
47173 C Compiler: ${CC} ${CCVERSION}
47174 C++ Compiler: ${CXX} ${CXXVERSION}
47175 Compiler flags: ${WCFLAGS} ${CFLAGS}
47176 Linker flags: ${WLDFLAGS} ${LDFLAGS}
47178 Statically Linked Tools: ${support_static_tools}
47179 Statically Linked FD: ${support_static_fd}
47180 Statically Linked SD: ${support_static_sd}
47181 Statically Linked DIR: ${support_static_dir}
47182 Statically Linked CONS: ${support_static_cons}
47183 Database type: ${db_type}
47184 Database port: ${db_port}
47185 Database lib: ${DB_LIBS}
47186 Database name: ${db_name}
47187 Database user: ${db_user}
47189 Job Output Email: ${job_email}
47190 Traceback Email: ${dump_email}
47191 SMTP Host Address: ${smtp_host}
47193 Director Port: ${dir_port}
47194 File daemon Port: ${fd_port}
47195 Storage daemon Port: ${sd_port}
47197 Director User: ${dir_user}
47198 Director Group: ${dir_group}
47199 Storage Daemon User: ${sd_user}
47200 Storage DaemonGroup: ${sd_group}
47201 File Daemon User: ${fd_user}
47202 File Daemon Group: ${fd_group}
47204 SQL binaries Directory ${SQL_BINDIR}
47206 Large file support: $largefile_support
47207 Bacula conio support: ${got_conio} ${CONS_LIBS}
47208 readline support: ${got_readline} ${PRTREADLINE_SRC}
47209 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
47210 TLS support: ${support_tls}
47211 Encryption support: ${support_crypto}
47212 ZLIB support: ${have_zlib}
47213 enable-smartalloc: ${support_smartalloc}
47214 enable-lockmgr: ${support_lockmgr}
47215 bat support: ${support_bat}
47216 enable-gnome: ${support_gnome} ${gnome_version}
47217 enable-bwx-console: ${support_wx_console} ${wx_version}
47218 enable-tray-monitor: ${support_tray_monitor}
47219 client-only: ${build_client_only}
47220 build-dird: ${build_dird}
47221 build-stored: ${build_stored}
47222 Plugin support: ${have_plugins}
47223 ACL support: ${have_acl}
47224 XATTR support: ${have_xattr}
47225 Python support: ${support_python} ${PYTHON_LIBS}
47226 Batch insert enabled: ${support_batch_insert}
47230 # create a small shell script useful for support with
47231 # configure options and config.out info
47232 cat > scripts/bacula_config << EOF
47235 $ $0 $ac_configure_args
47237 cat config.out >> scripts/bacula_config
47238 echo __EOC__ >> scripts/bacula_config
47239 chmod 755 scripts/bacula_config
47243 # Display a warning message if postgresql client lib is <= 8.1
47244 if test x$DB_TYPE = xpostgresql -a x$ac_cv_lib_pq_PQisthreadsafe != xyes \
47245 -a x$support_batch_insert = xyes
47247 echo "WARNING: Your PostgreSQL client library is too old to detect "
47248 echo " if it was compiled with --enable-thread-safety, consider to"
47249 echo " upgrade it in order to avoid problems with Batch insert mode"